]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
hurd: Remove optimizing anonymous maps as __vm_allocate.
[thirdparty/glibc.git] / ChangeLog
1 2019-08-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2
3 * sysdeps/mach/hurd/getcwd.c
4 (_hurd_canonicalize_directory_name_internal): Do not remove the heading
5 slash if we got an unknown root directory. (__getcwd): Do not fail with
6 EGRATUITOUS if we got an unknown root directory.
7 * hurd/hurdselect.c (SELECT_ERROR): New macro.
8 (_hurd_select):
9 - Add `error' field to `d' structures array.
10 - If a poll descriptor is bogus, set EBADF, but continue with a zero
11 timeout.
12 - Go through the whole fd_set, not only until _hurd_dtablesize. Return
13 EBADF there is any bit set above _hurd_dtablesize.
14 - Do not request io_select on bogus descriptors (SELECT_ERROR).
15 - On io_select request error, record the error.
16 - On io_select bogus reply, use EIO error code.
17 - On io_select bogus or error reply, record the error.
18 - Do not destroy reply port for bogus FDs.
19 - On error, make poll set POLLHUP in the EPIPE case, POLLNVAL in the
20 EBADF case, or else POLLERR.
21 - On error, make select simulated readiness.
22
23 [BZ #19903]
24 * sysdeps/mach/hurd/mmap.c (__mmap): Remove optimizing anonymous maps
25 as __vm_allocate.
26
27 2019-08-30 Richard Braun <rbraun@sceen.net>
28
29 * hurd/hurdselect.c (_hurd_select): Always call __io_select with no
30 timeout.
31 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Fix preemptor setup.
32 * hurd/Makefile (user-interfaces): Add io_reply and io_request.
33 * hurd/hurdselect.c: Include <sys/time.h>, <hurd/io_request.h> and
34 <limits.h>.
35 (_hurd_select): Replace the call to __io_select with either
36 __io_select_request or __io_select_timeout_request, depending on the
37 timeout. Count the number of ready descriptors (replies for which at
38 least one type bit is set). Implement the timeout locally when there is
39 no file descriptor.
40
41 2019-08-29 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
42
43 * elf/dl-addr.c (determine_info): Calculate the symbol index
44 using the newly defined ELF_MACHINE_HASH_SYMIDX macro.
45 * elf/dl-lookup.c (do_lookup_x): Ditto.
46 (_dl_setup_hash): Initialize MIPS xhash translation table.
47 * elf/elf.h (SHT_MIPS_XHASH): New define.
48 (DT_MIPS_XHASH): New define.
49 * sysdeps/generic/ldsodefs.h (ELF_MACHINE_GNU_HASH_ADDRIDX): New
50 define.
51 (ELF_MACHINE_HASH_SYMIDX): Ditto.
52 (ELF_MACHINE_XHASH_SETUP): Ditto.
53 * sysdeps/mips/ldsodefs.h (ELF_MACHINE_GNU_HASH_ADDRIDX): New
54 define.
55 (ELF_MACHINE_HASH_SYMIDX): Ditto.
56 (ELF_MACHINE_XHASH_SETUP): Ditto.
57 * sysdeps/mips/linkmap.h (struct link_map_machine): New member.
58 * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increment valid ABI
59 version.
60 * sysdeps/unix/sysv/linux/mips/libc-abis: New ABI version.
61
62 2019-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
63
64 * sysdeps/sh/preconfigure.ac: New file.
65 * sysdeps/sh/preconfigure: Regenerate.
66 * sysdeps/sh/be/sh3/Implies: New file.
67 * sysdeps/sh/be/sh4/Implies: Likewise.
68 * sysdeps/sh/le/sh3/Implies: Likewise.
69 * sysdeps/sh/le/sh4/Implies: Likewise.
70 * sysdeps/unix/sysv/linux/sh/le/sh3/Implies: Likewise.
71 * sysdeps/unix/sysv/linux/sh/le/sh4/Implies: Likewise.
72 * sysdeps/unix/sysv/linux/sh/*.abilist: Move to
73 sysdeps/unix/sysv/linux/sh/le/*.abilist.
74 * sysdeps/unix/sysv/linux/sh/be/*.abilist: New files.
75
76 * sysdeps/microblaze/preconfigure.ac: New file.
77 * sysdeps/microblaze/preconfigure: Regenerate.
78 * sysdeps/microblaze/be/implies: New file.
79 * sysdeps/microblaze/le/implies: Likewise.
80 * sysdeps/unix/sysv/linux/microblaze/be/implies: Likewise.
81 * sysdeps/unix/sysv/linux/microblaze/le/implies: Likewise.
82 * sysdeps/unix/sysv/linux/microblaze/*.abilist. Move to
83 sysdeps/unix/sysv/linux/microblaze/be/*.abilist.
84 * sysdeps/unix/sysv/linux/microblaze/le/*.abilist: New files.
85
86 * sysdeps/arm/preconfigure.ac: Set machine based on endianness.
87 * sysdeps/arm/preconfigure: Regenerate.
88 * sysdeps/arm/be/Implies: New file.
89 * sysdeps/arm/be/armv6/Implies: Likewise.
90 * sysdeps/arm/be/armv6t2/Implies: Likewise.
91 * sysdeps/arm/be/armv7/Implies: Likewise.
92 * sysdeps/arm/le/Implies: Likewise.
93 * sysdeps/unix/sysv/linux/arm/be/Implies: Likewise.
94 * sysdeps/unix/sysv/linux/arm/le/Implies: Likewise.
95 * sysdeps/unix/sysv/linux/arm/*.abilist: Move to
96 sysdeps/unix/sysv/linux/arm/le/*.abilist.
97 * sysdeps/unix/sysv/linux/arm/be/l*.abilist: New files.
98
99 2019-08-27 Paul Eggert <eggert@cs.ucla.edu>
100
101 Fix posix/tst-regex by using UTF-8 and own test input
102 Problem reported by Stefan Liebler in:
103 https://sourceware.org/ml/libc-alpha/2019-08/msg00658.html
104 * posix/tst-regex.c: Convert this file from Latin-1 to UTF-8.
105 (do_test, test_expr): Adjust to the fact that this source file,
106 and the test data in ChangeLog.8, is now UTF-8 instead of Latin-1.
107 * posix/tst-regex.input: Copy from ChangeLog.old/ChangeLog.8,
108 so that it is now UTF-8.
109
110 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
111
112 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_status_ISA300): Delete.
113 (fegetenv_status): Generate 'mffsl' unconditionally.
114
115 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
116
117 * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Utilize lightweight
118 FPSCR read.
119 (_FPU_MASK_ALL): Delete.
120
121 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
122
123 * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc_ctx):
124 Utilize lightweight FPSCR read if possible, set fewer FPSCR bits
125 if possible.
126 (libc_feresetround_ppc): Replace call to __libc_femergeenv_ppc
127 with simpler required steps, set fewer FPSCR bits if possible.
128
129 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
130
131 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_mode): New.
132 (FPSCR_FPRF_MASK): New. (FPSCR_STATUS_MASK): New.
133 * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use lighter-
134 weight access to FPSCR; remove unnecessary second FPSCR read and
135 validate.
136 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
137 * sysdeps/powerpc/fpu/fesetmode.c (fesetmode): Use lighter-weight
138 access to FPSCR; Use macros in fenv_libc.h in favor of local.
139
140 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
141
142 * sysdeps/powerpc/fpu/fenv_libc.h: Define FPSCR bitmasks.
143 (fenv_reg_to_exceptions): Replace bitwise operations with mask-shift.
144 (fenv_exceptions_to_reg): New.
145 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Replace bitwise
146 operation with call to fenv_exceptions_to_reg().
147 * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
148
149 2019-08-28 Florian Weimer <fweimer@redhat.com>
150
151 * misc/mntent.c (struct mntent_buffer): Define.
152 (mntent_buffer): Adjust type to void *.
153 (allocate): Adjust for allocate_once.
154 (deallocate): New function.
155 (getmntent): Call allocate_once.
156
157 2019-08-28 Florian Weimer <fweimer@redhat.com>
158
159 nptl: Move pthread_attr_setdetachstate implementation into libc.
160 * nptl/Makefile (routines): Add pthread_attr_setdetachstate.
161 (libpthread-routines): Remove pthread_attr_setdetachstate.
162 * nptl/Versions (libpthread GLIBC_2.0): Remove
163 pthread_attr_setdetachstate.
164 * nptl/forward.c (pthread_attr_setdetachstate): Remove definition.
165 * nptl/nptl-init.c (pthread_functions): Remove initializer for
166 ptr_pthread_attr_setdetachstate.
167 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
168 Remove ptr_pthread_attr_setdetachstate member.
169 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
170 Remove pthread_attr_setdetachstate.
171 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
172 Likewise.
173 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
174 Likewise.
175 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
176 Likewise.
177 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
178 Likewise.
179 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
180 Likewise.
181 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
182 Likewise.
183 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
184 (GLIBC_2.4): Likewise.
185 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
186 (GLIBC_2.0): Likewise.
187 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
188 (GLIBC_2.18): Likewise.
189 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
190 (GLIBC_2.0): Likewise.
191 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
192 (GLIBC_2.0): Likewise.
193 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
194 Likewise.
195 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
196 (GLIBC_2.0): Likewise.
197 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
198 (GLIBC_2.3): Likewise.
199 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
200 (GLIBC_2.17): Likewise.
201 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
202 (GLIBC_2.27): Likewise.
203 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
204 (GLIBC_2.0): Likewise.
205 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
206 (GLIBC_2.2): Likewise.
207 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
208 Likewise.
209 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
210 (GLIBC_2.0): Likewise.
211 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
212 (GLIBC_2.2): Likewise.
213 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
214 (GLIBC_2.2.5): Likewise.
215 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
216 (GLIBC_2.16): Likewise.
217
218 2019-08-28 Florian Weimer <fweimer@redhat.com>
219
220 [BZ #24902]
221 * login/Makefile (tests): Add tst-pututxline-lockfail.
222 (tst-pututxline-lockfail): Link with -lpthread.
223 * login/utmp_file.c (internal_getut_r): Remove buffer argument.
224 (__libc_getutid_r): Adjust.
225 (__libc_pututline): Likewise. Check for file_offset == -1.
226 * login/tst-pututxline-lockfail.c: New file.
227
228 2019-08-28 Stefan Liebler <stli@linux.ibm.com>
229
230 * posix/tst-regex.c (do_test): Use tst-regex.input as input file.
231 * posix/tst-regex.input: New file.
232
233 2019-08-23 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
234
235 [BZ #24916]
236 * sysdeps/mips/Makefile [$(subdir) = elf] (tests): Add
237 tst-undefined-weak.
238 [$(subdir) = elf] (modules-names): Add tst-undefined-weak-lib.
239 [$(subdir) = elf] ($(objpfx)tst-undefined-weak): Add dependency.
240 * sysdeps/mips/tst-undefined-weak-lib.S: New file.
241 * sysdeps/mips/tst-undefined-weak.c: Likewise.
242 * sysdeps/unix/sysv/linux/mips/ldsodefs.h (VALID_ELF_ABIVERSION):
243 Increment highest valid ABIVERSION value.
244
245 2019-08-23 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
246
247 * sysdeps/unix/sysv/linux/mips/Makefile
248 (test-xfail-check-execstack):
249 Move under mips-has-gnustack != yes.
250 (CFLAGS-.o*, ASFLAGS-.o*): New rules.
251 Apply -Wa,-execstack if mips-force-execstack == yes.
252 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
253 * sysdeps/unix/sysv/linux/mips/configure.ac
254 (mips-force-execstack): New var.
255 Set to yes for hard-float builds with minimum_kernel < 4.8.0
256 or minimum_kernel not set at all.
257 (mips-has-gnustack): New var.
258 Use value of libc_cv_as_noexecstack
259 if mips-force-execstack != yes, otherwise set to no.
260
261 2019-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
262 Florian Weimer <fweimer@redhat.com>
263
264 * gmon/Versions (libc) [GLIBC_2.31]: New entry.
265 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
266 Make a compat_symbol.
267 * sysdeps/unix/sysv/linux/sparc/profil-counter.h
268 (__profil_counter_global): Likewise.
269
270 * debug/segfault.c (install_handler): Use SA_SIGINFO if defined.
271 * sysdeps/generic/profil-counter.h (__profil_counter): Cast to
272 uintptr_t.
273 * sysdeps/generic/sigcontextinfo.h (GET_PC): Rename to
274 sigcontext_get_pc and return aligned cast to uintptr_t.
275 * sysdeps/mach/hurd/i386/sigcontextinfo.h (GET_PC): Likewise.
276 * sysdeps/posix/profil.c (profil_count): Change PC argument to
277 uintptr_t.
278 (__profil): Use SA_SIGINFO.
279 * sysdeps/posix/sprofil.c (profil_count): Change PCP argument to
280 uintptr_t.
281 (__sprofil): Use SA_SIGINFO.
282 * sysdeps/unix/sysv/linux/profil-counter.h: New file.
283 * sysdeps/unix/sysv/linux/aarch64/profil-counter.h: Remove file.
284 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
285 * sysdeps/unix/sysv/linux/hppa/profil-counter.h: Likewise.
286 * sysdeps/unix/sysv/linux/i386/profil-counter.h: Likewise.
287 * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Likewise.
288 * sysdeps/unix/sysv/linux/microblaze/profil-counter.h: Likewise.
289 * sysdeps/unix/sysv/linux/mips/profil-counter.h: Likewise.
290 * sysdeps/unix/sysv/linux/nios2/profil-counter.h: Likewise.
291 * sysdeps/unix/sysv/linux/powerpc/profil-counter.h: Likewise.
292 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: Likewise.
293 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
294 * sysdeps/sysv/linux/s390/s390-32/profil-counter.h: Likewise.
295 * sysdeps/sysv/linux/s390/s390-64/profil-counter.h: Likewise.
296 * sysdeps/unix/sysv/linux/sh/profil-counter.h: Likewise.
297 * sysdeps/unix/sysv/linux/arm/profil-counter.h (__profil_counter):
298 Assume SA_SIGINFO and use sigcontext_get_pc instead of GET_PC.
299 * sysdeps/unix/sysv/linux/sparc/profil-counter.h: New file.
300 * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h: Remove file.
301 * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Likewise.
302 * sysdpes/unix/sysv/linux/aarch64/sigcontextinfo.h (SIGCONTEXT,
303 GET_PC, __sigaction, sigaction): Remove defines.
304 (sigcontext_get_pc): New function.
305 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h: Likewise.
306 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
307 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
308 * sysdeps/unix/sysv/linux/hppa/sigcontextinfo.h: Likewise.
309 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h: Likewise.
310 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: Likewise.
311 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h: Likewise.
312 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Likewise.
313 * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: Likewise.
314 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h: Likewise.
315 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h: Likewise.
316 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h: Likewise.
317 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
318 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: Likewise.
319 * sysdeps/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
320 * sysdeps/sysv/linux/sparc/sparc64/sigcontextinfo.h: Likewise.
321 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Likewise.
322 * sysdeps/unix/sysv/linux/alpha/register-dump.h (register_dump):
323 Handle CTX argument as ucontext_t.
324 * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
325 Likewise.
326 * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
327 * sysdeps/sysv/linux/s390/s390-32/register-dump.h: Likewise.
328 * sysdeps/sysv/linux/s390/s390-64/register-dump.h: Likewise.
329 * sysdeps/unix/sysv/linux/sh/register-dump.h: New file.
330 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Remove File.
331 * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
332 * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
333 * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
334 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
335 tst-sigcontextinfo-get_pc.
336 * sysdeps/unix/sysv/linux/tst-sigcontextinfo-get_pc.c: New file.
337 (CFLAGS-tst-sigcontextinfo-get_pc.c): New rule.
338
339 2019-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
340
341 * sysdeps/generic/single-thread.h (RTLD_SINGLE_THREAD_P): Add
342 definition.
343
344 2019-08-23 Rafał Lużyński <digitalfreak@lingonborough.com>
345
346 [BZ #24682]
347 * localedata/locales/bo_CN (first_weekday): Add, set to 2 (Monday).
348 * localedata/locales/ug_CN (first_weekday): Likewise.
349 * localedata/locales/zh_CN (first_weekday): Likewise.
350
351 2019-08-22 Gustavo Romero <gromero@linux.vnet.ibm.com>
352
353 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Fix typos and
354 field name in mcontext_t struct.
355
356 2019-08-22 Joseph Myers <joseph@codesourcery.com>
357
358 * resolv/tst-resolv-ai_idn-latin1.c (do_test): Mark test
359 unsupported with libidn2 before 2.0.5.
360 * resolv/tst-resolv-ai_idn.c (do_test): Likewise.
361
362 * manual/time.texi (strftime): Document %Ob and %OB as C2X
363 features.
364
365 2019-08-21 Paul Eggert <eggert@cs.ucla.edu>
366
367 Remove dead regex code
368 * posix/regex_internal.c (re_node_set_insert):
369 Remove unnecessary assignment. Reported by Tim Rühsen in:
370 https://lists.gnu.org/r/bug-gnulib/2019-08/msg00026.html
371
372 Fix bad pointer / leak in regex code
373 This was found by Coverity (CID 1484201). [BZ#24844]
374 * posix/regex_internal.c (create_cd_newstate): Fix use of bad
375 pointer and/or memory leak when storage is exhausted.
376
377 2019-08-21 Zack Weinberg <zackw@panix.com>
378
379 * misc/syslog.c (__vsyslog_internal)
380 * time/getdate.c (__getdate_r)
381 * time/tst_wcsftime.c (main):
382 Use return value of time, not its argument.
383
384 * string/strfry.c (strfry)
385 * sysdeps/mach/sleep.c (__sleep):
386 Remove unnecessary casts of NULL in calls to time.
387
388 2019-08-21 Joseph Myers <joseph@codesourcery.com>
389
390 * math/tgmath.h [__HAVE_FLOAT128X]: Give error.
391 [(__HAVE_FLOAT64X && !__HAVE_FLOAT128)
392 || (__HAVE_FLOAT128 && !__HAVE_FLOAT64X)]: Likewise.
393 (__TGMATH_2_NARROW_F): Likewise.
394 (__TGMATH_2_NARROW_D): New macro.
395 (__TGMATH_2_NARROW_F16): Likewise.
396 (__TGMATH_2_NARROW_F32): Likewise.
397 (__TGMATH_2_NARROW_F64): Likewise.
398 (__TGMATH_2_NARROW_F32X): Likewise.
399 (__TGMATH_2_NARROW_F64X): Likewise.
400 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F): Likewise.
401 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F16): Likewise.
402 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F32): Likewise.
403 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F64): Likewise.
404 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F32X): Likewise.
405 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fadd): Likewise.
406 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dadd): Likewise.
407 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fdiv): Likewise.
408 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (ddiv): Likewise.
409 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fmul): Likewise.
410 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dmul): Likewise.
411 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fsub): Likewise.
412 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dsub): Likewise.
413 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16add):
414 Likewise.
415 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16div):
416 Likewise.
417 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16mul):
418 Likewise.
419 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16sub):
420 Likewise.
421 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32add):
422 Likewise.
423 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32div):
424 Likewise.
425 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32mul):
426 Likewise.
427 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32sub):
428 Likewise.
429 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
430 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64add): Likewise.
431 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
432 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64div): Likewise.
433 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
434 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64mul): Likewise.
435 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
436 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64sub): Likewise.
437 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xadd):
438 Likewise.
439 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xdiv):
440 Likewise.
441 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xmul):
442 Likewise.
443 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xsub):
444 Likewise.
445 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
446 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xadd): Likewise.
447 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
448 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xdiv): Likewise.
449 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
450 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xmul): Likewise.
451 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
452 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xsub): Likewise.
453 * math/gen-tgmath-tests.py (Type): Add members
454 non_standard_real_argument_types_list, long_double_type,
455 complex_float64_type and float32x_ext_type.
456 (Type.__init__): Set the new members.
457 (Type.floating_type): Add new argument floatn.
458 (Type.real_floating_type): Likewise.
459 (Type.can_combine_types): Likewise.
460 (Type.combine_types): Likewise.
461 (Type.init_types): Create internal Float32x_ext type.
462 (Tests.__init__): Define Float32x_ext in generated C code.
463 (Tests.add_tests): Handle narrowing functions.
464 (Tests.add_all_tests): Likewise.
465 (Tests.tests_text): Allow variation in mant_dig for narrowing
466 functions with compilers before GCC 8.
467 * math/Makefile (tgmath3-narrow-types): New variable.
468 (tgmath3-narrow-macros): Likewise.
469 (tgmath3-macros): Add $(tgmath3-narrow-macros).
470
471 2019-08-20 Andreas Schwab <schwab@suse.de>
472
473 * sysdeps/i386/fpu/libm-test-ulps: Update.
474
475 2019-08-19 Carlos O'Donell <carlos@redhat.com>
476
477 * nscd/nscd.conf: Add warning and comment about shared option.
478
479 2019-08-19 Carlos O'Donell <carlos@redhat.com>
480
481 * nss/nsswitch.conf: Expand comments, and simplify defaults.
482 * manual/nss.texi (NSS Basics): List all known databases.
483 (Services in the NSS configuration): Mention automount.
484
485 2019-08-19 Florian Weimer <fweimer@redhat.com>
486
487 Do not print backtraces on fatal errors.
488 * debug/fortify_fail.c (__libc_argv): Remove declaration.
489 (__fortify_fail_abort): Remove definition.
490 (__fortify_fail): Call __libc_message directly.
491 * debug/stack_chk_fail.c (__libc_argv): Remove declaration.
492 (__stack_chk_fail): Call __fortify_fail instead of
493 __fortify_fail_abort.
494 * include/stdio.h (__fortify_fail_abort): Remove declaration.
495 * sysdeps/posix/libc_fatal.c (BEFORE_ABORT, before_abort): Remove
496 definitions.
497 (__libc_message): Do not handle do_backtrace. Do not call
498 BEFORE_ABORT.
499 (__libc_fatal): Do not pass do_backtrace to __libc_message.
500 * sysdeps/unix/sysv/linux/libc_fatal.c (BEFORE_ABORT)
501 (before_abort): Remove definitions.
502
503 2019-08-16 Florian Weimer <fweimer@redhat.com>
504
505 nptl: Move pthread_attr_getdetachstate implementation into libc.
506 * nptl/Makefile (routines): Add pthread_attr_getdetachstate.
507 (libpthread-routines): Remove pthread_attr_getdetachstate.
508 * nptl/Versions (libpthread GLIBC_2.0): Remove
509 pthread_attr_getdetachstate.
510 * nptl/forward.c (pthread_attr_getdetachstate): Remove definition.
511 * nptl/nptl-init.c (pthread_functions): Remove initializer for
512 ptr_pthread_attr_getdetachstate.
513 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
514 Remove ptr_pthread_attr_getdetachstate member.
515 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
516 Remove pthread_attr_getdetachstate.
517 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
518 Likewise.
519 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
520 Likewise.
521 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
522 Likewise.
523 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
524 Likewise.
525 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
526 Likewise.
527 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
528 Likewise.
529 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
530 (GLIBC_2.4): Likewise.
531 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
532 (GLIBC_2.0): Likewise.
533 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
534 (GLIBC_2.18): Likewise.
535 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
536 (GLIBC_2.0): Likewise.
537 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
538 (GLIBC_2.0): Likewise.
539 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
540 Likewise.
541 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
542 (GLIBC_2.0): Likewise.
543 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
544 (GLIBC_2.3): Likewise.
545 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
546 (GLIBC_2.17): Likewise.
547 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
548 (GLIBC_2.27): Likewise.
549 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
550 (GLIBC_2.0): Likewise.
551 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
552 (GLIBC_2.2): Likewise.
553 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
554 Likewise.
555 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
556 (GLIBC_2.0): Likewise.
557 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
558 (GLIBC_2.2): Likewise.
559 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
560 (GLIBC_2.2.5): Likewise.
561 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
562 (GLIBC_2.16): Likewise.
563
564 2019-08-16 Joseph Myers <joseph@codesourcery.com>
565
566 * math/libm-test-compat_totalorder.inc (do_test)
567 [TEST_COMPAT (libm, GLIBC_2_25, GLIBC_2_31)]: Change condition to
568 [TEST_COMPAT (libm, COMPAT_VER, GLIBC_2_31)].
569 * math/libm-test-compat_totalordermag.inc (do_test)
570 [TEST_COMPAT (libm, GLIBC_2_25, GLIBC_2_31)]: Likewise.
571
572 2019-08-15 Florian Weimer <fweimer@redhat.com>
573
574 nptl: Move pthread_attr_init implementation into libc.
575 * nptl/Makefile (routines): Add pthread_attr_init.
576 (libpthread-routines): Remove pthread_attr_init.
577 * nptl/Versions (libpthread GLIBC_2.0): Remove pthread_attr_init.
578 (libpthread GLIBC_2.0): Likewise.
579 * nptl/pthread_attr_init.c: Check for libc compat version instead
580 of libpthread compat version.
581 * nptl/forward.c (__pthread_attr_init_2_0)
582 (__pthread_attr_init_2_1): Remove definitions.
583 * nptl/nptl-init.c (pthread_functions): Remove initializers for
584 ptr___pthread_attr_init_2_0, ptr___pthread_attr_init_2_1.
585 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
586 Remove members ptr___pthread_attr_init_2_0,
587 ptr___pthread_attr_init_2_1.
588 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
589 Remove pthread_attr_init.
590 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
591 Likewise.
592 (GLIBC_2.1): Likewise.
593 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
594 Likewise.
595 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
596 Likewise.
597 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
598 Likewise.
599 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
600 Likewise.
601 (GLIBC_2.1): Likewise.
602 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
603 Likewise.
604 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
605 (GLIBC_2.4): Likewise.
606 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
607 (GLIBC_2.0): Likewise.
608 (GLIBC_2.1): Likewise.
609 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
610 (GLIBC_2.18): Likewise.
611 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
612 (GLIBC_2.0): Likewise.
613 (GLIBC_2.1): Likewise.
614 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
615 (GLIBC_2.0): Likewise.
616 (GLIBC_2.1): Likewise.
617 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
618 Likewise.
619 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
620 (GLIBC_2.0): Likewise.
621 (GLIBC_2.1): Likewise.
622 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
623 (GLIBC_2.3): Likewise.
624 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
625 (GLIBC_2.17): Likewise.
626 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
627 (GLIBC_2.27): Likewise.
628 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
629 (GLIBC_2.0): Likewise.
630 (GLIBC_2.1): Likewise.
631 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
632 (GLIBC_2.2): Likewise.
633 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
634 Likewise.
635 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
636 (GLIBC_2.0): Likewise.
637 (GLIBC_2.1): Likewise.
638 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
639 (GLIBC_2.2): Likewise.
640 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
641 (GLIBC_2.2.5): Likewise.
642 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
643 (GLIBC_2.16): Likewise.
644
645 2019-08-15 Florian Weimer <fweimer@redhat.com>
646
647 [BZ #24900]
648 * elf/dl-object.c (_dl_new_object): Do not store pathnames in the
649 new object in __RTLD_OPENEXEC mode (except for the origin).
650 * elf/tst-dlopen-aout.c (check_dlopen_failure): New function with
651 check for the error message.
652 (do_test): Call it. Add check using relative path.
653 * elf/Makefile (tests-container): Add tst-dlopen-aout-container.
654 (tst-dlopen-aout-container): Link with libpthread.
655 (LDFLAGS-tst-dlopen-aout-container): Set RPATH to $ORIGIN.
656
657 2019-08-15 Joseph Myers <joseph@codesourcery.com>
658
659 * math/bits/mathcalls.h
660 [__GLIBC_USE (IEC_60559_BFP_EXT) || __MATH_DECLARING_FLOATN]
661 (totalorder): Take pointer arguments.
662 [__GLIBC_USE (IEC_60559_BFP_EXT) || __MATH_DECLARING_FLOATN]
663 (totalordermag): Likewise.
664 * manual/arith.texi (totalorder): Likewise.
665 (totalorderf): Likewise.
666 (totalorderl): Likewise.
667 (totalorderfN): Likewise.
668 (totalorderfNx): Likewise.
669 (totalordermag): Likewise.
670 (totalordermagf): Likewise.
671 (totalordermagl): Likewise.
672 (totalordermagfN): Likewise.
673 (totalordermagfNx): Likewise.
674 * math/tgmath.h (__TGMATH_BINARY_REAL_RET_ONLY): Remove macro.
675 [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalorder): Likewise.
676 [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalordermag): Likewise.
677 * math/Versions (GLIBC_2.31): Add totalorder, totalorderf,
678 totalorderl, totalordermag, totalordermagf, totalordermagl,
679 totalorderf32, totalorderf64, totalorderf32x, totalordermagf32,
680 totalordermagf64, totalordermagf32x, totalorderf64x,
681 totalordermagf64x, totalorderf128 and totalordermagf128.
682 * math/Makefile (libm-test-funcs-noauto): Add compat_totalorder
683 and compat_totalordermag.
684 (libm-test-funcs-compat): New variable.
685 (libm-tests-compat): Likewise.
686 (tests): Do not include compat tests.
687 (tests-internal): Add compat tests.
688 ($(foreach t,$(libm-tests-base),
689 $(objpfx)$(t)-compat_totalorder.o)): Depend
690 on $(objpfx)libm-test-totalorder.c.
691 ($(foreach t,$(libm-tests-base),
692 $(objpfx)$(t)-compat_totalordermag.o): Depend on
693 $(objpfx)libm-test-totalordermag.c.
694 (tgmath3-macros): Remove totalorder and totalordermag.
695 * math/libm-test-compat_totalorder.inc: New file.
696 * math/libm-test-compat_totalordermag.inc: Likewise.
697 * math/libm-test-driver.c (struct test_ff_i_data): Update comment.
698 (RUN_TEST_fpfp_b): New macro.
699 (RUN_TEST_LOOP_fpfp_b): Likewise.
700 * math/libm-test-totalorder.inc (totalorder_test_data): Use
701 TEST_fpfp_b.
702 (totalorder_test): Condition on [!COMPAT_TEST].
703 (do_test): Likewise.
704 * math/libm-test-totalordermag.inc (totalordermag_test_data): Use
705 TEST_fpfp_b.
706 (totalordermag_test): Condition on [!COMPAT_TEST].
707 (do_test): Likewise.
708 * math/gen-tgmath-tests.py (Tests.add_all_tests): Remove
709 totalorder and totalordermag.
710 * math/test-tgmath.c (NCALLS): Change to 132.
711 (F(compile_test)): Do not call totalorder or totalordermag.
712 (F(totalorder)): Remove.
713 (F(totalordermag)): Likewise.
714 * include/float.h (__STDC_WANT_IEC_60559_TYPES_EXT__): Do not
715 define if [__STDC_WANT_IEC_60559_TYPES_EXT__].
716 * include/setjmp.h [!_ISOMAC] (STR_HELPER): Rename to
717 SJSTR_HELPER.
718 [!_ISOMAC] (STR): Rename to SJSTR. Update call to STR_HELPER.
719 [!_ISOMAC] (TEST_SIZE): Update call to STR.
720 [!_ISOMAC] (TEST_ALIGN): Likewise.
721 [!_ISOMAC] (TEST_OFFSET): Likewise.
722 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include <shlib-compat.h>
723 and <first-versions.h>.
724 (__totalorder): Take pointer arguments. Add symbol versions and
725 compat symbols.
726 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
727 <shlib-compat.h> and <first-versions.h>.
728 (__totalordermag): Take pointer arguments. Add symbol versions
729 and compat symbols.
730 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
731 <shlib-compat.h> and <first-versions.h>.
732 (__totalorder): Take pointer arguments. Add symbol versions and
733 compat symbols.
734 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
735 <shlib-compat.h> and <first-versions.h>.
736 (__totalordermag): Take pointer arguments. Add symbol versions
737 and compat symbols.
738 * sysdeps/ieee754/float128/float128_private.h
739 (__totalorder_compatl): New macro.
740 (__totalordermag_compatl): Likewise.
741 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include <shlib-compat.h>
742 and <first-versions.h>.
743 (__totalorderf): Take pointer arguments. Add symbol versions and
744 compat symbols.
745 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
746 <shlib-compat.h> and <first-versions.h>.
747 (__totalordermagf): Take pointer arguments. Add symbol versions
748 and compat symbols.
749 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
750 <shlib-compat.h> and <first-versions.h>.
751 (__totalorderl): Take pointer arguments. Add symbol versions and
752 compat symbols.
753 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
754 <shlib-compat.h> and <first-versions.h>.
755 (__totalordermagl): Take pointer arguments. Add symbol versions
756 and compat symbols.
757 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c: Include
758 <shlib-compat.h>.
759 (__totalorderl): Take pointer arguments. Add symbol versions and
760 compat symbols.
761 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c: Include
762 <shlib-compat.h>.
763 (__totalordermagl): Take pointer arguments. Add symbol versions
764 and compat symbols.
765 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
766 <shlib-compat.h> and <first-versions.h>.
767 (__totalorderl): Take pointer arguments. Add symbol versions and
768 compat symbols.
769 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
770 <shlib-compat.h> and <first-versions.h>.
771 (__totalordermagl): Take pointer arguments. Add symbol versions
772 and compat symbols.
773 * sysdeps/ieee754/ldbl-opt/nldbl-totalorder.c (totalorderl): Take
774 pointer arguments.
775 * sysdeps/ieee754/ldbl-opt/nldbl-totalordermag.c (totalordermagl):
776 Likewise.
777 * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c
778 (do_test): Update calls to totalorderl and totalordermagl.
779 * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c (do_test):
780 Update calls to totalorderl and totalordermagl.
781 * sysdeps/mach/hurd/i386/libm.abilist: Update.
782 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
783 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
784 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
785 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
786 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
787 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
788 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
789 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
790 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
791 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
792 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
793 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
794 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
795 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
796 Likewise.
797 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
798 Likewise.
799 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libm.abilist:
800 Likewise.
801 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libm.abilist:
802 Likewise.
803 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
804 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
805 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
806 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
807 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
808 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
809 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
810 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
811
812 2019-08-15 Florian Weimer <fweimer@redhat.com>
813
814 [BZ #24899]
815 * sysdeps/gnu/bits/utmpx.h (struct utmpx): Add
816 __attribute_nonstring__ to ut_line, ut_id, ut_user, ut_host.
817 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h (struct utmpx):
818 Likewise.
819 * sysdeps/gnu/bits/utmp.h (struct utmp): Add
820 __attribute_nonstring__ to ut_id.
821 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h (struct utmp):
822 Likewise.
823
824 2019-08-15 Florian Weimer <fweimer@redhat.com>
825
826 [BZ #24880]
827 * login/utmp_file.c (file_locking_failed): Use struct flock64.
828 (file_locking_unlock): Likewise.
829
830 2019-08-15 Florian Weimer <fweimer@redhat.com>
831
832 [BZ #24879]
833 login: Disarm timer after utmp lock acquisition.
834 * login/utmp_file.c (struct file_locking): Remove.
835 (try_file_lock): Adjust.
836 (file_lock_restore): Remove function.
837 (__libc_getutent_r): .
838 (internal_getut_r): Likewise.
839 (__libc_getutline_r): Likewise.
840 (__libc_pututline): Likewise.
841 (__libc_updwtmp): Likewise.
842
843 2019-08-15 Florian Weimer <fweimer@redhat.com>
844
845 nptl: Remove pthread_self compatibility symbol from libpthread.
846 * nptl/Versions (libpthread GLIBC_2.0): Remove pthread_self,
847 pthread_equal.
848 * nptl/Makefile (libpthread-routines): Remove compat-pthread_self.
849 * nptl/compat-pthread_self.c: Remove file.
850 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
851 Remove pthread_self.
852 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
853 Likewise.
854 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
855 Likewise.
856 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
857 Likewise.
858 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
859 Likewise.
860 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
861 Likewise.
862 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
863 (GLIBC_2.4): Likewise.
864 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
865 (GLIBC_2.0): Likewise.
866 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
867 (GLIBC_2.18): Likewise.
868 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
869 (GLIBC_2.0): Likewise.
870 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
871 (GLIBC_2.0): Likewise.
872 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
873 Likewise.
874 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
875 (GLIBC_2.0): Likewise.
876 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
877 (GLIBC_2.3): Likewise.
878 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
879 (GLIBC_2.17): Likewise.
880 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
881 (GLIBC_2.0): Likewise.
882 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
883 (GLIBC_2.2): Likewise.
884 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
885 Likewise.
886 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
887 (GLIBC_2.0): Likewise.
888 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
889 (GLIBC_2.2): Likewise.
890 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
891 (GLIBC_2.2.5): Likewise.
892 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
893 (GLIBC_2.16): Likewise.
894
895 2019-08-15 Florian Weimer <fweimer@redhat.com>
896
897 nptl: Move pthread_attr_destroy implementation into libc.
898 * nptl/Makefile (routines): Add pthread_attr_destroy.
899 (libpthread-routines): Remove pthread_attr_destroy.
900 * nptl/Versions (libpthread GLIBC_2.0): Remove
901 pthread_attr_destroy.
902 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Check for
903 libc compat version instead of libpthread compat version.
904 * nptl/forward.c (pthread_attr_destroy): Remove definition.
905 * nptl/nptl-init.c (pthread_functions): Remove initializer for
906 ptr_pthread_attr_destroy.
907 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
908 Remove ptr_pthread_attr_destroy member.
909 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
910 Remove pthread_attr_destroy.
911 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
912 Likewise.
913 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
914 Likewise.
915 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
916 Likewise.
917 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
918 Likewise.
919 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
920 Likewise.
921 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
922 Likewise.
923 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
924 (GLIBC_2.4): Likewise.
925 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
926 (GLIBC_2.0): Likewise.
927 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
928 (GLIBC_2.18): Likewise.
929 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
930 (GLIBC_2.0): Likewise.
931 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
932 (GLIBC_2.0): Likewise.
933 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
934 Likewise.
935 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
936 (GLIBC_2.0): Likewise.
937 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
938 (GLIBC_2.3): Likewise.
939 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
940 (GLIBC_2.17): Likewise.
941 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
942 (GLIBC_2.27): Likewise.
943 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
944 (GLIBC_2.0): Likewise.
945 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
946 (GLIBC_2.2): Likewise.
947 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
948 Likewise.
949 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
950 (GLIBC_2.0): Likewise.
951 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
952 (GLIBC_2.2): Likewise.
953 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
954 (GLIBC_2.2.5): Likewise.
955 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
956 (GLIBC_2.16): Likewise.
957
958 2019-08-15 Andreas Schwab <schwab@suse.de>
959
960 * sysdeps/i386/fpu/libm-test-ulps: Update.
961
962 2019-08-15 Florian Weimer <fweimer@redhat.com>
963
964 * malloc/Makefile (tests): Only add tst-mxfast for
965 $(have-tunables).
966 * malloc/tst-mxfast.c: Fix copyright year.
967 (do_test): Fix GNU style issues. Use TEST_COMPARE instead of
968 assert for checks.
969
970 2019-08-15 Florian Weimer <fweimer@redhat.com>
971
972 * login/utmp_file.c (__libc_updwtmp): Unlock the right file
973 descriptor.
974 * login/Makefile (tests): Add tst-updwtmpx.
975 * login/tst-updwtmpx.c: New file.
976
977 2019-08-15 Florian Weimer <fweimer@redhat.com>
978
979 nptl: Move pthread_equal implementation into libc.
980 * nptl/Makefile (routines): Add pthread_equal.
981 * nptl/forward.c (pthread_equal): Remove definition.
982 * nptl/nptl-init.c (pthread_functions): Remove initializer for
983 ptr_pthread_equal.
984 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
985 Remove ptr_pthread_equal member.
986 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
987 Remove pthread_equal.
988 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
989 Likewise.
990 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
991 Likewise.
992 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
993 Likewise.
994 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
995 Likewise.
996 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
997 Likewise.
998 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
999 Likewise.
1000 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1001 (GLIBC_2.4): Likewise.
1002 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1003 (GLIBC_2.0): Likewise.
1004 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1005 (GLIBC_2.18): Likewise.
1006 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1007 (GLIBC_2.0): Likewise.
1008 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1009 (GLIBC_2.0): Likewise.
1010 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1011 Likewise.
1012 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1013 (GLIBC_2.0): Likewise.
1014 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1015 (GLIBC_2.3): Likewise.
1016 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1017 (GLIBC_2.17): Likewise.
1018 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1019 (GLIBC_2.27): Likewise.
1020 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1021 (GLIBC_2.0): Likewise.
1022 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1023 (GLIBC_2.2): Likewise.
1024 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1025 Likewise.
1026 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1027 (GLIBC_2.0): Likewise.
1028 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1029 (GLIBC_2.2): Likewise.
1030 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1031 (GLIBC_2.2.5): Likewise.
1032 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1033 (GLIBC_2.16): Likewise.
1034
1035 2019-08-14 Florian Weimer <fweimer@redhat.com>
1036
1037 * support/support_descriptors.c: Include <support/descriptors.h>.
1038
1039 2019-08-14 Feng Xue <fxue@os.amperecomputing.com>
1040
1041 * sysdeps/aarch64/multiarch/memset_base64.S (DC_ZVA_THRESHOLD):
1042 Disable DC ZVA code if this macro is defined as zero.
1043 * sysdeps/aarch64/multiarch/memset_emag.S (DC_ZVA_THRESHOLD):
1044 Change to zero to disable using DC ZVA.
1045
1046 2019-08-13 Joseph Myers <joseph@codesourcery.com>
1047
1048 * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_FUNCS_EXT):
1049 Update comment.
1050 (__GLIBC_USE_IEC_60559_FUNCS_EXT_C2X): New macro.
1051 * bits/math-finite.h [__GLIBC_USE (IEC_60559_FUNCS_EXT)]: Change
1052 to [__GLIBC_USE (IEC_60559_FUNCS_EXT_C2X)].
1053 * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_FUNCS_EXT)]:
1054 Likewise.
1055
1056 2019-08-13 Florian Weimer <fweimer@redhat.com>
1057
1058 * login/utmp_file.c (LOCK_FILE, LOCKING_FAILED, UNLOCK_FILE):
1059 Remove macros.
1060 (struct file_locking): New.
1061 (try_file_lock, file_unlock, file_lock_restore): New functions.
1062 (__libc_getutent_r): Use the new functions.
1063 (internal_getut_r): Likewise.
1064 (__libc_getutline_r): Likewise.
1065 (__libc_pututline): Likewise.
1066 (__libc_updwtmp): Likewise.
1067
1068 2019-08-13 Joseph Myers <joseph@codesourcery.com>
1069
1070 * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_BFP_EXT): Update
1071 comment.
1072 (__GLIBC_USE_IEC_60559_BFP_EXT_C2X): New macro.
1073 * bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Change to
1074 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)].
1075 * include/limits.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1076 * math/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1077 * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1078 * stdlib/bits/stdlib-ldbl.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1079 Likewise.
1080 * stdlib/stdint.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1081 * stdlib/stdlib.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1082 * sysdeps/aarch64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1083 Likewise.
1084 * sysdeps/alpha/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1085 Likewise.
1086 * sysdeps/arm/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1087 Likewise.
1088 * sysdeps/csky/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1089 Likewise.
1090 * sysdeps/hppa/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1091 Likewise.
1092 * sysdeps/ia64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1093 Likewise.
1094 * sysdeps/m68k/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1095 Likewise.
1096 * sysdeps/microblaze/bits/fenv.h [__GLIBC_USE
1097 (IEC_60559_BFP_EXT)]: Likewise.
1098 * sysdeps/mips/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1099 Likewise.
1100 * sysdeps/nios2/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1101 Likewise.
1102 * sysdeps/powerpc/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1103 Likewise.
1104 * sysdeps/riscv/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1105 Likewise.
1106 * sysdeps/s390/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1107 Likewise.
1108 * sysdeps/sh/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1109 Likewise.
1110 * sysdeps/sparc/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1111 Likewise.
1112 * sysdeps/x86/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1113 Likewise.
1114 * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1115 Likewise, except for totalorder, totalordermag, getpayload,
1116 setpayload and setpayloadsig.
1117 * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise,
1118 except for totalorder and totalordermag.
1119
1120 * string/string.h (memccpy): Also declare if [__GLIBC_USE (ISOC2X)].
1121 (strdup): Likewise.
1122 (strndup): Likewise.
1123
1124 * include/features.h (_ISOC2X_SOURCE): New feature test macro.
1125 Undefine and define to 1 if [_GNU_SOURCE].
1126 (__GLIBC_USE_ISOC2X): New macro. Undefine and redefine depending
1127 on [_ISOC2X_SOURCE] and [__STDC_VERSION__ > 201710L].
1128 (__USE_ISOC11): Also define to 1 if [_ISOC2X_SOURCE].
1129 (__USE_ISOC99): Likewise.
1130 (__USE_ISOC95): Likewise.
1131 * manual/creature.texi (_ISOC2X_SOURCE): Document.
1132
1133 2019-08-13 Florian Weimer <fweimer@redhat.com>
1134
1135 * login/getutid_r.c (__getutid_r): _HAVE_UT_ID and _HAVE_UT_TYPE
1136 are always true.
1137 * login/getutmp.c (getutmp): _HAVE_UT_TYPE, _HAVE_UT_PID,
1138 _HAVE_UT_ID, _HAVE_UT_HOST, _HAVE_UT_TV are always true.
1139 * login/getutmpx.c (getutmpx): Likewise.
1140 * login/login.c (login): _HAVE_UT_TYPE, _HAVE_UT_PID are always
1141 true.
1142 * login/logout.c (logout): _HAVE_UT_TYPE, _HAVE_UT_HOST,
1143 _HAVE_UT_TV are always true.
1144 * login/logwtmp.c (logwtmp): _HAVE_UT_PID, _HAVE_UT_TYPE,
1145 _HAVE_UT_HOST, _HAVE_UT_TV are always true.
1146 * login/tst-utmp.c: _HAVE_UT_TYPE, _HAVE_UT_TV are always true.
1147 * login/utmp_file.c (__libc_setutent): _HAVE_UT_TYPE, _HAVE_UT_ID
1148 are always true.
1149 (internal_getut_r): _HAVE_UT_TYPE is always true.
1150 (__libc_pututline): Likewise.
1151 * login/programs/utmpdump.c (print_entry): Assume that
1152 _HAVE_UT_TYPE, _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST,
1153 _HAVE_UT_TV are always true.
1154 * sysdeps/generic/utmp-equal.h (__utmp_equal): _HAVE_UT_TYPE,
1155 _HAVE_UT_ID are always true.
1156 * sysdeps/gnu/bits/utmp.h: Move to ...
1157 * bits/utmp.h: ... here, replacing the old file.
1158
1159 2019-08-12 Florian Weimer <fweimer@redhat.com>
1160
1161 * elf/Makefile (tests): Unconditionally add tst-dlopen-aout.
1162 [$(build-hardcoded-path-in-tests)] (tst-dlopen-aout-no-pie): Do
1163 not set.
1164 * elf/tst-dlopen-aout.c: Do not included <assert.h>.
1165 (do_test): Open the executable using an absolute path. Print
1166 error message to standard output.
1167
1168 2019-08-09 DJ Delorie <dj@redhat.com>
1169
1170 * elf/dl-tunables.list: Add glibc.malloc.mxfast.
1171 * manual/tunables.texi: Document it.
1172 * malloc/malloc.c (do_set_mxfast): New.
1173 (__libc_mallopt): Call it.
1174 * malloc/arena.c: Add mxfast tunable.
1175 * malloc/tst-mxfast.c: New.
1176 * malloc/Makefile: Add it.
1177
1178 2019-08-08 Niklas Hambüchen <mail@nh2.me>
1179 Carlos O'Donell <carlos@redhat.com>
1180
1181 [BZ #24026]
1182 * malloc/malloc.c (__malloc_info): Account for top chunk.
1183
1184 2019-08-07 Joseph Myers <joseph@codesourcery.com>
1185
1186 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
1187 (SYNC_FILE_RANGE_WRITE_AND_WAIT): New macro.
1188
1189 2019-08-06 Joseph Myers <joseph@codesourcery.com>
1190
1191 * io/fcntl.h [__USE_GNU] (AT_RECURSIVE): New macro.
1192
1193 2019-07-02 Stefan Liebler <stli@linux.ibm.com>
1194
1195 * sysdeps/unix/sysv/linux/s390/init-first.c (VDSO_SETUP): New define.
1196
1197 2019-08-05 Joseph Myers <joseph@codesourcery.com>
1198
1199 * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU] (CLONE_PIDFD):
1200 New macro.
1201
1202 2019-08-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1203
1204 [BZ #19767]
1205 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (ALWAYS_USE_VSYSCALL):
1206 Remove definition.
1207 * sysdeps/unix/sysv/linux/arm/sysdep.h (ALWAYS_USE_VSYSCALL):
1208 Likewise.
1209 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
1210 Likewise.
1211 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (ALWAYS_USE_VSYSCALL):
1212 Likewise.
1213 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
1214 (ALWAYS_USE_VSYSCALL): Likewise.
1215 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
1216 (ALWAYS_USE_VSYSCALL): Likewise.
1217 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
1218 (ALWAYS_USE_VSYSCALL): Likewise.
1219 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
1220 (ALWAYS_USE_VSYSCALL): Likewise.
1221 * sysdeps/unix/sysv/linux/riscv/sysdep.h (ALWAYS_USE_VSYSCALL):
1222 Likewise.
1223 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
1224 (ALWAYS_USE_VSYSCALL): Likewise.
1225 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
1226 (ALWAYS_USE_VSYSCALL): Likewise.
1227 * sysdeps/unix/sysv/linux/sparc/sysdep.h (ALWAYS_USE_VSYSCALL):
1228 Likewise.
1229 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
1230 Likewise.
1231 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Remove #if USE_VSYSCALL.
1232 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Likewise.
1233 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL,
1234 USE_VSYSCALL): Remove defitions.
1235
1236 [BZ #19767]
1237 * sysdeps/unix/sysv/linux/sparc/init-first.c: Remove #ifdef SHARED.
1238 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: Likewise.
1239 * sysdeps/unix/sysv/linux/sparc/sysdep.h (ALWAYS_USE_VSYSCALL):
1240 Define.
1241
1242 [BZ #19767]
1243 * sysdeps/unix/sysv/linux/s390/init-first.c: Remove #ifdef SHARED.
1244 * sysdeps/unix/sysv/linux/s390/libc-vdso.h: Likewise.
1245 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
1246 (ALWAYS_USE_VSYSCALL): Define.
1247 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
1248 (ALWAYS_USE_VSYSCALL): Likewise.
1249
1250 [BZ #19767]
1251 * sysdeps/unix/sysv/linux/riscv/init-first.c: Remove #ifdef SHARED.
1252 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
1253 * sysdeps/unix/sysv/linux/riscv/sysdep.h (ALWAYS_USE_VSYSCALL):
1254 Define.
1255
1256 * sysdeps/sh/libm-test-ulps: Update.
1257
1258 2019-08-05 Florian Weimer <fweimer@redhat.com>
1259
1260 [BZ #23518]
1261 * login/uptmp-private.h (struct ufuncs): Remove definition.
1262 (__libc_utmp_file_functions, __libc_utmp_unknown_functions)
1263 (__libc_utmp_jump_table): Remove declarations.
1264 (__libc_setutent, __libc_getutent_r, __libc_getutid_r)
1265 (__libc_getutline_r, __libc_pututline, __libc_endutent)
1266 (__libc_updwtmp): Declare.
1267 * login/getutent_r.c (__libc_utmp_unknown_functions)
1268 (__libc_utmp_jump_table, setutent_unknown, getutent_r_unknown)
1269 (getutid_r_unknown, getutline_r_unknown, pututline_unknown)
1270 (endutent_unknown): Remove definitions.
1271 (__setutent): Call __libc_setutent.
1272 (__getutent_r): Call __libc_getutent_r.
1273 (__pututline): Call __libc_pututline.
1274 (__endutent): Call __libc_endutent.
1275 * login/getutid_r.c (__getutid_r): Call __libc_getutid_r.
1276 * login/getutline_r.c (__getutline_r): Call __libc_getutline_r.
1277 * login/updwtmp.c (__updwtmp): Call __libc_updwtmp.
1278 * login/utmp_file.c (__libc_utmp_file_functions): Remove definition
1279 (__libc_setutent): Rename from stetutent_file. Drop static.
1280 (maybe_setutent): New function.
1281 (__libc_getutent_r): Rename from getutent_r_file. Drop static.
1282 Check for initialization.
1283 (__libc_getutid_r): Rename from getutid_r_file. Drop static.
1284 Check for initialization.
1285 (__libc_getutline_r): Rename from getutline_r_file. Drop static.
1286 Check for initialization.
1287 (__libc_pututline): Rename from pututline_file. Drop static.
1288 Check for initialization.
1289 (__libc_endutent): Rename from endutent_file. Drop static. Check
1290 for initialization.
1291 (__libc_updwtmp): Rename from updwtmp_file. Drop static.
1292 * login/utmpname.c (__utmpname): Call __libc_endutent.
1293 * sysdeps/unix/getlogin_r (__getlogin_r): Call __libc_setutent,
1294 __libc_getutlien_r, __libc_endutent.
1295 * manual/users.texi (Who Logged In, Manipulating the Database):
1296 Adjust.
1297
1298 2019-08-05 Alexandra Hájková <ahajkova@redhat.com>
1299
1300 * elf/tst-ldconfig-bad-aux-cache.c: Use support_capture_subprocess.
1301
1302 2019-08-02 Joseph Myers <joseph@codesourcery.com>
1303
1304 * sysdeps/unix/sysv/linux/syscall-names.list: Update comment.
1305
1306 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Update Linux
1307 kernel version number to 5.2.
1308
1309 2019-08-01 Raoni Fassina Firmino <raoni@linux.ibm.com>
1310
1311 * sysdeps/powerpc/powerpc64/power8/memchr.S: Update power8
1312 mnemonics and set .machine power8.
1313 * sysdeps/powerpc/powerpc64/power8/memcmp.S: Likewise.
1314 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Likewise.
1315 * sysdeps/powerpc/powerpc64/power8/memset.S: Likewise.
1316 * sysdeps/powerpc/powerpc64/power8/strchr.S: Likewise.
1317 * sysdeps/powerpc/powerpc64/power8/strlen.S: Likewise.
1318 * sysdeps/powerpc/powerpc64/power8/strncmp.S: Likewise.
1319 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Likewise.
1320 * sysdeps/powerpc/powerpc64/power8/strnlen.S: Likewise.
1321 * sysdeps/powerpc/powerpc64/power8/strrchr.S: Likewise.
1322 * sysdeps/powerpc/powerpc64/power8/strspn.S: Likewise.
1323
1324 2019-08-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1325
1326 * sysdeps/hppa/fpu/libm-test-ulps: Update.
1327
1328 2019-08-01 Florian Weimer <fweimer@redhat.com>
1329
1330 [BZ #24867]
1331 * malloc/malloc.c (__malloc_info): Remove unwanted leading
1332 whitespace.
1333
1334 2019-08-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1335
1336 [BZ #15813]
1337 sysdeps/posix/tempname.c (__gen_tempname): get entropy on each
1338 attempt.
1339
1340 2019-08-01 Carlos O'Donell <carlos@redhat.com>
1341
1342 * version.h (RELEASE): Set to "stable".
1343 (VERSION): Set to "2.30".
1344 * include/features.h (__GLIBC_MINOR__): Set to 2.30.
1345
1346 * manual/install.texi: Update component versions.
1347 * INSTALL: Regenerate.
1348 * NEWS: Update.
1349
1350 2019-07-31 Carlos O'Donell <carlos@redhat.com>
1351
1352 * po/be.po: Update translations.
1353 * po/bg.po: Likewise.
1354 * po/ca.po: Likewise.
1355 * po/cs.po: Likewise.
1356 * po/da.po: Likewise.
1357 * po/de.po: Likewise.
1358 * po/el.po: Likewise.
1359 * po/eo.po: Likewise.
1360 * po/es.po: Likewise.
1361 * po/fi.po: Likewise.
1362 * po/fr.po: Likewise.
1363 * po/gl.po: Likewise.
1364 * po/hr.po: Likewise.
1365 * po/hu.po: Likewise.
1366 * po/ia.po: Likewise.
1367 * po/id.po: Likewise.
1368 * po/it.po: Likewise.
1369 * po/ja.po: Likewise.
1370 * po/ko.po: Likewise.
1371 * po/lt.po: Likewise.
1372 * po/nb.po: Likewise.
1373 * po/nl.po: Likewise.
1374 * po/pl.po: Likewise.
1375 * po/pt_BR.po: Likewise.
1376 * po/ru.po: Likewise.
1377 * po/rw.po: Likewise.
1378 * po/sk.po: Likewise.
1379 * po/sl.po: Likewise.
1380 * po/sv.po: Likewise.
1381 * po/tr.po: Likewise.
1382 * po/uk.po: Likewise.
1383 * po/vi.po: Likewise.
1384 * po/zh_CN.po: Likewise.
1385 * po/zh_TW.po: Likewise.
1386
1387 2019-07-31 Florian Weimer <fweimer@redhat.com>
1388
1389 [BZ #24583]
1390 [BZ #24677]
1391 iconv, libio: Revert reference counting changes.
1392 * iconv/gconv_cache.c (__gconv_release_cache): Unconditionally
1393 free the steps array.
1394 * libio/Makefile (tests): Remove tst-wfile-gconv.
1395 (tests-container): Do not add tst-wfile-ascii.
1396 (tst-wfile-gconv-ENV): Do not set.
1397 (generated): Do not add tst-wfile-gconv.mtrace,
1398 tst-wfile-gconv.check.
1399 [($run-built-tests)] (tests-special): Do not add
1400 tst-wfile-gconv-mem.out.
1401 (tst-wfile-gconv.out, tst-wfile-gconv-mem.out): Remove targets.
1402 * libio/iofclose.c (_IO_new_fclose): Call __gconv_release_step
1403 instead of __wcsmbs_clone_conv.
1404 * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Remove definition.
1405 * wcsmbs/wcsmbsload.h (__wcsmbs_clone_conv): Remove declaration.
1406
1407 2019-07-30 Joseph Myers <joseph@codesourcery.com>
1408
1409 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1410 (__CONTEXT_FUNC_NAME): Restore setting of r31.
1411
1412 2019-07-30 Florian Weimer <fweimer@redhat.com>
1413
1414 * nptl/tst-pthread-getattr.c (allocate_and_test): Change return
1415 type to uintptr_t. Update comment.
1416 (check_stack_top): Adjust.
1417
1418 2019-07-29 Florian Weimer <fweimer@redhat.com>
1419
1420 Linux: Move declaration of getdents64 to <dirent.h>.
1421 * bits/dirent_ext.h: New file.
1422 * dirent/Makefile (headers): Add bits/dirent_ext.h.
1423 * dirent/dirent.h: Include <bits/dirent_ext.h>.
1424 * sysdeps/unix/sysv/linux/bits/dirent_ext.h: New file.
1425 * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Remove
1426 declaration.
1427 * manual/filesys.texi (Low-level Directory Access): Update header
1428 to dirent.h.
1429
1430 2019-07-29 DJ Delorie <dj@redhat.com>
1431 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1432
1433 [BZ #24794]
1434 * Makeconfig (all-subdirs): Improved source comments.
1435 * Makefile (testroot.pristine/install.stamp): Pass
1436 subdirs='$(sorted-subdirs)' to make install.
1437
1438 2019-07-25 Florian Weimer <fweimer@redhat.com>
1439
1440 [BZ #24677]
1441 * iconv/gconv_cache.c (__gconv_release_cache): Check reference
1442 counter before freeing array.
1443
1444 2019-07-24 H.J. Lu <hongjiu.lu@intel.com>
1445
1446 [BZ #24603]
1447 * sysdeps/x86_64/configure.ac: Check if -mprefer-vector-width=128
1448 works.
1449 * sysdeps/x86_64/configure: Regenerated.
1450 * sysdeps/x86_64/fpu/Makefile (CFLAGS-branred.c): New. Set
1451 to -mprefer-vector-width=128 if supported.
1452
1453 2019-07-24 Florian Weimer <fweimer@redhat.com>
1454
1455 * scripts/build-many-glibcs.py (Context.checkout): Default to
1456 Linux 5.2.
1457
1458 2019-07-24 Florian Weimer <fweimer@redhat.com>
1459
1460 [BZ #24532]
1461 Linux: Use in-tree copy of SO_ constants for !__USE_MISC.
1462 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == socket]
1463 (sysdep_headers): Add bits/socket-constants.h.
1464 (tests-special): Add tst-socket-consts.out.
1465 (tst-socket-consts.out): New target.
1466 * sysdeps/unix/sysv/linux/bits/socket.h: Remove macro tracking
1467 around <asm/unistd.h>.
1468 [__USE_MISC]: Include <bits/types/time_t.h> before <asm/socket.h>.
1469 [!__USE_MISC]: Include <sys/socket-constants.h> instead of
1470 <asm/socket.h>.
1471 * sysdeps/unix/sysv/linux/bits/tst-socket-consts.py: New file.
1472 * sysdeps/unix/sysv/linux/bits/socket-constants.h: Likewise.
1473 * sysdeps/unix/sysv/linux/alpha/bits/socket-constants.h: Likewise.
1474 * sysdeps/unix/sysv/linux/hppa/bits/socket-constants.h: Likewise.
1475 * sysdeps/unix/sysv/linux/mips/bits/socket-constants.h: Likewise.
1476 * sysdeps/unix/sysv/linux/powerpc/bits/socket-constants.h:
1477 Likewise.
1478 * sysdeps/unix/sysv/linux/sparc/bits/socket-constants.h: Likewise.
1479
1480 2019-07-23 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1481
1482 [BZ #24794]
1483 * Makefile (testroot.pristine/install.stamp): Pass
1484 subdirs='$(all-subdirs)' to make install.
1485
1486 * Makefile (testroot.pristine/install.stamp): Execute ld.so with
1487 the same arguments used in all tests.
1488
1489 2019-07-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
1490
1491 * NEWS: Mention the AArch64 IFUNC resolver ABI change.
1492
1493 2019-07-20 Egor Kobylkin <egor@kobylkin.com>
1494
1495 [BZ #2872]
1496 * locale/C-translit.h.in: Add Cyrillic transliteration.
1497
1498 2019-07-19 Florian Weimer <fweimer@redhat.com>
1499
1500 * sysdeps/unix/sysv/linux/syscall-names.list: Add system calls
1501 from Linux 5.2.
1502 (fsconfig): Add system call name.
1503 (fsmount): Likewise.
1504 (fsopen): Likewise.
1505 (fspick): Likewise.
1506 (move_mount): Likewise.
1507 (open_tree): Likewise.
1508
1509 2019-07-18 Carlos O'Donell <carlos@redhat.com>
1510
1511 * po/libc.pot: Regenerate.
1512
1513 2019-07-18 Mike Crowe <mac@mcrowe.com>
1514
1515 * sysdeps/unix/sysv/linux/hppa/pthread.h: Add declarations of
1516 functions recently added to sysdeps/nptl/pthread.h:
1517 pthread_mutex_clocklock, pthread_rwlock_clockrdlock,
1518 pthread_rwlock_clockwrlock and pthread_cond_clockwait.
1519
1520 * nptl/forward.c: Remove unnecessary __pthread_cond_clockwait and
1521 pthread_cond_clockwait forwarding functions. There are no internal
1522 users, so it is unnecessary to expose these functions in libc.so.
1523 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
1524 unnecessary ptr___pthread_cond_clockwait member.
1525 * nptl/nptl-init.c (pthread_functions): Remove assignment of
1526 removed member.
1527
1528 2019-07-17 Rafał Lużyński <digitalfreak@lingonborough.com>
1529
1530 [BZ #21897]
1531 * localedata/locales/aa_DJ (abday): Update from CLDR, all words
1532 begin with an uppercase letter now.
1533 (abmon): Likewise.
1534 (mon): Update from CLDR, reword February from "Kudo" to
1535 "Naharsi Kudo", April from "Agda Baxisso" to "Agda Baxis",
1536 and August from "Liiqen" to "Leqeeni".
1537 * localedata/locales/aa_ER (mon): Update from CLDR, reword
1538 April from "Agda Baxisso" to "Agda Baxis" and August from
1539 "Leqeeni" to "Liiqen".
1540 * localedata/locales/aa_ER@saaho (mon): Likewise.
1541 * localedata/locales/aa_ET (abmon): Update from CLDR, reword
1542 abbreviated February from "Kud" to "Nah".
1543 (mon): Update from CLDR, reword February from "Kudo" to
1544 "Naharsi Kudo" and April from "Agda Baxisso" to "Agda Baxis".
1545
1546 2019-07-17 Rafał Lużyński <digitalfreak@lingonborough.com>
1547
1548 [BZ #23996]
1549 * localedata/locales/nl_BE (LC_NAME): Replace with “copy "nl_NL"”.
1550
1551 2019-07-17 PanderMusubi <pander@users.sourceforge.net>
1552
1553 [BZ #23996]
1554 * localedata/locales/nl_BE (LC_NAME): Add name_gen, name_mr,
1555 name_mrs, name_miss, and name_ms.
1556 * localedata/locales/nl_NL (LC_NAME): Likewise.
1557
1558 2019-07-17 Daniil Zhilin <generalfailer@protonmail.com>
1559
1560 [BZ #24200]
1561 * localedata/locales/ga_IE (first_weekday): Add, set to 2 (Monday).
1562 * localedata/locales/en_IE (first_weekday): Likewise.
1563
1564 2019-07-12 Mike Crowe <mac@mcrowe.com>
1565
1566 * nptl/pthread_cond_wait.c: (__pthread_cond_clockwait): Remove code
1567 that is only useful if futex_supports_exact_relative_timeouts ()
1568 returns false.
1569 * nptl/pthread_condattr_setclock.c: (pthread_condattr_setclock):
1570 Likewise.
1571 * sysdeps/nptl/futex-internal.h: Remove comment about relative
1572 timeouts potentially being imprecise since it's no longer true.
1573 Remove declaration of futex_supports_exact_relative_timeouts.
1574 * sysdeps/unix/sysv/linux/futex-internal.h: Remove implementation
1575 of futex_supports_exact_relative_timeouts.
1576
1577 * NEWS: Mention recently-added pthread_cond_clockwait,
1578 pthread_rwlock_clockrdlock, pthread_rwlock_clockwrlock and
1579 sem_clockwait functions.
1580
1581 nptl: Add POSIX-proposed pthread_mutex_clocklock function that
1582 works like pthread_mutex_timedlock but takes a clockid parameter to
1583 measure the abstime parameter against.
1584 * sysdeps/nptl/pthread.h: Add pthread_mutex_clocklock.
1585 * nptl/DESIGN-systemtap-probes.txt: Likewise.
1586 * nptl/pthread_mutex_timedlock.c
1587 (__pthread_mutex_clocklock_common): Rename from
1588 __pthread_mutex_timedlock and add clockid parameter. Pass this
1589 parameter to lll_clocklock and lll_clocklock_elision in place of
1590 CLOCK_REALTIME. (__pthread_mutex_clocklock): New function to add
1591 LIBC_PROBE and validate clockid parameter before calling
1592 __pthread_mutex_clocklock_common. (__pthread_mutex_timedlock): New
1593 implementation to add LIBC_PROBE and calls
1594 __pthread_mutex_clocklock_common passing CLOCK_REALTIME as the
1595 clockid.
1596 * nptl/Makefile: Add tst-mutex11.c.
1597 * nptl/tst-abstime.c (th): Add tests for pthread_mutex_clocklock.
1598 * nptl/tst-mutex11.c: New tests for passing invalid and unsupported
1599 clockid parameters to pthread_mutex_clocklock.
1600 * nptl/tst-mutex5.c (do_test_clock): Rename from do_test and take
1601 clockid parameter to indicate which clock to be used. Call
1602 pthread_mutex_timedlock or pthread_mutex_clocklock as appropriate.
1603 (do_test): Call do_test_clock to separately test
1604 pthread_mutex_timedlock, pthread_mutex_clocklock(CLOCK_REALTIME)
1605 and pthread_mutex_clocklock(CLOCK_MONOTONIC).
1606 * nptl/tst-mutex9.c: Likewise.
1607 * nptl/Versions (GLIBC_2.30): Add pthread_mutex_clocklock.
1608 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30):
1609 Likewise.
1610 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30):
1611 Likewise.
1612 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30):
1613 Likewise.
1614 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30):
1615 Likewise.
1616 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30):
1617 Likewise.
1618 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30):
1619 Likewise.
1620 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30):
1621 Likewise.
1622 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1623 (GLIBC_2.30): Likewise.
1624 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1625 (GLIBC_2.30): Likewise.
1626 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1627 (GLIBC_2.30): Likewise.
1628 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1629 (GLIBC_2.30): Likewise.
1630 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1631 (GLIBC_2.30): Likewise.
1632 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30):
1633 Likewise.
1634 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1635 (GLIBC_2.30): Likewise.
1636 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1637 (GLIBC_2.30): Likewise.
1638 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1639 (GLIBC_2.30): Likewise.
1640 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1641 (GLIBC_2.30): Likewise.
1642 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1643 (GLIBC_2.30): Likewise.
1644 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1645 (GLIBC_2.30): Likewise.
1646 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30):
1647 Likewise.
1648 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1649 (GLIBC_2.30): Likewise.
1650 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1651 (GLIBC_2.30): Likewise.
1652 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1653 (GLIBC_2.30): Likewise.
1654 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1655 (GLIBC_2.30): Likewise.
1656
1657 nptl: Rename lll_timedlock to lll_clocklock and add clockid
1658 parameter to indicate the clock that the abstime parameter should
1659 be measured against in preparation for adding
1660 pthread_mutex_clocklock.
1661 * sysdeps/nptl/lowlevellock.h (lll_clocklock): Rename from
1662 lll_timedlock and add clockid parameter. (__lll_clocklock): Rename
1663 from __lll_timedlock and add clockid parameter.
1664 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_clocklock):
1665 Likewise.
1666 * nptl/lll_timedlock_wait.c (__lll_clocklock_wait): Rename from
1667 __lll_timedlock_wait and add clockid parameter. Use __clock_gettime
1668 rather than __gettimeofday so that clockid can be used. This means
1669 that conversion from struct timeval is no longer required.
1670 * sysdeps/sparc/sparc32/lowlevellock.c (lll_clocklock_wait):
1671 Likewise.
1672 * sysdeps/sparc/sparc32/lll_timedlock_wait.c: Update comment to
1673 refer to __lll_clocklock_wait rather than __lll_timedlock_wait.
1674 * nptl/pthread_mutex_timedlock.c (lll_clocklock_elision): Rename
1675 from lll_timedlock_elision, add clockid parameter and use
1676 meaningful names for other parameters. (__pthread_mutex_timedlock):
1677 Pass CLOCK_REALTIME where necessary to lll_clocklock and
1678 lll_clocklock_elision.
1679 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
1680 (lll_clocklock_elision): Rename from lll_timedlock_elision and add
1681 clockid parameter. (__lll_clocklock_elision): Rename from
1682 __lll_timedlock_elision and add clockid parameter.
1683 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
1684 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: Likewise.
1685 * sysdeps/unix/sysv/linux/powerpc/elision-timed.c
1686 (__lll_lock_elision): Call __lll_clocklock_elision rather than
1687 __lll_timedlock_elision. (EXTRAARG): Add clockid parameter.
1688 (LLL_LOCK): Likewise.
1689 * sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
1690 * sysdeps/unix/sysv/linux/x86/elision-timed.c: Likewise.
1691
1692 nptl: Add POSIX-proposed pthread_rwlock_clockrdlock &
1693 pthread_rwlock_clockwrlock which behave like
1694 pthread_rwlock_timedrdlock and pthread_rwlock_timedwrlock
1695 respectively, except they always measure abstime against the
1696 supplied clockid. The functions currently support CLOCK_REALTIME
1697 and CLOCK_MONOTONIC and return EINVAL if any other clock is
1698 specified.
1699 * sysdeps/nptl/pthread.h: Add pthread_rwlock_clockrdlock and
1700 pthread_wrlock_clockwrlock.
1701 * nptl/Makefile: Build pthread_rwlock_clockrdlock.c and
1702 pthread_rwlock_clockwrlock.c.
1703 * nptl/pthread_rwlock_clockrdlock.c: Implement
1704 pthread_rwlock_clockrdlock.
1705 * nptl/pthread_rwlock_clockwrlock.c: Implement
1706 pthread_rwlock_clockwrlock.
1707 * nptl/pthread_rwlock_common.c (__pthread_rwlock_rdlock_full): Add
1708 clockid parameter and verify that it indicates a supported clock on
1709 entry so that we fail even if it doesn't end up being used. Pass
1710 that clock on to futex_abstimed_wait when necessary.
1711 (__pthread_rwlock_wrlock_full): Likewise.
1712 * nptl/pthread_rwlock_rdlock.c: (__pthread_rwlock_rdlock): Pass
1713 CLOCK_REALTIME to __pthread_rwlock_rdlock_full even though it won't
1714 be used because there's no timeout.
1715 * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock): Pass
1716 CLOCK_REALTIME to __pthread_rwlock_wrlock_full even though it won't
1717 be used because there is no timeout.
1718 * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
1719 Pass CLOCK_REALTIME to __pthread_rwlock_rdlock_full since abstime
1720 uses that clock.
1721 * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
1722 Pass CLOCK_REALTIME to __pthread_rwlock_wrlock_full since abstime
1723 uses that clock.
1724 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
1725 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
1726 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
1727 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
1728 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
1729 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
1730 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
1731 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1732 (GLIBC_2.30): Likewise.
1733 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1734 (GLIBC_2.30): Likewise.
1735 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1736 (GLIBC_2.30): Likewise.
1737 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1738 (GLIBC_2.30): Likewise.
1739 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1740 (GLIBC_2.30): Likewise.
1741 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
1742 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1743 (GLIBC_2.30): Likewise.
1744 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1745 (GLIBC_2.30): Likewise.
1746 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1747 (GLIBC_2.30): Likewise.
1748 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1749 (GLIBC_2.30): Likewise.
1750 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1751 (GLIBC_2.30): Likewise.
1752 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1753 (GLIBC_2.30): Likewise.
1754 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
1755 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1756 (GLIBC_2.30): Likewise.
1757 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1758 (GLIBC_2.30): Likewise.
1759 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1760 (GLIBC_2.30): Likewise.
1761 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1762 (GLIBC_2.30): Likewise.
1763 * nptl/tst-abstime.c (th): Add pthread_rwlock_clockrdlock and
1764 pthread_rwlock_clockwrlock timeout tests to match the existing
1765 pthread_rwlock_timedrdloock and pthread_rwlock_timedwrlock tests.
1766 * nptl/tst-rwlock14.c (do_test): Likewise.
1767 * nptl/tst-rwlock6.c Invent verbose_printf macro, and use for
1768 ancillary output throughout. (tf): Accept thread_args structure so
1769 that rwlock, a clockid and function name can be passed to the
1770 thread. (do_test_clock): Rename from do_test. Accept clockid
1771 parameter to specify test clock. Use the magic clockid value of
1772 CLOCK_USE_TIMEDLOCK to indicate that pthread_rwlock_timedrdlock and
1773 pthread_rwlock_timedwrlock should be tested, otherwise pass the
1774 specified clockid to pthread_rwlock_clockrdlock and
1775 pthread_rwlock_clockwrlock. Use xpthread_create and xpthread_join.
1776 (do_test): Call do_test_clock to test each clockid in turn.
1777 * nptl/tst-rwlock7.c: Likewise.
1778 * nptl/tst-rwlock9.c (writer_thread, reader_thread): Accept
1779 thread_args structure so that the (now int) thread number, the
1780 clockid and the function name can be passed to the thread.
1781 (do_test_clock): Renamed from do_test. Pass the necessary
1782 thread_args when creating the reader and writer threads. Use
1783 xpthread_create and xpthread_join.
1784 (do_test): Call do_test_clock to test each clockid in turn.
1785 * manual/threads.texi: Add documentation for
1786 pthread_rwlock_clockrdlock and pthread_rwlock_clockwrclock.
1787
1788 nptl: pthread_rwlock: Move timeout validation into _full functions
1789 * nptl/pthread_rwlock_common.c (__pthread_rwlock_rdlock_full):
1790 Check validity of abstime parameter.
1791 (__pthread_rwlock_rwlock_full): Likewise.
1792 * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
1793 Remove check for validity of abstime parameter.
1794 * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
1795 Likewise.
1796
1797 nptl: Add POSIX-proposed pthread_cond_clockwait which behaves just
1798 like pthread_cond_timedwait except it always measures abstime
1799 against the supplied clockid.
1800 * nptl/Makefile: Add tst-cond26 and tst-cond27
1801 * nptl/Versions (GLIBC_2.30): Add pthread_cond_clockwait
1802 * sysdeps/nptl/pthread.h: Likewise
1803 * nptl/forward.c: Add __pthread_cond_clockwait
1804 * nptl/forward.c: Likewise
1805 * nptl/pthreadP.h: Likewise
1806 * sysdeps/nptl/pthread-functions.h: Likewise
1807 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Add
1808 clockid parameter and comment describing why we don't need to check
1809 its value. Use that value when calling
1810 futex_abstimed_wait_cancelable rather than reading the clock from
1811 the flags. (__pthread_cond_wait): Pass unused clockid parameter.
1812 (__pthread_cond_timedwait): Read clock from flags and pass it to
1813 __pthread_cond_wait_common. (__pthread_cond_clockwait): Add new
1814 function with weak alias from pthread_cond_clockwait.
1815 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
1816 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
1817 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
1818 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
1819 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
1820 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
1821 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
1822 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1823 (GLIBC_2.30): Likewise.
1824 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1825 (GLIBC_2.30): Likewise.
1826 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1827 (GLIBC_2.30): Likewise.
1828 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1829 (GLIBC_2.30): Likewise.
1830 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1831 (GLIBC_2.30): Likewise.
1832 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
1833 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1834 (GLIBC_2.30): Likewise.
1835 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1836 (GLIBC_2.30): Likewise.
1837 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1838 (GLIBC_2.30): Likewise.
1839 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1840 (GLIBC_2.30): Likewise.
1841 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1842 (GLIBC_2.30): Likewise.
1843 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1844 (GLIBC_2.30): Likewise.
1845 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
1846 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1847 (GLIBC_2.30): Likewise.
1848 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1849 (GLIBC_2.30): Likewise.
1850 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1851 (GLIBC_2.30): Likewise.
1852 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1853 (GLIBC_2.30): Likewise.
1854 * nptl/tst-cond11.c (run_test): Support testing
1855 pthread_cond_clockwait too by using a special magic
1856 CLOCK_USE_ATTR_CLOCK value to determine whether to call
1857 pthread_cond_timedwait or pthread_cond_clockwait. (do_test): Pass
1858 CLOCK_USE_ATTR_CLOCK for existing tests, and add new tests using
1859 all combinations of CLOCK_MONOTONIC and CLOCK_REALTIME.
1860 * ntpl/tst-cond26.c: New test for passing unsupported and invalid
1861 clocks to pthread_cond_clockwait.
1862 * nptl/tst-cond27.c: Add test similar to tst-cond5.c, but using
1863 struct timespec and pthread_cond_clockwait.
1864 * manual/threads.texi: Document pthread_cond_clockwait.
1865
1866 nptl: Add POSIX-proposed sem_clockwait which behaves just like
1867 sem_timedwait, but measures abstime against the specified clock.
1868 * nptl/sem_waitcommon.c (do_futex_wait, __new_sem_wait_slow): Add
1869 clockid parameters to indicate the clock which abstime should be
1870 measured against.
1871 * nptl/sem_timedwait.c (sem_timedwait), nptl/sem_wait.c
1872 (__new_sem_wait): Pass CLOCK_REALTIME as clockid to
1873 __new_sem_wait_slow.
1874 * nptl/sem_clockwait.c: New file to implement sem_clockwait based
1875 on sem_timedwait.c.
1876 * nptl/Makefile: Add sem_clockwait.c source file. Add CFLAGS for
1877 sem_clockwait.c to match those used for sem_timedwait.c.
1878 * sysdeps/pthread/semaphore.h: Add sem_clockwait.
1879 * nptl/Versions (GLIBC_2.30): Likewise.
1880 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
1881 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
1882 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
1883 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
1884 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
1885 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
1886 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
1887 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1888 (GLIBC_2.30): Likewise.
1889 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1890 (GLIBC_2.30): Likewise.
1891 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1892 (GLIBC_2.30): Likewise.
1893 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1894 (GLIBC_2.30): Likewise.
1895 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1896 (GLIBC_2.30): Likewise.
1897 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
1898 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1899 (GLIBC_2.30): Likewise.
1900 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1901 (GLIBC_2.30): Likewise.
1902 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1903 (GLIBC_2.30): Likewise.
1904 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1905 (GLIBC_2.30): Likewise.
1906 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1907 (GLIBC_2.30): Likewise.
1908 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1909 (GLIBC_2.30): Likewise.
1910 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
1911 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1912 (GLIBC_2.30): Likewise.
1913 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1914 (GLIBC_2.30): Likewise.
1915 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1916 (GLIBC_2.30): Likewise.
1917 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1918 (GLIBC_2.30): Likewise.
1919 * nptl/tst-sem17.c: Add new test for passing invalid clock to
1920 sem_clockwait.
1921 * nptl/tst-sem13.c, nptl/tst-sem5.c: Modify existing sem_timedwait
1922 tests to also test sem_clockwait.
1923 * manual/threads.texi: Document sem_clockwait.
1924
1925 nptl: Add clockid parameter to futex timed wait calls
1926 * sysdeps/nptl/lowlevellock-futex.h,
1927 sysdeps/unix/sysv/linux/lowlevellock-futex.h: Replace
1928 lll_futex_timed_wait_bitset with lll_futex_clock_wait_bitset that
1929 takes a clockid rather than a special clockbit.
1930 * sysdeps/nptl/lowlevellock-futex.h: Add
1931 lll_futex_supported_clockid so that client functions can check
1932 whether their clockid parameter is valid even if they don't
1933 ultimately end up calling lll_futex_clock_wait_bitset.
1934 * sysdeps/nptl/futex-internal.h,
1935 sysdeps/unix/sysv/linux/futex-internal.h
1936 (futex_abstimed_wait, futex_abstimed_wait_cancelable): Add
1937 clockid_t parameter to indicate which clock the absolute time
1938 passed should be measured against. Pass that clockid onto
1939 lll_futex_clock_wait_bitset. Add invalid clock as reason for
1940 returning -EINVAL.
1941 * sysdeps/nptl/futex-internal.h,
1942 sysdeps/unix/sysv/linux/futex-internal.h: Introduce
1943 futex_abstimed_supported_clockid so that client functions can check
1944 whether their clockid parameter is valid even if they don't
1945 ultimately end up calling futex_abstimed_wait.
1946 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Remove
1947 code to calculate relative timeout for
1948 __PTHREAD_COND_CLOCK_MONOTONIC_MASK and just pass CLOCK_MONOTONIC
1949 or CLOCK_REALTIME as required to futex_abstimed_wait_cancelable.
1950 * nptl/pthread_rwlock_common (__pthread_rwlock_rdlock_full)
1951 (__pthread_wrlock_full), nptl/sem_waitcommon (do_futex_wait): Pass
1952 additional CLOCK_REALTIME to futex_abstimed_wait_cancelable.
1953 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
1954 Switch to lll_futex_clock_wait_bitset and pass CLOCK_REALTIME
1955
1956 2019-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1957
1958 [BZ #24699]
1959 * posix/tst-mmap-offset.c: Mention BZ #24699.
1960 (do_test_bz21270): Rename to do_test_large_offset and use
1961 mmap64_maximum_offset to check for maximum expected offset value.
1962 * sysdeps/generic/mmap_info.h: New file.
1963 * sysdeps/unix/sysv/linux/mips/mmap_info.h: Likewise.
1964 * sysdeps/unix/sysv/linux/mmap64.c (MMAP_OFF_HIGH_MASK): Define iff
1965 __NR_mmap2 is used.
1966
1967 2019-07-10 DJ Delorie <dj@redhat.com>
1968 Sergei Trofimovich <slyfox@inbox.ru>
1969
1970 [BZ #24696]
1971 [BZ #24695]
1972 * nss/nss_db/db-open.c (internal_endent): Protect against NULL
1973 mappings.
1974 * nss/tst-nss-db-endgrent.c: New.
1975 * nss/tst-nss-db-endgrent.root: New.
1976 * nss/tst-nss-db-endpwent.c: New.
1977 * nss/tst-nss-db-endpwent.root: New.
1978 * nss/Makefile: Add new tests.
1979 * support/links-dso-program-c.c: Add selinux dependency.
1980 * support/links-dso-program.cc: Add selinux dependency.
1981 * support/Makefile: Build those with -lselinux if enabled.
1982
1983 2019-07-10 Szabolcs Nagy <szabolcs.nagy@arm.com>
1984
1985 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove the
1986 DT_AARCH64_VARIANT_PCS check.
1987 (elf_machine_lazy_rel): Use l_info[DT_AARCH64 (VARIANT_PCS)].
1988 * sysdeps/aarch64/linkmap.h (struct link_map_machine): Remove
1989 variant_pcs.
1990
1991 2019-07-10 Andreas Schwab <schwab@suse.de>
1992
1993 [BZ #23352]
1994 * malloc/malloc.h (__malloc_check_init): Don't declare.
1995 * include/malloc.h (__malloc_check_init): Likewise.
1996 * malloc/malloc-internal.h (__malloc_check_init): Declare it here.
1997 * manual/memory.texi (__malloc_check_init): Don't mention it.
1998
1999 2019-07-10 Mao Han <han_mao@c-sky.com>
2000
2001 * locale/Makefile: Fix tst-locale-locpath arguments passing.
2002
2003 2019-07-09 Paul A. Clarke <pc@us.ibm.com>
2004
2005 * sysdeps/powerpc/fpu/fenv_libc.h (_FPU_GET_RC): Protect use of
2006 __builtin_cpu_supports with __BUILTIN_CPU_SUPPORTS__.
2007
2008 2019-07-08 DJ Delorie <dj@redhat.com>
2009
2010 [BZ #23501]
2011 * io/ftw.c (process_entry): Fill in statbuf for dangling links.
2012 * io/tst-ftw-lnk.c: New test.
2013 * io/Makefile: Run it.
2014
2015 2019-07-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2016
2017 * sysdeps/powerpc/power7/fpu/s_logb.c: Move to ...
2018 * sysdeps/powerpc/fpu/s_logb.c: ... here. Use inline FP constants.
2019 * sysdeps/powerpc/power7/fpu/s_logbf.c: Move to ...
2020 * sysdeps/powerpc/fpu/s_logbf.c: ... here. Use inline FP constants.
2021 * sysdeps/powerpc/power7/fpu/s_logbl.c: Move to ...
2022 * sysdeps/powerpc/fpu/s_logbl.c: ... here. Use inline FP constants.
2023 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c:
2024 Adjust implementation path.
2025 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c:
2026 Adjust implementation path.
2027 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-power7.c:
2028 Adjust implementation path.
2029 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
2030 (libm-sysdep_routines): Add s_log* objects.
2031 (CFLAGS-s_logbf-power7.c, CFLAGS-s_logbl-power7.c,
2032 CFLAGS-s_logb-power7.c): New fule.
2033 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: Move
2034 to ...
2035 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb-power7.c:
2036 ... here.
2037 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: Move
2038 to ...
2039 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb-ppc64.c:
2040 ... here.
2041 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Move to ...
2042 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb.c: ... here.
2043 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: Move
2044 to ...
2045 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf-power7.c:
2046 ... here.
2047 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: Move
2048 to ...
2049 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf-ppc64.c:
2050 ... here.
2051 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Move to ...
2052 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf.c: ... here.
2053 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: Move
2054 to ...
2055 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl-power7.c:
2056 ... here.
2057 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: Move
2058 to ...
2059 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl-ppc64.c:
2060 ... here.
2061 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: Move to ...
2062 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl.c: ... here.
2063 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Remove file.
2064 * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Remove file.
2065 * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
2066 * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
2067
2068 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Move to ...
2069 * sysdeps/ieee754/dbl-64/s_logb.c: ... here. Add work around for
2070 powerpc32 integer 0 converting to -0.
2071
2072 * benchtests/Makefile (bench-math): Add logb.
2073 * benchtests/logb-inputs: New file.
2074 * benchtests/logbf-inputs: New file.
2075
2076 * sysdeps/powerpc/power5+/fpu/s_modf.c: Move to ...
2077 * sysdeps/powerpc/fpu/s_modf.c: ... here. Add ISA 2.07 optimization.
2078 * sysdeps/powerpc/power5+/fpu/s_modff.c: Move to ...
2079 * sysdeps/powerpc/fpu/s_modff.c: ... here. Add ISA 2.07 optimization.
2080 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
2081 Adjust include.
2082 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
2083 Likewise.
2084 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile (sysdep_calls,
2085 sysdep_routines): Add s_modf* objects.
2086 (CFLAGS-s_modf-power5+.c, CFLAGS-s_modff-power5+.c,
2087 CFLAGS-s_modf-ppc64.c, CFLAGS-s_modff-ppc64.c): New rule.
2088 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: Move
2089 to ...
2090 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf-power5+.c:
2091 ... here.
2092 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: Movo
2093 to ...
2094 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf-power5+.c: Move
2095 ... here.
2096 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Move to ...
2097 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf.c: ... here.
2098 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: Move
2099 to ...
2100 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff-power5+.c:
2101 ... here.
2102 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: Move to ...
2103 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff-ppc64.c:
2104 ... here.
2105 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Move to ...
2106 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff.c: ... here.
2107
2108 * sysdeps/powerpc/fpu/e_hypot.c (two60, two500, two600, two1022,
2109 twoM500, twoM600, two60factor, pdnum): Remove.
2110 (TEST_INFO_NAN, GET_TW0_HIGH_WORD): Remove macro.
2111 (__ieee754_hypot): Replace static variables with inline definition,
2112 remove ununsed branches.
2113 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
2114 (libm-sysdep_routines): Remove e_hypot-* objects.
2115 (CFLAGS-e_hypot-power7.c, CFLAGS-e_hypotf-power7.c): Remove rule.
2116 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: Remove
2117 file.
2118 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: Likewise.
2119 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: Likewise.
2120 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: Likewise.
2121 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: Likewise.
2122 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: Likewise.
2123
2124 * benchtests/Makefile (bench-math): Add hypot.
2125 * benchtests/hypot-inputs: New file.
2126
2127 2019-07-08 Vincent Chen <vincentc@andestech.com>
2128
2129 * sysdeps/unix/sysv/linux/dl-vdso.h
2130 (VDSO_NAME_LINUX_4, VDSO_HASH_LINUX_4): New defines.
2131
2132 2019-07-04 Andreas Schwab <schwab@suse.de>
2133
2134 [BZ #24484]
2135 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Define.
2136
2137 2019-07-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
2138
2139 * sysdeps/aarch64/Makefile: Install sys/ifunc.h and add tests.
2140 * sysdeps/aarch64/dl-irel.h (elf_ifunc_invoke): Update to new ABI.
2141 * sysdeps/aarch64/sys/ifunc.h: New file.
2142 * sysdeps/aarch64/tst-ifunc-arg-1.c: New file.
2143 * sysdeps/aarch64/tst-ifunc-arg-2.c: New file.
2144
2145 2019-07-01 Florian Weimer <fweimer@redhat.com>
2146
2147 [BZ #20188]
2148 * nptl/Versions (libpthread): Remove __fork from GLIBC_2.0.
2149 Replace __vfork with __libpthread_version_placeholder for
2150 GLIBC_2.1.2.
2151 (libc): Remove __libc_vfork from GLIBC_PRIVATE.
2152 * nptl/Makefile (libpthread-routines): Remove pt-vfork. Add
2153 libpthread-compat.
2154 * nptl/pt-vfork.c: Remove file.
2155 * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: Likewise.
2156 * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: Likewise.
2157 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
2158 * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: Likewise.
2159 * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Likewise.
2160 * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: Likewise.
2161 * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Likewise.
2162 * sysdeps/unix/sysv/linux/mips/pt-vfork.S: Likewise.
2163 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: Likewise.
2164 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
2165 * sysdeps/unix/sysv/linux/s390/pt-vfork.S: Likewise.
2166 * sysdeps/unix/sysv/linux/sh/pt-vfork.S: Likewise.
2167 * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: Likewise.
2168 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
2169 Remove vfork, __vfork.
2170 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
2171 Remove vfork.
2172 (GLIBC_2.1.2): Replace __vfork with
2173 __libpthread_version_placeholder.
2174 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
2175 Remove vfork, __vfork.
2176 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
2177 Likewise.
2178 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
2179 Remove vfork.
2180 (GLIBC_2.1.2): Replace __vfork with
2181 __libpthread_version_placeholder.
2182 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
2183 Remove vfork.
2184 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2185 (GLIBC_2.4): Remove vfork, __vfork.
2186 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2187 (GLIBC_2.0): Remove vfork.
2188 (GLIBC_2.1.2): Replace __vfork with
2189 __libpthread_version_placeholder.
2190 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2191 (GLIBC_2.18): Remove vfork, __vfork.
2192 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2193 (GLIBC_2.0): Remove vfork.
2194 (GLIBC_2.2): Remove __vfork.
2195 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist:
2196 (GLIBC_2.2): Remove vfork, __vfork.
2197 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
2198 (GLIBC_2.0): Remove vfork.
2199 (GLIBC_2.1.2): Replace __vfork with
2200 __libpthread_version_placeholder.
2201 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2202 (GLIBC_2.3): Remove vfork, __vfork.
2203 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2204 (GLIBC_2.17): Likewise.
2205 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2206 (GLIBC_2.0): Remove vfork.
2207 (GLIBC_2.1.2): Replace __vfork with
2208 __libpthread_version_placeholder.
2209 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2210 (GLIBC_2.2): Remove vfork, __vfork.
2211 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
2212 Likewise.
2213 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2214 (GLIBC_2.0): Remove vfork.
2215 (GLIBC_2.1.2): Replace __vfork with
2216 __libpthread_version_placeholder.
2217 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2218 (GLIBC_2.2): Remove vfork, __vfork.
2219 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2220 (GLIBC_2.2.5): Likewise.
2221 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2222 (GLIBC_2.16): Likewise.
2223 * sysdeps/unix/sysv/linux/hppa/localplt.data (libpthread.so):
2224 Remove __errno_location.
2225
2226 2019-07-02 Florian Weimer <fweimer@redhat.com>
2227
2228 [BZ #24757]
2229 * malloc/Depend: Add nptl and htl, due to potential indirect
2230 libpthread dependency of memusagestat.
2231
2232 2019-07-02 Stefan Liebler <stli@linux.ibm.com>
2233
2234 * resolv/res_send.c (__res_context_send): Disable maybe-uninitialized
2235 warning.
2236
2237 2019-07-01 Florian Weimer <fweimer@redhat.com>
2238
2239 * scripts/build-many-glibcs.py (Context.add_all_configs): Add v4t
2240 variant for arm-linux-gnueabi.
2241
2242 2019-07-01 H.J. Lu <hongjiu.lu@intel.com>
2243
2244 [BZ #24259]
2245 * elf/dl-open.c (dl_open_worker): Call _dl_open_check after
2246 relocation.
2247 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-5a,
2248 tst-cet-legacy-5b, tst-cet-legacy-6a and tst-cet-legacy-6b.
2249 (modules-names): Add tst-cet-legacy-mod-5a, tst-cet-legacy-mod-5b,
2250 tst-cet-legacy-mod-5c, tst-cet-legacy-mod-6a, tst-cet-legacy-mod-6b
2251 and tst-cet-legacy-mod-6c.
2252 (CFLAGS-tst-cet-legacy-5a.c): New.
2253 (CFLAGS-tst-cet-legacy-5b.c): Likewise.
2254 (CFLAGS-tst-cet-legacy-mod-5a.c): Likewise.
2255 (CFLAGS-tst-cet-legacy-mod-5b.c): Likewise.
2256 (CFLAGS-tst-cet-legacy-mod-5c.c): Likewise.
2257 (CFLAGS-tst-cet-legacy-6a.c): Likewise.
2258 (CFLAGS-tst-cet-legacy-6b.c): Likewise.
2259 (CFLAGS-tst-cet-legacy-mod-6a.c): Likewise.
2260 (CFLAGS-tst-cet-legacy-mod-6b.c): Likewise.
2261 (CFLAGS-tst-cet-legacy-mod-6c.c): Likewise.
2262 ($(objpfx)tst-cet-legacy-5a): Likewise.
2263 ($(objpfx)tst-cet-legacy-5a.out): Likewise.
2264 ($(objpfx)tst-cet-legacy-mod-5a.so): Likewise.
2265 ($(objpfx)tst-cet-legacy-mod-5b.so): Likewise.
2266 ($(objpfx)tst-cet-legacy-5b): Likewise.
2267 ($(objpfx)tst-cet-legacy-5b.out): Likewise.
2268 (tst-cet-legacy-5b-ENV): Likewise.
2269 ($(objpfx)tst-cet-legacy-6a): Likewise.
2270 ($(objpfx)tst-cet-legacy-6a.out): Likewise.
2271 ($(objpfx)tst-cet-legacy-mod-6a.so): Likewise.
2272 ($(objpfx)tst-cet-legacy-mod-6b.so): Likewise.
2273 ($(objpfx)tst-cet-legacy-6b): Likewise.
2274 ($(objpfx)tst-cet-legacy-6b.out): Likewise.
2275 (tst-cet-legacy-6b-ENV): Likewise.
2276 * sysdeps/x86/tst-cet-legacy-5.c: New file.
2277 * sysdeps/x86/tst-cet-legacy-5a.c: Likewise.
2278 * sysdeps/x86/tst-cet-legacy-5b.c: Likewise.
2279 * sysdeps/x86/tst-cet-legacy-6.c: Likewise.
2280 * sysdeps/x86/tst-cet-legacy-6a.c: Likewise.
2281 * sysdeps/x86/tst-cet-legacy-6b.c: Likewise.
2282 * sysdeps/x86/tst-cet-legacy-mod-5.c: Likewise.
2283 * sysdeps/x86/tst-cet-legacy-mod-5a.c: Likewise.
2284 * sysdeps/x86/tst-cet-legacy-mod-5b.c: Likewise.
2285 * sysdeps/x86/tst-cet-legacy-mod-5c.c: Likewise.
2286 * sysdeps/x86/tst-cet-legacy-mod-6.c: Likewise.
2287 * sysdeps/x86/tst-cet-legacy-mod-6a.c: Likewise.
2288 * sysdeps/x86/tst-cet-legacy-mod-6b.c: Likewise.
2289 * sysdeps/x86/tst-cet-legacy-mod-6c.c: Likewise.
2290
2291 2019-06-30 Paul A. Clarke <pc@us.ibm.com>
2292
2293 * sysdeps/powerpc/bits/fenvinline.h (__fegetround): Use
2294 __fegetround_ISA300() or __fegetround_ISA2() as appropriate.
2295 (__fegetround_ISA300) New.
2296 (__fegetround_ISA2) New.
2297 * sysdeps/powerpc/fpu_control.h (IS_ISA300): New.
2298 (_FPU_MFFS): Move implementation...
2299 (_FPU_GETCW): Here.
2300 (_FPU_MFFSL): Move implementation....
2301 (_FPU_GET_RC_ISA300): Here. New.
2302 (_FPU_GET_RC): Use _FPU_GET_RC_ISA300() or _FPU_GETCW() as appropriate.
2303 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_status_ISA300): New.
2304 (fegetenv_status): New.
2305 * sysdeps/powerpc/fpu/fegetmode.c (fegetmode): Use fegetenv_status()
2306 instead of fegetenv_register().
2307 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Likewise.
2308
2309 2019-06-28 Wilco Dijkstra <wdijkstr@arm.com>
2310
2311 * benchtests/bench-math-inlines.c: Increase iterations.
2312 * benchtests/bench-memcmp.c: Likewise.
2313 * benchtests/bench-rawmemchr.c: Likewise.
2314 * benchtests/bench-strcmp.c: Likewise.
2315 * benchtests/bench-strcpy_chk.c: Likewise.
2316 * benchtests/bench-string.h (INNER_LOOP_ITERS8): Add define.
2317 (INNER_LOOP_ITERS_MEDIUM): Increase iterations.
2318 (INNER_LOOP_ITERS_SMALL): Likewise.
2319 * benchtests/bench-strncat.c: Increase iterations.
2320 * benchtests/bench-strncmp.c: Increase iterations.
2321 * benchtests/bench-strncpy.c: Reduce iterations for wide strings.
2322 * benchtests/bench-strrchr.c: Increase iterations.
2323 * benchtests/bench-strstr.c: Keep iterations unchanged.
2324 * benchtests/bench-strtod.c: Increase iterations.
2325
2326 2019-06-28 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
2327
2328 * benchtests/bench-memccpy.c: Replace INNER_LOOP_ITERS
2329 with INNER_LOOP_ITERS_LARGE.
2330 * benchtests/bench-memchr.c: Likewise.
2331 * benchtests/bench-rawmemchr.c: Likewise.
2332 * benchtests/bench-strcat.c: Likewise.
2333 * benchtests/bench-strchr.c: Likewise.
2334 * benchtests/bench-string.h: Likewise.
2335 * benchtests/bench-strlen.c: Likewise.
2336 * benchtests/bench-strncpy.c: Likewise.
2337 * benchtests/bench-strnlen.c: Likewise.
2338
2339 2019-06-28 Florian Weimer <fweimer@redhat.com>
2340
2341 * sysdeps/unix/sysv/linux/tst-getdents64.c (large_buffer_checks):
2342 Use mmap instead of malloc. malloc with M_PERTURB writes to the
2343 entire allocated memory range.
2344
2345 2019-06-28 Tobias Klauser <tklauser@distanz.ch>
2346
2347 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Remove macro.
2348 (prepare_version_base): New helper inline function.
2349 (prepare_version): New macro replacing PREPARE_VERSION.
2350 (PREPARE_VERSION_KNOWN): Use prepare_version instead of PREPARE_VERSION.
2351
2352 2019-06-28 Florian Weimer <fweimer@redhat.com>
2353
2354 [BZ #24741]
2355 * elf/dl-lookup.c (do_lookup_x): Do not fail if there is a soname
2356 mismatch in a versioned symbol reference.
2357 (_dl_lookup_symbol_x): Do not report soname mismatch failures.
2358 * elf/Makefile [$(build-shared)] (tests): Add tst-sonamemove-link,
2359 tst-sonamemove-dlopen.
2360 (module-names): Add tst-sonamemove-linkmod1,
2361 tst-sonamemove-runmod1, tst-sonamemove-runmod2.
2362 (LDFLAGS-tst-sonamemove-linkmod1.so): Set.
2363 (LDFLAGS-tst-sonamemove-runmod1.so): Likewise.
2364 (LDFLAGS-tst-sonamemove-runmod2.so): Likewise.
2365 (tst-sonamemove-runmod1.so): Link against
2366 tst-sonamemove-runmod2.so.
2367 (tst-sonamemove-link): Link against tst-sonamemove-linkmod1.so.
2368 (tst-sonamemove-link.out): Depend on tst-sonamemove-runmod1.so,
2369 tst-sonamemove-runmod2.so.
2370 (tst-sonamemove-dlopen): Link with -ldl.
2371 (tst-sonamemove-dlopen.out): Likewise.
2372 * elf/tst-sonamemove-link.c: New file.
2373 * elf/tst-sonamemove-dlopen.c: Likewise.
2374 * elf/tst-sonamemove-linkmod1.c: Likewise.
2375 * elf/tst-sonamemove-linkmod1.map: Likewise.
2376 * elf/tst-sonamemove-runmod1.c: Likewise.
2377 * elf/tst-sonamemove-runmod1.map: Likewise.
2378 * elf/tst-sonamemove-runmod2.c: Likewise.
2379 * elf/tst-sonamemove-runmod2.map: Likewise.
2380
2381 2019-06-28 Florian Weimer <fweimer@redhat.com>
2382
2383 * support/xdlfcn.h (xdlvsym): Declare function.
2384 * support/xdlfcn.c (xdlvsym): Define funciton.
2385
2386 2019-06-28 Florian Weimer <fweimer@redhat.com>
2387
2388 [BZ #24744]
2389 io: Remove the copy_file_range emulation.
2390 * sysdeps/unix/sysv/linux/copy_file_range.c (copy_file_range): Do
2391 not define and call copy_file_range_compat.
2392 * io/Makefile (tests-static, tests-internal): Do not add
2393 tst-copy_file_range-compat.
2394 * io/copy_file_range-compat.c: Remove file.
2395 * io/copy_file_range.c (copy_file_range): Define as stub.
2396 * io/tst-copy_file_range-compat.c: Remove file.
2397 * io/tst-copy_file_range.c (xdevfile): Remove variable.
2398 (typical_sizes): Update comment. Remove 16K sizes.
2399 (maximum_offset, maximum_offset_errno, maximum_offset_hard_limit):
2400 Remove variables.
2401 (find_maximum_offset, pipe_as_source, pipe_as_destination)
2402 (delayed_write_failure_beginning, delayed_write_failure_end)
2403 (cross_device_failure, enospc_failure_1, enospc_failure)
2404 (oappend_failure): Remove functions.
2405 (tests): Adjust test case list.
2406 (do_test): Remove file system search code. Check for ENOSYS from
2407 copy_file_range. Do not free xdevfile.
2408 * manual/llio.texi (Copying File Data): Document ENOSYS error from
2409 copy_file_range. Do not document the EXDEV error, which future
2410 kernels may not report. Update the wording to reflect that
2411 further errors are possible.
2412 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2413 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_COPY_FILE_RANGE): Do
2414 not undefine.
2415 * sysdeps/unix/sysv/linux/arm/kernel-features.h
2416 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
2417 Likewise.
2418 * sysdeps/unix/sysv/linux/kernel-features.h
2419 [__LINUX_KERNEL_VERSION >= 0x040500] (__ASSUME_COPY_FILE_RANGE):
2420 Remove definition.
2421 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2422 [__LINUX_KERNEL_VERSION < 0x040A00] (__ASSUME_COPY_FILE_RANGE): Do
2423 not undefine.
2424 * sysdeps/unix/sysv/linux/sh/kernel-features.h
2425 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
2426 Likewise.
2427
2428 2019-06-27 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
2429
2430 * libio/libioP.h (PRINTF_LDBL_USES_FLOAT128): New macro to be
2431 used as a mask for the mode argument of __vfprintf_internal.
2432 * stdio-common/printf-parse.h (printf_arg): New union member:
2433 pa_float128.
2434 * stdio-common/vfprintf-internal.c
2435 (PARSE_FLOAT_VA_ARG_EXTENDED): New macro.
2436 (PARSE_FLOAT_VA_ARG): Likewise.
2437 (SETUP_FLOAT128_INFO): Likewise.
2438 (process_arg): Use PARSE_FLOAT_VA_ARG_EXTENDED and
2439 SETUP_FLOAT128_INFO.
2440 [__HAVE_FLOAT128_UNLIKE_LDBL] (printf_positional): Write
2441 floating-point value to the new union member, pa_float128.
2442 (printf_positional): Zero-initialize args_value[cnt] with memset.
2443
2444 2019-06-27 Florian Weimer <fweimer@redhat.com>
2445
2446 [BZ #24740]
2447 * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Adjust
2448 buffer size if necessary.
2449 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
2450 Likewise.
2451 * sysdeps/unix/sysv/linux/tst-getdents64.c (large_buffer_check):
2452 New function.
2453 (large_buffer_checks): Likewise.
2454 (do_test): Call large_buffer_checks.
2455
2456 2019-06-26 H.J. Lu <hongjiu.lu@intel.com>
2457
2458 * sysdeps/i386/dl-lookupcfg.h: Moved to ...
2459 * sysdeps/x86/dl-lookupcfg.h: Here.
2460 * sysdeps/x86_64/dl-lookupcfg.h: Removed.
2461
2462 2019-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2463
2464 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
2465 (libm-sysdep_routines): Remove e_expf-power8 and expf-ppc64.
2466 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Remove
2467 file.
2468 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
2469 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
2470 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: Likewise.
2471 * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
2472 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: Likewise.
2473
2474 * sysdeps/powerpc/powerpc32/fpu/Makefile
2475 [$(subdir) == math] (CFLAGS-s_lround.c): New rule.
2476 * sysdeps/powerpc/powerpc32/fpu/s_llround.c (__llround): Add power5+
2477 and fctidz optimization.
2478 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Remove file.
2479 * sysdeps/powerpc/powerpc32/fpu/s_lround.c: New file.
2480 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
2481 (CFLAGS-s_llround-power6.c, CFLAGS-s_llround-power5+.c,
2482 CFLAGS-s_llround-ppc32.c, CFLAGS-s_lround-ppc32.c,
2483 CFLAGS-s_lround-power5+.c): New rule.
2484 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.c:
2485 New file.
2486 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.c:
2487 Likewise.
2488 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.c:
2489 Likewise.
2490 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.c:
2491 Likewise.
2492 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.c:
2493 Likewise.
2494 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
2495 Remove file.
2496 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
2497 Likewise.
2498 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
2499 Likewise.
2500 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
2501 Likewise.
2502 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
2503 Likewise.
2504 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
2505 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: Likewise.
2506 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
2507 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
2508 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
2509 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
2510 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
2511
2512 2019-06-26 Vincent Chen <vincentc@andestech.com>
2513
2514 * sysdeps/unix/sysv/linux/syscall-names.list: Add nds32
2515 specific system calls, fp_udfiex_crtl and udftrap.
2516
2517 2019-06-26 Stefan Liebler <stli@linux.ibm.com>
2518
2519 * nptl/tst-eintr1.c (tf1): Add return statement.
2520 (do_test): Remove unused th variable.
2521
2522 2019-06-26 Stefan Liebler <stli@linux.ibm.com>
2523
2524 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis):
2525 Return error if get_character fails.
2526
2527 2019-06-25 Stefan Liebler <stli@linux.ibm.com>
2528
2529 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
2530
2531 2019-06-24 Rafał Lużyński <digitalfreak@lingonborough.com>
2532
2533 [BZ #24652]
2534 * localedata/locales/szl_PL (day): Use the correct Unicode
2535 sequences instead of non-ASCII characters.
2536
2537 2019-06-24 Grzegorz Kulik <gregorykkulik@gmail.com>
2538
2539 [BZ #24652]
2540 * localedata/locales/szl_PL (abday): Spelling corrections.
2541 (day): Likewise.
2542 (abmon): Likewise.
2543 (mon): Rename to...
2544 (alt_mon): This, then apply spelling corrections.
2545 (mon): New entry, month names in the genitive case.
2546
2547 2019-06-21 Rafał Lużyński <digitalfreak@lingonborough.com>
2548
2549 [BZ #23831]
2550 * localedata/locales/nl_AW (mon_thousands_sep): Set to ".".
2551 * localedata/locales/nl_NL (mon_thousands_sep): Likewise.
2552 (thousands_sep): Likewise.
2553 (grouping): Set to 3;3.
2554
2555 2019-06-21 Tobias Klauser <tklauser@distanz.ch>
2556
2557 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (INIT_ARCH): Use
2558 PREPARE_VERSION_KNOWN.
2559 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
2560 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_2_6_39): New
2561 define.
2562 (VDSO_HASH_LINUX_2_6_39): Likewise.
2563 (VDSO_NAME_LINUX_4_9): Likewise.
2564 (VDSO_HASH_LINUX_4_9): Likewise.
2565 * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (INIT_ARCH): Likewise.
2566 * sysdeps/unix/sysv/linux/powerpc/init-first.c
2567 (_libc_vdso_platform_setup): Likewise.
2568 * sysdeps/unix/sysv/linux/powerpc/time.c (INIT_ARCH): Likewise.
2569 * sysdeps/unix/sysv/linux/s390/init-first.c (_libc_vdso_platform_setup):
2570 Likewise.
2571 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_platform_setup):
2572 Likewise.
2573
2574 2019-06-20 Mike Crowe <mac@mcrowe.com>
2575
2576 * nptl/eintr.c: Use libsupport.
2577 * nptl/tst-eintr1.c: Likewise.
2578 * nptl/tst-eintr2.c: Likewise.
2579 * nptl/tst-eintr3.c: Likewise.
2580 * nptl/tst-eintr4.c: Likewise.
2581 * nptl/tst-eintr5.c: Likewise.
2582 * nptl/tst-mutex-errorcheck.c: Likewise.
2583 * nptl/tst-mutex5.c: Likewise.
2584
2585 * support/test-driver.h: Add verbose_printf macro.
2586
2587 * support/xtime.h: Add xclock_now() helper function.
2588
2589 2019-06-20 Dmitry V. Levin <ldv@altlinux.org>
2590 Florian Weimer <fweimer@redhat.com>
2591
2592 [BZ #24228]
2593 * libio/genops.c (_IO_unbuffer_all)
2594 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Do not attempt to free wide
2595 buffers and access _IO_FILE_complete members of legacy libio streams.
2596 * libio/tst-bz24228.c: New file.
2597 * libio/tst-bz24228.map: Likewise.
2598 * libio/Makefile [build-shared] (tests): Add tst-bz24228.
2599 [build-shared] (generated): Add tst-bz24228.mtrace and
2600 tst-bz24228.check.
2601 [run-built-tests && build-shared] (tests-special): Add
2602 $(objpfx)tst-bz24228-mem.out.
2603 (LDFLAGS-tst-bz24228, tst-bz24228-ENV): New variables.
2604 ($(objpfx)tst-bz24228-mem.out): New rule.
2605
2606 2019-06-19 Paul A. Clarke <pc@us.ibm.com>
2607
2608 * sysdeps/powerpc/fpu/fenv_libc.h (relax_fenv_state): Add 'volatile'.
2609 * sysdeps/powerpc/fpu/fpu_control.h (__FPU_MFFS): Likewise.
2610 (__FPU_MFFSL): Likewise.
2611 (_FPU_SETCW): Likewise.
2612
2613 2019-06-19 Stan Shebs <stanshebs@google.com>
2614 Raoni Fassina Firmino <raoni@linux.ibm.com>
2615
2616 [BZ #24640]
2617 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c
2618 [!SHARED] (__get_timebase_freq): Fix sense of a test in the
2619 static-linking version.
2620 * sysdeps/unix/sysv/linux/powerpc/Makefile
2621 (tests-static): Add test-gettimebasefreq-static.
2622 (tests): Likewise.
2623 * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq-static.c:
2624 New file.
2625
2626 2019-06-19 Rafał Lużyński <digitalfreak@lingonborough.com>
2627
2628 [BZ #24614]
2629 * localedata/locales/nl_AW (n_sep_by_space): Set to 2 (a space
2630 between the currency symbol and the minus sign).
2631 (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
2632
2633 2019-06-19 Stefan Liebler <stli@linux.ibm.com>
2634
2635 [BZ #24556]
2636 * string/test-strcasestr.c (check_result): Add NULL check.
2637 * nss/tst-field.c (check_rewrite): Likewise.
2638 * benchtests/bench-strstr.c (do_one_test): Likewise.
2639 * string/test-strstr.c (check_result): Likewise.
2640 * argp/argp-test.c (popt): Increase size of buf to 12.
2641 * benchtests/bench-malloc-simple.c (bench):
2642 Do not initialize tests array out of bounds.
2643
2644 2019-06-19 Florian Weimer <fweimer@redhat.com>
2645
2646 [BZ #24166]
2647 * dlfcn/dlfcn.h (Dl_serinfo): Do not use array of length 1 for
2648 dls_serpath field.
2649
2650 2019-06-18 Florian Weimer <fweimer@redhat.com>
2651
2652 [BZ #24323]
2653 * include/elf.h (DT_1_SUPPORTED_MASK): Include DF_1_PIE.
2654 * elf/dl-load.c (_dl_map_object_from_fd): Check for DF_1_PIE and
2655 fail when called from dlopen.
2656 * elf/Makefile [have-fpie && build-shared] (tests): Add
2657 tst-dlopen-pie.
2658 (tst-dlopen-pie): Link with -ldl.
2659 (tst-dlopen-pie.out): Add run-time dependency on tst-pie1.
2660 * elf/tst-dlopen-pie.c (do_test): New file.
2661
2662 2019-06-17 Rafał Lużyński <digitalfreak@lingonborough.com>
2663
2664 [BZ #24614]
2665 * localedata/Makefile (LOCALES): Add nl_NL.UTF-8.
2666 * localedata/locales/nl_NL (n_sep_by_space): Set to 2 (a space
2667 between the currency symbol and the minus sign).
2668 (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
2669 * localedata/tst-strfmon1.c (tests): Add test data for nl_NL.UTF-8.
2670
2671 2019-06-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2672
2673 * sysdeps/unix/sysv/linux/m68k/Makefile (sysdep_routines,
2674 sysdep-rtld-routines): Remove rules.
2675 * sysdeps/unix/sysv/linux/m68k/Versions (libc) [GLIBC_PRIVATE]:
2676 Remove __vdso_atomic_cmpxchg_32 and __vdso_atomic_barrier.
2677 (ld) [GLIBC_PRIVATE]: __rtld___vdso_read_tp,
2678 __rtld___vdso_atomic_cmpxchg_32, and __rtld___vdso_atomic_barrier.
2679 * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h
2680 (atomic_compare_and_exchange_val_acq, atomic_full_barrier): Remove
2681 vDSO path for SHARED.
2682 * sysdeps/unix/sysv/linux/m68k/init-first.c: Remove file.
2683 * sysdeps/unix/sysv/linux/m68k/libc-m68k-vdso.c: Likewise.
2684 * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
2685 * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
2686 * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: Likewise.
2687 * sysdeps/unix/sysv/linux/m68k/m68k-helpers.c: New file.
2688
2689 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
2690 (libm-sysdep_routines): Add s_llround-power8, s_llround-power6x,
2691 s_llround-power5+, s_llround-ppc64, and s_llroundf-ppc64.
2692 (CFLAGS-s_llround-power8.c, CFLAGS-s_llround-power6x.c,
2693 CFLAGS-s_llround-power5+.c): New rule.
2694 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power5+.c:
2695 New file.
2696 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power6x.c:
2697 Likewise.
2698 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power8.c:
2699 Likewise.
2700 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-ppc64.c:
2701 Likewise.
2702 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf-ppc64.c:
2703 Likewise.
2704 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Move to ...
2705 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround.c: ... here.
2706 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Move to ...
2707 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf.c: ... here.
2708 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: Move to ...
2709 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lround.c: ... here.
2710 * sysdeps/powerpc/powerpc64/fpu/Makefile
2711 [$(subdir) == math] (CFLAGS-s_llround.c): New rule.
2712 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
2713 (libm-sysdep_routines): Remove s_llround-* objects.
2714 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Remove
2715 file.
2716 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S:
2717 Likewise.
2718 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S:
2719 Likewise.
2720 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S:
2721 Likewise.
2722 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S:
2723 Likewise.
2724 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
2725 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
2726 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
2727 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
2728 * sysdeps/powerpc/powerpc64/fpu/s_llround.c: New file.
2729 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.c: Likewise.
2730 * sysdeps/powerpc/powerpc64/fpu/s_lround.c: Likewise.
2731 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.c: Likewise.
2732 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
2733 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llroundf.S: Likewise.
2734 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
2735 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llroundf.S: Likewise.
2736 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
2737 * sysdeps/powerpc/powerpc64/power8/fpu/s_llroundf.S: Likewise.
2738
2739 * sysdeps/powerpc/fpu/s_lrintf.S: Remove file.
2740 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Move to ...
2741 * sysdeps/powerpc/fpu/s_lrintf.c: ... here.
2742 * sysdeps/powerpc/powerpc32/fpu/Makefile
2743 [$(subdir) == math] (CFLAGS-s_lrint.c): New rule.
2744 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Add power4
2745 optimization.
2746 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
2747 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Remove file.
2748 * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: New file.
2749 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
2750 (CFLAGS-s_llrintf-power6.c, CFLAGS-s_llrintf-ppc32.c,
2751 CFLAGS-s_llrint-power6.c, CFLAGS-s_llrint-ppc32.c,
2752 CFLAGS-s_lrint-ppc32.c): New rule.
2753 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
2754 Remove file.
2755 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
2756 Likewise.
2757 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
2758 Likewise.
2759 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
2760 Likewise.
2761 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
2762 Likewise.
2763 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
2764 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
2765 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
2766 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
2767 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.c:
2768 New file.
2769 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.c:
2770 Likewise.
2771 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.c:
2772 Likewise.
2773 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.c:
2774 Likewise.
2775 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.c:
2776 Likewise.
2777
2778 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
2779 (libm-sysdep_routines): Add s_llrint-power8, s_llrint-power6x, and
2780 s_llrint-ppc64.
2781 (CFLAGS-s_llrint-power8.c, CFLAGS-s_llrint-power6x.c): New rule.
2782 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power6x.c: New
2783 file.
2784 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power8.c:
2785 Likewise.
2786 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-ppc64.c:
2787 Likewise.
2788 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: Move to ...
2789 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: ... here.
2790 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Move to ...
2791 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint.c: ... here.
2792 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Move to ...
2793 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrintf.c: ... here.
2794 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: New file.
2795 * sysdeps/powerpc/powerpc64/fpu/Makefile: Likewise.
2796 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
2797 (libm-sysdep_routines): Remove s_llrint-* objects.
2798 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Remove
2799 file.
2800 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S:
2801 Likewise.
2802 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
2803 * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: New file.
2804 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: Likewise.
2805 * sysdeps/powerpc/powerpc64/fpu/s_lrint.c: Likewise.
2806 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Likewise.
2807 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Remove file.
2808 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
2809 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
2810 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
2811 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Likewise.
2812
2813 2019-06-14 Florian Weimer <fweimer@redhat.com>
2814
2815 * sysdeps/unix/sysv/linux/bits/statx.h: Use string literal in
2816 argument to __glibc_has_include to inhibit macro expansion.
2817
2818 2019-06-14 Florian Weimer <fweimer@redhat.com>
2819
2820 * misc/sys/cdefs.h (__glibc_has_include): Do not use a
2821 function-like macro, so that __has_include can inhibit expansion
2822 of its argument.
2823
2824 2019-06-13 Joseph Myers <joseph@codesourcery.com>
2825
2826 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_ROUTER_ALERT_ISOLATE):
2827 New macro.
2828
2829 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
2830 Allow memset in libc.so.
2831
2832 2019-06-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
2833
2834 * sysdeps/aarch64/dl-dtprocnum.h: New file.
2835 * sysdeps/aarch64/dl-machine.h (DT_AARCH64): Define.
2836 (elf_machine_runtime_setup): Handle DT_AARCH64_VARIANT_PCS.
2837 (elf_machine_lazy_rel): Check STO_AARCH64_VARIANT_PCS and bind such
2838 symbols at load time.
2839 * sysdeps/aarch64/linkmap.h (struct link_map_machine): Add variant_pcs.
2840
2841 2019-06-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
2842
2843 * elf/elf.h (STO_AARCH64_VARIANT_PCS): Define.
2844 (DT_AARCH64_VARIANT_PCS): Define.
2845
2846 2019-06-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2847
2848 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
2849 (sysdeps_routines, libm-sysdep_routines): Remove s_finite*
2850 objects.
2851 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
2852 Remove file.
2853 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c:
2854 Likewise.
2855 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: Likewise.
2856 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
2857 Likewise.
2858 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: Likewise.
2859 * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
2860 * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: Likewise.
2861 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
2862 Remove s_finite* objects.
2863 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Remove file.
2864 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
2865 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.c: Likewise.
2866 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
2867 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: Likewise.
2868 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: Likewise.
2869 * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
2870 * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: Likewise.
2871 * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
2872 * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: Likewise.
2873
2874 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Move to ...
2875 * sysdeps/ieee754/dbl-64/s_finite.c: ... here and format code.
2876
2877 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
2878 (sysdeps_routines, libm-sysdep_routines): Remove s_isinf* and s_isinf*
2879 objects.
2880 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S:
2881 Remove file.
2882 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c:
2883 Likewise.
2884 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: Likewise.
2885 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
2886 Likewise.
2887 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: Likewise.
2888 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
2889 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: Likewise.
2890 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
2891 Remove s_isinf* and s_isinf* objects.
2892 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
2893 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
2894 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.c: Likewise.
2895 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
2896 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: Likewise.
2897 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: Likewise.
2898 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
2899 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: Likewise.
2900 * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
2901 * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: Likewise.
2902
2903 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Move to ...
2904 * sysdeps/ieee754/dbl-64/s_isinf.c: ... here and format code.
2905
2906 * sysdeps/powerpc/fpu/s_isnan.c: Remove file.
2907 * sysdeps/powerpc/fpu/s_isnanf.S: Likewise.
2908 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
2909 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
2910 (sysdeps_routines, libm-sysdep_routines): Remove s_isnan-* and
2911 s_isnanf-* objects.
2912 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S:
2913 Remove file
2914 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S:
2915 Likewise.
2916 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S:
2917 Likewise.
2918 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S:
2919 Likewise.
2920 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: Likewise.
2921 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power5.S:
2922 Likewise.
2923 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
2924 Likewise.
2925 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: Likewise.
2926 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
2927 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: Likewise.
2928 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
2929 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: Likewise.
2930 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
2931 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: Likewise.
2932 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_calls):
2933 Remove s_isnan-* and s_isnanf-* objects.
2934 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
2935 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
2936 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S:
2937 Likewise.
2938 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
2939 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
2940 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
2941 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
2942 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: Likewise.
2943 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
2944 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
2945 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
2946 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
2947 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
2948 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: Likewise.
2949 * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
2950 * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: Likewise.
2951
2952 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Move to ...
2953 * sysdeps/ieee754/dbl-64/s_isnan.c: ... here and format code.
2954
2955 * benchtests/Makefile (bench-math): Add isnan, isinf, and isfinite.
2956 (CFLAGS-bench-isnan.c, CFLAGS-bench-isinf.c,
2957 CFLAGS-bench-isfinite.c): New rule.
2958 * benchtests/isnan-input: New file.
2959 * benchtests/isinf-input: New file.
2960 * benchtests/isfinite-input: New file.
2961
2962 * sysdeps/powerpc/fpu/s_copysign.c: New file.
2963 * sysdeps/powerpc/fpu/s_copysignf.c: Likewise.
2964 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Remove file.
2965 * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: Likewise.
2966 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
2967 (sysdep_routines, libm-sysdep_routines): Remove s_copysign-power6 and
2968 s_copysign-ppc32.
2969 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
2970 Remove file.
2971 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
2972 Likewise.
2973 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
2974 Likewise.
2975 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
2976 Likewise.
2977 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
2978 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: Likewise.
2979 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdeps_calls):
2980 Remove s_copysign-power6 s_copysign-ppc64.
2981 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S:
2982 Remove file.
2983 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S:
2984 Likewise.
2985 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
2986 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
2987 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
2988 * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: Likewise.
2989 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
2990 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: Likewise.
2991
2992 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode,
2993 round_to_integer_float, round_mode): Add RINT handling.
2994 (reset_fenv_mode): New symbol.
2995 * sysdeps/powerpc/fpu/s_rint.c (__rint): Use generic implementation.
2996 * sysdeps/powerpc/fpu/s_rintf.c (__rintf): Likewise.
2997 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove file.
2998 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
2999 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
3000 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
3001
3002 2019-06-12 Florian Weimer <fweimer@redhat.com>
3003
3004 [BZ #24632]
3005 * libio/libioP.h (_IO_JUMPS_FUNC_UPDATE): New macro.
3006 * libio/freopen.c (freopen): Use it.
3007
3008 2019-06-12 Florian Weimer <fweimer@redhat.com>
3009
3010 Linux: Deprecate sysctl.
3011 * include/sysctl.h (__sysctl): Remove declaration.
3012 * scripts/check-installed-headers.sh (sys/sysctl.h): Disable
3013 check.
3014 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add deprecation warning.
3015 (sysctl): Add deprecation attribute.
3016 * sysdeps/unix/sysv/linux/sysctl.c: Include <linux/sysctl.h>
3017 directly, to avoid the deprecation warning. Do not include
3018 <string.h>.
3019 (__sysctl): Remove hidden alias.
3020
3021 2019-06-12 Florian Weimer <fweimer@redhat.com>
3022
3023 Linux: Use kernel headers for statx definitions if available.
3024 * include/bits/statx-generic.h: New file.
3025 * include/bits/types/struct_statx.h: Likewise.
3026 * include/bits/types/struct_statx_timestamp.h: Likewise.
3027 * io/Makefile (headers): Add bits/statx-generic.h.
3028 * io/bits/statx-generic.h: New file. Partly copied from
3029 io/bits/statx.h.
3030 * io/statx_generic.c: Include <bits/types/struct_statx.h> to
3031 define original_statx.
3032 * io/bits/types/struct_statx.h: Likewise.
3033 * io/bits/types/struct_statx_timestamp.h: Likewise.
3034 (statx_generic): Use original_statx.
3035 * io/bits/statx.h: Rewrite to include <bits/statx-generic.h>.
3036 * sysdeps/unix/sysv/linux/bits/statx.h: New file.
3037
3038 2019-06-12 Florian Weimer <fweimer@redhat.com>
3039
3040 * misc/sys/cdefs.h (__glibc_has_include): Define.
3041
3042 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
3043
3044 * string/memmem.c (__memmem): Rewrite to improve performance.
3045
3046 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
3047
3048 * string/str-two-way.h (two_way_short_needle): Add inline to avoid
3049 warning.
3050 (two_way_long_needle): Block inlining.
3051 * string/strstr.c (strstr2): Add new function.
3052 (strstr3): Likewise.
3053 (STRSTR): Completely rewrite strstr to improve performance.
3054
3055 2019-06-11 Wilco Dijkstra <wdijkstr@arm.com>
3056
3057 * benchtests/bench-strstr.c (test_hard_needle): New function.
3058
3059 2019-06-10 Joseph Myers <joseph@codesourcery.com>
3060
3061 * malloc/tst-calloc.c: Include <libc-diag.h>.
3062 (null_test): Ignore -Wunused-result around calls to calloc.
3063 * malloc/tst-mallocfork.c: Include <libc-diag.h>.
3064 (do_test): Ignore -Wunused-result around call to malloc.
3065
3066 2019-06-07 Florian Weimer <fweimer@redhat.com>
3067
3068 Linux: Add getdents64 system call.
3069 * include/dirnent.h (getdents): Add comment and change buffer
3070 argument type to void *.
3071 (getdents64): Likewise. Add hidden prototype.
3072 * sysdeps/unix/sysv/linux/bits/Versions (GLIBC_2.30): Export
3073 getdents64.
3074 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == dirent] (tests):
3075 Add tst-getdents64.
3076 * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Declare.
3077 * sysdeps/unix/sysv/linux/getdents.c (__getdents): Change buffer
3078 argument type to void *.
3079 * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Likewise.
3080 Add hidden definition and getdents64 alias.
3081 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
3082 Likewise.
3083 * sysdeps/unix/sysv/linux/tst-getdents64.c: New file.
3084 * manual/filesys.texi (Accessing Directories): Add Low-level
3085 Directory Access node reference.
3086 (Opening a Directory): Cross-reference it.
3087 (Low-level Directory Access): New node.
3088 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
3089 getdents64.
3090 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
3091 Likewise.
3092 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
3093 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
3094 Likewise.
3095 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
3096 Likewise.
3097 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
3098 Likewise.
3099 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
3100 Likewise.
3101 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
3102 Likewise.
3103 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
3104 Likewise.
3105 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
3106 Likewise.
3107 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3108 (GLIBC_2.30): Likewise.
3109 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3110 (GLIBC_2.30): Likewise.
3111 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3112 (GLIBC_2.30): Likewise.
3113 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3114 (GLIBC_2.30): Likewise.
3115 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
3116 Likewise.
3117 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3118 (GLIBC_2.30): Likewise.
3119 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3120 (GLIBC_2.30): Likewise.
3121 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
3122 (GLIBC_2.30): Likewise.
3123 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
3124 (GLIBC_2.30): Likewise.
3125 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
3126 Likewise.
3127 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
3128 Likewise.
3129 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
3130 Likewise.
3131 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
3132 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
3133 Likewise.
3134 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
3135 Likewise.
3136 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
3137 Likewise.
3138 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
3139 Likewise.
3140
3141 2019-06-06 Paul A. Clarke <pc@us.ibm.com>
3142
3143 * sysdeps/powerpc/fpu_control.h (_FPU_MASK_RC): New.
3144 (__FPU_MFFS): New.
3145 (__FPU_MFFSL): New.
3146 (_FPU_GET_RC): New.
3147 (_FPU_GETCW): Use __FPU_MFFS().
3148 * sysdeps/powerpc/fpu/get-rounding-mode.h: New file.
3149
3150 2019-06-06 Florian Weimer <fweimer@redhat.com>
3151
3152 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Do not use
3153 internal GCC preprocessor identifier __has_include__.
3154
3155 2019-06-05 Paul A. Clarke <pc@us.ibm.com>
3156
3157 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Replace code
3158 with call to equivalent function.
3159
3160 2019-06-04 Florian Weimer <fweimer@redhat.com>
3161
3162 * iconv/gconv_dl.c (release_handle): Remove file-level definition.
3163 (do_release_shlib): Adjust for __twalk_r.
3164 (__gconv_release_shlib): Call __twalk_r.
3165
3166 2019-06-04 Andreas Schwab <schwab@suse.de>
3167
3168 [BZ #18830]
3169 * iconv/skeleton.c (FUNCTION_NAME): Use RESET_INPUT_BUFFER only if
3170 no irreversible characters occurred.
3171 * iconv/gconv_simple.c (internal_ucs4_loop)
3172 (internal_ucs4_loop_unaligned, internal_ucs4_loop_single)
3173 (ucs4_internal_loop, ucs4_internal_loop_unaligned)
3174 (ucs4_internal_loop_single, internal_ucs4le_loop)
3175 (internal_ucs4le_loop_unaligned, internal_ucs4le_loop_single)
3176 (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
3177 (ucs4le_internal_loop_single): Add const to outend.
3178 * sysdeps/s390/multiarch/gconv_simple.c (internal_ucs4le_loop)
3179 (ucs4_internal_loop, ucs4le_internal_loop): Likewise.
3180 * iconv/Makefile (tests): Add tst-iconv7.
3181 * iconv/tst-iconv7.c: New file.
3182
3183 2019-06-03 Joseph Myers <joseph@codesourcery.com>
3184
3185 * inet/netinet/in.h (INADDR_ALLSNOOPERS_GROUP): New macro.
3186
3187 2019-06-01 Florian Weimer <fweimer@redhat.com>
3188
3189 arm: Remove ioperm/iopl/inb/inw/inl/outb/outw/outl support.
3190 * sysdeps/unix/sysv/linux/arm/Makefile
3191 [$(subdir) == misc] (sysdep_headers): Remove sys/io.h.
3192 * sysdeps/unix/sysv/linux/arm/sys/io.h: Remove file.
3193 * sysdeps/unix/sysv/linux/arm/ioperm.c: Rewrite file.
3194 (ioperm, iopl, inb, inw, inl, outb, outw, outl): Turn into
3195 compatibility symbols.
3196
3197 2019-05-31 Florian Weimer <fweimer@redhat.com>
3198
3199 * sysdeps/unix/sysv/linux/syscall-names.list: Add oddly named
3200 system calls for the arm architecture: breakpoint, get_tls,
3201 set_tls, usr26, usr32.
3202
3203 2019-05-30 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
3204
3205 * sysdeps/powerpc/Makefile
3206 [$(subdir) == misc] (CFLAGS-tst-set_ppr.c): New variable.
3207 * sysdeps/powerpc/powerpc64/power4/memcmp.S [__LITTLE_ENDIAN__]:
3208 Declare '.machine power7' to get support for ldbrx.
3209 * sysdeps/powerpc/powerpc64/power7/strncmp.S: Declare '.machine'
3210 directive based on the directory of the file.
3211 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
3212 * sysdeps/powerpc/powerpc64/power8/strcmp.S: Likewise.
3213 * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Update
3214 '.machine' directive.
3215 (VCLZD_V8_v7, MFVRD_R3_V1, VSUBUDM_V9_V8, VPOPCNTD_V8_V8)
3216 (VADDUQM_V7_V8): Remove.
3217 (__STRCASECMP): Replace macros with actual instructions.
3218 * sysdeps/powerpc/powerpc64/power8/strcasestr.S: Update
3219 '.machine' directive.
3220 (VCLZD_V8_v7): Remove.
3221 (STRCASESTR): Replace VCLZD_V8_v7 with actual instruction.
3222
3223 2019-05-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3224
3225 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/get_clockfreq.c:
3226 Remove file.
3227 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: Likewise.
3228
3229 2019-05-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3230
3231 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
3232 NEARBYINT handling.
3233 * sysdeps/powerpc/fpu/s_nearbyint.c: New file.
3234 * sysdeps/powerpc/fpu/s_nearbyintf.c: Likewise.
3235 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Remove file.
3236 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Likewise.
3237 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Likewise.
3238 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
3239
3240 2019-05-28 mansayk <6688000@gmail.com>
3241
3242 [BZ #24370]
3243 * localedata/locales/tt_RU (lang_name): Add from CLDR-35.1.
3244
3245 2019-05-28 mansayk <6688000@gmail.com>
3246
3247 [BZ #24369]
3248 * localedata/locales/tt_RU (mon): Update from CLDR-35.1, fix errors.
3249 (abmon): Likewise, but remove the trailing dots.
3250
3251 2019-05-28 Joseph Myers <joseph@codesourcery.com>
3252
3253 * inet/netinet/igmp.h (IGMP_MRDISC_ADV): New macro.
3254
3255 2019-05-27 Florian Weimer <fweimer@redhat.com>
3256
3257 * nptl/nptl-init.c: Add comment.
3258
3259 2019-05-24 Florian Weimer <fweimer@redhat.com>
3260
3261 * resolv/nss_dns/dns-host.c (getanswer_r): Be more explicit about
3262 struct in_addr/struct in6_addr alignment.
3263
3264 2019-05-23 Joseph Myers <joseph@codesourcery.com>
3265
3266 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
3267 (F_SEAL_FUTURE_WRITE): New macro.
3268
3269 2019-05-23 Alexandra Hájková <ahajkova@redhat.com>
3270
3271 * elf/Makefile (test-container): Add tst-ldconfig-bad-aux-cache.
3272 * elf/tst-ldconfig-bad-aux-cache.c: New file.
3273 * elf/tst-ldconfig_aux-cache.root: New directory.
3274 * elf/tst-ldconfig-bad-aux-cache.root/postclean.req: New file.
3275 * elf/tst-ldconfig-bad-aux-cache.root/etc: New directory.
3276 * elf/tst-ldconfig-bad-aux-cache.root/etc/ld.so.conf: New file.
3277
3278 2019-05-22 Zack Weinberg <zackw@panix.com>
3279
3280 * sysdeps/powerpc/preconfigure: Error out on powerpc-*-*gnuspe*
3281 host type.
3282 * scripts/build-many-glibcs.py: Remove powerpc-*-linux-gnuspe
3283 and powerpc-*-linux-gnuspe-e500v1 from list of build configurations.
3284
3285 * sysdeps/powerpc/powerpc32/e500: Recursively delete.
3286 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500: Recursively delete.
3287 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/context-e500.h:
3288 Delete.
3289
3290 * sysdeps/powerpc/fpu_control.h: Remove SPE variant.
3291 Issue an #error if used with a compiler in SPE-float mode.
3292 * sysdeps/powerpc/powerpc32/__longjmp_common.S
3293 * sysdeps/powerpc/powerpc32/setjmp_common.S
3294 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
3295 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/getcontext.S
3296 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/setcontext.S
3297 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/swapcontext.S
3298 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3299 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
3300 Remove code to preserve SPE register state.
3301
3302 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
3303 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
3304 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c:
3305 Remove __SPE__ ifndefs.
3306
3307 2019-05-21 Wilco Dijkstra <wdijkstr@arm.com>
3308
3309 * benchtests/bench-memcpy-random.c (do_one_test): Use medium iterations.
3310 * benchtests/bench-memcpy-walk.c (test_main): Reduce alignment tests.
3311 * benchtests/bench-memmem.c (do_one_test): Use small iterations.
3312 * benchtests/bench-memmove-walk.c (test_main): Reduce alignment tests.
3313 * benchtests/bench-memset-walk.c (test_main): Reduce alignment tests.
3314 * benchtests/bench-strcasestr.c (do_one_test): Use small iterations.
3315 * benchtests/bench-string.h (INNER_LOOP_ITERS): Increase iterations.
3316 (INNER_LOOP_ITERS_MEDIUM): New define.
3317 (INNER_LOOP_ITERS_SMALL): New define.
3318 * benchtests/bench-strpbrk.c (do_one_test): Use medium iterations.
3319 * benchtests/bench-strsep.c (do_one_test): Use small iterations.
3320 * benchtests/bench-strspn.c (do_one_test): Use medium iterations.
3321 * benchtests/bench-strstr.c (do_one_test): Use small iterations.
3322 * benchtests/bench-strtok.c (do_one_test): Use small iterations.
3323
3324 2019-05-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3325
3326 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h (SEMTIMEDOP_IPC_ARGS):
3327 New define.
3328 * sysdeps/unix/sysv/linux/sparc/sparc64/ipc_priv.h
3329 (SEMTIMEDOP_IPC_ARGS): Likewise.
3330
3331 2019-05-21 Florian Weimer <fweimer@redhat.com>
3332
3333 [BZ #24584]
3334 * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Acquire __gconv_lock
3335 before updating __counter field and release it afterwards. Add
3336 overflow check.
3337 * iconv/gconv.h (struct __gconv_step): Mention synchronization
3338 requirement for __counter member.
3339
3340 2019-05-21 Florian Weimer <fweimer@redhat.com>
3341
3342 [BZ #24583]
3343 * wcsmbs/wcsmbsload.h (__wcsmbs_close_conv): Declare.
3344 * wcsmbs/wcsmbsload.c (__wcsmbs_close_conv): Define.
3345 * libio/iofclose.c (_IO_new_fclose): Call __wcsmbs_close_conv
3346 instead of __gconv_release_step.
3347 * libio/Makefile (tests): Add tst-wfile-gconv.
3348 (tests-container): Add tst-wfile-ascii.
3349 (tst-wfile-gconv-ENV): Enable mtrace.
3350 (generated): Add tst-wfile-gconv.mtrace, tst-wfile-gconv.check.
3351 (tests-special): Add tst-wfile-gconv-mem.out.
3352 (tst-wfile-gconv.out): Depend on locales.
3353 (tst-wfile-gconv-mem.out): Add mtrace rule.
3354 * libio/tst-wfile-ascii.c: New file.
3355 * libio/tst-wfile-gconv.c: Likewise.
3356
3357 2019-05-20 Florian Weimer <fweimer@redhat.com>
3358
3359 [BZ #24588]
3360 libio: Remove codecvt vtable.
3361 * libio/fileops.c ( _IO_new_file_fopen): Do not copy
3362 __libio_codecvt.
3363 * libio/iofgetpos.c (_IO_new_fgetpos): Call
3364 __libio_codecvt_encoding.
3365 * libio/iofgetpos64.c (_IO_new_fgetpos): Likewise.
3366 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
3367 * libio/iofsetpos64.c (_IO_new_fsetpos): Likewise.
3368 * libio/iofwide.c (__libio_codecvt): Remove variable.
3369 (_IO_fwide): Do not copy __libio_codecvt.
3370 (__libio_codecvt_out): Rename from do_out and export.
3371 (do_unshift): Remove function.
3372 (__libio_codecvt_in): Rename from do_in and export.
3373 (__libio_codecvt_encoding): Rename from do_encoding and export.
3374 (do_always_noconv): Remove function.
3375 (__libio_codecvt_length): Rename from do_length and export.
3376 (do_max_length): Remove function.
3377 * libio/libio.h (enum __codecvt_result): Remove definition; moved
3378 to libioP.h.
3379 (struct _IO_codecvt): Remove fields __codecvt_destr,
3380 __codecvt_do_out, __codecvt_do_unshift, __codecvt_do_in,
3381 __codecvt_do_encoding, __codecvt_do_always_noconv,
3382 __codecvt_do_length, __codecvt_do_max_length.
3383 * libio/libioP.h (enum __codecvt_result): Define; moved from
3384 libio.h.
3385 (__libio_codecvt_out, __libio_codecvt_in)
3386 (__libio_codecvt_encoding, __libio_codecvt_length): Declare
3387 functions.
3388 * libio/wfileops.c (_IO_wdo_write): Call __libio_codecvt_out.
3389 (_IO_wfile_underflow): Call __libio_codecvt_in.
3390 (_IO_wfile_underflow): Likewise.
3391 (_IO_wfile_underflow_mmap): Likewise.
3392 (_IO_wfile_sync): Call __libio_codecvt_encoding,
3393 __libio_codecvt_length.
3394 (adjust_wide_data): Call __libio_codecvt_encoding,
3395 __libio_codecvt_in.
3396 (do_ftell_wide): Call __libio_codecvt_length, __libio_codecvt_out.
3397 (_IO_wfile_seekoff): Call __libio_codecvt_encoding,
3398 __libio_codecvt_length.
3399
3400 2019-05-20 Florian Weimer <fweimer@redhat.com>
3401
3402 * support/support.h (support_sbindir_prefix): Declare.
3403 (support_install_rootsbindir): Update comment.
3404 * support/Makefile (CFLAGS-support_paths.c): Define SBINDIR_PATH.
3405 * support/support_paths.c (support_sbindir_prefix): Define.
3406
3407 2019-05-20 Mike Crowe <mac@mcrowe.com>
3408
3409 * support/timespec.c: Add backslash to correct newline in failure
3410 message.
3411
3412 * support/timespec.h: Correct confusing comment.
3413
3414 2019-05-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3415
3416 * sysdeps/unix/sysv/linux/ipc_priv.h (SEMTIMEDOP_IPC_ARGS): New
3417 define.
3418 * sysdpes/unix/sysv/linux/s390/ipc_priv.h: New file.
3419 * sysdeps/unix/sysv/linux/s390/semtimedop.c: Remove file.
3420 * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Use
3421 SEMTIMEDOP_IPC_ARGS for calls with __NR_ipc.
3422
3423 [BZ #24570]
3424 * sysdeps/unix/sysv/linux/msgctl.c (__old_msgctl): Remove __IPC_64
3425 usage.
3426
3427 2019-05-20 Joseph Myers <joseph@codesourcery.com>
3428
3429 * elf/elf.h (NT_ARM_PACA_KEYS): New macro.
3430 (NT_ARM_PACG_KEYS): Likewise.
3431
3432 2019-05-17 Wilco Dijkstra <wdijkstr@arm.com>
3433
3434 * malloc/malloc.c (MAX_TCACHE_COUNT): Increase to UINT16_MAX.
3435 (tcache_put): Remove redundant assert.
3436 (tcache_get): Remove redundant asserts.
3437 (__libc_malloc): Check tcache count is not zero.
3438 * manual/tunables.texi (glibc.malloc.tcache_count): Update maximum.
3439
3440 2019-05-17 Florian Weimer <fweimer@redhat.com>
3441
3442 * manual/llio.texi (Open-time Flags): Document O_DIRECTORY.
3443
3444 2019-05-16 Joseph Myers <joseph@codesourcery.com>
3445
3446 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3447 (__ASSUME_STATFS64): Only undefine if [__LINUX_KERNEL_VERSION <
3448 0x050100].
3449 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
3450 Likewise.
3451 * sysdeps/unix/sysv/linux/sh/kernel-features.h
3452 (__ASSUME_STATX): Likewise.
3453
3454 2019-05-16 Florian Weimer <fweimer@redhat.com>
3455
3456 * nis/nss_nis/nis-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL): Remove
3457 flags argument.
3458 (LINE_PARSER): Do not map IPv4 addresses.
3459 (internal_nis_gethostent_r): Remove flags argument. Adjust call
3460 to parse_line.
3461 (_nss_nis_gethostent_r): Always pass AF_INET to
3462 internal_nis_gethostent_r.
3463 (internal_gethostbyname2_r): Remove flags argument. Adjust call
3464 to parse_line.
3465 (_nss_nis_gethostbyname2_r): Adjust call to
3466 internal_nis_gethostent_r.
3467 (_nss_nis_gethostbyname_r): Do not attempt IPv6 query. Adjust
3468 call to internal_nis_gethostent_r.
3469 (_nss_nis_gethostbyaddr_r): Do not request IPv4 address mapping
3470 from parse_line.
3471 (_nss_nis_gethostbyname4_r):Adjust call to parse_line.
3472 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
3473 Remove flags argument. Do not map IPv4 addresses.
3474 (internal_nisplus_gethostent_r): Adjust call to
3475 _nss_nisplus_parse_hostent.
3476 (internal_gethostbyname2_r): Remove flags argument. Adjust call
3477 to _nss_nisplus_parse_hostent.
3478 (_nss_nisplus_gethostbyname2_r): Adjust call to
3479 internal_gethostbyname2_r.
3480 (_nss_nisplus_gethostbyname_r): Do not perform IPv6 lookup.
3481 Adjust call to internal_gethostbyname2_r.
3482 (_nss_nisplus_gethostbyaddr_r): Adjust call to
3483 _nss_nisplus_parse_hostent.
3484 (_nss_nisplus_gethostbyname4_r): Adjust call to
3485 internal_gethostbyname2_r.
3486
3487 2019-05-16 Florian Weimer <fweimer@redhat.com>
3488
3489 * nss/nss_files/files-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL):
3490 Remove flags.
3491 (LINE_PARSER): Remove address mapping.
3492 (EXTRA_ARGS_VALUE): Remove flags argument.
3493 (gethostbyname3_multi): Likewise. Adjust call to internal_getent.
3494 (_nss_files_gethostbyname3_r): Adjust calls to internal_getent and
3495 gethostbyname3_multi.
3496 (_nss_files_gethostbyname_r): Always use AF_INET. Adjust call to
3497 _nss_files_gethostbyname3_r.
3498 (_nss_files_gethostbyname4_r): Adjust call to internal_getent.
3499
3500 2019-05-16 Florian Weimer <fweimer@redhat.com>
3501
3502 * support/support_test_compare_blob.c (report_blob): Report
3503 incorrect NULL blobs.
3504
3505 2019-05-15 Mark Wielaard <mark@klomp.org>
3506
3507 [BZ# 24476]
3508 * dlfcn/dlerror.c (__dlerror_main_freeres): Guard using
3509 __libc_once_get (once) and static_buf == NULL.
3510 (__dlerror): Check we have a valid key, set result to static_buf
3511 otherwise.
3512
3513 2019-05-15 Andreas Schwab <schwab@suse.de>
3514
3515 [BZ #20568]
3516 * libio/wfileops.c (_IO_wfile_sync): Correct last argument to
3517 __codecvt_do_length.
3518 * libio/Makefile (tests): Add tst-wfile-sync.
3519 ($(objpfx)tst-wfile-sync.out): Depend on $(gen-locales).
3520 * libio/tst-wfile-sync.c: New file.
3521 * libio/tst-wfile-sync.input: New file.
3522
3523 2019-05-15 Florian Weimer <fweimer@redhat.com>
3524
3525 nss: Turn __nss_database_lookup into a compatibility symbol.
3526 * nss/nsswitch.h (__nss_database_lookup2): Renamed from
3527 __nss_database_lookup.
3528 * nss/nsswitch.c (__nss_database_lookup2): Likewise.
3529 (nss_load_all_libraries): Call __nss_database_lookup2 instead of
3530 __nss_database_lookup.
3531 (__nss_next): Move to …
3532 * nss/compat-lookup.c (nss_next): … here. Change it to fail
3533 unconditionally.
3534 (__nss_database_lookup): New function.
3535 * nss/Versions (GLIBC_2.0): Update comment.
3536 (GLIBC_PRIVATE): Export __nss_database_lookup2.
3537 * grp/initgroups.c (internal_getgrouplist): Call
3538 __nss_database_lookup2 instead of __nss_database_lookup.
3539 * nscd/aicache.c (addhstaiX): Likewise.
3540 * nscd/initgrcache.c (addinitgroupsX): Likewise.
3541 * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
3542 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Likewise.
3543 * nss/nss_compat/compat-grp.c (init_nss_interface): Likewise.
3544 * nss/nss_compat/compat-initgroups.c (init_nss_interface):
3545 Likewise.
3546 * nss/nss_compat/compat-pwd.c (init_nss_interface): Likewise.
3547 * nss/nss_compat/compat-spwd.c (init_nss_interface): Likewise.
3548 * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
3549
3550 2019-05-15 Alexandra Hájková <ahajkova@redhat.com>
3551
3552 * support/support.h (support_install_rootsbindir): New variable.
3553 * support/support_paths.c: Likewise.
3554 * support/Makefile (CFLAGS-support_paths.c): Add -DROOTSBINDIR_PATH.
3555
3556 2019-05-15 Florian Weimer <fweimer@redhat.com>
3557
3558 * iconv/gconv.h (__gconv_transliterate): Move declaration …
3559 * iconv/gconv_int.h (__gconv_transliterate): … here.
3560 * iconv/loop.c: Include <iconv/gconv_int.h> instead of <gconv.h>.
3561 * iconv/skeleton.c: Likewise.
3562
3563 2019-05-14 Florian Weimer <fweimer@redhat.com>
3564
3565 Linux: Add the tgkill function.
3566 * bits/signal_ext.h: New file.
3567 * manual/signal.texi (Signaling Another Process): Document tgkill.
3568 * signal/Makefile (headers): Add bits/signal_ext.h.
3569 * signal/signal.h: Include <bits/signal_ext.h>.
3570 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-tgkill.
3571 (tst-tgkill): Link with libpthread.
3572 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.30): Export tgkill.
3573 * sysdeps/unix/sysv/linux/bits/signal_ext.h: New file.
3574 * sysdeps/unix/sysv/linux/bits/tst-tgkill.c: Likewise.
3575 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
3576 tgkill.
3577 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
3578 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
3579 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
3580 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
3581 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
3582 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
3583 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
3584 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
3585 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
3586 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
3587 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
3588 Likewise.
3589 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
3590 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
3591 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
3592 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3593 Likewise.
3594 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
3595 Likewise.
3596 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist:
3597 Likewise.
3598 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist:
3599 Likewise.
3600 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
3601 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3602 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3603 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
3604 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3605 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
3606 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
3607 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
3608
3609 2019-05-14 Carlos O'Donell <carlos@redhat.com>
3610
3611 * manual/search.texi (Tree Search Function): Adjust twalk_r
3612 documentation.
3613
3614 2019-05-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3615
3616 [BZ #24544]
3617 * elf/tst-pldd.c (do_test): Use support_bindir_prefix instead of
3618 pre-defined value.
3619
3620 * support/Makefile (CFLAGS-support_paths.c): Add -DBINDIR_PATH.
3621 * support/support.h (support_bindir_prefix): New variable.
3622 * support/support_paths.c [BINDIR_PATH] (support_bindir_prefix):
3623
3624 * config.make.in (bindir): New variable.
3625
3626 * sysdeps/nptl/lowlevellock.h (__lll_trylock): New macro.
3627 (lll_trylock): Call __lll_trylock.
3628 * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Remove file.
3629 * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Likewise.
3630 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
3631 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
3632 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
3633 * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: Likewise.
3634 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
3635 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
3636 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: New file.
3637 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include
3638 lowlevellock-futex.h.
3639
3640 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
3641 initialization for LLL_LOCK_INITIALIZER different than 0.
3642 * nptl/old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0):
3643 Assume LLL_LOCK_INITIALIZER being 0.
3644 * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
3645 * nptl/old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
3646 Likewise.
3647 * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
3648 * sysdeps/nptl/libc-lockP.h (__libc_lock_define_initialized): Likewise.
3649
3650 * nptl/lowlevellock.c (__lll_lock_wait, __lll_lock_wait_private):
3651 Optimize futex call and add systemtap probe.
3652
3653 * nptl/pthreadP.h (CANCEL_ASYNC, CANCEL_RESET, LIBC_CANCEL_ASYNC,
3654 LIBC_CANCEL_RESET, __libc_enable_asynccancel,
3655 __libc_disable_asynccancel, __librt_enable_asynccancel,
3656 __libc_disable_asynccancel, __librt_enable_asynccancel,
3657 __librt_disable_asynccancel): Move to ...
3658 * sysdeps/unix/sysv/linux/sysdep-cancel.h: ... here.
3659 (SINGLE_THREAD_P, RTLD_SINGLE_THREAD_P): Move to ...
3660 * sysdeps/unix/sysv/linux/single-thread.h: ... here.
3661 * sysdeps/generic/single-thread.h: New file.
3662 * sysdeps/unix/sysdep.h: Include single-thread.h.
3663 * sysdeps/unix/sysv/linux/futex-internal.h: Include sysdep-cancel.h.
3664 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
3665
3666 2019-05-08 Mike FABIAN <mfabian@redhat.com>
3667
3668 [BZ #24535]
3669 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.1.0.
3670 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
3671 Unicode 12.1.0.
3672 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
3673 * localedata/unicode-gen/PropList.txt: Likewise.
3674 * localedata/unicode-gen/UnicodeData.txt: Likewise.
3675 * localedata/charmaps/UTF-8: Regenerate.
3676 * localedata/locales/i18n_ctype: Likewise.
3677 * localedata/locales/tr_TR: Likewise.
3678 * localedata/locales/translit_circle: Likewise.
3679 * localedata/locales/translit_cjk_compat: Likewise.
3680 * localedata/locales/translit_combining: Likewise.
3681 * localedata/locales/translit_compat: Likewise.
3682 * localedata/locales/translit_font: Likewise.
3683 * localedata/locales/translit_fraction: Likewise.
3684
3685 2019-05-10 Wilco Dijkstra <wdijkstr@arm.com>
3686
3687 [BZ #24531]
3688 * malloc/malloc.c (MAX_TCACHE_COUNT): New define.
3689 (do_set_tcache_count): Only update if count is small enough.
3690 * manual/tunables.texi (glibc.malloc.tcache_count): Document max value.
3691
3692 2019-05-10 Florian Weimer <fweimer@redhat.com>
3693
3694 * nptl/sem_close.c (struct walk_closure): Define.
3695 (walker): Adjust for __twalk_r.
3696 (sem_close): Call __twalk_r.
3697
3698 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3699
3700 * support/timespec.c (test_timespec_before_impl,
3701 test_timespec_equal_or_after_impl): print timespec member as intmax_t
3702 insted of long int.
3703
3704 2019-05-09 Mike Crowe <mac@mcrowe.com>
3705
3706 * nptl/tst-abstime.c: Use libsupport.
3707
3708 * nptl/tst-rwlock6.c: Use libsupport. This also happens to fix a
3709 small bug where only tv.tv_usec was checked which could cause an
3710 erroneous pass if pthread_rwlock_timedrdlock incorrectly took more
3711 than a second.
3712
3713 * nptl/tst-rwlock7.c, nptl/tst-rwlock9.c, nptl/tst-rwlock14.c: Use
3714 libsupport.
3715
3716 * nptl/tst-sem5.c (do_test): Use xclock_gettime, timespec_add and
3717 TEST_TIMESPEC_NOW_OR_AFTER from libsupport.
3718
3719 * nptl/tst-cond11.c: Use libsupport.
3720
3721 * support/timespec.h: New file. Provide timespec helper functions
3722 along with macros in the style of those in check.h.
3723 * support/timespec.c: New file. Implement check functions declared
3724 in support/timespec.h.
3725 * support/timespec-add.c: New file from gnulib containing
3726 timespec_add implementation that handles overflow.
3727 * support/timespec-sub.c: New file from gnulib containing
3728 timespec_sub implementation that handles overflow.
3729 * support/README: Mention timespec.h.
3730
3731 2019-05-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
3732
3733 [BZ #24537]
3734 * nptl/Makefile: Move tst-eintr1 to xtests.
3735
3736 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3737
3738 * sysdeps/powerpc/fpu/trunc_to_integer.h (set_fenv_mode): Add
3739 TRUNC handling.
3740 (round_mode): Add definition for TRUNC.
3741 * sysdeps/powerpc/fpu/s_trunc.c: New file.
3742 * sysdeps/powerpc/fpu/s_truncf.c: New file.
3743 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Remove file.
3744 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
3745 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.S:
3746 Likewise.
3747 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.S:
3748 Likewise.
3749 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.S:
3750 Likewise.
3751 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.S:
3752 Likewise.
3753 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.c: New
3754 file.
3755 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.c:
3756 Likewise.
3757 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.c:
3758 Likewise.
3759 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.c:
3760 Likewise.
3761 * sysdep/powerpc/powerpc32/power5+/fpu/s_trunc.S: Remove file.
3762 * sysdep/powerpc/powerpc32/power5+/fpu/s_truncf.S: Likewise.
3763 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
3764 (libm-sysdep_routines): Add s_trunc-power5+, s_trunc-ppc64,
3765 s_truncf-power5+, and s_truncf-ppc64.
3766 (CFLAGS-s_trunc-power5+.c, CFLAGS-s_truncf-power5+.c): New rule.
3767 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-power5+.c: New
3768 file.
3769 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-ppc64.c: Likewise.
3770 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Move to ...
3771 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_trunc.c: ... here.
3772 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-power5+.c: New
3773 file.
3774 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-ppc64.c:
3775 Likewise.
3776 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Move to ...
3777 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_truncf.c: ... here.
3778 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3779 (libm-sysdep_routines): Remove s_trunc-power5+, s_trunc-ppc64,
3780 s_truncf-power5+, and s_truncf-ppc64.
3781 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Remove
3782 file.
3783 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
3784 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S:
3785 Likewise.
3786 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
3787 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
3788 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
3789 * sysdep/powerpc/powerpc64/power5+/fpu/s_trunc.S: Likewise.
3790 * sysdep/powerpc/powerpc64/power5+/fpu/s_truncf.S: Likewise.
3791
3792 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
3793 ROUND handling.
3794 (round_mode): Add definition for ROUND.
3795 (round_to_integer_float): Likewise.
3796 * sysdeps/powerpc/fpu/s_round.c: New file.
3797 * sysdeps/powerpc/fpu/s_roundf.c: New file.
3798 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Remove file.
3799 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
3800 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.S:
3801 Likewise.
3802 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.S:
3803 Likewise.
3804 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.S:
3805 Likewise.
3806 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.S:
3807 Likewise.
3808 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.c: New
3809 file.
3810 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.c:
3811 Likewise.
3812 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.c:
3813 Likewise.
3814 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.c:
3815 Likewise.
3816 * sysdep/powerpc/powerpc32/power5+/fpu/s_round.S: Remove file.
3817 * sysdep/powerpc/powerpc32/power5+/fpu/s_roundf.S: Likewise.
3818 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
3819 (libm-sysdep_routines): Add s_round-power5+, s_round-ppc64,
3820 s_roundf-power5+, and s_roundf-ppc64.
3821 (CFLAGS-s_round-power5+.c, CFLAGS-s_roundf-power5+.c): New rule.
3822 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-power5+.c: New
3823 file.
3824 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-ppc64.c: Likewise.
3825 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Move to ...
3826 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_round.c: ... here.
3827 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-power5+.c: New
3828 file.
3829 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-ppc64.c:
3830 Likewise.
3831 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Move to ...
3832 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_roundf.c: ... here.
3833 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3834 (libm-sysdep_routines): Remove s_round-power5+, s_round-ppc64,
3835 s_roundf-power5+, and s_roundf-ppc64.
3836 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Remove
3837 file.
3838 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
3839 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S:
3840 Likewise.
3841 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
3842 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
3843 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
3844 * sysdep/powerpc/powerpc64/power5+/fpu/s_round.S: Likewise.
3845 * sysdep/powerpc/powerpc64/power5+/fpu/s_roundf.S: Likewise.
3846
3847 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode):
3848 Add FLOOR option.
3849 (round_mode): Add definition for FLOOR.
3850 * sysdeps/powerpc/fpu/s_floor.c: New file.
3851 * sysdeps/powerpc/fpu/s_floorf.c: Likewise.
3852 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Remove file.
3853 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
3854 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
3855 Remove file.
3856 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S:
3857 Likewise
3858 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
3859 Likewise.
3860 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
3861 Likewise.
3862 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.c:
3863 New file.
3864 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.c:
3865 Likewise.
3866 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.c:
3867 Likewise.
3868 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.c:
3869 Likewise.
3870 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Remove file.
3871 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Remove file.
3872 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
3873 (libm-sysdep_routines): Add s_floor-power5+, s_floor-ppc64,
3874 s_floorf-power5+, and s_floorf-ppc64.
3875 (CFLAGS-s_floor-power5+.c, CFLAGS-s_floorf-power5+.c): New rule.
3876 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-power5+.c: New
3877 file.
3878 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-ppc64.c: Likewise.
3879 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Move to ...
3880 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floor.c: ... here.
3881 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-power5+.c: New
3882 file.
3883 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-ppc64.c:
3884 Likewise.
3885 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Move to ...
3886 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floorf.c: ... here.
3887 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3888 (libm-sysdep_routines): Remove s_floor-power5+, s_floor-ppc64,
3889 s_floorf-power5+, and s_floorf-ppc64.
3890 * sysdep/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Remove
3891 file.
3892 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Remove
3893 file.
3894 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S:
3895 Likewise.
3896 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S:
3897 Likewise.
3898 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
3899 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
3900 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Likewise.
3901 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Likewise.
3902
3903 2019-05-08 Mike Crowe <mac@mcrowe.com>
3904
3905 * support/xclock_gettime.c (xclock_gettime): New file. Provide
3906 clock_gettime wrapper for use in tests that fails the test rather
3907 than returning failure.
3908
3909 * support/xtime.h: New file to declare xclock_gettime.
3910
3911 * support/Makefile: Add xclock_gettime.c.
3912
3913 * support/README: Mention xtime.h.
3914
3915 2019-05-08 Florian Weimer <fweimer@redhat.com>
3916
3917 malloc/tst-mallocfork2: Use process-shared barriers.
3918 * malloc/tst-mallocfork2.c: Switch to <support/test-driver.c>.
3919 (signal_count, sigusr1_sender_pid): Remove.
3920 (iterations): Define constant.
3921 (shared): New variable.
3922 (sigusr1_received): Update comment.
3923 (sigusr1_handler): Do not send SIGSTOP to the sender process.
3924 (signal_sender): Optional use barriers to avoid sending signals
3925 during irrelevant times.
3926 (do_it): Initialize variable shared. Use xfork for error
3927 checking. Launch multiple SIGUSR1-sending subprocesses. Limit
3928 the iteration count, independent of signal delivery. Check for
3929 deadlocks in fork. Introduce barriers for reducing signal
3930 traffic. Do not send SIGCONT to the SIGUSR1-sending processes;
3931 replaced by the barriers. Count signals during fork/free/malloc
3932 and report them.
3933 * malloc/Makefile (tst-mallocfork): Link with libpthread.
3934
3935 2019-05-07 Joseph Myers <joseph@codesourcery.com>
3936
3937 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
3938 version to 5.1.
3939 (clock_adjtime64) New syscall.
3940 (clock_getres_time64) Likewise.
3941 (clock_gettime64) Likewise.
3942 (clock_nanosleep_time64) Likewise.
3943 (clock_settime64) Likewise.
3944 (futex_time64) Likewise.
3945 (io_pgetevents_time64) Likewise.
3946 (io_uring_enter) Likewise.
3947 (io_uring_register) Likewise.
3948 (io_uring_setup) Likewise.
3949 (mq_timedreceive_time64) Likewise.
3950 (mq_timedsend_time64) Likewise.
3951 (pidfd_send_signal) Likewise.
3952 (ppoll_time64) Likewise.
3953 (pselect6_time64) Likewise.
3954 (recvmmsg_time64) Likewise.
3955 (rt_sigtimedwait_time64) Likewise.
3956 (sched_rr_get_interval_time64) Likewise.
3957 (semtimedop_time64) Likewise.
3958 (timer_gettime64) Likewise.
3959 (timer_settime64) Likewise.
3960 (timerfd_gettime64) Likewise.
3961 (timerfd_settime64) Likewise.
3962 (utimensat_time64) Likewise.
3963
3964 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
3965 version to 9 branch.
3966
3967 2019-05-03 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
3968
3969 * sysdeps/aarch64/multiarch/ifunc-impl-list.c: Added
3970 __memmove_thunderx2 to the list of implementations
3971 * sysdeps/aarch64/multiarch/memmove.c: Likewise
3972 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S:
3973 (__memmove_thunderx2): Rewritten using SIMD ld/st
3974 (__memcpy_thunderx2): Fixed handling overlapping cases.
3975 Used ldp/stp instead of ldr/str if possible. Made loops
3976 tails branchless.
3977
3978 2019-05-03 Florian Weimer <fweimer@redhat.com>
3979
3980 * misc/tst-tsearch.c (walk_tree): Add more error checking.
3981
3982 2019-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3983
3984 [BZ #24506]
3985 * elf/tst-pldd.c (in_str_list): New function.
3986 (do_test): Add default names for ld and libc as one option.
3987
3988 2019-05-02 Florian Weimer <fweimer@redhat.com>
3989
3990 misc: Add twalk_r function.
3991 * include/search.h (__twalk_r): Declare.
3992 * manual/examples/twalk.c: New file.
3993 * manual/search.texi (Tree Search Function): Document twalk_r.
3994 * misc/Versions (2.30): Export twalk_r.
3995 (GLIBC_PRIVATE): Export __twalk_r.
3996 * misc/search.h [__USE_GNU] (twalk_r): Declare.
3997 * misc/tsearch.c (trecurse_r, __twalk_r): New functions.
3998 (twalk_r): Add weak alias.
3999 * misc/tst-tsearch.c (struct walk_trace_element): Define.
4000 (walk_trace): New variable.
4001 (struct twalk_with_twalk_r_closure): Define.
4002 (twalk_with_twalk_r_action): New function.
4003 (twalk_with_twalk_r): Likewise.
4004 (walk_action): Call walk_trace_add.
4005 (walk_tree_with): Rename from walk_tree. Add walk argument.
4006 (walk_tree): New function.
4007 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.30): Add twalk_r.
4008 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
4009 Likewise.
4010 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
4011 Likewise.
4012 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
4013 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30): Likewise.
4014 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30): Likewise.
4015 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30): Likewise.
4016 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30): Likewise.
4017 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
4018 Likewise.
4019 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
4020 Likewise.
4021 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
4022 Likewise.
4023 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4024 (GLIBC_2.30): Likewise.
4025 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4026 (GLIBC_2.30): Likewise.
4027 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4028 (GLIBC_2.30): Likewise.
4029 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4030 (GLIBC_2.30): Likewise.
4031 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
4032 Likewise.
4033 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4034 (GLIBC_2.30): Likewise.
4035 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4036 (GLIBC_2.30): Likewise.
4037 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
4038 (GLIBC_2.30): Likewise.
4039 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
4040 (GLIBC_2.30): Likewise.
4041 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
4042 Likewise.
4043 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
4044 Likewise.
4045 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
4046 Likewise.
4047 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
4048 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
4049 Likewise.
4050 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
4051 Likewise.
4052 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
4053 Likewise.
4054 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
4055 Likewise.
4056
4057 2019-04-30 Paul Eggert <eggert@cs.ucla.edu>
4058
4059 Make mktime etc. compatible with __time64_t
4060 Keep these functions compatible with Gnulib while adding
4061 __time64_t support. The basic idea is to move private API
4062 declarations from include/time.h to time/mktime-internal.h, since
4063 the former file cannot easily be shared with Gnulib whereas the
4064 latter can.
4065 Also, do some other minor cleanup while in the neighborhood.
4066 * include/time.h: Include stdbool.h, time/mktime-internal.h.
4067 (__mktime_internal): Move this prototype to time/mktime-internal.h,
4068 since Gnulib needs it.
4069 (__localtime64_r, __gmtime64_r) [__TIMESIZE == 64]:
4070 Move these macros to time/mktime-internal.h, since Gnulib needs them.
4071 (__mktime64, __timegm64) [__TIMESIZE != 64]: New prototypes.
4072 (in_time_t_range): New static function.
4073 * posix/bits/types.h (__time64_t): Move to time/mktime-internal.h,
4074 so that glibc users are not tempted to use __time64_t.
4075 * time/mktime-internal.h: Rewrite so that it does both glibc
4076 and Gnulib work. Include time.h if not _LIBC.
4077 (mktime_offset_t) [!_LIBC]: Define for gnulib.
4078 (__time64_t): New type or macro, moved here from
4079 posix/bits/types.h.
4080 (__gmtime64_r, __localtime64_r, __mktime64, __timegm64)
4081 [!_LIBC || __TIMESIZE == 64): New macros, mostly moved here
4082 from include/time.h.
4083 (__gmtime_r, __localtime_r, __mktime_internal) [!_LIBC]:
4084 New macros, taken from GNulib.
4085 (__mktime_internal): New prototype, moved here from include/time.h.
4086 * time/mktime.c (mktime_min, mktime_max, convert_time)
4087 (ranged_convert, __mktime_internal, __mktime64):
4088 * time/timegm.c (__timegm64):
4089 Use __time64_t, not time_t.
4090 * time/mktime.c: Stop worrying about whether time_t is floating-point.
4091 (__mktime64) [! (_LIBC && __TIMESIZE != 64)]:
4092 Rename from mktime.
4093 (mktime) [_LIBC && __TIMESIZE != 64]: New function.
4094 * time/timegm.c [!_LIBC]: Include libc-config.h, not config.h,
4095 for libc_hidden_def.
4096 Include errno.h.
4097 (__timegm64) [! (_LIBC && __TIMESIZE != 64)]:
4098 Rename from timegm.
4099 (timegm) [_LIBC && __TIMESIZE != 64]: New function.
4100
4101 2019-04-30 Maciej W. Rozycki <macro@wdc.com>
4102
4103 [BZ #19444]
4104 * sysdeps/ieee754/soft-fp/s_ddivl.c (__ddivl): Ignore errors
4105 from `-Wmaybe-uninitialized'.
4106 * sysdeps/ieee754/soft-fp/s_fdivl.c (__fdivl): Likewise.
4107
4108 2019-04-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4109
4110 * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround_inline_nocheck): New
4111 function.
4112 * sysdeps/powerpc/fpu/round_to_integer.h: New file.
4113 * sysdeps/powerpc/fpu/s_ceil.c: Likewise.
4114 * sysdeps/powerpc/fpu/s_ceilf.c: Likewise.
4115 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Remove file.
4116 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
4117 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
4118 (CFLAGS-s_ceil-power5+.c, CFLAGS-s_ceilf-power5+.c): New rule.
4119 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
4120 Remove file.
4121 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S:
4122 Likewise.
4123 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
4124 Likewise.
4125 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S:
4126 Likewise.
4127 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.c:
4128 New file.
4129 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.c:
4130 Likewise.
4131 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.c:
4132 Likewise.
4133 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.c:
4134 Likewise.
4135 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Remove file.
4136 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Likewise.
4137 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile: New file.
4138 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-power5+.c:
4139 Likewise.
4140 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-ppc64.c:
4141 Likewise.
4142 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Move to ...
4143 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil.c: ... here.
4144 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-power5+.c: New
4145 file.
4146 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-ppc64.c:
4147 Likewise.
4148 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Move to ...
4149 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf.c: ...
4150 * here.
4151 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4152 (libm-sysdep_routines): Remove s_ceil-power5+, s_ceil-ppc64,
4153 s_ceilf-power5+, and s_ceilf-ppc64.
4154 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Remove
4155 file.
4156 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
4157 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
4158 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
4159 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
4160 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
4161 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Likewise.
4162 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Likewise.
4163
4164 * sysdeps/powerpc/power4/fpu/Makefile: Remove file.
4165 * sysdeps/powerpc/power4/fpu/mpa-arch.h: Likewise.
4166 * sysdeps/powerpc/power4/fpu/mpa.c: Likewise.
4167
4168 2019-04-29 Yann Droneaud <ydroneaud@opteya.com>
4169
4170 * sysdeps/pthread/semaphore.h (sem_init): Add __nonnull attribute.
4171 (sem_destroy, sem_open, sem_close, sem_unlink): Likewise.
4172 (sem_wait, sem_timedwait, sem_trywait, sem_post): Likewise.
4173 (sem_getvalue): Likewise.
4174
4175 2019-04-26 Florian Weimer <fweimer@redhat.com>
4176
4177 elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now.
4178 * elf/Makefile (LDFLAGS-sotruss-lib.so): Set.
4179
4180 2019-04-26 Florian Weimer <fweimer@redhat.com>
4181
4182 Makeconfig: Move -Wl,-rpath-link options before library references.
4183 * Makeconfig (+link-pie, +link): Add $(link-libc-rpath-link).
4184 (link-libc): Remove $(link-libc-rpath-link).
4185
4186 2019-04-25 Florian Weimer <fweimer@redhat.com>
4187
4188 * Makeconfig (+link-pie-before-libc): Remove $(CC).
4189 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
4190 (+link-static-before-libc): Remove $(CC).
4191 (+link-static, +link-static-tests): Add $(CC).
4192 (+link-before-libc): Remove $(CC).
4193 (+link, +link-pie, +link-pie-printers): Add $(CC).
4194
4195 2019-04-26 Florian Weimer <fweimer@redhat.com>
4196
4197 * Makeconfig (+link-pie-before-libc): Remove $(CC).
4198 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
4199 (+link-static-before-libc): Remove $(CC).
4200 (+link-static, +link-static-tests): Add $(CC).
4201 (+link-before-libc): Remove $(CC).
4202 (+link, +link-pie, +link-pie-printers): Add $(CC).
4203
4204 2019-04-25 David Abdurachmanov <david.abdurachmanov@gmail.com>
4205
4206 [BZ#24484]
4207 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Remove.
4208
4209 2019-04-25 Florian Weimer <fweimer@redhat.com>
4210
4211 benchtests: Enable BIND_NOW if configured with --enable-bind-now.
4212 * benchtests/Makefile [$(bind-now)] (link-bench-bind-now): Set.
4213 (bench-link-targets): New variable.
4214 ($(binaries-bench) …): Use it. Set LDFLAGS accordingly.
4215
4216 2019-04-25 Florian Weimer <fweimer@redhat.com>
4217
4218 Also enable BIND_NOW for programs if --enable-bind-now.
4219 * Makeconfig [$(bind-now)] (link-extra-flags): Add -Wl,-z,now.
4220 (+link-pie): Use $(link-extra-flags).
4221 (+link-static): Likewise.
4222 [! $(build-pie-default)] (+link): Likewise.
4223 * manual/install.texi (Configuring and compiling): Update
4224 --enable-bind-now description.
4225 * INSTALL: Regenerated.
4226
4227 2019-04-24 Wilco Dijkstra <wdijkstr@arm.com>
4228
4229 * benchtests/Makefile (BENCH_DURATION): Set to 1 second.
4230 * benchtests/bench-malloc-thread.c (BENCH_DURATION): Set to 10 seconds.
4231
4232 2019-04-24 Mike Frysinger <vapier@gentoo.org>
4233
4234 [BZ #18465]
4235 * malloc/Makefile (others): Add memusagestat.
4236 ($(objpfx)memusagestat): Delete rule.
4237 (LDLIBS-memusagestat): New variable.
4238
4239 2019-04-24 Florian Weimer <fweimer@redhat.com>
4240
4241 * locale/Makefile (tests-special): Guard setting by
4242 $(run-built-tests) == yes, otherwise tst-locale-locpath attempts
4243 to run while cross-compiling.
4244
4245 2019-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4246
4247 [BZ #18035]
4248 * elf/Makefile (tests-container): Add tst-pldd.
4249 * elf/pldd-xx.c: Use _Static_assert in of pldd_assert.
4250 (E(find_maps)): Avoid use alloca, use default read file operations
4251 instead of explicit LFS names, and fix infinite loop.
4252 * elf/pldd.c: Explicit set _FILE_OFFSET_BITS, cleanup headers.
4253 (get_process_info): Use _Static_assert instead of assert, use default
4254 directory operations instead of explicit LFS names, and free some
4255 leadek pointers.
4256 * elf/tst-pldd.c: New file.
4257
4258 2019-04-23 H.J. Lu <hongjiu.lu@intel.com>
4259
4260 * malloc/arena.c (do_set_mallopt_check): Removed.
4261
4262 2019-04-23 Florian Weimer <fweimer@redhat.com>
4263
4264 locale: Add LOCPATH diagnostics to the locale program.
4265 * locale/programs/locale.c (setlocale_failed): New variable.
4266 (try_setlocale): New function.
4267 (quote_string): Likewise.
4268 (setlocale_diagnostics): Likewise.
4269 (main): Call try_setlocale instead of setlocale. Call
4270 setlocale_diagnostics.
4271 * locale/Makefile (tests-special): Add tst-locale-locpath.out.
4272 (tst-locale-locpath.out): New target.
4273 * locale/tst-locale-locpath.sh: New file.
4274
4275 2019-04-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4276
4277 * NEWS: Move memory allocation changes of BZ#23741 from 2.29
4278 to 2.30 notes.
4279
4280 2019-04-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4281
4282 [BZ #23741]
4283 * malloc/hooks.c (malloc_check, realloc_check): Use
4284 __builtin_add_overflow on overflow check and adapt to
4285 checked_request2size change.
4286 * malloc/malloc.c (__libc_malloc, __libc_realloc, _mid_memalign,
4287 __libc_pvalloc, __libc_calloc, _int_memalign): Limit maximum
4288 allocation size to PTRDIFF_MAX.
4289 (REQUEST_OUT_OF_RANGE): Remove macro.
4290 (checked_request2size): Change to inline function and limit maximum
4291 requested size to PTRDIFF_MAX.
4292 (__libc_malloc, __libc_realloc, _int_malloc, _int_memalign): Limit
4293 maximum allocation size to PTRDIFF_MAX.
4294 (_mid_memalign): Use _int_memalign call for overflow check.
4295 (__libc_pvalloc): Use __builtin_add_overflow on overflow check.
4296 (__libc_calloc): Use __builtin_mul_overflow for overflow check and
4297 limit maximum requested size to PTRDIFF_MAX.
4298 * malloc/malloc.h (malloc, calloc, realloc, reallocarray, memalign,
4299 valloc, pvalloc): Add __attribute_alloc_size__.
4300 * stdlib/stdlib.h (malloc, realloc, reallocarray, valloc): Likewise.
4301 * malloc/tst-malloc-too-large.c (do_test): Add check for allocation
4302 larger than PTRDIFF_MAX.
4303 * malloc/tst-memalign.c (do_test): Disable -Walloc-size-larger-than=
4304 around tests of malloc with negative sizes.
4305 * malloc/tst-posix_memalign.c (do_test): Likewise.
4306 * malloc/tst-pvalloc.c (do_test): Likewise.
4307 * malloc/tst-valloc.c (do_test): Likewise.
4308 * malloc/tst-reallocarray.c (do_test): Replace call to reallocarray
4309 with resulting size allocation larger than PTRDIFF_MAX with
4310 reallocarray_nowarn.
4311 (reallocarray_nowarn): New function.
4312 * NEWS: Mention the malloc function semantic change.
4313
4314 2019-04-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4315
4316 * sysdeps/powerpc/fpu/s_fma.c: Fix format.
4317 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
4318
4319 * sysdeps/powerpc/fpu/s_fma.S: Remove file.
4320 * sysdeps/powerpc/fpu/s_fmaf.S: Likewise.
4321 * sysdeps/powerpc/fpu/s_fma.c: New file.
4322 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
4323
4324 * sysdeps/powerpc/fpu/s_fabs.S: Remove file.
4325 * sysdeps/powerpc/fpu/s_fabsf.S: Likewise.
4326
4327 * sysdeps/unix/sysv/linux/mips/getcontext.S (__getcontext): Remove
4328 the magic flag store.
4329 * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
4330 Likewise.
4331 * sysdeps/unix/sysv/linux/mips/swapcontext.S (__swapcontext):
4332 Likewise.
4333 * sysdeps/unix/sysv/linux/mips/setcontext.S (__setcontext):
4334 Remove rt_sigreturn call.
4335
4336 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
4337 Remove rt_sigreturn call.
4338 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
4339 Likewise.
4340 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewie.
4341 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
4342
4343 * support/Makefile (libsupport-routines): Add support_subprocess,
4344 xposix_spawn, xposix_spawn_file_actions_addclose, and
4345 xposix_spawn_file_actions_adddup2.
4346 (tst-support_capture_subprocess-ARGS): New rule.
4347 * support/capture_subprocess.h (support_capture_subprogram): New
4348 prototype.
4349 * support/support_capture_subprocess.c (support_capture_subprocess):
4350 Refactor to use support_subprocess and support_capture_poll.
4351 (support_capture_subprogram): New function.
4352 * support/tst-support_capture_subprocess.c (write_mode_to_str,
4353 str_to_write_mode, test_common, parse_int, handle_restart,
4354 do_subprocess, do_subprogram, do_multiple_tests): New functions.
4355 (do_test): Add support_capture_subprogram tests.
4356 * support/subprocess.h: New file.
4357 * support/support_subprocess.c: Likewise.
4358 * support/xposix_spawn.c: Likewise.
4359 * support/xposix_spawn_file_actions_addclose.c: Likewise.
4360 * support/xposix_spawn_file_actions_adddup2.c: Likewise.
4361 * support/xspawn.h: Likewise.
4362
4363 2019-04-17 Mike Gerow <gerow@google.com>
4364
4365 * stdlib/tst-secure-getenv.c (choose_gid): Remove 64 supplemental
4366 groups limit.
4367
4368 2019-04-11 Florian Weimer <fweimer@redhat.com>
4369
4370 * resolv/nss_dns/dns-network.c (getanswer_r): Do not replace root
4371 domain with empty string.
4372 * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
4373
4374 2019-04-11 Florian Weimer <fweimer@redhat.com>
4375
4376 * include/alloc_buffer.h (alloc_buffer_alloc_bytes): Update
4377 comment.
4378 (alloc_buffer_next): Change return type to non-const. Update
4379 comment.
4380
4381 2019-04-10 TAMUKI Shoichi <tamuki@linet.gr.jp>
4382
4383 * manual/time.texi (Formatting Calendar Time): Add missing percent
4384 sign to conversion specifier.
4385
4386 2019-04-09 Carlos O'Donell <carlos@redhat.com>
4387 Kwok Cheung Yeung <kcy@codesourcery.com>
4388
4389 [BZ #16573]
4390 * malloc/mtrace.c: Define prototypes for all hooks.
4391 (set_default_hooks): New function.
4392 (set_trace_hooks): Likewise.
4393 (save_default_hooks): Likewise.
4394 (tr_freehook): Use new s*_hooks functions.
4395 (tr_mallochook): Likewise.
4396 (tr_reallochook): Likewise.
4397 (tr_memalignhook): Likewise.
4398 (mtrace): Likewise.
4399 (muntrace): Likewise.
4400
4401 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4402
4403 * benchtests/bench-stpcpy.c (SIMPLE_STPCPY): Remove function.
4404 (generic_stpcpy): New function.
4405 * benchtests/bench-stpncpy.c (SIMPLE_STPNCPY): Remove function.
4406 (generic_stpncpy): New function.
4407 * benchtests/bench-strcat.c (SIMPLE_STRCAT): Remove function.
4408 (generic_strcat): New function.
4409 * benchtests/bench-strcpy.c (SIMPLE_STRCPY): Remove function.
4410 (generic_strcpy): New function.
4411 * benchtests/bench-strncat.c (SIMPLE_STRNCAT): Remove function.
4412 (STUPID_STRNCAT): Remove function.
4413 (generic_strncat): New function.
4414 * benchtests/bench-strncpy.c (SIMPLE_STRNCPY): Remove function.
4415 (STUPID_STRNCPY): Remove function.
4416 (generic_strncpy): New function.
4417 * benchtests/bench-strnlen.c (SIMPLE_STRNLEN): Remove function.
4418 (generic_strnlen): New function.
4419 (memchr_strnlen): New function.
4420 * benchtests/bench-strlen.c (generic_strlen): Define for WIDE.
4421 (memchr_strlen): Likewise.
4422
4423 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4424
4425 * benchtests/bench-strstr.c (input): Add realistic input text.
4426 (stupid_strstr): Remove function.
4427 (basic_strstr): Add function.
4428 (twoway_strstr): Add function.
4429 (do_one_test): Add result checking.
4430 (do_test): Use new input text. Remove accidental early matches.
4431 (test_main): Improve range of tests, reduce unaligned cases.
4432
4433 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4434
4435 * benchtests/bench-memmem.c (simple_memmem): Remove function.
4436 (basic_memmem): Add function.
4437 (twoway_memmem): Add function.
4438
4439 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4440
4441 * benchtests/bench-malloc-simple.c: Remove TIMING_INIT.
4442 * benchtests/bench-malloc-thread.c: Likewise.
4443 * benchtests/bench-skeleton.c: Likewise.
4444 * benchtests/bench-strtod.c: Likewise.
4445 * benchtests/bench-timing.h: Likewise.
4446
4447 2019-04-08 Florian Weimer <fweimer@redhat.com>
4448
4449 * resolv/resolv.h (RES_INSECURE1, RES_INSECURE2): Remove
4450 definitions.
4451 * resolv/res_send.c (send_dg): Always perform RES_INSECURE1 and
4452 RES_INSECURE2 security checks.
4453 * resolv/res_debug.c (p_option): Remove RES_INSECURE1 and
4454 RES_INSECURE2 handling.
4455
4456 2019-04-08 Florian Weimer <fweimer@redhat.com>
4457
4458 resolv: Remove support for RES_USE_INET6 and the inet6 option.
4459 * nscd/aicache.c (addhstaiX): Do not disable RES_USE_INET6.
4460 * nscd/nscd_gehst_r.c (__nscd_gethostbyname_r): Always use
4461 GETHOSTBYNAME.
4462 * resolv/Makefile (tests): Remove tst-res_use_inet6.
4463 (tests-internal): Update justification for tst-resolv-res_init,
4464 tst-resolv-res_init-thread.
4465 (tst-res_use_inet6): Remove target.
4466 (CFLAGS-tst-res_use_inet6.c): Do not set variable.
4467 * resolv/res_debug.c (p_option): Remove "inet6" support.
4468 * resolv/res_init.c (res_setoptions): Likewise.
4469 * resolv/res_use_inet6.h: Remove file.
4470 * resolv/resolv-internal.h (DEPRECATED_RES_USE_INET6): Remove
4471 definition.
4472 (res_use_inet6): Always return false.
4473 * resolv/resolv.h (RES_USE_INET6): Remove definition.
4474 * resolv/resolv_context.h: Adjust file comment.
4475 (struct resolv_context): Update comment on __next field.
4476 (__resolv_context_put): Update comment.
4477 * resolv/tst-res_use_inet6.c: Remove file.
4478 * resolv/tst-resolv-res_init-skeleton.c (print_resp): Remove
4479 "inet6" support.
4480 (test_cases): Adjust test case.
4481 * resolv/tst-resolv-threads.c (byname_inet6) Remove function.
4482 (thread_byname2_af_inet6): Use old byname_inet6 code.
4483 (thread_byname_inet6, thread_byname2_af_inet6): Remove functions.
4484 (gai): Remove do_inet6 argument.
4485 (thread_gai_inet, thread_gai_inet6, thread_gai_unspec): Adjust.
4486 (thread_gai_inet_inet6, thread_gai_inet6_inet6)
4487 (thread_gai_unspec_inet6): Remove functions.
4488 (do_test): Adjust thread_funcs.
4489 * sysdeps/posix/getaddrinfo.c (gethosts): Do not restore
4490 RES_USE_INET6 flag.
4491 (gaih_inet): Do not disable RES_USE_INET6 flag.
4492
4493 2019-04-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
4494
4495 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: Cleanup branching
4496 and remove redundant code.
4497
4498 2019-04-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4499
4500 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcsrchr.c):
4501 New rule.
4502 * sysdeps/powerpc/power6/wcsrchr.c: Remove file.
4503 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c:
4504 Likewise.
4505 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c:
4506 Likewise.
4507 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c:
4508 Likewise.
4509 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
4510 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: Likewise.
4511 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: Likewise.
4512 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: Likewise.
4513 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
4514 * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Likewise.
4515 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
4516 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcsrchr-power6 and
4517 wcsrchr-power7.
4518 (CFLAGS-wcsrchr-power7.c, CFLAGS-wcsrchr-power6.c): Remove rule.
4519 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
4520 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
4521 Remove wcsrchr optimizations.
4522 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
4523
4524 * wcsmbs/wcsrchr.c (WCSRCHR): Use loop_unroll.h to parametrize
4525 the loop unroll.
4526
4527 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcschr.c):
4528 New rule.
4529 * sysdeps/powerpc/power6/wcschr.c: Remove file.
4530 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c:
4531 Likewise.
4532 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c:
4533 Likewise.
4534 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c:
4535 Likewise.
4536 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
4537 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: Likewise.
4538 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: Likewise.
4539 * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: Likewise.
4540 * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
4541 * sysdeps/powerpc/powerpc64/power6/wcschr.c: Likewise.
4542 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
4543 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcschr-power6 and
4544 wcschr-power7.
4545 (CFLAGS-wcschr-power7.c, CFLAGS-wcschr-power6.c): Remove rule.
4546 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
4547 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
4548 Remove wcschr optimizations.
4549 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
4550
4551 * wcsmbs/wcschr.c (WCSCHR): Use loop_unroll.h to parametrize
4552 the loop unroll.
4553
4554 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcscpy.c):
4555 New rule.
4556 * sysdeps/powerpc/power6/wcscpy.c: Remove file.
4557 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c:
4558 Likewise.
4559 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c:
4560 Likewise.
4561 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c:
4562 Likewise.
4563 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
4564 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: Likewise.
4565 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: Likewise.
4566 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: Likewise.
4567 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
4568 * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Likewise.
4569 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
4570 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcscpy-power6 and
4571 wcscpy-power7.
4572 (CFLAGS-wcscpy-power7.c, CFLAGS-wcscpy-power6.c): Remove rule.
4573 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
4574 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
4575 Remove wcscpy optimizations.
4576 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
4577
4578 * include/loop_unroll.h: New file.
4579 * wcsmbs/wcscpy (__wcscpy): Add option to use loop unrolling
4580 besides generic implementation.
4581
4582 2019-04-03 DJ Delorie <dj@redhat.com>
4583
4584 * time/tst-strftime3.c (tm_to_printed): Disable warning about
4585 snprintf truncating output.
4586
4587 2019-04-02 DJ Delorie <dj@redhat.com>
4588
4589 * time/tst-strftime3.c: Add new Japanese era tests. Fix printf
4590 warning.
4591
4592 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
4593
4594 [BZ #22964]
4595 * localedata/locales/ja_JP (LC_TIME): Add entry for the new Japanese
4596 era.
4597 * time/tst-strftime2.c (dates): Add 2019-04-30 and 2019-05-01.
4598 (mkreftable): Add rules for the new Japanese era and the new dates.
4599
4600 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
4601 Rafał Lużyński <digitalfreak@lingonborough.com>
4602
4603 * time/tst-strftime2.c (date_t): Explicitly define the type.
4604 (dates): Use natural month and year numbers to express a date.
4605 (is_before): New function to compare dates.
4606 (mkreftable): Minor improvements to simplify maintenance.
4607 (do_test): Reflect the changes in dates array.
4608
4609 [BZ #24293]
4610 * time/Makefile (LOCALES): Add zh_TW.UTF-8, cmn_TW.UTF-8,
4611 hak_TW.UTF-8, nan_TW.UTF-8, and lzh_TW.UTF-8.
4612 * time/tst-strftime2.c (locales): Likewise.
4613 (dates): Add 1910-04-01, 1911-12-31, 1912-01-01, 1913-04-01,
4614 2010-04-01, and 2011-04-01.
4615 (mkreftable): Add rules for the new locales and the new dates.
4616
4617 2019-04-01 Carlos O'Donell <carlos@redhat.com>
4618
4619 * localedata/locales/ja_JP: Add comments to era entries.
4620
4621 2019-04-01 DJ Delorie <dj@redhat.com>
4622
4623 [BZ #24394]
4624 * time/strptime_l.c (%Ey): Fix fencepost error.
4625 * time/tst-strftime3.c: New.
4626 * time/Makefile (tests): Add tst-strftime3.
4627
4628 2019-04-01 Uroš Bizjak <ubizjak@gmail.com>
4629
4630 * sysdeps/alpha/divqu.S (__divqu): Move save of $f0 and excb after
4631 conditional branch to DIVBYZERO. Fix unwind info.
4632 * sysdeps/alpha/remqu.S (__remqu): Move saves of $f0, $f1, $f2 and
4633 excb after conditional branch to $powerof2. Add missing unop
4634 instructions and .align directives and reorder instructions to
4635 match __divqu.
4636
4637 2019-04-01 Richard Henderson <rth@twiddle.net>
4638
4639 * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
4640 Do not redefine.
4641 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_osf_shmat):
4642 Do not redefine.
4643
4644 2019-03-30 Maciej W. Rozycki <macro@wdc.com>
4645
4646 * sysdeps/unix/sysv/linux/riscv/configure.ac: Quote
4647 $libc_cv_riscv_float_abi in `test' invocation.
4648 * sysdeps/unix/sysv/linux/riscv/configure: Regenerate.
4649
4650 2019-03-29 Paul A. Clarke <pc@us.ibm.com>
4651
4652 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_register): Replace inline
4653 asm with builtin.
4654 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (FP_INIT_ROUNDMODE):
4655 Likewise.
4656 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
4657 (_GET_SI_FPSCR): Likewise.
4658 (_SET_SI_FPSCR): Likewise.
4659
4660 2019-03-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4661
4662 * math/math.h (fpclassify, isfinite, isnormal, isnan): Use builtin for
4663 clang 2.8.
4664 (signbit): Use builtin for clang 3.3.
4665 (isinf): Use builtin for clang 3.7.
4666
4667 2019-03-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4668
4669 * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file.
4670
4671 2019-03-25 Andreas K. Hüttel <dilfridge@gentoo.org>
4672
4673 * nss/tst-nss-files-alias-leak.c (do_test): add missing opening
4674 quote in printf.
4675
4676 2019-03-25 Mike Crowe <mac@mcrowe.com>
4677
4678 * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to
4679 pthread_rwlock_timedrdlock with calls to
4680 pthread_rwlock_timedwrlock to ensure that the latter is tested
4681 too. Use new function name in diagnostic messages too.
4682
4683 * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
4684 (do_test) Use libsupport test macros rather than hand-coded
4685 conditionals and error messages. Ensure that sem_init returns zero
4686 rather than not -1. Use <support/test-driver.c> rather than
4687 test-skeleton.c.
4688
4689 * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
4690 test macros rather than hand-coded conditionals and error messages.
4691 Use <support/test-driver.c> rather than test-skeleton.c.
4692
4693 2019-03-25 Joseph Myers <joseph@codesourcery.com>
4694
4695 * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
4696
4697 * elf/elf.h (NT_ARM_PAC_MASK): New macro.
4698 (NT_MIPS_MSA): Likewise.
4699
4700 2019-03-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4701
4702 * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
4703 * benchtests/README: Update description.
4704 * benchtests/bench-timing.h: Default to hp-timing.
4705 * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
4706 HP_TIMING_PRINT): Remove.
4707 (HP_TIMING_NOW): Add generic implementation.
4708 (hp_timing_t): Change to uint64_t.
4709
4710 * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
4711 HP_TIMING_INLINE.
4712 * nptl/descr.h: Likewise.
4713 * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
4714 RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
4715 (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
4716 Abstract hp-timing usage with RTLD_* macros.
4717 * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
4718 (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
4719 * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
4720 HP_TIMING_NONAVAIL): Likewise.
4721 * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
4722 Likewise.
4723 * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
4724 HP_SMALL_TIMING_AVAIL): Likewise.
4725 * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
4726 HP_SMALL_TIMING_AVAIL): Likewise.
4727 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
4728 HP_SMALL_TIMING_AVAIL): Likewise.
4729 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
4730 HP_SMALL_TIMING_AVAIL): Likewise.
4731 * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
4732 Likewise.
4733 * sysdeps/generic/hp-timing-common.h: Update comment with
4734 HP_TIMING_AVAIL removal.
4735
4736 * include/random-bits.h: New file.
4737 * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
4738 (__res_context_mkquery): Remove usage hp-timing usage and replace with
4739 random_bits.
4740 * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
4741 * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
4742 Likewise.
4743
4744 * include/libc-internal.h (__get_clockfreq): Remove prototype.
4745 * rt/Makefile (clock-routines): Remove get_clockfreq.
4746 * rt/get_clockfreq.c: Remove file.
4747 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
4748 * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
4749 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
4750 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
4751 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
4752
4753 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
4754 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
4755 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
4756 (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
4757 _SC_CPUTIME, and _SC_THREAD_CPUTIME.
4758
4759 * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
4760 pthread_clock_settime.
4761 * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
4762 * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
4763 (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
4764 * elf/rtld.c (_dl_start_final): Likewise.
4765 * nptl/allocatestack.c (__find_thread_by_id): Remove function.
4766 * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
4767 Remove.
4768 * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
4769 (_dl_cpuclock_offset): Remove.
4770 * nptl/descr.h (struct pthread): Rename cpuclock_offset to
4771 cpuclock_offset_ununsed.
4772 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
4773 cpuclock_offset set.
4774 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
4775 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
4776 * nptl/pthread_clock_gettime.c: Remove file.
4777 * nptl/pthread_clock_settime.c: Likewise.
4778 * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
4779 [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
4780 and CLOCK_PROCESS_CPUTIME_ID support.
4781 * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
4782 [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
4783 * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
4784 [HP_TIMING_AVAIL] (__clock_getres): Likewise.
4785 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
4786 Likewise.
4787 (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
4788
4789 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
4790
4791 * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
4792 * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
4793 MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
4794 New defines.
4795 * sysdeps/s390/memmem-arch13.S: New file.
4796 * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
4797 if it is only used as fallback.
4798 * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
4799 * sysdeps/s390/multiarch/ifunc-impl-list.c
4800 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
4801
4802 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
4803
4804 * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
4805 * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
4806 STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
4807 New defines.
4808 * sysdeps/s390/multiarch/ifunc-impl-list.c
4809 (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
4810 * sysdeps/s390/strstr-arch13.S: New file.
4811 * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
4812 if it is only used as fallback.
4813 * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
4814
4815 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
4816
4817 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
4818 HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
4819 * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
4820 * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
4821 ifunc selector.
4822 * sysdeps/s390/multiarch/ifunc-impl-list.c
4823 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
4824 * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
4825 S390_IS_ARCH13_MIE3): New defines.
4826
4827 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
4828
4829 * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
4830 HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
4831 * sysdeps/s390/configure.ac: Add checks for arch13 support.
4832 * sysdeps/s390/configure: Regenerated.
4833
4834 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
4835
4836 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
4837 Add vxe2, vxp, dflt, sort flags.
4838 * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
4839 HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
4840 capabilities.
4841 (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
4842 * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
4843 (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
4844 HWCAP_S390_DFLT): Define.
4845
4846 2019-03-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4847
4848 [BZ #24372]
4849 * iconv/iconvconfig.c (write_output): Add parentheses to get rid
4850 of compiler warning.
4851 * locale/programs/ld-collate.c (collate_output): Likewise.
4852
4853 2019-03-21 DJ Delorie <dj@redhat.com>
4854
4855 [BZ #24372]
4856 * iconv/iconvconfig.c (write_output): Replace floating point math
4857 with integer math to avoid imprecise results.
4858 * locale/programs/ld-collate.c (collate_output): Likewise.
4859
4860 2019-03-21 Stefan Liebler <stli@linux.ibm.com>
4861
4862 * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
4863 Add HWCAP_S390_VX and HWCAP_S390_VXE.
4864
4865 2019-03-20 mansayk <6688000@gmail.com>
4866
4867 [BZ #24296]
4868 * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
4869 (abday): Likewise, but remove the trailing dots.
4870
4871 2019-03-19 Joseph Myers <joseph@codesourcery.com>
4872
4873 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
4874 macro.
4875 (HWCAP_PACA): Likewise.
4876 (HWCAP_PACG): Likewise.
4877 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
4878 Increase to 32.
4879 (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
4880
4881 2019-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
4882
4883 * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
4884 should be handled.
4885
4886 2019-03-15 Joseph Myers <joseph@codesourcery.com>
4887
4888 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
4889 version to 5.0.
4890 (old_getpagesize): New syscall.
4891
4892 2019-03-15 Felix Yan <felixonmars@archlinux.org>
4893
4894 [BZ #24293]
4895 * localedata/locales/zh_TW (era): Add, support Minguo calendar.
4896 * localedata/locales/cmn_TW (era): Likewise.
4897 * localedata/locales/hak_TW (era): Likewise.
4898 * localedata/locales/lzh_TW (era): Likewise.
4899 * localedata/locales/nan_TW (era): Likewise.
4900
4901 2019-03-14 Adam Maris <amaris@redhat.com>
4902
4903 * malloc/malloc.c (_int_malloc): Check for large bin list
4904 corruption when inserting unsorted chunk.
4905
4906 2019-03-14 Florian Weimer <fweimer@redhat.com>
4907
4908 Remove obsolete, never-implemented XSI STREAMS declarations.
4909 * manual/terminal.texi (Allocation): Remove portability note and
4910 adjust example.
4911 * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
4912 _SC_STREAMS.
4913 * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
4914 * sysdeps/unix/inet/Subdirs (streams): Remove.
4915 * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
4916 (conformtest-headers-UNIX98): Likewise.
4917 (conformtest-headers-XOPEN2K): Likewise.
4918 (conformtest-headers-POSIX2008): Likewise.
4919 * posix/compat-streams.c: New file.
4920 * posix/Makefile (routines): Add it.
4921 * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
4922 getpmsg, isastream, putmsg, putpmsg.
4923 (GLIBC_2.30): New section.
4924 * bits/stropts.h: Remove file.
4925 * bits/xtitypes.h: Likewise.
4926 * conform/data/stropts.h-data: Likewise.
4927 * include/stropts.h: Likewise.
4928 * include/sys/stropts.h: Likewise.
4929 * include/xtitypes.h: Likewise.
4930 * streams/Makefile: Likewise.
4931 * streams/fattach.c: Likewise.
4932 * streams/fdetach.c: Likewise.
4933 * streams/getmsg.c: Likewise.
4934 * streams/getpmsg.c: Likewise.
4935 * streams/isastream.c: Likewise.
4936 * streams/putmsg.c: Likewise.
4937 * streams/putpmsg.c: Likewise.
4938 * streams/stropts.h: Likewise.
4939 * streams/sys/stropts.h: Likewise.
4940 * sysdeps/ia64/bits/xtitypes.h: Likewise.
4941 * sysdeps/s390/bits/xtitypes.h: Likewise.
4942 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
4943 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
4944 * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
4945 * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
4946 * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
4947 * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
4948 * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
4949 * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
4950 * sysdeps/x86/bits/xtitypes.h: Likewise.
4951
4952 2019-03-14 Florian Weimer <fweimer@redhat.com>
4953
4954 * nss/tst-nss-files-alias-truncated.c (do_test): Load
4955 libnss_files.
4956 * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
4957 but not with libnss_files.
4958 (tst-nss-files-alias-truncated.out): Depend on libnss_files.
4959
4960 2019-03-14 Zack Weinberg <zackw@panix.com>
4961
4962 * scripts/check-obsolete-constructs.py (HeaderChecker.check):
4963 Specify encoding="utf-8" when opening headers to check.
4964
4965 2019-03-13 Joseph Myers <joseph@codesourcery.com>
4966
4967 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
4968 version to 5.0.
4969 (Context.checkout_tar): Handle variable major version for Linux
4970 kernel.
4971
4972 2019-03-13 Florian Weimer <fweimer@redhat.com>
4973
4974 [BZ #24047]
4975 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
4976
4977 2019-03-13 Zack Weinberg <zackw@panix.com>
4978
4979 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
4980 Move to stdlib.
4981 * include/inttypes.h: Adjust to match.
4982 * include/stdint.h: New wrapper.
4983
4984 2019-03-13 Zack Weinberg <zackw@panix.com>
4985
4986 * scripts/check-obsolete-constructs.py: New test script.
4987 * scripts/check-installed-headers.sh: Remove tests for
4988 obsolete typedefs, superseded by check-obsolete-constructs.py.
4989 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
4990 as a special test. Update commentary.
4991 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
4992 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
4993 Update commentary.
4994 * posix/sys/types.h (__u_intN_t): Remove.
4995 (u_int8_t): Typedef using __uint8_t.
4996 (u_int16_t): Typedef using __uint16_t.
4997 (u_int32_t): Typedef using __uint32_t.
4998 (u_int64_t): Typedef using __uint64_t.
4999
5000 2019-03-13 Stefan Liebler <stli@linux.ibm.com>
5001
5002 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
5003 call _dl_procinfo.
5004 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
5005 Ignore types other than AT_HWCAP.
5006 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
5007 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
5008 Likewise.
5009 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
5010 in the case of falling back to generic output mechanism.
5011 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
5012 Likewise.
5013
5014 2019-03-12 Florian Weimer <fweimer@redhat.com>
5015
5016 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
5017
5018 2019-03-12 Florian Weimer <fweimer@redhat.com>
5019
5020 [BZ #24047]
5021 resolv: Enable full ICMP errors for UDP DNS sockets
5022 * resolv/res_enable_icmp.c: New file.
5023 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
5024 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
5025 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
5026 socket.
5027
5028 2019-03-11 Mao Han <han_mao@c-sky.com>
5029
5030 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
5031 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
5032
5033 2019-03-11 Mao Han <han_mao@c-sky.com>
5034
5035 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
5036 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
5037 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
5038
5039 2019-03-11 Mao Han <han_mao@c-sky.com>
5040
5041 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
5042 directly.
5043 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
5044 definition.
5045
5046 2019-03-11 Mao Han <han_mao@c-sky.com>
5047
5048 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
5049 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
5050 in mcontext_t
5051
5052 2019-03-08 Mike FABIAN <mfabian@redhat.com>
5053
5054 [BZ #24307]
5055 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
5056 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
5057 Unicode 12.0.0.
5058 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
5059 * localedata/unicode-gen/PropList.txt: Likewise.
5060 * localedata/unicode-gen/UnicodeData.txt: Likewise.
5061 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
5062 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
5063 * localedata/charmaps/UTF-8: Regenerate.
5064 * localedata/locales/i18n_ctype: Likewise.
5065 * localedata/locales/tr_TR: Likewise.
5066 * localedata/locales/translit_circle: Likewise.
5067 * localedata/locales/translit_cjk_compat: Likewise.
5068 * localedata/locales/translit_combining: Likewise.
5069 * localedata/locales/translit_compat: Likewise.
5070 * localedata/locales/translit_font: Likewise.
5071 * localedata/locales/translit_fraction: Likewise.
5072
5073 2019-03-07 Joseph Myers <joseph@codesourcery.com>
5074
5075 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
5076 than after operators.
5077 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
5078 (setitimer_locked): Likewise.
5079 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
5080 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
5081 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
5082 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
5083 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
5084 (PPC_CPU_SUPPORTED): Likewise.
5085 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
5086 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
5087 (stat_overflow): Likewise.
5088 (statfs_overflow): Likewise.
5089 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
5090 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
5091 (eq_ttyname_r): Likewise.
5092 (run_chroot_tests): Likewise.
5093
5094 2019-03-07 Florian Weimer <fweimer@redhat.com>
5095
5096 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
5097 header check.
5098
5099 2019-03-07 Martin Liska <mliska@suse.cz>
5100
5101 * math/Makefile: Change location where math-vector-fortran.h is
5102 installed.
5103 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
5104 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
5105 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
5106 * scripts/check-installed-headers.sh: Skip Fortran header files.
5107 * scripts/check-wrapper-headers.py: Likewise.
5108
5109 2019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5110
5111 * nptl/nptl-init.c (__have_futex_clock_realtime,
5112 __have_futex_clock_realtime): Remove definition.
5113 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
5114 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
5115 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
5116 __ASSUME_FUTEX_CLOCK_REALTIME support.
5117 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
5118 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
5119 * sysdeps/unix/sysv/linux/kernel-features.h
5120 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
5121 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
5122 Adjust comment.
5123
5124 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5125
5126 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
5127 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
5128 __GI___wcscpy and wcscpy.
5129
5130 2019-03-04 Florian Weimer <fweimer@redhat.com>
5131
5132 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
5133 declaration.
5134 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
5135 defined.
5136
5137 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
5138
5139 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
5140 * sysdeps/s390/s390-32/sysdep.h: Likewise.
5141
5142 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
5143
5144 [BZ #24162]
5145 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
5146 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
5147
5148 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5149
5150 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
5151 tests.
5152 (do_test): Likewise.
5153 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
5154 (do_test_call_varg): Likewise.
5155 (do_test_call_rarg): Likewise.
5156 * sysdeps/ieee754/ldbl-opt/Makefile
5157 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
5158 tst-nldbl-error.
5159 ($(objpfx)tst-nldbl-warn.c): New rule.
5160 ($(objpfx)tst-nldbl-error.c): Likewise.
5161 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
5162 New variables.
5163
5164 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5165
5166 [BZ #23984]
5167 * include/bits/error-ldbl.h: New file.
5168 * include/error.h: Include stdarg.h. Declare internal functions
5169 __error_internal and __error_at_line_internal.
5170 * misc/Makefile (headers): Add bits/error-ldbl.h.
5171 * misc/bits/error-ldbl.h: New file.
5172 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
5173 avoid the inclusion of bits/error.h.
5174 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
5175 and __nldbl_error_at_line.
5176 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
5177 (__nldbl_error, __ndlbl_error_at_line): New functions.
5178 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
5179 Redirect error and error_at_line.
5180 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
5181 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5182 Likewise.
5183 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5184 Likewise.
5185 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5186 Likewise.
5187 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
5188 Likewise.
5189 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5190 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5191 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5192
5193 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5194
5195 [BZ #23984]
5196 * include/bits/err-ldbl.h: New file.
5197 * include/err.h: Add prototypes for the internal functions:
5198 __vwarnx_internal and __vwarn_internal.
5199 * misc/Makefile (headers): Add bits/err-ldbl.h.
5200 * misc/bits/err-ldbl.h: New file.
5201 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
5202 defined, i.e.: when -mlong-double-64 is in use.
5203 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
5204 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
5205 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
5206 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
5207 (VA_CALL): New macro.
5208 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
5209 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
5210 functions.
5211 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
5212 declare prototypes for the new functions.
5213 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
5214 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5215 Likewise.
5216 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5217 Likewise.
5218 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5219 Likewise.
5220 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
5221 Likewise.
5222 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5223 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5224 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5225
5226 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5227
5228 * sysdeps/ieee754/ldbl-opt/Makefile
5229 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
5230 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
5231 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
5232
5233 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5234
5235 [BZ #23983]
5236 * argp/Makefile (headers): Add bits/argp-ldbl.h.
5237 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
5238 * argp/bits/argp-ldbl.h: New file.
5239 * include/argp.h: Include stdarg.h. Add prototypes for internal
5240 functions: __argp_error_internal and __argp_failure_internal.
5241 * include/bits/argp-ldbl.h: New file.
5242 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
5243 __nldbl_argp_error and __nldbl_argp_failure.
5244 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
5245 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
5246 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
5247 Redirect argp_error and argp_failure calls.
5248 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
5249 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5250 Likewise.
5251 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5252 Likewise.
5253 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5254 Likewise.
5255 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
5256 Likewise.
5257 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5258 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5259 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5260
5261 2019-03-01 Florian Weimer <fweimer@redhat.com>
5262
5263 [BZ #20419]
5264 * elf/tst-big-note-lib.S: Create a syntactically valid note.
5265 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
5266 code, to avoid creating an ABI tag note.
5267 (modules-names-nobuild): Add tst-big-note-lib.
5268
5269 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
5270
5271 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
5272 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
5273
5274 2019-03-01 Florian Weimer <fweimer@redhat.com>
5275
5276 [BZ #20271]
5277 * sysdeps/unix/sysv/linux/netlink_assert_response.c
5278 (__netlink_assert_response): Add additional missing newlines.
5279
5280 2019-02-28 Joseph Myers <joseph@codesourcery.com>
5281
5282 * sysdeps/powerpc/powerpc32/dl-machine.c
5283 (__elf_machine_fixup_plt): Use space before '('.
5284 (__process_machine_rela): Likewise.
5285 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
5286 Likewise.
5287 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
5288 Likewise.
5289 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
5290 Likewise.
5291 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
5292 (pattern): Likewise.
5293 (delta): Likewise.
5294 (check_result): Likewise.
5295 (check_excepts): Likewise.
5296 (check_op): Likewise.
5297 (fail_xr): Likewise.
5298 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
5299 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
5300 (SCNHSZ): Likewise.
5301 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
5302 Likewise.
5303 (ARGS): Likewise.
5304 (__makecontext): Likewise.
5305 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
5306 Likewise.
5307
5308 2019-02-28 Florian Weimer <fweimer@redhat.com>
5309
5310 [BZ #23937]
5311 elf: Add test with a local IFUNC resolver.
5312 * elf/ifuncmain9.c: New file.
5313 * elf/ifuncmain9pic.c: Likewise.
5314 * elf/ifuncmain9picstatic.c: Likewise.
5315 * elf/ifuncmain9pie.c: Likewise.
5316 * elf/ifuncmain9static.c: Likewise.
5317 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
5318 ifuncmain9static, ifuncmain9picstatic.
5319 * elf/Makefile [multi-arch && build-shared] (tests-internal):
5320 Add ifuncmain9, ifuncmain9pic.
5321 * elf/Makefile [multi-arch && build-shared && have-fpie]
5322 (ifunc-pie-tests): Add ifuncmain9pie.
5323 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
5324 (CFLAGS-ifuncmain9picstatic.c): Likewise.
5325 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
5326
5327 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
5328
5329 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
5330 * configure: Regenerated.
5331 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
5332
5333 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5334
5335 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
5336 symbol as __wcspcy instead of wcscpy.
5337
5338 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
5339
5340 * include/stdio.h (__renameat2): New hidden prototype.
5341 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
5342 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
5343 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
5344 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
5345
5346 2019-02-27 Joseph Myers <joseph@codesourcery.com>
5347
5348 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
5349 if statement.
5350
5351 * benchtests/bench-strcpy.c (do_test): Use space before '('.
5352 * benchtests/bench-string.h (cmdline_process_function): Likewise.
5353 * benchtests/bench-strlen.c (do_test): Likewise.
5354 (test_main): Likewise.
5355 * catgets/gencat.c (read_old): Likewise.
5356 * elf/cache.c (load_aux_cache): Likewise.
5357 * iconvdata/bug-iconv8.c (do_test): Likewise.
5358 * math/test-tgmath-ret.c (do_test): Likewise.
5359 * nis/nis_call.c (rec_dirsearch): Likewise.
5360 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
5361 * nptl/tst-audit-threads.c (do_test): Likewise.
5362 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
5363 * nss/nss_test1.c (init): Likewise.
5364 * nss/test-netdb.c (test_hosts): Likewise.
5365 * posix/execvpe.c (maybe_script_execute): Likewise.
5366 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
5367 * stdio-common/tst-printf.c (do_test): Likewise.
5368 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
5369 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
5370 * stdlib/qsort.c (STACK_SIZE): Likewise.
5371 * stdlib/test-canon.c (do_test): Likewise.
5372 * stdlib/tst-swapcontext1.c (do_test): Likewise.
5373 * string/memcmp.c (OPSIZ): Likewise.
5374 * string/test-strcpy.c (do_test): Likewise.
5375 (do_random_tests): Likewise.
5376 * string/test-strlen.c (do_test): Likewise.
5377 (test_main): Likewise.
5378 * string/test-strrchr.c (do_test): Likewise.
5379 (do_random_tests): Likewise.
5380 * string/tester.c (test_memrchr): Likewise.
5381 (test_memchr): Likewise.
5382 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
5383 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
5384 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
5385 (read_encoded_value_with_base): Likewise.
5386 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
5387 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
5388 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
5389 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
5390 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
5391 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
5392 Likewise.
5393 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
5394 Likewise.
5395 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
5396 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
5397 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
5398 Likewise.
5399 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
5400 Likewise.
5401 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
5402 Likewise.
5403 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
5404 Likewise.
5405 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
5406 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
5407 (FP_XSTATE_MAGIC2_SIZE): Likewise.
5408 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
5409 * time/test_time.c (main): Likewise.
5410
5411 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5412
5413 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
5414
5415 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
5416 wmemcpy.
5417
5418 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
5419 wmemcpy.
5420
5421 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
5422
5423 * include/wchar.h (__wcscpy): New prototype.
5424 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
5425 (__wcscpy): Route internal symbol to generic implementation.
5426 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
5427 Add internal __wcscpy alias.
5428 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
5429 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
5430 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
5431 * wcsmbs/wcscpy.c (wcscpy): Add
5432 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
5433 use generic implementation.
5434 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
5435
5436 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
5437 wmemset.
5438
5439 * sysdeps/m68k/wcpcpy.c: Remove file.
5440 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
5441
5442 2019-02-26 Joseph Myers <joseph@codesourcery.com>
5443
5444 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
5445 than after operators.
5446 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
5447 * sysdeps/mach/hurd/getcwd.c
5448 (__hurd_canonicalize_directory_name_internal): Likewise.
5449 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
5450 (pthread_mutex_consistent): Likewise.
5451 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
5452 Likewise.
5453 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
5454 (__pthread_mutex_transfer_np): Likewise.
5455 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
5456 (__pthread_mutex_unlock): Likewise.
5457 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
5458 (mtx_owned_p): Likewise.
5459 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
5460 (pthread_mutexattr_getrobust): Likewise.
5461 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
5462 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
5463 Likewise.
5464 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
5465 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
5466 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
5467 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
5468 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
5469 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
5470 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
5471 Likewise.
5472 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
5473 Likewise.
5474 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
5475 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
5476 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
5477 (____longjmp_chk): Likewise.
5478 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
5479 Likewise.
5480 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
5481 (INTERNAL_SYSCALL): Likewise.
5482 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
5483 (INTERNAL_SYSCALL): Likewise.
5484 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
5485 (__get_clockfreq_via_cpuinfo): Likewise.
5486
5487 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
5488 comments.
5489 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
5490 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
5491 (WORD_COPY_BWD): Likewise.
5492 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
5493 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
5494 Likewise.
5495 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
5496 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
5497 comment.
5498 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
5499
5500 2019-02-25 Joseph Myers <joseph@codesourcery.com>
5501
5502 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
5503 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
5504 rather than after operators.
5505 * elf/cache.c (print_cache): Likewise.
5506 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
5507 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
5508 * hurd/hurdinit.c (_hurd_setproc): Likewise.
5509 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
5510 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
5511 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
5512 (reauth_proc): Likewise.
5513 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
5514 (__file_name_split_at): Likewise.
5515 (__directory_name_split_at): Likewise.
5516 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
5517 * hurd/port2fd.c (_hurd_port2fd): Likewise.
5518 * iconv/gconv_dl.c (do_print): Likewise.
5519 * inet/netinet/in.h (struct sockaddr_in): Likewise.
5520 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
5521 * locale/setlocale.c (new_composite_name): Likewise.
5522 * malloc/memusagestat.c (main): Likewise.
5523 * misc/fstab.c (fstab_convert): Likewise.
5524 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
5525 Likewise.
5526 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
5527 (getgrent_next_file): Likewise.
5528 (internal_getgrnam_r): Likewise.
5529 (internal_getgrgid_r): Likewise.
5530 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
5531 Likewise.
5532 (internal_getgrent_r): Likewise.
5533 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
5534 (getpwent_next_nss): Likewise.
5535 (getpwent_next_file): Likewise.
5536 (internal_getpwnam_r): Likewise.
5537 (internal_getpwuid_r): Likewise.
5538 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
5539 Likewise.
5540 (getspent_next_nss): Likewise.
5541 (internal_getspnam_r): Likewise.
5542 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
5543 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
5544 * string/strchr.c (STRCHR): Likewise.
5545 * string/strchrnul.c (STRCHRNUL): Likewise.
5546 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
5547 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
5548 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
5549 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
5550 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
5551 Likewise.
5552 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
5553 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
5554 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
5555 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
5556 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
5557 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
5558 (open_file): Likewise.
5559 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
5560 (pthread_mutexattr_setprotocol): Likewise.
5561 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
5562 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
5563 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
5564 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
5565 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
5566 Likewise.
5567 (elf_machine_rela): Likewise.
5568 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
5569 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
5570 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
5571 * sysdeps/posix/rename.c (rename): Likewise.
5572 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
5573 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
5574 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
5575 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
5576 * sysdeps/unix/grantpt.c (grantpt): Likewise.
5577 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
5578 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
5579 Likewise.
5580 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
5581 Likewise.
5582 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
5583 * time/tzfile.c (__tzfile_compute): Likewise.
5584
5585 2019-02-22 Joseph Myers <joseph@codesourcery.com>
5586
5587 * benchtests/bench-memmem.c (simple_memmem): Break lines before
5588 rather than after operators.
5589 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
5590 * crypt/md5.c (md5_finish_ctx): Likewise.
5591 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
5592 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
5593 * elf/cache.c (load_aux_cache): Likewise.
5594 * elf/dl-load.c (open_verify): Likewise.
5595 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
5596 * elf/readelflib.c (process_elf_file): Likewise.
5597 * elf/rtld.c (dl_main): Likewise.
5598 * elf/sprof.c (generate_call_graph): Likewise.
5599 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
5600 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
5601 * hurd/dtable.c (reauth_dtable): Likewise.
5602 * hurd/getdport.c (__getdport): Likewise.
5603 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
5604 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
5605 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
5606 Likewise.
5607 * hurd/hurdioctl.c (fioctl): Likewise.
5608 * hurd/hurdselect.c (_hurd_select): Likewise.
5609 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
5610 (STOPSIGS): Likewise.
5611 * hurd/hurdstartup.c (_hurd_startup): Likewise.
5612 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
5613 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
5614 * hurd/msgportdemux.c (msgport_server): Likewise.
5615 * hurd/setauth.c (_hurd_setauth): Likewise.
5616 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
5617 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
5618 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
5619 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
5620 * login/tst-utmp.c (do_check): Likewise.
5621 (simulate_login): Likewise.
5622 * mach/lowlevellock.h (lll_lock): Likewise.
5623 (lll_trylock): Likewise.
5624 * math/test-fenv.c (ALL_EXC): Likewise.
5625 * math/test-fenvinline.c (ALL_EXC): Likewise.
5626 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
5627 * nis/nis_call.c (__do_niscall3): Likewise.
5628 * nis/nis_callback.c (cb_prog_1): Likewise.
5629 * nis/nis_defaults.c (searchaccess): Likewise.
5630 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
5631 * nis/nis_ismember.c (internal_ismember): Likewise.
5632 * nis/nis_local_names.c (nis_local_principal): Likewise.
5633 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
5634 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
5635 Likewise.
5636 * nis/ypclnt.c (yp_match): Likewise.
5637 (yp_first): Likewise.
5638 (yp_next): Likewise.
5639 (yp_master): Likewise.
5640 (yp_order): Likewise.
5641 * nscd/hstcache.c (cache_addhst): Likewise.
5642 * nscd/initgrcache.c (addinitgroupsX): Likewise.
5643 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
5644 (internal_getpwuid_r): Likewise.
5645 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
5646 * posix/glob.h (__GLOB_FLAGS): Likewise.
5647 * posix/regcomp.c (peek_token): Likewise.
5648 (peek_token_bracket): Likewise.
5649 (parse_expression): Likewise.
5650 * posix/regexec.c (sift_states_iter_mb): Likewise.
5651 (check_node_accept_bytes): Likewise.
5652 * posix/tst-spawn3.c (do_test): Likewise.
5653 * posix/wordexp-test.c (testit): Likewise.
5654 * posix/wordexp.c (parse_tilde): Likewise.
5655 (exec_comm): Likewise.
5656 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
5657 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
5658 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
5659 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
5660 * stdio-common/tst-fileno.c (do_test): Likewise.
5661 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
5662 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
5663 * stdlib/strtod_l.c (round_and_return): Likewise.
5664 (____STRTOF_INTERNAL): Likewise.
5665 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
5666 * string/strcspn.c (STRCSPN): Likewise.
5667 * string/test-memmem.c (simple_memmem): Likewise.
5668 * termios/tcsetattr.c (tcsetattr): Likewise.
5669 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
5670 * time/asctime.c (asctime_internal): Likewise.
5671 * time/strptime_l.c (__strptime_internal): Likewise.
5672 * time/sys/time.h (timercmp): Likewise.
5673 * time/tzfile.c (__tzfile_compute): Likewise.
5674
5675 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
5676
5677 [BZ #21915]
5678 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
5679
5680 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5681
5682 * argp/argp-help.c (__argp_error_internal): New function,
5683 renamed from __argp_error, but that takes a 'mode_flags'
5684 parameter to control the format of long double parameters.
5685 (__argp_error): Converted into a call __argp_error_internal.
5686 (__argp_failure_internal): New function, renamed from
5687 __argp_failure, but that takes a 'mode_flags' parameter.
5688 (__argp_failure): Converted into a call __argp_failure_internal.
5689 * misc/err.c (__vwarnx_internal): New function, renamed from
5690 vwarnx, but that takes a 'mode_flags' parameter.
5691 (vwarnx): Converted into a call to __vwarnx_internal.
5692 (__vwarn_internal): New function, renamed from vwarn, but that
5693 takes a 'mode_flags' parameter.
5694 (vwarn): Converted into a call to __vwarn_internal.
5695 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
5696 call to __vfxprintf with 'mode_flags'.
5697 (__error_internal): New function, renamed from error, but that
5698 takes a 'mode_flags' parameter.
5699 (error): Converted into a call to __error_internal.
5700 (__error_at_line_internal): New function, renamed from
5701 error_at_line, but that takes a 'mode_flags' parameter.
5702 (error_at_line): Converted into a call to
5703 __error_at_line_internal.
5704 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
5705 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
5706 Likewise.
5707
5708 2019-02-20 Martin Liska <mliska@suse.cz>
5709
5710 * math/Makefile: Install math-vector-fortran.h.
5711 * bits/math-vector-fortran.h: New file.
5712 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
5713
5714 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5715
5716 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
5717 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
5718
5719 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
5720
5721 * nptl/pthread_mutex_trylock.c: Fix comment.
5722
5723 2019-02-19 Carlos O'Donell <carlos@redhat.com>
5724
5725 * nptl/pthread_tryjoin.c: Fix comment.
5726
5727 2019-02-18 Joseph Myers <joseph@codesourcery.com>
5728
5729 [BZ #24231]
5730 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
5731 after R_SPARC_H34 case.
5732
5733 2019-02-18 Florian Weimer <fweimer@redhat.com>
5734
5735 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
5736 (getanswer): Do not call Dprintf.
5737 (res_gethostbyname2_context): Likewise.
5738 (res_gethostbyaddr_context): Likewise.
5739
5740 2019-02-18 Florian Weimer <fweimer@redhat.com>
5741
5742 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
5743 declaration.
5744 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
5745 Remove definitions.
5746 * libio/stdfiles.c: Update comment.
5747 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
5748 set _IO_stdin, _IO_stdout, _IO_stderr.
5749 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
5750 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
5751 inline function.
5752 (_IO_deallocate_file): New inline function.
5753 * libio/iolibio.h (_IO_vprintf): Remove definition.
5754 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
5755 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
5756 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
5757 _IO_legacy_file.
5758 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
5759 __builtin_expect. Use _IO_legacy_file.
5760
5761 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
5762
5763 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
5764 Initialize ctid with a known value and remove update of ctid
5765 after clone.
5766 (wait_tid): Adjust arguments and call futex_wait with ctid_val
5767 as assumed current value of ctid_ptr.
5768
5769 2019-02-16 Florian Weimer <fweimer@redhat.com>
5770
5771 Check that non-sysdeps headers have wrapper headers.
5772 * scripts/check-wrapper-headers.py: New file.
5773 * Makefile (tests-special): Add check-wrapper-headers.out.
5774 (check-wrapper-headers.out): New target.
5775 * Rules (tests-special): Add check-wrapper-headers.out.
5776 (check-wrapper-headers.out): New target.
5777
5778 2019-02-16 Florian Weimer <fweimer@redhat.com>
5779
5780 Add missing header wrappers under include/.
5781 * include/ar.h: New file.
5782 * include/bits/mqueue2.h: Likewise.
5783 * include/bits/stdio.h: Likewise.
5784 * include/bits/stdio2.h: Likewise.
5785 * include/fstab.h: Likewise.
5786 * include/fts.h: Likewise.
5787 * include/lastlog.h: Likewise.
5788 * include/netinet/icmp6.h: Likewise.
5789 * include/netinet/igmp.h: Likewise.
5790 * include/netinet/ip6.h: Likewise.
5791 * include/re_comp.h: Likewise.
5792 * include/regexp.h: Likewise.
5793 * include/rpcsvc/bootparam.h: Likewise.
5794 * include/rpcsvc/yp_prot.h: Likewise.
5795 * include/sys/random.h: Likewise.
5796 * include/sys/stropts.h: Likewise.
5797 * include/sys/ttychars.h: Likewise.
5798 * include/sys/vfs.h: Likewise.
5799 * include/wait.h: Likewise.
5800
5801 2019-02-16 Florian Weimer <fweimer@redhat.com>
5802
5803 * nptl_db/proc_service.h: Move to ...
5804 * sysdeps/nptl/proc_service.h: ... here.
5805 * nptl_db/thread_db.h: Move to ...
5806 * sysdeps/nptl/thread_db.h: ... here.
5807 * nptl/descr.h: Include <thread_db.h>.
5808
5809 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5810
5811 * io/Makefile (tests): Add tst-lockf.
5812 * io/lockf.c (lockf): Use __fcntl and only define for
5813 !__OFF_T_MATCHES_OFF64_T.
5814 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
5815 __OFF_T_MATCHES_OFF64_T case.
5816 * io/tst-lockf.c: New file.
5817 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
5818 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
5819 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
5820 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
5821 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
5822 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
5823 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
5824 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
5825 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
5826
5827 2019-02-15 Florian Weimer <fweimer@redhat.com>
5828
5829 [BZ #24211]
5830 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
5831 pd->result after the thread descriptor has been freed.
5832
5833 2019-02-15 Joseph Myers <joseph@codesourcery.com>
5834
5835 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
5836 from function return type.
5837
5838 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
5839
5840 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5841
5842 * scripts/test_printers_common.py: Set TERM to a known harmless
5843 value.
5844
5845 2019-02-14 Joseph Myers <joseph@codesourcery.com>
5846
5847 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
5848 (xdr_u_int): Likewise.
5849 (xdr_enum): Likewise.
5850 (xdr_bytes): Reword fall-through comment.
5851 (xdr_string): Likewise.
5852
5853 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5854
5855 [BZ #2421]
5856 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
5857 (tests): Add tst-join8 tst-join9.
5858 * nptl/lll_timedwait_tid.c: Remove file.
5859 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
5860 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
5861 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
5862 * nptl/pthread_join_common.c (timedwait_tid): New function.
5863 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
5864 is set.
5865 * nptl/tst-join5.c (thread_join): New function.
5866 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
5867 check.
5868 * nptl/tst-join8.c: New file.
5869 * nptl/tst-join9.c: Likewise.
5870 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
5871 lll_futex_timed_wait_cancel): Add generic macros.
5872 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
5873 Remove definitions.
5874 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
5875 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
5876 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
5877 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
5878 Remove function.
5879 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
5880 Likewise.
5881 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
5882 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
5883 (lll_futex_timed_wait_cancel): New macro.
5884
5885 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
5886
5887 * benchtests/Makefile: Add malloc-simple benchmark.
5888 * benchtests/bench-malloc-simple.c: New benchmark.
5889
5890 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
5891
5892 * benchtests/bench-memmove.c (do_one_test): Remove unused
5893 ORIG_SRC.
5894 (do_test): Adjust.
5895 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
5896 ORIG_SRC.
5897 (do_test): Adjust.
5898
5899 2019-01-13 Jim Wilson <jimw@sifive.com>
5900
5901 [BZ #24040]
5902 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
5903 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
5904 (func): New.
5905 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
5906 call func directly.
5907 * nptl/Makefile (tests): Add tst-unwind-thread.
5908 (CFLAGS-tst-unwind-thread.c): Define.
5909 * nptl/tst-unwind-thread.c: New file.
5910 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
5911 as undefined.
5912
5913 2019-02-13 Joseph Myers <joseph@codesourcery.com>
5914
5915 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
5916 comment wording.
5917 * nis/nis_call.c (__do_niscall3): Likewise.
5918
5919 * catgets/gencat.c (normalize_line): Use braces around empty
5920 'else' body.
5921 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
5922 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
5923 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
5924 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
5925 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
5926 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
5927 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
5928 definition.
5929
5930 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
5931 execlp returns.
5932
5933 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
5934
5935 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
5936 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
5937 * benchtests/bench-strchr.c (stupid_strchr): Remove.
5938 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
5939 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
5940 * benchtests/bench-strlen.c (builtin_strlen): Remove.
5941 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
5942 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
5943 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
5944 * benchtests/bench-strspn.c (stupid_strspn): Remove.
5945 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
5946 * benchtests/bench-bcopy.c: Delete file.
5947 * benchtests/bench-bzero.c: Likewise.
5948 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
5949 (simple_memccpy): Remove.
5950 (generic_memccpy): Add function.
5951 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
5952 * benchtests/bench-memmove.c (simple_bcopy): Remove.
5953 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
5954 (generic_mempcpy): Add new function.
5955 * benchtests/bench-memset.c (simple_bzero): Remove.
5956 (builtin_bzero): Remove.
5957 (builtin_memset): Remove.
5958 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
5959 (generic_rawmemchr): Add new function.
5960
5961 2019-02-12 Florian Weimer <fweimer@redhat.com>
5962
5963 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
5964
5965 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5966
5967 [BZ #24122]
5968 * elf/Makefile (tests): Add tst-audit13.
5969 (modules-names): Add tst-audit13mod1.
5970 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
5971 rule.
5972 * elf/tst-audit13.c: New file.
5973 * elf/tst-audit13mod1.c: Likewise.
5974
5975 2019-02-12 Florian Weimer <fweimer@redhat.com>
5976
5977 [BZ #24122]
5978 * elf/rtld.c (unload_audit_module): New function.
5979 (report_audit_module_load_error): Likewise.
5980 (load_audit_module): Likewise. Extracted from dl_main. Call
5981 _dl_close if the laversion symbol cannot be found. Use early
5982 returns for error handling. Add malloc error check. Check for a
5983 zero return value from la_version. Remove spurious comment about
5984 static TLS initialization. Remove useless casts.
5985 (notify_audit_modules_of_loaded_object): New function. Extracted
5986 from dl_main.
5987 (load_audit_module): Likewise.
5988 (dl_main): Call load_audit_modules.
5989
5990 2019-02-12 Joseph Myers <joseph@codesourcery.com>
5991
5992 * elf/dl-exception.c (_dl_exception_create_format): Add
5993 fall-through comments.
5994 * elf/ldconfig.c (parse_conf_include): Likewise.
5995 * elf/rtld.c (print_statistics): Likewise.
5996 * locale/programs/charmap.c (parse_charmap): Likewise.
5997 * misc/mntent_r.c (__getmntent_r): Likewise.
5998 * posix/wordexp.c (parse_arith): Likewise.
5999 (parse_backtick): Likewise.
6000 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
6001 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
6002 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
6003
6004 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
6005
6006 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
6007 Use float instead of double.
6008
6009 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
6010
6011 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
6012
6013 2019-02-08 Joseph Myers <joseph@codesourcery.com>
6014
6015 * sysdeps/powerpc/bits/mathinline.h: Remove.
6016
6017 2019-02-08 Florian Weimer <fweimer@redhat.com>
6018
6019 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
6020 * math/bits/math-finite.h: Move to ...
6021 * bits/math-finite.h: ... here.
6022
6023 2019-02-08 Florian Weimer <fweimer@redhat.com>
6024
6025 * sysdeps/generic/bits/unistd_ext.h: Move to ...
6026 * bits/unistd_ext.h: here.
6027
6028 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
6029
6030 [BZ #21915]
6031 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
6032 * nss/tst-nss-files-hosts-long.c: New file.
6033 * nss/tst-nss-files-hosts-long.root: New directory.
6034 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
6035 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
6036
6037 2019-02-08 Florian Weimer <fweimer@redhat.com>
6038
6039 * include/bits/unistd_ext.h: Remove file.
6040 * posix/bits/unistd_ext.h: Move to ...
6041 * sysdeps/generic/bits/unistd_ext.h: ... here.
6042
6043 2019-02-08 Florian Weimer <fweimer@redhat.com>
6044
6045 * include/bits/unistd_ext.h: New file.
6046
6047 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
6048
6049 * time/tst-strftime2.c: Use array_length macros instead of magic
6050 numbers.
6051
6052 2019-02-08 Florian Weimer <fweimer@redhat.com>
6053
6054 [BZ #24161]
6055 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
6056 argument.
6057 * nptl/register-atfork.c (__run_fork_handlers): Only perform
6058 locking if the new do_locking argument is true.
6059 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
6060 __run_fork_handlers.
6061
6062 2019-02-08 Florian Weimer <fweimer@redhat.com>
6063
6064 [BZ #6399]
6065 Linux: Add gettid system call wrapper.
6066 * posix/Makefile (headers): Add bits/unistd_ext.h.
6067 * posix/bits/unistd_ext.h: New file.
6068 * posix/unistd.h: Include it.
6069 * manual/process.texi (Process Identification): Document gettid.
6070 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
6071 tst-gettid, tst-gettid-kill.
6072 (tst-gettid): Link with $(shared-thread-library).
6073 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
6074 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
6075 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
6076 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
6077 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
6078 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
6079 Add gettid.
6080 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
6081 Likewise.
6082 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
6083 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
6084 Likewise.
6085 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
6086 Likewise.
6087 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
6088 Likewise.
6089 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
6090 Likewise.
6091 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
6092 Likewise.
6093 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
6094 Likewise.
6095 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
6096 Likewise.
6097 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
6098 (GLIBC_2.30): Likewise.
6099 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
6100 (GLIBC_2.30): Likewise.
6101 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
6102 (GLIBC_2.30): Likewise.
6103 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
6104 (GLIBC_2.30): Likewise.
6105 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
6106 Likewise.
6107 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
6108 (GLIBC_2.30): Likewise.
6109 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
6110 (GLIBC_2.30): Likewise.
6111 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
6112 (GLIBC_2.30): Likewise.
6113 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
6114 (GLIBC_2.30): Likewise.
6115 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
6116 Likewise.
6117 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
6118 Likewise.
6119 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
6120 Likewise.
6121 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
6122 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
6123 Likewise.
6124 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
6125 Likewise.
6126 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
6127 Likewise.
6128 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
6129 Likewise.
6130 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
6131
6132 2019-02-08 Florian Weimer <fweimer@redhat.com>
6133
6134 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
6135 compatibility symbols.
6136
6137 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
6138
6139 [BZ #24180]
6140 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
6141 Add compiler barriers and comments.
6142
6143 2019-02-07 Florian Weimer <fweimer@redhat.com>
6144
6145 * include/array_length.h (array_length): Do not use a statement
6146 expression and _Static_assert, so that array_length can be used at
6147 file scope and as a constant expression.
6148
6149 2019-02-07 Florian Weimer <fweimer@redhat.com>
6150
6151 * support/xdlfcn.h (xdlmopen): Declare.
6152 * support/xdlmopen.c: New file.
6153 * support/Makefile (libsupport-routines): Add xdlmopen.
6154
6155 2019-02-06 Joseph Myers <joseph@codesourcery.com>
6156
6157 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
6158 before return type, without separate inline.
6159 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
6160 * elf/dl-tunables.h (tunable_is_name): Likewise.
6161 * malloc/malloc.c (do_set_trim_threshold): Likewise.
6162 (do_set_top_pad): Likewise.
6163 (do_set_mmap_threshold): Likewise.
6164 (do_set_mmaps_max): Likewise.
6165 (do_set_mallopt_check): Likewise.
6166 (do_set_perturb_byte): Likewise.
6167 (do_set_arena_test): Likewise.
6168 (do_set_arena_max): Likewise.
6169 (do_set_tcache_max): Likewise.
6170 (do_set_tcache_count): Likewise.
6171 (do_set_tcache_unsorted_limit): Likewise.
6172 * nis/nis_subr.c (count_dots): Likewise.
6173 * nptl/allocatestack.c (advise_stack_range): Likewise.
6174 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
6175 (do_sin): Likewise.
6176 (reduce_sincos): Likewise.
6177 (do_sincos): Likewise.
6178 * sysdeps/unix/sysv/linux/x86/elision-conf.c
6179 (do_set_elision_enable): Likewise.
6180 (TUNABLE_CALLBACK_FNDECL): Likewise.
6181
6182 2019-02-06 Florian Weimer <fweimer@redhat.com>
6183
6184 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
6185 (xdlsym): Use dlerror to detect a NULL symbol.
6186
6187 2019-02-06 Florian Weimer <fweimer@redhat.com>
6188
6189 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
6190 <stap-probe.h>.
6191 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
6192
6193 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
6194
6195 * libio/tst-bz24153.c (wide): Use wide char format specifier.
6196
6197 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
6198
6199 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
6200 __wmemcmp and weak alias to wmemcmp.
6201
6202 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
6203
6204 [BZ #23403]
6205 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
6206 TLS_TCB_AT_TP tls variant.
6207 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
6208 Add alignment checks.
6209 * support/Makefile (libsupport-routines): Add xposix_memalign and
6210 xpthread_setstack.
6211 * support/support.h: Add xposix_memalign.
6212 * support/xthread.h: Add xpthread_attr_setstack.
6213 * support/xposix_memalign.c: New File.
6214 * support/xpthread_attr_setstack.c: Likewise.
6215
6216 2019-02-05 Florian Weimer <fweimer@redhat.com>
6217
6218 [BZ #24164]
6219 arm: Use "nr" constraint for Systemtap probes, to avoid the
6220 compiler using memory operands for constants, due to the "o"
6221 alternative in the default "nor" constraint.
6222 * include/stap-probe.h [USE_STAP_PROBE]: Include
6223 <stap-probe-machine.h>
6224 * sysdeps/generic/stap-probe-machine.h: New file.
6225 * sysdeps/arm/stap-probe-machine.h: Likewise.
6226
6227 2019-02-04 Joseph Myers <joseph@codesourcery.com>
6228
6229 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
6230 with 0, not tcache->entries[tc_idx].
6231
6232 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
6233 once.
6234
6235 2019-02-04 Andreas Schwab <schwab@suse.de>
6236
6237 [BZ #16976]
6238 [BZ #17396]
6239 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
6240 looking up collating elements match against (wide) character
6241 sequence instead of name. Correct alignment adjustment.
6242 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
6243 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
6244 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
6245 (LOCALES): Add cs_CZ.ISO-8859-2.
6246 * posix/tst-fnmatch4.c: New file.
6247 * posix/tst-fnmatch5.c: New file.
6248 * include/wchar.h (__wmemcmp): Declare.
6249 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
6250 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
6251 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
6252 * sysdeps/s390/wmemcmp.c: Likewise.
6253
6254 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
6255
6256 [BZ #24155]
6257 CVE-2019-7309
6258 * NEWS: Updated for CVE-2019-7309.
6259 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
6260 upper 32 bits of RDX register for x32. Use unsigned Jcc
6261 instructions, instead of signed.
6262 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
6263 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
6264
6265 2019-02-04 Florian Weimer <fweimer@redhat.com>
6266
6267 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
6268 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
6269 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
6270 Likewise.
6271 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
6272 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
6273 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
6274 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
6275 Likewise.
6276 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
6277 Likewise.
6278 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
6279 Likewise.
6280 (posix_spawn_file_actions_addopen): Likewise.
6281 (posix_spawn_file_actions_addclose): Likewise.
6282 (posix_spawn_file_actions_adddup2): Likewise.
6283 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
6284 qualifiers.
6285 (posix_spawn_file_actions_addfchdir_np): Likewise.
6286
6287 2019-02-04 David Newall <glibc@davidnewall.com>
6288
6289 elf: Implement --preload option for the dynamic linker.
6290 * elf/rtld.c (preloadarg): New variable.
6291 (handle_preload_list): Pass through “where” argument to
6292 do_preload.
6293 (dl_main): Handle "--preload" and add second call to
6294 handle_preload_list.
6295 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
6296 (tst-rtld-preload-OBJS): Set variable.
6297 (tst-rtld-preload.out): New target.
6298 * elf/tst-rtld-preload.sh: New file.
6299
6300 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
6301
6302 * Makefile (testrun.sh): Exit in case of incorrect argument.
6303
6304 2019-02-04 Florian Weimer <fweimer@redhat.com>
6305
6306 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
6307 alignment gaps.
6308
6309 2019-02-03 Florian Weimer <fweimer@redhat.com>
6310
6311 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
6312 implicit overflow checks.
6313
6314 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
6315
6316 * stdlib/isomac.c: Include <unistd.h>.
6317
6318 2019-02-03 Florian Weimer <fweimer@redhat.com>
6319
6320 * include/time.h (__tzfile_default): Use int, not long int, for
6321 the GMT offsets.
6322 * time/tzfile.c (struct ttinfo): Change type of the offset member
6323 to int.
6324 (__tzfile_read): Remove useless cast.
6325 (__tzfile_default): Adjust prototype.
6326 * time/tzset.c (tz_rule): Change type of the offset member to int.
6327 (parse_offset): Change the type of the sign variable to int.
6328
6329 2019-02-03 Florian Weimer <fweimer@redhat.com>
6330
6331 [BZ #24153]
6332 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
6333 * libio/getchar.c (getchar): Likewise.
6334 * libio/getchar_u.c (getchar_unlocked): Likewise.
6335 * libio/getwchar.c (getwchar): Likewise.
6336 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
6337 * libio/iogets.c (_IO_gets): Likewise.
6338 * libio/vscanf.c (_IO_vscanf): Likewise.
6339 * libio/vwscanf.c (__vwscanf): Likewise.
6340 * libio/tst-bz24153.c: New file.
6341 * libio/Makefile (tests): Add it.
6342
6343 2019-02-02 Florian Weimer <fweimer@redhat.com>
6344
6345 [BZ #14829]
6346 * manual/resource.texi (Basic Scheduling Functions): Add
6347 portability note. Change process to task throughout the section.
6348 Remove incorrect comment about sched_yield as it affects
6349 tasks/threads, not entire processes.
6350 * sysdeps/unix/sysv/linux/bits/posix_opt.h
6351 (_POSIX_PRIORITY_SCHEDULING): Update comment.
6352
6353 2019-02-01 Joseph Myers <joseph@codesourcery.com>
6354
6355 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
6356 * configure: Regenerated.
6357 * manual/install.texi (Tools for Compilation): Update minimum GCC
6358 version.
6359 * INSTALL: Regenerated.
6360
6361 2019-02-01 Florian Weimer <fweimer@redhat.com>
6362
6363 * support/support_test_compare_string.c
6364 (support_test_compare_string): Use "string" in error message.
6365 * support/tst-test_compare_string.c (do_test): Adjust.
6366
6367 2019-02-01 Florian Weimer <fweimer@redhat.com>
6368
6369 * support/support_format_address_family.c
6370 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
6371
6372 2019-02-01 Florian Weimer <fweimer@redhat.com>
6373
6374 * manual/socket.texi (Internet Address Formats): Clarify the byte
6375 order of struct sockaddr_in, struct sockaddr_in6. Document
6376 sin6_flowinfo and sin6_scope_id.
6377
6378 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
6379
6380 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
6381 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
6382 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
6383 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
6384 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
6385 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
6386
6387 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
6388
6389 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
6390 [!MEMCHR](MEMCHR): Set to __memchr.
6391 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
6392 Add memchr_generic and memchr_nosimd.
6393 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
6394 (__libc_ifunc_impl_list): Add memchr ifuncs.
6395 * sysdeps/aarch64/multiarch/memchr.c: New file.
6396 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
6397 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
6398
6399 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
6400
6401 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
6402 Add memset_emag.
6403 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
6404 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
6405 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
6406 Add IS_EMAG check for ifunc dispatch.
6407 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
6408 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
6409
6410 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
6411
6412 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
6413 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
6414 Add emag.
6415 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
6416 New macro.
6417
6418 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
6419
6420 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
6421
6422 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
6423
6424 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
6425 syscall-template file.
6426
6427 2019-01-31 Carlos O'Donell <carlos@redhat.com>
6428 Torvald Riegel <triegel@redhat.com>
6429 Rik Prohaska <prohaska7@gmail.com>
6430
6431 [BZ# 23844]
6432 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
6433 tst-rwlock-trywrlock-stall.
6434 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
6435 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
6436 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
6437 Set __wrphase_fute to 1 only if we started the write phase.
6438 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
6439 * nptl/tst-rwlock-trywrlock-stall.c: New file.
6440 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
6441 * support/xpthread_rwlock_destroy.c: New file.
6442 * support/xthread.h: Declare xpthread_rwlock_destroy.
6443
6444 2019-02-01 Joseph Myers <joseph@codesourcery.com>
6445
6446 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
6447 version to 4.0.2.
6448
6449 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
6450
6451 [BZ #24051]
6452 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
6453 * libio/fileops.c (_IO_new_file_underflow): Likewise
6454 * libio/wfileops.c (_IO_wfile_underflow): Likewise
6455 * libio/putchar.c (putchar): Likewise.
6456 * libio/putchar_u.c (putchar_unlocked): Likewise.
6457 * libio/putwchar.c (putchar): Likewise.
6458 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
6459 * libio/tst-bz24051.c: New test.
6460 * libio/Makefile (tests): Add tst-bz24051
6461
6462 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
6463
6464 CVE-2019-9169
6465 regex: fix read overrun [BZ #24114]
6466 Problem found by AddressSanitizer, reported by Hongxu Chen in:
6467 https://debbugs.gnu.org/34140
6468 * posix/regexec.c (proceed_next_node):
6469 Do not read past end of input buffer.
6470
6471 2019-01-31 Florian Weimer <fweimer@redhat.com>
6472
6473 [BZ #24059]
6474 * nss/nss_files/files-alias.c (get_next_alias): Handle
6475 continuation line without newline at the end.
6476 * nss/tst-nss-files-alias-truncated.c: New file.
6477 * nss/Makefile [$(build-shared)] (tests): Add
6478 tst-nss-files-alias-truncated.
6479 (tst-nss-files-alias-truncated): Link with libnss_files.so.
6480 * support/namespace.h (struct support_chroot_configuration): Add
6481 aliases member.
6482 (struct support_chroot): Add path_aliases member.
6483 * support/support_chroot.c (support_chroot_create): Handle
6484 aliases.
6485 (support_chroot_free): Free path_aliases.
6486
6487 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
6488
6489 * version.h (RELEASE): Set to "development".
6490 (VERSION): Set to "2.29.9000".
6491 * NEWS: Add section for 2.30.
6492
6493 * version.h (RELEASE): Set to "stable".
6494 (VERSION): Set to "2.29".
6495 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
6496
6497 * NEWS: Add the list of bugs fixed in 2.29.
6498 * manual/contrib.texi: Update contributors list with some more
6499 names.
6500 * manual/install.texi: Update latest versions of packages
6501 tested.
6502 * INSTALL: Regenerated.
6503
6504 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
6505
6506 * po/be.po: Update translations.
6507 * po/bg.po: Likewise.
6508 * po/ca.po: Likewise.
6509 * po/cs.po: Likewise.
6510 * po/da.po: Likewise.
6511 * po/de.po: Likewise.
6512 * po/el.po: Likewise.
6513 * po/eo.po: Likewise.
6514 * po/es.po: Likewise.
6515 * po/fi.po: Likewise.
6516 * po/fr.po: Likewise.
6517 * po/gl.po: Likewise.
6518 * po/hr.po: Likewise.
6519 * po/hu.po: Likewise.
6520 * po/ia.po: Likewise.
6521 * po/id.po: Likewise.
6522 * po/it.po: Likewise.
6523 * po/ja.po: Likewise.
6524 * po/ko.po: Likewise.
6525 * po/lt.po: Likewise.
6526 * po/nb.po: Likewise.
6527 * po/nl.po: Likewise.
6528 * po/pl.po: Likewise.
6529 * po/pt_BR.po: Likewise.
6530 * po/ru.po: Likewise.
6531 * po/rw.po: Likewise.
6532 * po/sk.po: Likewise.
6533 * po/sl.po: Likewise.
6534 * po/sv.po: Likewise.
6535 * po/tr.po: Likewise.
6536 * po/uk.po: Likewise.
6537 * po/vi.po: Likewise.
6538 * po/zh_CN.po: Likewise.
6539 * po/zh_TW.po: Likewise.
6540
6541 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
6542
6543 [BZ #24130]
6544 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
6545 of $f3 register on $y_is_neg path.
6546
6547 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
6548
6549 [BZ #24110]
6550 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
6551 sigaltstack.ss_flags.
6552
6553 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
6554
6555 [BZ #23758]
6556 * manual/time.texi (strftime): Document "%Ey".
6557 * time/strftime_l.c (__strftime_internal): Set the default width
6558 padding with zero of "%Ey" to 2.
6559
6560 [BZ #24096]
6561 * manual/time.texi (strftime): Document "%EC" and "%EY".
6562 * time/Makefile (tests): Add tst-strftime2.
6563 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
6564 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
6565 override padding for "%Ey".
6566 If an optional flag ('_' or '-') is specified to "%EY", interpret the
6567 "%Ey" in the subformat as if decorated with that flag.
6568 * time/tst-strftime2.c: New file.
6569
6570 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6571
6572 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
6573 are not defined.
6574
6575 [BZ #24122]
6576 * elf/Makefile (tests): Add tst-audit13.
6577 (modules-names): Add tst-audit13mod1.
6578 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
6579 rule.
6580 * elf/rtld.c (dl_main): Handle invalid audit module version.
6581 * elf/tst-audit13.c: New file.
6582 * elf/tst-audit13mod1.c: Likewise.
6583
6584 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
6585
6586 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
6587 returned by __hurd_at_flags.
6588 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
6589 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
6590 directly instead of __hurd_file_name_lookup.
6591
6592 2019-01-21 Joseph Myers <joseph@codesourcery.com>
6593
6594 * scripts/build-many-glibcs.py (Context.checkout): Default
6595 binutils version to 2.32 branch.
6596
6597 2019-01-21 Florian Weimer <fweimer@redhat.com>
6598
6599 [BZ #20018]
6600 CVE-2016-10739
6601 resolv: Reject trailing characters in host names
6602 * include/arpa/inet.h (__inet_aton_exact): Declare.
6603 (inet_aton): Remove hidden prototype. No longer used internally.
6604 * nscd/gai.c (__inet_aton): Do not define.
6605 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
6606 * nss/digits_dots.c (__inet_aton): Likewise.
6607 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
6608 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
6609 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
6610 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
6611 (tst-resolv-trailing): Likewise.
6612 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
6613 libc.
6614 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
6615 Make static. Add endp parameter.
6616 (__inet_aton_exact): New function.
6617 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
6618 (__inet_addr): Call inet_aton_end.
6619 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
6620 not just IPv6. Call __inet_aton_exact.
6621 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
6622 (tests): Make const. Add additional test cases with trailing
6623 characters.
6624 (do_test): Use array_length.
6625 * resolv/tst-inet_aton_exact.c: New file.
6626 * resolv/tst-resolv-trailing.c: Likewise.
6627 * resolv/tst-resolv-nondecimal.c: Likewise.
6628 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
6629
6630 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6631
6632 [BZ# 24097]
6633 CVE-2019-6488
6634 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
6635 Clear the upper 32 bits of RSI register.
6636 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
6637 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
6638 and tst-size_t-wcsnlen.
6639 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
6640 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
6641
6642 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6643
6644 [BZ# 24097]
6645 CVE-2019-6488
6646 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
6647 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
6648 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
6649 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
6650 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
6651
6652 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6653
6654 [BZ# 24097]
6655 CVE-2019-6488
6656 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
6657 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
6658 * sysdeps/x86_64/strcmp.S: Likewise.
6659 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
6660 tst-size_t-strncmp and tst-size_t-wcsncmp.
6661 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
6662 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
6663 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
6664
6665 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6666
6667 [BZ# 24097]
6668 CVE-2019-6488
6669 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
6670 RDX_LP for length. Clear the upper 32 bits of RDX register.
6671 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
6672 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
6673 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
6674 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
6675
6676 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6677
6678 [BZ# 24097]
6679 CVE-2019-6488
6680 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
6681 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
6682 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
6683 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
6684
6685 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6686
6687 [BZ# 24097]
6688 CVE-2019-6488
6689 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
6690 length. Clear the upper 32 bits of RDX register.
6691 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
6692 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
6693 Likewise.
6694 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
6695 Likewise.
6696 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
6697 tst-size_t-wmemchr.
6698 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
6699
6700 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6701
6702 [BZ# 24097]
6703 CVE-2019-6488
6704 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
6705 length. Clear the upper 32 bits of RDX register.
6706 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
6707 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
6708 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
6709 tst-size_t-wmemcmp.
6710 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
6711 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
6712
6713 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6714
6715 [BZ# 24097]
6716 CVE-2019-6488
6717 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
6718 upper 32 bits of RDX register.
6719 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
6720 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
6721 tst-size_t-wmemchr.
6722 * sysdeps/x86_64/x32/test-size_t.h: New file.
6723 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
6724 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
6725
6726 2019-01-18 Florian Weimer <fweimer@redhat.com>
6727
6728 [BZ #24112]
6729 resolv: Do not send queries for non-host-names in nss_dns.
6730 * resolv/nss_dns/dns-host.c (check_name): New function.
6731 (_nss_dns_gethostbyname2_r): Use it.
6732 (_nss_dns_gethostbyname_r): Likewise.
6733 (_nss_dns_gethostbyname4_r): Likewise.
6734
6735 2019-01-21 Florian Weimer <fweimer@redhat.com>
6736
6737 * resolv/inet_addr.c: Reformat to GNU style.
6738 (__inet_addr, __inet_aton): Update comment.
6739
6740 2019-01-18 Florian Weimer <fweimer@redhat.com>
6741
6742 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
6743 ("malloc: Use current (C11-style) atomics for fastbin access").
6744 This commit introduces a substantial performance regression on
6745 POWER and Aarch64.
6746 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
6747 (REMOVE_FB): Define.
6748 (_int_malloc): Use it and reindent.
6749 (_int_free): Use CAS loop with
6750 catomic_compare_and_exchange_val_rel.
6751 (malloc_consolidate): Use atomic_exchange_acq.
6752
6753
6754 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
6755
6756 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
6757 -Wl,-z,now.
6758 (LDFLAGS-tst-minsigstksz-2): Likewise.
6759 (LDFLAGS-tst-minsigstksz-3): Likewise.
6760 (LDFLAGS-tst-minsigstksz-3a): Likewise.
6761 (LDFLAGS-tst-minsigstksz-4): Likewise.
6762
6763 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
6764
6765 * manual/time.texi (strftime): Fix the wording to "alternative" rather
6766 than "alternate".
6767
6768 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
6769
6770 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
6771
6772 2019-01-16 Zack Weinberg <zackw@panix.com>
6773
6774 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
6775 (xget_sigstack_location): New test support functions.
6776 * support/xsigstack.c: New file, implementing them.
6777 * support/tst-xsigstack.c: New test for them.
6778 * support/Makefile: Update.
6779
6780 * signal/tst-minsigstksz-1.c
6781 * signal/tst-minsigstksz-2.c
6782 * signal/tst-minsigstksz-3.c
6783 * signal/tst-minsigstksz-3a.c
6784 * signal/tst-minsigstksz-4.c: New tests.
6785 * signal/Makefile: Run them.
6786
6787 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
6788
6789 * po/libc.pot: Regenerate.
6790
6791 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
6792
6793 * math/libm-test-fma.inc (fma_test_data): Set
6794 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
6795
6796 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
6797
6798 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
6799 (do_test): Changed __vector __int128_t to __vector unsigned int.
6800
6801 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6802
6803 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
6804 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
6805 stpcpy-avx2 and stpncpy-avx2.
6806 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
6807 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
6808 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
6809 and __stpncpy_avx2.
6810 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
6811 ifunc-strcpy.h}: rename header for a more generic name.
6812 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
6813 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
6814 AVX unaligned load is fast and vzeroupper is preferred.
6815 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
6816 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
6817 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
6818 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
6819 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
6820 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
6821
6822 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
6823
6824 * argp/argp-help.c: Fix typo in comment.
6825 * misc/sys/cdefs.h: Likewise.
6826 * posix/regexec.c (sift_states_iter_mb): Likewise.
6827 * socket/sockatmark.c: Likewise.
6828 * socket/sys/socket.h: Likewise.
6829 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
6830 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
6831 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
6832 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
6833 * sysdeps/unix/sockatmark.c: Likewise.
6834 * time/strptime_l.c: Likewise.
6835
6836 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
6837
6838 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
6839 missing space after the cast of "_NL_CURRENT".
6840
6841 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
6842
6843 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
6844 ifdef to fix read of VSCR.
6845 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
6846 tst-ucontext-ppc64-vscr.c to test list.
6847 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
6848
6849 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
6850
6851 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
6852 fall-through.
6853
6854 2019-01-09 Jim Wilson <jimw@sifive.com>
6855
6856 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
6857
6858 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
6859
6860 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
6861 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
6862 __memcpy_falkor for ares.
6863 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
6864 Add new define.
6865 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
6866 Add ares cpu.
6867
6868 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
6869
6870 [BZ #24066]
6871 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
6872 4_FP_W_TYPEs are used for IEEE quad precision.
6873 * soft-fp/extendhftf2.c: Likewise.
6874 * soft-fp/extendsftf2.c: Likewise.
6875 * soft-fp/extendxftf2.c: Likewise.
6876 * soft-fp/trunctfdf2.c: Likewise.
6877 * soft-fp/trunctfhf2.c: Likewise.
6878 * soft-fp/trunctfsf2.c: Likewise.
6879 * soft-fp/trunctfxf2.c: Likewise.
6880 * sysdeps/alpha/ots_cvttx.c: Likewise.
6881 * sysdeps/alpha/ots_cvtxt.c: Likewise.
6882 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
6883 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
6884 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
6885 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
6886 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
6887 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
6888 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
6889 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
6890 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
6891 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
6892 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
6893 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
6894 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
6895 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
6896 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
6897 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
6898
6899 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
6900
6901 [BZ #24024]
6902 * Makeconfig: Build libm with -fno-math-errno but build the remaining
6903 code with -fmath-errno.
6904 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
6905 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
6906 * string/test-strerror-errno.c: New file.
6907
6908 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
6909
6910 [BZ #24046]
6911 * localedata/locales/en_US (date_fmt): Add, set to
6912 "%a %d %b %Y %r %Z".
6913
6914 2019-01-07 Florian Weimer <fweimer@redhat.com>
6915
6916 [BZ #24063]
6917 * manual/arith.texi (Math Error Reporting): Use @code{errno}
6918 instead of @var{errno}.
6919 (Parsing of Integers): Likewise.
6920 (Parsing of Floats): Likewise.
6921 * manual/filesys.texi (Working with Directory Trees): Likewise.
6922 (Temporary Files): Likewise.
6923 * manual/job.texi (Terminal Access Functions): Likewise.
6924 * manual/llio.texi (Synchronizing I/O): Likewise.
6925 * manual/math.texi (SVID Random): Likewise.
6926 * manual/message.texi (The catgets Functions): Likewise.
6927 (Translation with gettext): Likewise.
6928 (Locating gettext catalog): Likewise.
6929 (Charset conversion in gettext): Likewise.
6930 * manual/nss.texi (NSS Module Function Internals): Likewise.
6931 * manual/search.texi (Hash Search Function): Likewise.
6932 * manual/setjmp.texi (System V contexts): Likewise.
6933 * manual/time.texi (Sleeping): Likewise.
6934 * manual/users.texi (Lookup User): Likewise.
6935 (Lookup Group): Likewise.
6936
6937 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6938
6939 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
6940 fix typo.
6941
6942 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
6943
6944 [BZ #19444]
6945 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
6946 __builtin_unreachable for default case in switch.
6947 (__ieee754_yn): Likewise.
6948 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
6949 (__ieee754_ynl): Likewise.
6950 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
6951 (__ieee754_ynl): Likewise.
6952 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
6953 (__ieee754_ynl): Likewise.
6954
6955 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
6956
6957 * manual/maint.texi: Use @{ and @}.
6958
6959 2019-01-04 Florian Weimer <fweimer@redhat.com>
6960
6961 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
6962 function.
6963 (do_in_chroot_1): Call it.
6964 (run_chroot_tests):
6965 Improve error reporting in case it is not possible to create a
6966 collision for the PTY name required by the test.
6967
6968 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6969
6970 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
6971 lll_wait_tid with timeout.
6972 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
6973 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
6974 futex_reltimed_wait_cancelable for cancelabla mode.
6975 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
6976 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
6977 macros.
6978 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
6979 * sysdeps/posix/waitid.c (__sigwait): Likewise.
6980 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
6981 SYSCALL_CANCEL_NCS): New macro.
6982 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
6983 (lll_timedwait_tid): Remove macro.
6984 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
6985 Likewise.
6986 (lll_timedwait_tid): Likewise.
6987 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
6988 Likewise.
6989 (lll_timedwait_tid): Likewise.
6990 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
6991 Likewise.
6992 (lll_timedwait_tid): Likewise.
6993 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
6994 Use INTERNAL_SYSCALL_CANCEL.
6995 * sysdeps/unix/sysv/linux/futex-internal.h
6996 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
6997 instead of __pthread_{enable,disable}_asynccancel.
6998 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
6999 (lll_futex_wait_cancel): New macro.
7000
7001 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
7002 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
7003
7004 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
7005 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
7006
7007 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
7008 in backtrace analysis.
7009 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
7010 side-effects.
7011 (tf_send): Likewise.
7012
7013 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
7014 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
7015 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
7016 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
7017 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
7018 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
7019 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
7020 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
7021 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
7022 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
7023 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
7024 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
7025 Likewise.
7026 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
7027 tst-cancel-wrappers.sh.
7028 (generated): Remove tst-cancel-wrappers.out.
7029 (tst-cancel-wrappers.out): Remove rule.
7030 * nptl/tst-cancel-wrappers.sh: Remove file.
7031
7032 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
7033
7034 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
7035 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
7036 Update.
7037
7038 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7039
7040 [BZ #23640]
7041 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
7042 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
7043 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
7044 close-on-exec reset for adddup2 file action.
7045 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
7046
7047 2019-01-03 Zack Weinberg <zackw@panix.com>
7048
7049 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
7050 parameter. Only use deprecated scanf when __USE_GNU is defined
7051 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
7052 than 201103L, whichever is relevant for the language being compiled.
7053
7054 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
7055 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
7056 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
7057 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
7058 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
7059
7060 * libio/iovsscanf.c
7061 * libio/fwscanf.c
7062 * libio/iovswscanf.c
7063 * libio/swscanf.c
7064 * libio/vscanf.c
7065 * libio/vwscanf.c
7066 * libio/wscanf.c
7067 * stdio-common/fscanf.c
7068 * stdio-common/scanf.c
7069 * stdio-common/vfscanf.c
7070 * stdio-common/vfwscanf.c
7071 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7072 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
7073 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
7074 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
7075 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
7076 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
7077 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
7078 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
7079 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
7080 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
7081 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
7082 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
7083 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
7084 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
7085 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
7086
7087 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
7088 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
7089 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
7090 not sscanf.
7091 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
7092 with a preprocessor macro.
7093
7094 * stdio-common/bug21.c, stdio-common/scanf14.c:
7095 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
7096 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
7097 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
7098 to xscanf, xfscanf, xsscanf.
7099
7100 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
7101 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
7102 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
7103 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
7104 xfscanf, xsscanf.
7105 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
7106 override feature selection macros or provide definitions of u_char etc.
7107 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
7108 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
7109 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
7110 with -std=gnu89.
7111
7112 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7113
7114 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7115 bits/termios-misc.h.
7116 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
7117 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7118 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7119 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7120 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
7121 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
7122
7123 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
7124 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
7125 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
7126 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
7127 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
7128 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
7129 termios-misc.h.
7130 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
7131 (sysdep_headers): Add termios-misc.h.
7132
7133 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
7134 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7135 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7136
7137 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7138 termios-tcflow.h.
7139 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
7140 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
7141 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
7142 TCSAFLUSH): Move to termios-tcflow.h.
7143 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7144 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7145 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7146 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7147
7148 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7149 termios-c_lflag.h.
7150 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
7151 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
7152 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
7153 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
7154 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
7155 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
7156 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
7157 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
7158 Likewise.
7159 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7160 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7161 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7162 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7163
7164 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7165 termios-c_cflag.h.
7166 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
7167 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
7168 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
7169 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
7170 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
7171 termios-c_cflag.h.
7172 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7173 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7174 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7175 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7176
7177 [BZ #23783]
7178 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7179 termios-baud.h.
7180 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
7181 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
7182 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
7183 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
7184 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
7185 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
7186 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
7187 __MAX_BAUD): Move to termios-baud.h.
7188 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
7189 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
7190 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7191 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7192 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7193
7194 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
7195 termios-c_oflag.h.
7196 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
7197 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
7198 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
7199 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
7200 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
7201 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
7202 termios-c_oflag.h.
7203 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
7204 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
7205 FFR1): Likewise.
7206 [USE_MISC] (XTABS): Likewise.
7207 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7208 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7209 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7210 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
7211
7212 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
7213 termios-c_iflag.h.
7214 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
7215 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
7216 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
7217 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
7218 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
7219 IUTF8): Move to termios-c_iflag.h.
7220 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7221 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7222 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7223 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7224
7225 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
7226 termios-cc.h.
7227 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
7228 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
7229 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
7230 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
7231 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
7232 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
7233 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
7234 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
7235 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7236 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7237 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7238 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7239
7240 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
7241 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
7242 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
7243 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
7244 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7245 termios-struct.h.
7246 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
7247 termios-struct.h.
7248 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
7249 Likewise.
7250 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
7251 Likewise.
7252 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
7253 Likewise.
7254 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
7255 Likewise.
7256 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
7257 _HAVE_C_OSPEED): Define.
7258 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
7259 _HAVE_C_OSPEED): Likewise.
7260 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
7261 _HAVE_C_OSPEED): Likewise.
7262 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
7263 (cfsetospeed): Check for define value instead of existence.
7264 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
7265 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
7266 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
7267 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
7268 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
7269
7270 [BZ #17783]
7271 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
7272 Define.
7273 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
7274 (TIOCSER_TEMT): Likewise.
7275 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
7276 (TEOCSER_TEMT): Likewise.
7277
7278 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
7279
7280 [BZ #24011]
7281 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
7282
7283 2019-01-02 Joseph Myers <joseph@codesourcery.com>
7284
7285 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
7286
7287 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7288
7289 * sysdeps/htl/pt-barrierattr-setpshared.c
7290 (pthread_barrierattr_setpshared): Add stub warning.
7291 * sysdeps/htl/pt-condattr-setpshared.c
7292 (pthread_condattr_setpshared): Likewise.
7293 * sysdeps/htl/pt-mutexattr-setpshared.c
7294 (pthread_mutexattr_setpshared): Likewise.
7295 * sysdeps/htl/pt-rwlockattr-setpshared.c
7296 (pthread_rwlockattr_setpshared): Likewise.
7297 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
7298 (pthread_mutexattr_setpshared): Likewise.
7299
7300 2019-01-02 Joseph Myers <joseph@codesourcery.com>
7301
7302 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
7303 constants to match with Linux 4.20.
7304
7305 * sysdeps/mips/mips32/libm-test-ulps: Update.
7306 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
7307
7308 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
7309
7310 [BZ #24034]
7311 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
7312 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
7313 than __typeof (...) for the a_ptr variable.
7314
7315 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7316
7317 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
7318 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
7319 * libio/Makefile (tests): Add tst-sprintf-ub and
7320 tst-sprintf-chk-ub.
7321 (CFLAGS-tst-sprintf-ub.c): New variable.
7322 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
7323 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
7324 destination buffer and check for overflows in fortified mode.
7325 * libio/libioP.h (PRINTF_CHK): New macro.
7326 * libio/tst-sprintf-chk-ub.c: New file.
7327 * libio/tst-sprintf-ub.c: Likewise.
7328
7329 2019-01-02 Florian Weimer <fweimer@redhat.com>
7330
7331 [BZ #24018]
7332 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
7333 failure.
7334
7335 2019-01-02 Florian Weimer <fweimer@redhat.com>
7336
7337 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
7338
7339 2019-01-01 Joseph Myers <joseph@codesourcery.com>
7340
7341 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
7342 macro.
7343
7344 * sysdeps/unix/sysv/linux/netpacket/packet.h
7345 (PACKET_IGNORE_OUTGOING): New macro.
7346
7347 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
7348 macro.
7349
7350 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7351 version to 4.20.
7352 (riscv_flush_icache): New syscall.
7353
7354 * manual/texinfo.tex: Update to version 2018-12-28.17 with
7355 trailing whitespace removed.
7356 * scripts/config.guess: Update to version 2019-01-01.
7357 * scripts/config.sub: Update to version 2019-01-01.
7358 * scripts/move-if-change: Update from gnulib.
7359
7360 * NEWS: Update copyright dates.
7361 * catgets/gencat.c (print_version): Likewise.
7362 * csu/version.c (banner): Likewise.
7363 * debug/catchsegv.sh: Likewise.
7364 * debug/pcprofiledump.c (print_version): Likewise.
7365 * debug/xtrace.sh (do_version): Likewise.
7366 * elf/ldconfig.c (print_version): Likewise.
7367 * elf/ldd.bash.in: Likewise.
7368 * elf/pldd.c (print_version): Likewise.
7369 * elf/sotruss.sh: Likewise.
7370 * elf/sprof.c (print_version): Likewise.
7371 * iconv/iconv_prog.c (print_version): Likewise.
7372 * iconv/iconvconfig.c (print_version): Likewise.
7373 * locale/programs/locale.c (print_version): Likewise.
7374 * locale/programs/localedef.c (print_version): Likewise.
7375 * login/programs/pt_chown.c (print_version): Likewise.
7376 * malloc/memusage.sh (do_version): Likewise.
7377 * malloc/memusagestat.c (print_version): Likewise.
7378 * malloc/mtrace.pl: Likewise.
7379 * manual/libc.texinfo: Likewise.
7380 * nptl/version.c (banner): Likewise.
7381 * nscd/nscd.c (print_version): Likewise.
7382 * nss/getent.c (print_version): Likewise.
7383 * nss/makedb.c (print_version): Likewise.
7384 * posix/getconf.c (main): Likewise.
7385 * scripts/test-installation.pl: Likewise.
7386 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
7387
7388 * All files with FSF copyright notices: Update copyright dates
7389 using scripts/update-copyrights.
7390 * locale/programs/charmap-kw.h: Regenerated.
7391 * locale/programs/locfile-kw.h: Likewise.
7392
7393 2018-12-31 Joseph Myers <joseph@codesourcery.com>
7394
7395 * timezone/zdump.c: Update from tzcode 2018i.
7396 * timezone/zic.c: Likewise.
7397
7398 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
7399
7400 regex: improve Gnulib port to AIX
7401 From the glibc point of view, this removes duplicate macro
7402 definitions and is obviously safe.
7403 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
7404 * posix/regex_internal.h:
7405 (__attribute__, __attribute_warn_unused_result__):
7406 Remove; already defined elsewhere.
7407
7408 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
7409
7410 [BZ #24027]
7411 * malloc/malloc.c (_int_realloc): Always call memcpy for the
7412 copying operation. (ncopies had the wrong type, resulting in an
7413 integer wraparound and too few elements being copied.)
7414
7415 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
7416
7417 [BZ #24022]
7418 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
7419 <asm/syscalls.h> exists with __has_include__ before including it.
7420
7421 2018-12-31 Joseph Myers <joseph@codesourcery.com>
7422
7423 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7424 version to 4.20.
7425
7426 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
7427
7428 * hurd/lookup-retry: Include <unistd.h>.
7429 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
7430 Release it on return. Handle "pid" magical lookup retry.
7431
7432 2018-12-28 Rafał Lużyński <digitalfreak@lingonborough.com>
7433
7434 [BZ #10496]
7435 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
7436 (t_fmt_ampm): Likewise.
7437 * localedata/locales/aa_ER (t_fmt): Likewise.
7438 (t_fmt_ampm): Likewise.
7439 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
7440 (t_fmt_ampm): Likewise.
7441 * localedata/locales/aa_ET (t_fmt): Likewise.
7442 (t_fmt_ampm): Likewise.
7443 * localedata/locales/am_ET (t_fmt): Likewise.
7444 (t_fmt_ampm): Likewise.
7445 * localedata/locales/byn_ER (t_fmt): Likewise.
7446 (t_fmt_ampm): Likewise.
7447 * localedata/locales/om_ET (t_fmt): Likewise.
7448 (t_fmt_ampm): Likewise.
7449 * localedata/locales/sid_ET (t_fmt): Likewise.
7450 (t_fmt_ampm): Likewise.
7451 * localedata/locales/so_DJ (t_fmt): Likewise.
7452 (t_fmt_ampm): Likewise.
7453 * localedata/locales/so_ET (t_fmt): Likewise.
7454 (t_fmt_ampm): Likewise.
7455 * localedata/locales/so_SO (t_fmt): Likewise.
7456 (t_fmt_ampm): Likewise.
7457 * localedata/locales/ti_ER (t_fmt): Likewise.
7458 (t_fmt_ampm): Likewise.
7459 * localedata/locales/ti_ET (t_fmt): Likewise.
7460 (t_fmt_ampm): Likewise.
7461 * localedata/locales/tig_ER (t_fmt): Likewise.
7462 (t_fmt_ampm): Likewise.
7463 * localedata/locales/wal_ET (t_fmt): Likewise.
7464 (t_fmt_ampm): Likewise.
7465
7466 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
7467 * localedata/locales/ar_IN (t_fmt): Likewise.
7468 * localedata/locales/bhb_IN (t_fmt): Likewise.
7469 * localedata/locales/bho_IN (t_fmt): Likewise.
7470 * localedata/locales/bi_VU (t_fmt): Likewise.
7471 * localedata/locales/bn_BD (t_fmt): Likewise.
7472 * localedata/locales/bn_IN (t_fmt): Likewise.
7473 * localedata/locales/brx_IN (t_fmt): Likewise.
7474 * localedata/locales/doi_IN (t_fmt): Likewise.
7475 * localedata/locales/en_HK (t_fmt): Likewise.
7476 (t_fmt_ampm): Likewise.
7477 * localedata/locales/en_IN (t_fmt): Likewise.
7478 * localedata/locales/en_PH (t_fmt): Likewise.
7479 * localedata/locales/gu_IN (t_fmt): Likewise.
7480 * localedata/locales/hi_IN (t_fmt): Likewise.
7481 * localedata/locales/hif_FJ (t_fmt): Likewise.
7482 * localedata/locales/hne_IN (t_fmt): Likewise.
7483 * localedata/locales/kn_IN (t_fmt): Likewise.
7484 * localedata/locales/kok_IN (t_fmt): Likewise.
7485 * localedata/locales/ks_IN (t_fmt): Likewise.
7486 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
7487 * localedata/locales/mag_IN (t_fmt): Likewise.
7488 * localedata/locales/mai_IN (t_fmt): Likewise.
7489 * localedata/locales/mjw_IN (t_fmt): Likewise.
7490 * localedata/locales/ml_IN (t_fmt): Likewise.
7491 * localedata/locales/mni_IN (t_fmt): Likewise.
7492 * localedata/locales/mr_IN (t_fmt): Likewise.
7493 * localedata/locales/ms_MY (t_fmt): Likewise.
7494 * localedata/locales/pa_IN (t_fmt): Likewise.
7495 * localedata/locales/raj_IN (t_fmt): Likewise.
7496 * localedata/locales/sa_IN (t_fmt): Likewise.
7497 * localedata/locales/sat_IN (t_fmt): Likewise.
7498 * localedata/locales/sd_IN (t_fmt): Likewise.
7499 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
7500 * localedata/locales/tcy_IN (t_fmt): Likewise.
7501 * localedata/locales/the_NP (t_fmt): Likewise.
7502 * localedata/locales/to_TO (t_fmt): Likewise.
7503 * localedata/locales/ur_IN (t_fmt): Likewise.
7504
7505 * localedata/locales/hif_FJ (d_t_fmt): Set to
7506 "%A %d %b %Y %I:%M:%S %p".
7507 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
7508
7509 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
7510 * localedata/locales/ar_BH (t_fmt): Likewise.
7511 * localedata/locales/ar_DZ (t_fmt): Likewise.
7512 * localedata/locales/ar_EG (t_fmt): Likewise.
7513 * localedata/locales/ar_IQ (t_fmt): Likewise.
7514 * localedata/locales/ar_JO (t_fmt): Likewise.
7515 * localedata/locales/ar_KW (t_fmt): Likewise.
7516 * localedata/locales/ar_LB (t_fmt): Likewise.
7517 * localedata/locales/ar_LY (t_fmt): Likewise.
7518 * localedata/locales/ar_OM (t_fmt): Likewise.
7519 * localedata/locales/ar_QA (t_fmt): Likewise.
7520 * localedata/locales/ar_SD (t_fmt): Likewise.
7521 * localedata/locales/ar_SS (t_fmt): Likewise.
7522 * localedata/locales/ar_SY (t_fmt): Likewise.
7523 * localedata/locales/ar_TN (t_fmt): Likewise.
7524 * localedata/locales/ar_YE (t_fmt): Likewise.
7525
7526 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
7527 (t_fmt_ampm): Likewise.
7528 * localedata/locales/gez_ET (t_fmt): Likewise.
7529 (t_fmt_ampm): Likewise.
7530
7531 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
7532 (t_fmt_ampm): Likewise.
7533 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
7534
7535 * localedata/locales/zh_HK (t_fmt):
7536 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
7537
7538 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
7539 because this locale does not use the 12-hour clock.
7540 (t_fmt): Set to "%Z %H:%M:%S".
7541 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
7542
7543 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
7544 because this locale does not use the 12-hour clock.
7545 (t_fmt): Set to "%H:%M:%S %Z".
7546 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
7547
7548 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
7549 because this locale does not use the 12-hour clock.
7550 (t_fmt): Set to "%T".
7551 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
7552 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
7553
7554 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
7555 because this locale does not use the 12-hour clock.
7556 (t_fmt): Set to "%H:%M:%S %Z".
7557 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
7558
7559 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
7560 because this locale does not use the 12-hour clock.
7561 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
7562 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
7563
7564 2018-12-28 Rafał Lużyński <digitalfreak@lingonborough.com>
7565
7566 [BZ #10496]
7567 [BZ #23724]
7568 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
7569 (t_fmt_ampm): Likewise.
7570 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
7571 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
7572 (d_fmt): Set to "%-d.%-m.%y".
7573
7574 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7575
7576 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
7577 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
7578 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
7579 Likewise.
7580 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
7581 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
7582 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
7583 function.
7584 * support/blob_repeat.c (check_mul_overflow_size_t,
7585 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
7586
7587 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
7588
7589 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
7590
7591 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
7592
7593 regex: simplify Gnulib port
7594 This simplifies the code, by removing stuff intended for porting
7595 to Gnulib but no longer needed there.
7596 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
7597 uses of libc_hidden_def, weak_alias.
7598 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
7599 _Restrict_ except for public-facing headers.
7600 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
7601 Remove; already defined elsewhere.
7602 * posix/regex.c, posix/regex_internal.h:
7603 Use __GNUC_PREREQ instead of rolling our own.
7604 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
7605
7606 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
7607
7608 * benchtests/bench-strlen.c (generic_strlen): New function.
7609 (memchr_strlen): New function.
7610
7611 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
7612
7613 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
7614 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
7615 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
7616
7617 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
7618
7619 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
7620
7621 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
7622
7623 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
7624 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
7625 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
7626 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
7627 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
7628 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
7629 <sysdeps/ieee754/flt-32/s_sincosf.c>.
7630
7631 2018-12-21 Joseph Myers <joseph@codesourcery.com>
7632
7633 [BZ #24023]
7634 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
7635 PLT reference in libc.so.
7636 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
7637 _Q_lltoq and _Q_qtod PLT references in libc.so.
7638
7639 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
7640
7641 * benchtests/bench-memchr.c: Cleanup defines.
7642 * benchtests/bench-memcmp.c: Likewise.
7643 * benchtests/bench-memset.c: Likewise.
7644 * benchtests/bench-memset-large.c: Likewise.
7645 * benchtests/bench-memset-walk.c: Likewise.
7646 * benchtests/bench-stpcpy.c: Likewise.
7647 * benchtests/bench-stpncpy.c: Likewise.
7648 * benchtests/bench-strcat.c: Likewise.
7649 * benchtests/bench-strchr.c: Likewise.
7650 * benchtests/bench-strcmp.c: Likewise.
7651 * benchtests/bench-strcpy.c: Likewise.
7652 * benchtests/bench-strcspn.c: Likewise.
7653 * benchtests/bench-string.h: Likewise.
7654 * benchtests/bench-strlen.c: Likewise.
7655 * benchtests/bench-strncat.c: Likewise.
7656 * benchtests/bench-strncmp.c: Likewise.
7657 * benchtests/bench-strncpy.c: Likewise.
7658 * benchtests/bench-strnlen.c: Likewise.
7659 * benchtests/bench-strpbrk.c: Likewise.
7660 * benchtests/bench-strrchr.c: Likewise.
7661 * benchtests/bench-strspn.c: Likewise.
7662
7663 2018-12-21 Joseph Myers <joseph@codesourcery.com>
7664
7665 * stdlib/longlong.h: Update from GCC.
7666
7667 [BZ #23993]
7668 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
7669 * configure: Regenerated.
7670 * manual/install.texi (Tools for Compilation): Update minimum GCC
7671 version.
7672 * INSTALL: Regenerated.
7673
7674 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
7675
7676 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
7677
7678 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
7679
7680 * malloc/malloc.c (mremap_chunk): Additional checks.
7681
7682 2018-12-21 Mao Han <han_mao@c-sky.com>
7683
7684 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
7685 * scripts/build-many-glibcs.py: Add C-SKY targets.
7686 * sysdeps/csky/Implies: New file.
7687 * sysdeps/csky/Makefile: Likewise.
7688 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
7689 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
7690 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
7691 * sysdeps/csky/abiv2/memcmp.S: Likewise.
7692 * sysdeps/csky/abiv2/memcpy.S: Likewise.
7693 * sysdeps/csky/abiv2/memmove.S: Likewise.
7694 * sysdeps/csky/abiv2/memset.S: Likewise.
7695 * sysdeps/csky/abiv2/setjmp.S: Likewise.
7696 * sysdeps/csky/abiv2/start.S: Likewise.
7697 * sysdeps/csky/abiv2/strcmp.S: Likewise.
7698 * sysdeps/csky/abiv2/strcpy.S: Likewise.
7699 * sysdeps/csky/abiv2/strlen.S: Likewise.
7700 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
7701 * sysdeps/csky/abort-instr.h: Likewise.
7702 * sysdeps/csky/atomic-machine.h: Likewise.
7703 * sysdeps/csky/bits/endian.h: Likewise.
7704 * sysdeps/csky/bits/fenv.h: Likewise.
7705 * sysdeps/csky/bits/link.h: Likewise.
7706 * sysdeps/csky/bits/setjmp.h: Likewise.
7707 * sysdeps/csky/bsd-_setjmp.S: Likewise.
7708 * sysdeps/csky/bsd-setjmp.S: Likewise.
7709 * sysdeps/csky/configure: Likewise.
7710 * sysdeps/csky/configure.ac: Likewise.
7711 * sysdeps/csky/dl-machine.h: Likewise.
7712 * sysdeps/csky/dl-procinfo.c: Likewise.
7713 * sysdeps/csky/dl-procinfo.h: Likewise.
7714 * sysdeps/csky/dl-sysdep.h: Likewise.
7715 * sysdeps/csky/dl-tls.h: Likewise.
7716 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
7717 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
7718 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
7719 * sysdeps/csky/fpu/fegetenv.c: Likewise.
7720 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
7721 * sysdeps/csky/fpu/fegetmode.c: Likewise.
7722 * sysdeps/csky/fpu/fegetround.c: Likewise.
7723 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
7724 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
7725 * sysdeps/csky/fpu/fenv_private.h: Likewise.
7726 * sysdeps/csky/fpu/fesetenv.c: Likewise.
7727 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
7728 * sysdeps/csky/fpu/fesetmode.c: Likewise.
7729 * sysdeps/csky/fpu/fesetround.c: Likewise.
7730 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
7731 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
7732 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
7733 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
7734 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
7735 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
7736 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
7737 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
7738 * sysdeps/csky/fpu_control.h: Likewise.
7739 * sysdeps/csky/gccframe.h: Likewise.
7740 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
7741 * sysdeps/csky/ldsodefs.h: Likewise.
7742 * sysdeps/csky/libc-tls.c: Likewise.
7743 * sysdeps/csky/linkmap.h: Likewise.
7744 * sysdeps/csky/machine-gmon.h: Likewise.
7745 * sysdeps/csky/memusage.h: Likewise.
7746 * sysdeps/csky/nofpu/Implies: Likewise.
7747 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
7748 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
7749 * sysdeps/csky/nptl/Makefile: Likewise.
7750 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
7751 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
7752 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
7753 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
7754 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
7755 * sysdeps/csky/nptl/tls.h: Likewise.
7756 * sysdeps/csky/preconfigure: Likewise.
7757 * sysdeps/csky/sfp-machine.h: Likewise.
7758 * sysdeps/csky/sotruss-lib.c: Likewise.
7759 * sysdeps/csky/stackinfo.h: Likewise.
7760 * sysdeps/csky/sysdep.h: Likewise.
7761 * sysdeps/csky/tininess.h: Likewise.
7762 * sysdeps/csky/tst-audit.h: Likewise.
7763 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
7764 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
7765 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
7766 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
7767 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
7768 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
7769 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
7770 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
7771 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
7772 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
7773 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
7774 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
7775 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
7776 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
7777 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
7778 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
7779 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
7780 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
7781 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
7782 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
7783 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
7784 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
7785 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
7786 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
7787 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
7788 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
7789 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
7790 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
7791 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
7792 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
7793 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
7794 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
7795 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
7796 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
7797 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
7798 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
7799 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
7800 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
7801 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
7802 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
7803 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
7804 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
7805 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
7806 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
7807
7808 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
7809
7810 * include/time.h (__difftime64): Add.
7811 * time/difftime.c (subtract): convert to 64-bit time.
7812 * time/difftime.c (__difftime64): Add.
7813 * time/difftime.c (__difftime): Wrap around __difftime64.
7814
7815 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
7816
7817 * manual/examples/add.c: Remove redundant "if not".
7818 * manual/examples/argp-ex1.c: Likewise.
7819 * manual/examples/argp-ex2.c: Likewise.
7820 * manual/examples/argp-ex3.c: Likewise.
7821 * manual/examples/argp-ex4.c: Likewise.
7822 * manual/examples/atexit.c: Likewise.
7823 * manual/examples/db.c: Likewise.
7824 * manual/examples/dir.c: Likewise.
7825 * manual/examples/dir2.c: Likewise.
7826 * manual/examples/execinfo.c: Likewise.
7827 * manual/examples/filecli.c: Likewise.
7828 * manual/examples/filesrv.c: Likewise.
7829 * manual/examples/fmtmsgexpl.c: Likewise.
7830 * manual/examples/genpass.c: Likewise.
7831 * manual/examples/inetcli.c: Likewise.
7832 * manual/examples/inetsrv.c: Likewise.
7833 * manual/examples/isockad.c: Likewise.
7834 * manual/examples/longopt.c: Likewise.
7835 * manual/examples/memopen.c: Likewise.
7836 * manual/examples/memstrm.c: Likewise.
7837 * manual/examples/mkdirent.c: Likewise.
7838 * manual/examples/mkfsock.c: Likewise.
7839 * manual/examples/mkisock.c: Likewise.
7840 * manual/examples/mygetpass.c: Likewise.
7841 * manual/examples/pipe.c: Likewise.
7842 * manual/examples/popen.c: Likewise.
7843 * manual/examples/rprintf.c: Likewise.
7844 * manual/examples/search.c: Likewise.
7845 * manual/examples/select.c: Likewise.
7846 * manual/examples/setjmp.c: Likewise.
7847 * manual/examples/sigh1.c: Likewise.
7848 * manual/examples/sigusr.c: Likewise.
7849 * manual/examples/stpcpy.c: Likewise.
7850 * manual/examples/strdupa.c: Likewise.
7851 * manual/examples/strftim.c: Likewise.
7852 * manual/examples/subopt.c: Likewise.
7853 * manual/examples/swapcontext.c: Likewise.
7854 * manual/examples/termios.c: Likewise.
7855 * manual/examples/testopt.c: Likewise.
7856 * manual/examples/testpass.c: Likewise.
7857 * manual/examples/timeval_subtract.c: Likewise.
7858
7859 2018-12-19 Joseph Myers <joseph@codesourcery.com>
7860
7861 * sysdeps/x86/fpu/math_private.h: New file.
7862 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
7863
7864 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
7865 definition.
7866 (cosh): Likewise.
7867 (tanh): Likewise.
7868
7869 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
7870
7871 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
7872 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
7873 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
7874 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
7875 fields.
7876 (_dl_show_auxv): Give a special treatment to
7877 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
7878 and AT_L3_CACHEGEOMETRY.
7879 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
7880 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
7881 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
7882 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
7883
7884 2018-12-19 Andreas Schwab <schwab@suse.de>
7885
7886 * nscd/connections.c (check_use): Don't abort on invalid len.
7887
7888 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
7889
7890 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
7891 values in the 64bit value cases.
7892
7893 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
7894
7895 * include/time.h
7896 (__ctime64_r): Add.
7897 * time/ctime_r.c
7898 (__ctime64_r): Add.
7899 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
7900
7901 * include/time.h
7902 (__ctime64): Add.
7903 * time/gmtime.c
7904 (__ctime64): Add.
7905 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
7906
7907 * include/time.h
7908 (__gmtime64_r): Add.
7909 * time/gmtime.c
7910 (__gmtime64_r): Add.
7911 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
7912
7913 * include/time.h
7914 (__gmtime64): Add.
7915 * time/gmtime.c
7916 (__gmtime64): Add.
7917 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
7918
7919 * include/time.h
7920 (__localtime64_r): Add.
7921 * time/localtime.c
7922 (__localtime64_r): Add.
7923 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
7924
7925 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7926
7927 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
7928 kernel_sigction definition.
7929
7930 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
7931
7932 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
7933
7934 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
7935 __syscall_rt_sigaction.
7936 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
7937 (kernel_sigaction): Use Linux generic defintion.
7938 (STUB): Define.
7939 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
7940 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
7941 (__syscall_rt_sigaction): Remove implementation.
7942 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
7943 hidden.
7944 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
7945 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
7946 INTERNAL_SYSCALL): Remove definitions.
7947 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
7948 action and signal set size.
7949 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
7950 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
7951
7952 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7953 James Clarke <jrtc27@jrtc27.com>
7954
7955 [BZ #23967]
7956 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
7957 Define if SA_RESTORER is defined.
7958 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
7959 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
7960 already defined.
7961 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
7962 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
7963 definitions.
7964 (HAS_SA_RESTORER): Define.
7965 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
7966 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
7967 (HAS_SA_RESTORER): Define.
7968 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
7969 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
7970 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
7971 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
7972 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
7973
7974 2018-12-18 Joseph Myers <joseph@codesourcery.com>
7975
7976 * sysdeps/unix/sysv/linux/kernel-features.h
7977 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
7978 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
7979 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
7980 * sysdeps/unix/sysv/linux/sh/kernel-features.h
7981 (__ASSUME_ST_INO_64_BIT): Likewise.
7982 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
7983 <kernel-features.h>.
7984 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
7985 Remove conditional code.
7986 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
7987 <kernel-features.h>.
7988 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
7989 Remove conditional code.
7990 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
7991 <kernel-features.h>.
7992 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
7993 Remove conditional code.
7994 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
7995 <kernel-features.h>.
7996 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
7997 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
7998
7999 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8000
8001 * sysdeps/s390/multiarch/ifunc-resolve.h
8002 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
8003 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
8004 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
8005 Delete macro definition.
8006 (s390_libc_ifunc_init): Rename to
8007 s390_libc_ifunc_expr_stfle_init.
8008 * sysdeps/s390/bzero: Use
8009 s390_libc_ifunc_expr_stfle_init instead of
8010 s390_libc_ifunc_init.
8011 * sysdeps/s390/memcmp.c: Likewise.
8012 * sysdeps/s390/memcpy.c: Likewise.
8013 * sysdeps/s390/mempcpy.c: Likewise.
8014 * sysdeps/s390/memset.c: Likewise.
8015
8016 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8017
8018 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
8019 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
8020
8021 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8022
8023 * sysdeps/s390/multiarch/Makefile
8024 (sysdep_routines): Remove wmemcmp variants.
8025 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
8026 * sysdeps/s390/multiarch/ifunc-impl-list.c
8027 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
8028 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
8029 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
8030 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
8031 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
8032 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
8033 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
8034 * sysdeps/s390/ifunc-wmemcmp.h: New file.
8035
8036 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8037
8038 * sysdeps/s390/multiarch/Makefile
8039 (sysdep_routines): Remove wmemset variants.
8040 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
8041 * sysdeps/s390/multiarch/ifunc-impl-list.c
8042 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
8043 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
8044 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
8045 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
8046 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
8047 * sysdeps/s390/multiarch/wmemset.c: Move to ...
8048 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
8049 * sysdeps/s390/ifunc-wmemset.h: New file.
8050
8051 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8052
8053 * sysdeps/s390/multiarch/Makefile
8054 (sysdep_routines): Remove wmemchr variants.
8055 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
8056 * sysdeps/s390/multiarch/ifunc-impl-list.c
8057 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
8058 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
8059 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
8060 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
8061 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
8062 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
8063 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
8064 * sysdeps/s390/ifunc-wmemchr.h: New file.
8065
8066 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8067
8068 * sysdeps/s390/multiarch/Makefile
8069 (sysdep_routines): Remove wcscspn variants.
8070 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
8071 * sysdeps/s390/multiarch/ifunc-impl-list.c
8072 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
8073 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
8074 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
8075 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
8076 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
8077 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
8078 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
8079 * sysdeps/s390/ifunc-wcscspn.h: New file.
8080
8081 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8082
8083 * sysdeps/s390/multiarch/Makefile
8084 (sysdep_routines): Remove wcspbrk variants.
8085 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
8086 * sysdeps/s390/multiarch/ifunc-impl-list.c
8087 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
8088 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
8089 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
8090 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
8091 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
8092 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
8093 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
8094 * sysdeps/s390/ifunc-wcspbrk.h: New file.
8095
8096 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8097
8098 * sysdeps/s390/multiarch/Makefile
8099 (sysdep_routines): Remove wcsspn variants.
8100 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
8101 * sysdeps/s390/multiarch/ifunc-impl-list.c
8102 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
8103 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
8104 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
8105 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
8106 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
8107 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
8108 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
8109 * sysdeps/s390/ifunc-wcsspn.h: New file.
8110
8111 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8112
8113 * sysdeps/s390/multiarch/Makefile
8114 (sysdep_routines): Remove wcsrchr variants.
8115 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
8116 * sysdeps/s390/multiarch/ifunc-impl-list.c
8117 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
8118 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
8119 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
8120 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
8121 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
8122 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
8123 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
8124 * sysdeps/s390/ifunc-wcsrchr.h: New file.
8125
8126 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8127
8128 * sysdeps/s390/multiarch/Makefile
8129 (sysdep_routines): Remove wcschrnul variants.
8130 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
8131 * sysdeps/s390/multiarch/ifunc-impl-list.c
8132 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
8133 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
8134 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
8135 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
8136 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
8137 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
8138 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
8139 * sysdeps/s390/ifunc-wcschrnul.h: New file.
8140
8141 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8142
8143 * sysdeps/s390/multiarch/Makefile
8144 (sysdep_routines): Remove wcschr variants.
8145 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
8146 * sysdeps/s390/multiarch/ifunc-impl-list.c
8147 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
8148 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
8149 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
8150 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
8151 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
8152 * sysdeps/s390/multiarch/wcschr.c: Move to ...
8153 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
8154 * sysdeps/s390/ifunc-wcschr.h: New file.
8155
8156 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8157
8158 * sysdeps/s390/multiarch/Makefile
8159 (sysdep_routines): Remove wcsncmp variants.
8160 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
8161 * sysdeps/s390/multiarch/ifunc-impl-list.c
8162 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
8163 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
8164 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
8165 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
8166 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
8167 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
8168 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
8169 * sysdeps/s390/ifunc-wcsncmp.h: New file.
8170
8171 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8172
8173 * sysdeps/s390/multiarch/Makefile
8174 (sysdep_routines): Remove wcscmp variants.
8175 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
8176 * sysdeps/s390/multiarch/ifunc-impl-list.c
8177 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
8178 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
8179 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
8180 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
8181 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
8182 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
8183 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
8184 * sysdeps/s390/ifunc-wcscmp.h: New file.
8185
8186 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8187
8188 * sysdeps/s390/multiarch/Makefile
8189 (sysdep_routines): Remove wcsncat variants.
8190 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
8191 * sysdeps/s390/multiarch/ifunc-impl-list.c
8192 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
8193 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
8194 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
8195 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
8196 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
8197 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
8198 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
8199 * sysdeps/s390/ifunc-wcsncat.h: New file.
8200
8201 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8202
8203 * sysdeps/s390/multiarch/Makefile
8204 (sysdep_routines): Remove wcscat variants.
8205 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
8206 * sysdeps/s390/multiarch/ifunc-impl-list.c
8207 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
8208 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
8209 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
8210 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
8211 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
8212 * sysdeps/s390/multiarch/wcscat.c: Move to ...
8213 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
8214 * sysdeps/s390/ifunc-wcscat.h: New file.
8215
8216 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8217
8218 * sysdeps/s390/multiarch/Makefile
8219 (sysdep_routines): Remove wcpncpy variants.
8220 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
8221 * sysdeps/s390/multiarch/ifunc-impl-list.c
8222 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
8223 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
8224 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
8225 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
8226 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
8227 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
8228 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
8229 * sysdeps/s390/ifunc-wcpncpy.h: New file.
8230
8231 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8232
8233 * sysdeps/s390/multiarch/Makefile
8234 (sysdep_routines): Remove wcsncpy variants.
8235 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
8236 * sysdeps/s390/multiarch/ifunc-impl-list.c
8237 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
8238 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
8239 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
8240 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
8241 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
8242 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
8243 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
8244 * sysdeps/s390/ifunc-wcsncpy.h: New file.
8245
8246 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8247
8248 * sysdeps/s390/multiarch/Makefile
8249 (sysdep_routines): Remove wcpcpy variants.
8250 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
8251 * sysdeps/s390/multiarch/ifunc-impl-list.c
8252 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
8253 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
8254 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
8255 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
8256 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
8257 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
8258 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
8259 * sysdeps/s390/ifunc-wcpcpy.h: New file.
8260
8261 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8262
8263 * sysdeps/s390/multiarch/Makefile
8264 (sysdep_routines): Remove wcscpy variants.
8265 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
8266 * sysdeps/s390/multiarch/ifunc-impl-list.c
8267 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
8268 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
8269 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
8270 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
8271 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
8272 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
8273 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
8274 * sysdeps/s390/ifunc-wcscpy.h: New file.
8275
8276 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8277
8278 * sysdeps/s390/multiarch/Makefile
8279 (sysdep_routines): Remove wcsnlen variants.
8280 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
8281 * sysdeps/s390/multiarch/ifunc-impl-list.c
8282 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
8283 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
8284 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
8285 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
8286 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
8287 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
8288 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
8289 * sysdeps/s390/ifunc-wcsnlen.h: New file.
8290
8291 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8292
8293 * sysdeps/s390/multiarch/Makefile
8294 (sysdep_routines): Remove wcslen variants.
8295 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
8296 * sysdeps/s390/multiarch/ifunc-impl-list.c
8297 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
8298 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
8299 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
8300 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
8301 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
8302 * sysdeps/s390/multiarch/wcslen.c: Move to ...
8303 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
8304 * sysdeps/s390/ifunc-wcslen.h: New file.
8305
8306 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8307
8308 * sysdeps/s390/multiarch/Makefile
8309 (sysdep_routines): Remove memrchr variants.
8310 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
8311 * sysdeps/s390/multiarch/ifunc-impl-list.c
8312 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
8313 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
8314 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
8315 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
8316 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
8317 * sysdeps/s390/multiarch/memrchr.c: Move to ...
8318 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
8319 * sysdeps/s390/ifunc-memrchr.h: New file.
8320
8321 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8322
8323 * sysdeps/s390/multiarch/Makefile
8324 (sysdep_routines): Remove memccpy variants.
8325 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
8326 * sysdeps/s390/multiarch/ifunc-impl-list.c
8327 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
8328 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
8329 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
8330 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
8331 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
8332 * sysdeps/s390/multiarch/memccpy.c: Move to ...
8333 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
8334 * sysdeps/s390/ifunc-memccpy.h: New file.
8335
8336 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8337
8338 * sysdeps/s390/multiarch/Makefile
8339 (sysdep_routines): Remove rawmemchr variants.
8340 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
8341 * sysdeps/s390/multiarch/ifunc-impl-list.c
8342 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
8343 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
8344 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
8345 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
8346 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
8347 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
8348 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
8349 * sysdeps/s390/ifunc-rawmemchr.h: New file.
8350
8351 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8352
8353 * sysdeps/s390/multiarch/Makefile
8354 (sysdep_routines): Remove memchr variants.
8355 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
8356 * sysdeps/s390/multiarch/ifunc-impl-list.c
8357 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
8358 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
8359 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
8360 * sysdeps/s390/multiarch/memchr.c: Move to ...
8361 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
8362 * sysdeps/s390/ifunc-memchr.h: New file.
8363 * sysdeps/s390/s390-64/memchr.S: Move to ...
8364 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
8365 for 31/64bit and ifunc handling.
8366 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
8367 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
8368 * sysdeps/s390/s390-32/memchr.S: Likewise.
8369
8370 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8371
8372 * sysdeps/s390/multiarch/Makefile
8373 (sysdep_routines): Remove strcspn variants.
8374 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
8375 * sysdeps/s390/multiarch/ifunc-impl-list.c
8376 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
8377 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
8378 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
8379 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
8380 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
8381 * sysdeps/s390/multiarch/strcspn.c: Move to ...
8382 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
8383 * sysdeps/s390/ifunc-strcspn.h: New file.
8384
8385 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8386
8387 * sysdeps/s390/multiarch/Makefile
8388 (sysdep_routines): Remove strpbrk variants.
8389 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
8390 * sysdeps/s390/multiarch/ifunc-impl-list.c
8391 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
8392 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
8393 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
8394 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
8395 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
8396 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
8397 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
8398 * sysdeps/s390/ifunc-strpbrk.h: New file.
8399
8400 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8401
8402 * sysdeps/s390/multiarch/Makefile
8403 (sysdep_routines): Remove strspn variants.
8404 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
8405 * sysdeps/s390/multiarch/ifunc-impl-list.c
8406 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
8407 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
8408 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
8409 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
8410 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
8411 * sysdeps/s390/multiarch/strspn.c: Move to ...
8412 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
8413 * sysdeps/s390/ifunc-strspn.h: New file.
8414
8415 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8416
8417 * sysdeps/s390/multiarch/Makefile
8418 (sysdep_routines): Remove strrchr variants.
8419 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
8420 * sysdeps/s390/multiarch/ifunc-impl-list.c
8421 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
8422 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
8423 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
8424 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
8425 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
8426 * sysdeps/s390/multiarch/strrchr.c: Move to ...
8427 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
8428 * sysdeps/s390/ifunc-strrchr.h: New file.
8429
8430 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8431
8432 * sysdeps/s390/multiarch/Makefile
8433 (sysdep_routines): Remove strchrnul variants.
8434 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
8435 * sysdeps/s390/multiarch/ifunc-impl-list.c
8436 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
8437 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
8438 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
8439 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
8440 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
8441 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
8442 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
8443 * sysdeps/s390/ifunc-strchrnul.h: New file.
8444
8445 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8446
8447 * sysdeps/s390/multiarch/Makefile
8448 (sysdep_routines): Remove strchr variants.
8449 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
8450 * sysdeps/s390/multiarch/ifunc-impl-list.c
8451 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
8452 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
8453 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
8454 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
8455 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
8456 * sysdeps/s390/multiarch/strchr.c: Move to ...
8457 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
8458 * sysdeps/s390/ifunc-strchr.h: New file.
8459
8460 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8461
8462 * sysdeps/s390/multiarch/Makefile
8463 (sysdep_routines): Remove strncmp variants.
8464 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
8465 * sysdeps/s390/multiarch/ifunc-impl-list.c
8466 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
8467 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
8468 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
8469 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
8470 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
8471 * sysdeps/s390/multiarch/strncmp.c: Move to ...
8472 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
8473 * sysdeps/s390/ifunc-strncmp.h: New file.
8474
8475 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8476
8477 * sysdeps/s390/multiarch/Makefile
8478 (sysdep_routines): Remove strcmp variants.
8479 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
8480 * sysdeps/s390/multiarch/ifunc-impl-list.c
8481 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
8482 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
8483 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
8484 * sysdeps/s390/multiarch/strcmp.c: Move to ...
8485 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
8486 * sysdeps/s390/ifunc-strcmp.h: New file.
8487 * sysdeps/s390/s390-64/strcmp.S: Move to ...
8488 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
8489 for 31/64bit and ifunc handling.
8490 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
8491 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
8492 * sysdeps/s390/s390-32/strcmp.S: Likewise.
8493
8494 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8495
8496 * sysdeps/s390/multiarch/Makefile
8497 (sysdep_routines): Remove strncat variants.
8498 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
8499 * sysdeps/s390/multiarch/ifunc-impl-list.c
8500 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
8501 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
8502 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
8503 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
8504 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
8505 * sysdeps/s390/multiarch/strncat.c: Move to ...
8506 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
8507 * sysdeps/s390/ifunc-strncat.h: New file.
8508
8509 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8510
8511 * sysdeps/s390/multiarch/Makefile
8512 (sysdep_routines): Remove strcat variants.
8513 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
8514 * sysdeps/s390/multiarch/ifunc-impl-list.c
8515 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
8516 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
8517 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
8518 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
8519 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
8520 * sysdeps/s390/multiarch/strcat.c: Move to ...
8521 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
8522 * sysdeps/s390/ifunc-strcat.h: New file.
8523
8524 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8525
8526 * sysdeps/s390/multiarch/Makefile
8527 (sysdep_routines): Remove stpncpy variants.
8528 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
8529 * sysdeps/s390/multiarch/ifunc-impl-list.c
8530 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
8531 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
8532 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
8533 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
8534 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
8535 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
8536 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
8537 * sysdeps/s390/ifunc-stpncpy.h: New file.
8538
8539 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8540
8541 * sysdeps/s390/multiarch/Makefile
8542 (sysdep_routines): Remove strncpy variants.
8543 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
8544 * sysdeps/s390/multiarch/ifunc-impl-list.c
8545 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
8546 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
8547 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
8548 * sysdeps/s390/multiarch/strncpy.c: Move to ...
8549 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
8550 * sysdeps/s390/ifunc-strncpy.h: New file.
8551 * sysdeps/s390/s390-64/strncpy.S: Move to ...
8552 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
8553 and adjust ifunc handling.
8554 * sysdeps/s390/s390-32/strncpy.S: Move to ...
8555 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
8556 and adjust ifunc handling.
8557 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
8558 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
8559
8560 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8561
8562 * sysdeps/s390/multiarch/Makefile
8563 (sysdep_routines): Remove stpcpy variants.
8564 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
8565 * sysdeps/s390/multiarch/ifunc-impl-list.c
8566 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
8567 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
8568 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
8569 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
8570 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
8571 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
8572 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
8573 * sysdeps/s390/ifunc-stpcpy.h: New file.
8574
8575 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8576
8577 * sysdeps/s390/multiarch/Makefile
8578 (sysdep_routines): Remove strcpy variants.
8579 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
8580 * sysdeps/s390/multiarch/ifunc-impl-list.c
8581 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
8582 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
8583 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
8584 * sysdeps/s390/multiarch/strcpy.c: Move to ...
8585 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
8586 * sysdeps/s390/ifunc-strcpy.h: New file.
8587 * sysdeps/s390/s390-64/strcpy.S: Move to ...
8588 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
8589 for 31/64bit and ifunc handling.
8590 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
8591 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
8592 * sysdeps/s390/s390-32/strcpy.S: Likewise.
8593
8594 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8595
8596 * sysdeps/s390/multiarch/Makefile
8597 (sysdep_routines): Remove strnlen variants.
8598 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
8599 * sysdeps/s390/multiarch/ifunc-impl-list.c
8600 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
8601 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
8602 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
8603 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
8604 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
8605 * sysdeps/s390/multiarch/strnlen.c: Move to ...
8606 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
8607 * sysdeps/s390/ifunc-strnlen.h: New file.
8608
8609 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8610
8611 * sysdeps/s390/multiarch/Makefile
8612 (sysdep_routines): Remove strlen variants.
8613 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
8614 * sysdeps/s390/multiarch/ifunc-impl-list.c
8615 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
8616 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
8617 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
8618 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
8619 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
8620 * sysdeps/s390/multiarch/strlen.c: Move to ...
8621 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
8622 * sysdeps/s390/ifunc-strlen.h: New file.
8623
8624 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8625
8626 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
8627 * sysdeps/s390/multiarch/ifunc-impl-list.c
8628 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
8629 * sysdeps/s390/ifunc-memmem.h: New file.
8630 * sysdeps/s390/memmem.c: Likewise.
8631 * sysdeps/s390/memmem-c.c: Likewise.
8632 * sysdeps/s390/memmem-vx.c: Likewise.
8633
8634 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8635
8636 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
8637 * sysdeps/s390/multiarch/ifunc-impl-list.c
8638 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
8639 * sysdeps/s390/ifunc-strstr.h: New file.
8640 * sysdeps/s390/strstr.c: Likewise.
8641 * sysdeps/s390/strstr-c.c: Likewise.
8642 * sysdeps/s390/strstr-vx.c: Likewise.
8643
8644 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8645
8646 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
8647 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
8648 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
8649 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
8650 New defines.
8651 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
8652 * sysdeps/s390/memmove-c.c: New file.
8653 * sysdeps/s390/memmove.c: Likewise.
8654 * sysdeps/s390/multiarch/ifunc-impl-list.c
8655 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
8656
8657 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8658
8659 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
8660 * sysdeps/s390/configure.ac: Add check for z13 support.
8661 * sysdeps/s390/configure: Regenerated.
8662
8663 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8664
8665 * sysdeps/s390/memcopy.h: New file.
8666
8667 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8668
8669 * sysdeps/s390/s390-32/bcopy.S: Remove.
8670 * sysdeps/s390/s390-64/bcopy.S: Likewise.
8671
8672 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8673
8674 * sysdeps/s390/ifunc-memcpy.h: New File.
8675 * sysdeps/s390/memcpy.S: Move to ...
8676 * sysdeps/s390/memcpy-z900.S ... here.
8677 Move implementations from memcpy-s390x.s to here.
8678 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
8679 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
8680 Remove memcpy/mempcpy variants.
8681 * sysdeps/s390/Makefile (sysdep_routines):
8682 Add memcpy/mempcpy variants.
8683 * sysdeps/s390/multiarch/ifunc-impl-list.c
8684 (__libc_ifunc_impl_list): Adjust ifunc variants for
8685 memcpy and mempcpy.
8686 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
8687 to ...
8688 * sysdeps/s390/memcpy.c: ... here.
8689 Adjust ifunc variants for memcpy.
8690 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
8691 * sysdeps/s390/mempcpy.c: ... here.
8692 Adjust ifunc variants for mempcpy.
8693 * sysdeps/s390/mempcpy.S: Delete file.
8694
8695 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8696
8697 * sysdeps/s390/s390-64/memcpy.S: Move to ...
8698 * sysdeps/s390/memcpy.S: ... here.
8699 Adjust to be usable for 31/64bit.
8700 * sysdeps/s390/s390-32/memcpy.S: Delete File.
8701 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
8702 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
8703 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
8704 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
8705 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
8706 Adjust to be usable for 31/64bit.
8707 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
8708 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
8709 * sysdeps/s390/multiarch/memcpy.c: ... here.
8710 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
8711
8712 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8713
8714 * sysdeps/s390/ifunc-memcmp.h: New File.
8715 * sysdeps/s390/memcmp.S: Move to ...
8716 * sysdeps/s390/memcmp-z900.S ... here.
8717 Move implementations from memcmp-s390x.s to here.
8718 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
8719 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
8720 Remove memcmp variants.
8721 * sysdeps/s390/Makefile (sysdep_routines):
8722 Add memcmp variants.
8723 * sysdeps/s390/multiarch/ifunc-impl-list.c
8724 (__libc_ifunc_impl_list): Adjust ifunc variants for
8725 memcmp.
8726 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
8727 to ...
8728 * sysdeps/s390/memcmp.c: ... here.
8729 Adjust ifunc variants for memcmp.
8730
8731 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8732
8733 * sysdeps/s390/s390-64/memcmp.S: Move to ...
8734 * sysdeps/s390/memcmp.S: ... here.
8735 Adjust to be usable for 31/64bit.
8736 * sysdeps/s390/s390-32/memcmp.S: Delete File.
8737 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
8738 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
8739 Remove memcmp.
8740 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
8741 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
8742 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
8743 Adjust to be usable for 31/64bit.
8744 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
8745 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
8746 * sysdeps/s390/multiarch/memcmp.c: ... here.
8747 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
8748
8749 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8750
8751 * sysdeps/s390/s390-32/bzero.S: Delete file.
8752 * sysdeps/s390/s390-64/bzero.S: Likewise.
8753 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
8754 * sysdeps/s390/bzero.c: New file.
8755 * sysdeps/s390/memset-z900.S: Add bzero entry points.
8756 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
8757 * sysdeps/s390/multiarch/ifunc-impl-list.c
8758 (__libc_ifunc_impl_list): Add bzero ifunc variants.
8759
8760 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8761
8762 * sysdeps/s390/ifunc-memset.h: New File.
8763 * sysdeps/s390/memset.S: Move to ...
8764 * sysdeps/s390/memset-z900.S ... here.
8765 Move implementations from memset-s390x.s to here.
8766 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
8767 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
8768 Remove memset variants.
8769 * sysdeps/s390/Makefile (sysdep_routines):
8770 Add memset variants.
8771 * sysdeps/s390/multiarch/ifunc-impl-list.c
8772 (__libc_ifunc_impl_list): Adjust ifunc variants for
8773 memset.
8774 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
8775 to ...
8776 * sysdeps/s390/memset.c: ... here.
8777 Adjust ifunc variants for memset.
8778
8779 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8780
8781 * sysdeps/s390/s390-64/memset.S: Move to ...
8782 * sysdeps/s390/memset.S: ... here.
8783 Adjust to be usable for 31/64bit.
8784 * sysdeps/s390/s390-32/memset.S: Delete File.
8785 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
8786 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
8787 Remove memset.
8788 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
8789 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
8790 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
8791 Adjust to be usable for 31/64bit.
8792 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
8793 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
8794 * sysdeps/s390/multiarch/memset.c: ... here.
8795 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
8796
8797 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8798
8799 * sysdeps/s390/multiarch/ifunc-resolve.h
8800 (s390_libc_ifunc_init, s390_libc_ifunc,
8801 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
8802
8803 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8804
8805 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
8806 * sysdeps/s390/configure.ac: Add check for z10 support.
8807 * sysdeps/s390/configure: Regenerated.
8808
8809 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
8810
8811 * sysdeps/i386/atomic-machine.h: Merged with ...
8812 * sysdeps/x86_64/atomic-machine.h: To ...
8813 * sysdeps/x86/atomic-machine.h: This. New file.
8814
8815 2018-12-18 Florian Weimer <fweimer@redhat.com>
8816
8817 Rewrite locale/gen-translit.pl in Python.
8818 * locale/Makefile (generated): Add C-translit.h.
8819 (before-compile): Add $(objpfx)C-translit.h.
8820 (C-translit.h): Move to $(objpfx). Create target directory.
8821 Build using Python script.
8822 * locale/gen-translit.py: New file.
8823 * locale/gen-translit.pl: Remove file.
8824 * locale/C-translit.h.in: Change comment character to '#' for
8825 easier parsing without a C preprocessor.
8826 * locale/C-translit.h: Remove generated file.
8827 * manual/install.texi (Tools for Compilation): Do not mention
8828 C-translit.h.
8829 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
8830 Remove locale/C-translit.h.
8831 * scripts/update-copyrights: Likewise.
8832 * INSTALL: Regenerate.
8833
8834 2018-12-18 Florian Weimer <fweimer@redhat.com>
8835
8836 [BZ #23995]
8837 * localedata/locales/bi_VU: Remove executable bit from file.
8838
8839 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
8840
8841 * include/time.h
8842 (__localtime64): Add.
8843 * manual/maint.texi: Document Y2038 symbol handling.
8844 * time/localtime.c
8845 (__localtime64): Add.
8846 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
8847
8848 2018-12-17 Joseph Myers <joseph@codesourcery.com>
8849
8850 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
8851 Do not clobber r12.
8852
8853 * scripts/glibcextract.py (compare_macro_consts): Take parameters
8854 to allow extra macros from first or second sources.
8855 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
8856 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8857 (tests-special): Add $(objpfx)tst-mman-consts.out.
8858 ($(objpfx)tst-mman-consts.out): New makefile target.
8859
8860 2018-12-17 Mao Han <han_mao@c-sky.com>
8861
8862 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
8863 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
8864 without stat64 system call support.
8865 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
8866 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
8867 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
8868 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
8869 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
8870 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
8871 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
8872 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
8873 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
8874 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
8875 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
8876
8877 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
8878
8879 regex: fix storage-exhaustion error
8880 [BZ #18040]
8881 * posix/regexec.c (get_subexp):
8882 Do not continue if storage is exhausted.
8883
8884 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
8885
8886 regex: fix heap-use-after-free error
8887 [BZ #18040]
8888 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
8889 https://debbugs.gnu.org/32592
8890 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
8891 call extend_buffers which reallocates the re_string_t internal buffer.
8892 Local variable 'buf' was not updated in such case, resulting in
8893 use-after-free.
8894 * posix/regexec.c (get_subexp): Update 'buf' after call to
8895 get_subexp_sub.
8896
8897 2018-12-15 Florian Weimer <fweimer@redhat.com>
8898
8899 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
8900 (minimum_stride_size): Use it.
8901 (support_blob_repeat_allocate): Likewise.
8902
8903 2018-12-14 Joseph Myers <joseph@codesourcery.com>
8904
8905 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
8906 definition.
8907 (acosh): Likewise.
8908 (atanh): Likewise.
8909
8910 2018-12-14 Florian Weimer <fweimer@redhat.com>
8911
8912 * manual/process.texi (Process Creation Concepts): Remove
8913 documentation of process (ID) lifetime. List more process
8914 creation functions. Reference Process Identification section.
8915 (Process Identification): Add information about process ID
8916 lifetime. Describe Linux thread/task IDs.
8917 * manual/signal.texi (Signaling Another Process): Mention that the
8918 signal is always sent to the process.
8919
8920 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
8921
8922 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
8923 and tst-ldbl-efgcvt.
8924 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
8925 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
8926 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
8927 (fcvt_tests, output_error, output_r_error, do_test): Use the
8928 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
8929 select the type of floating-point variables and arguments; to
8930 produce extra tests for double and conversion specifiers for
8931 printf; and to set the names of called functions.
8932 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
8933 in tst-efgcvt-template.c.
8934 * misc/tst-ldbl-efgcvt.c: Likewise.
8935
8936 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
8937
8938 * nss/Makefile (tst-nss-test3.out): New rule.
8939
8940 2018-12-13 Joseph Myers <joseph@codesourcery.com>
8941
8942 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
8943 clobber sp.
8944
8945 2018-12-13 fanjinke <fanjinke@hygon.cn>
8946
8947 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
8948 "HygonGenuine".
8949
8950 2018-12-13 Andreas Schwab <schwab@suse.de>
8951
8952 [BZ #23861]
8953 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
8954 (__pthread_rwlock_rdlock_full): Update expected value for
8955 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
8956 * nptl/tst-rwlock-pwn.c: New file.
8957 * nptl/Makefile (tests): Add tst-rwlock-pwn.
8958
8959 2018-12-12 Joseph Myers <joseph@codesourcery.com>
8960
8961 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
8962 definition.
8963
8964 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
8965
8966 * benchtests/scripts/compare_bench.py (do_compare): write to
8967 stderr in casestat is not present.
8968 * benchtests/scripts/compare_bench.py (plot_graphs): write to
8969 stderr in case timings field is not present. Also string showing
8970 the output filename goes into the stderr.
8971
8972 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
8973
8974 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
8975 and ZeroDivisorError exceptions.
8976 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
8977 argument to loop through user provided statistics.
8978 * benchtests/scripts/compare_bench.py (main): Include the --stats
8979 argument.
8980
8981 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
8982
8983 * benchtests/scripts/compare_bench.py (compare_runs): Continue
8984 instead of return.
8985
8986 2018-12-12 Florian Weimer <fweimer@redhat.com>
8987
8988 * sysdeps/posix/timespec_get.c: Add missing “any later version”
8989 clause to copyright header.
8990
8991 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
8992
8993 [BZ #23614]
8994 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
8995 registers saved in the stack frame.
8996 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
8997 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
8998
8999 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9000
9001 * include/bits/monetary-ldbl.h: New file.
9002 * include/bits/printf-ldbl.h: Likewise.
9003 * include/bits/stdio-ldbl.h: Likewise.
9004 * include/bits/stdlib-ldbl.h: Likewise.
9005 * include/bits/syslog-ldbl.h: Likewise.
9006 * include/bits/wchar-ldbl.h: Likewise.
9007
9008 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9009
9010 * libio/libio.h: Remove redirection for _IO_vfprintf.
9011
9012 2018-12-11 Andreas Schwab <schwab@suse.de>
9013
9014 * Makerules: Remove all references to abilist-pattern.
9015 (update-all-abi): Simplify find expression.
9016
9017 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
9018
9019 [BZ #23961]
9020 * math/auto-libm-test-in: Add new test case.
9021 * math/auto-libm-test-out-pow: Regenerated.
9022 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
9023
9024 2018-12-10 DJ Delorie <dj@redhat.com>
9025
9026 [BZ #23948]
9027 * support/test-container.c: Move postclean step to before we
9028 change namespaces.
9029
9030 2018-12-10 Joseph Myers <joseph@codesourcery.com>
9031
9032 * scripts/gen-as-const.py (main): Handle --python option.
9033 * scripts/gen-py-const.awk: Remove.
9034 * Makerules (py-const-script): Use gen-as-const.py.
9035 ($(py-const)): Likewise.
9036 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
9037 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
9038 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
9039 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
9040 ~PTHREAD_MUTEX_NO_ELISION_NP.
9041 * manual/README.pretty-printers: Update reference to
9042 gen-py-const.awk.
9043
9044 * scripts/glibcextract.py: New file.
9045 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
9046 or tempfile. Import glibcexctract.
9047 (compute_c_consts): Remove. Moved to glibcextract.py.
9048 (gen_test): Update reference to compute_c_consts.
9049 (main): Likewise.
9050 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
9051 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
9052 * sysdeps/unix/sysv/linux/Makefile
9053 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
9054 Redirect stderr as well as stdout.
9055
9056 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
9057
9058 [BZ #19767]
9059 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
9060 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
9061 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
9062 ALWAYS_USE_VSYSCALL.
9063 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
9064 ALWAYS_USE_VSYSCALL.
9065 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
9066 ALWAYS_USE_VSYSCALL.
9067
9068 2018-12-10 Florian Weimer <fweimer@redhat.com>
9069
9070 [BZ #23972]
9071 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
9072 offset instead of count for clarity. Fix typo in comment.
9073 (__old_getdents64): Keep track of previous offset. Use it to call
9074 handle_overflow.
9075 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
9076 that d_off is never zero.
9077
9078 2018-12-10 Andreas Schwab <schwab@suse.de>
9079
9080 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
9081 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
9082 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
9083 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
9084 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
9085
9086 2018-12-10 Joseph Myers <joseph@codesourcery.com>
9087
9088 * timezone/private.h: Update from tzcode 2018g.
9089 * timezone/tzfile.h: Likewise.
9090 * timezone/tzselect.ksh: Likewise.
9091 * timezone/zdump.c: Likewise.
9092 * timezone/zic.c: Likewise.
9093
9094 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
9095
9096 [BZ #23490]
9097 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
9098 (do_test): Adjust buffer size and fix format.
9099
9100 2018-12-07 DJ Delorie <dj@redhat.com>
9101
9102 [BZ #23907]
9103 * malloc/tst-tcfree3.c: New.
9104 * malloc/Makefile: Add it.
9105
9106 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
9107
9108 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
9109
9110 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9111
9112 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
9113 used as a mask for the mode argument of __vfscanf_internal and
9114 __vfwscanf_internal.
9115 * stdio-common/vfscanf-internal.c
9116 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
9117 (__strtof128_internal): Define to __wcstof128_internal.
9118 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
9119 __strtof128_internal or __wcstof128_internal when the format of
9120 long double is the same as _Float128.
9121
9122 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
9123
9124 * include/unistd.h (__confstr): Add prototype and hidden prototype.
9125 * posix/confstr.c (confstr): Rename to __confstr.
9126 (__confstr): Add hidden def.
9127 (confstr): Add weak alias for __confstr.
9128 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
9129 confstr.
9130
9131 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
9132
9133 * NEWS: Mention getcpu.
9134 * include/sched.h (__getcpu): New libc_hidden_proto.
9135 * manual/resource.texi: Document getcpu.
9136 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
9137 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
9138 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
9139 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9140 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
9141 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9142 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
9143 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9144 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9145 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9146 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9147 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9148 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
9149 Likewise.
9150 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9151 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9152 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9153 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9154 Likewise.
9155 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9156 Likewise.
9157 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
9158 Likewise.
9159 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
9160 Likewise.
9161 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9162 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9163 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9164 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9165 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9166 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9167 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9168 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9169 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
9170 * sysdeps/unix/sysv/linux/getcpu.c: New file.
9171 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
9172 Also check getcpu.
9173
9174 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
9175
9176 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
9177 functions.
9178 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
9179
9180 2018-12-07 Florian Weimer <fweimer@redhat.com>
9181
9182 [BZ #17405]
9183 * posix/Makefile (routines): Add spawn_faction_addfchdir.
9184 * posix/Versions (GLIBC_2.29): Export
9185 posix_spawn_file_actions_addfchdir_np.
9186 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
9187 * posix/spawn_faction_destroy.c
9188 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
9189 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
9190 and the field action.fchdir_action.
9191 * posix/tst-spawn-chdir.c (add_chdir): New function.
9192 (do_test): Add do_fchdir loop. Call add_chdir.
9193 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
9194 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
9195 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
9196 posix_spawn_file_actions_addfchdir_np.
9197 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
9198 Likewise.
9199 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
9200 Likewise.
9201 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
9202 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
9203 Likewise.
9204 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
9205 Likewise.
9206 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
9207 Likewise.
9208 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
9209 Likewise.
9210 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
9211 Likewise.
9212 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
9213 Likewise.
9214 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
9215 (GLIBC_2.29): Likewise.
9216 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
9217 (GLIBC_2.29): Likewise.
9218 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
9219 (GLIBC_2.29): Likewise.
9220 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
9221 (GLIBC_2.29): Likewise.
9222 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
9223 Likewise.
9224 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
9225 (GLIBC_2.29): Likewise.
9226 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
9227 (GLIBC_2.29): Likewise.
9228 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
9229 (GLIBC_2.29): Likewise.
9230 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
9231 (GLIBC_2.29): Likewise.
9232 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
9233 Likewise.
9234 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
9235 Likewise.
9236 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
9237 Likewise.
9238 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
9239 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
9240 Likewise.
9241 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
9242 Likewise.
9243 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
9244 Likewise.
9245 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
9246 Likewise.
9247
9248 2018-12-06 Joseph Myers <joseph@codesourcery.com>
9249
9250 * manual/texinfo.tex: Update to version 2018-09-21.20 with
9251 trailing whitespace removed.
9252 * scripts/config.guess: Update to version 2018-11-28.
9253 * scripts/config.sub: Update to version 2018-11-28.
9254 * scripts/install-sh: Update to version 2018-03-11.20.
9255 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
9256 * scripts/move-if-change: Update to version 2018-03-07 03:47.
9257
9258 2018-12-07 Florian Weimer <fweimer@redhat.com>
9259
9260 [BZ #23927]
9261 CVE-2018-19591
9262 * inet/tst-if_index-long.c: New file.
9263 * inet/Makefile (tests): Add tst-if_index-long.
9264
9265 2018-12-07 Florian Weimer <fweimer@redhat.com>
9266
9267 * support/check.h (support_record_failure_is_failed): Declare.
9268 * support/descriptors.h: New file.
9269 * support/support_descriptors.c: Likewise.
9270 * support/tst-support_descriptors.c: Likewise.
9271 * support/support_record_failure.c
9272 (support_record_failure_is_failed): New function.
9273 * support/Makefile (libsupport-routines): Add support_descriptors.
9274 (tests): Add tst-support_descriptors.
9275
9276 2018-12-05 Zack Weinberg <zackw@panix.com>
9277 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9278
9279 * stdio-common/vfprintf-internal.c
9280 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
9281 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
9282 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
9283 and __no_long_double.
9284 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
9285 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
9286 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
9287 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
9288 and __nldbl_*syslog* functions.
9289 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
9290 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
9291 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
9292 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
9293 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
9294 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
9295 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
9296 (__nldbl_vwprintf, __nldbl_wprintf):
9297 Directly call the appropriate __v*printf_internal routine, passing
9298 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
9299 variable names.
9300 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
9301 (__nldbl___printf_chk, __nldbl___snprintf_chk)
9302 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
9303 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
9304 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
9305 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
9306 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
9307 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
9308 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
9309 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
9310 Likewise, and also pass PRINTF_FORTIFY when appropriate.
9311 (__nldbl_syslog, __nldbl_vsyslog):
9312 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
9313 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
9314 appropriate.
9315 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
9316 appropriate.
9317
9318 2018-12-05 Zack Weinberg <zackw@panix.com>
9319 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9320
9321 [BZ #11319]
9322 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
9323 Moved here from debug/vsprintf_chk.c.
9324 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
9325 and completion logic for the strfile to match exactly what
9326 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
9327 _IO_str_init_static_internal instead of maxlen-1.
9328 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
9329 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
9330 __vsprintf_internal.
9331
9332 * debug/vsprintf_chk.c (__vsprintf_chk)
9333 * debug/sprintf_chk.c (__sprintf_chk):
9334 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
9335 'flags' argument is positive, and slen as maxlen. No need to lock
9336 the FILE and/or construct a temporary FILE. Minimize and normalize
9337 header inclusions and variable names. Do not libc_hidden_def anything.
9338
9339 * debug/asprintf_chk.c (__asprintf_chk)
9340 * debug/dprintf_chk.c (__dprintf_chk)
9341 * debug/fprintf_chk.c (__fprintf_chk)
9342 * debug/fwprintf_chk.c (__fwprintf_chk)
9343 * debug/printf_chk.c (__printf_chk)
9344 * debug/snprintf_chk.c (__snprintf_chk)
9345 * debug/swprintf_chk.c (__swprintf_chk)
9346 * debug/vasprintf_chk.c (__vasprintf_chk)
9347 * debug/vdprintf_chk.c (__vdprintf_chk)
9348 * debug/vfprintf_chk.c (__vfprintf_chk)
9349 * debug/vfwprintf_chk.c (__vfwprintf_chk)
9350 * debug/vprintf_chk.c (__vprintf_chk)
9351 * debug/vsnprintf_chk.c (__vsnprintf_chk)
9352 * debug/vswprintf_chk.c (__vswprintf_chk)
9353 * debug/vwprintf_chk.c (__vwprintf_chk)
9354 * debug/wprintf_chk.c (__wprintf_chk):
9355 Directly call the corresponding vxxprintf_internal function, passing
9356 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
9357 the FILE and/or construct a temporary FILE. Minimize and normalize
9358 header inclusions and variable names. Do not libc_hidden_def anything.
9359
9360 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
9361 __obstack_vprintf_internal.
9362 (__obstack_vprintf_chk): Convert into a wrapper that calls
9363 __obstack_vprintf_internal (these two functions already had the
9364 same code) and move to new file...
9365 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
9366 file.
9367 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
9368 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
9369 * debug/Makefile (routines): Add vobprintf_chk.
9370
9371 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
9372 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
9373 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
9374 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
9375 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
9376 (__nldbl___obstack_vfprintf_chk):
9377 Directly call the corresponding vxxprintf_internal function,
9378 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
9379 duplicate comparison of slen with 0 or maxlen from the corresponding
9380 non-__nldbl function.
9381
9382 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
9383 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
9384 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
9385 Remove libc_hidden_proto.
9386
9387 * stdio-common/vfprintf-internal.c
9388 (__vfprintf_internal, __vfwprintf_internal):
9389 Do not check _IO_FLAGS2_FORTIFY.
9390 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
9391 * libio/libioP.h: Update prototype of __vsprintf_internal and add
9392 a comment explaining why it has the maxlen argument.
9393 (_IO_acquire_lock_clear_flags2_fct): Remove.
9394 (_IO_acquire_lock_clear_flags2): Remove.
9395 (_IO_release_lock): Remove conditional statement which will
9396 now never execute.
9397 (_IO_acquire_lock): Remove variable which is now unused.
9398 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
9399 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
9400
9401 * stdio-common/Makefile (tests): Add tst-bz11319 and
9402 tst-bz11319-fortify2.
9403 (CFLAGS-tst-bz11319-fortify2.c): New macro.
9404 * stdio-common/tst-bz11319-fortify2.c: New file.
9405 * stdio-common/tst-bz11319.c: Likewise.
9406
9407 2018-12-05 Zack Weinberg <zackw@panix.com>
9408 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9409
9410 * misc/syslog.c: Include libioP.h, not iolibio.h.
9411 (__vsyslog_internal): New function with the former body of
9412 __vsyslog_chk; takes mode_flags argument same as
9413 __v*printf_internal. Call __vfprintf_internal directly.
9414
9415 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
9416 Remove libc_hidden_def.
9417 (__syslog, __syslog_chk): Use __vsyslog_internal.
9418 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
9419
9420 * include/sys/syslog.h: Add multiple inclusion guard.
9421 Add prototype for __vsyslog_internal.
9422 Remove declaration and libc_hidden_proto for __vsyslog_chk.
9423
9424 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
9425 Use __vsyslog_internal.
9426
9427 2018-12-05 Zack Weinberg <zackw@panix.com>
9428 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9429
9430 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
9431 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
9432 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
9433 New functions.
9434 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
9435 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
9436
9437 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
9438 Include wctype.h here if COMPILE_WPRINTF is defined.
9439 Define __vfprintf_internal or __vfwprintf_internal, depending
9440 on COMPILE_WPRINTF.
9441 Temporarily, on entry to this function, update mode_flags
9442 according to the environmental settings corresponding to
9443 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
9444 Throughout, check mode_flags instead of __ldbl_is_dbl and
9445 _IO_FLAGS2_FORTIFY on the destination FILE.
9446 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
9447 Include vfprintf-internal.c. Don't include wctype.h.
9448 * stdio-common/vfprintf.c: New file. Just define __vfprintf
9449 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
9450 and vfprintf.
9451 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
9452 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
9453 and vfwprintf.
9454 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
9455
9456 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
9457 and add mode_flags argument; use __vfprintf_internal.
9458 (__vdprintf): New function. Alias vdprintf to this.
9459 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
9460 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
9461 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
9462 (__obstack_printf): Use __obstack_printf_internal.
9463 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
9464 public aliases __vsnprintf and vsnprintf.
9465 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
9466 called internally.
9467 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
9468 public aliases _IO_vsprintf and vsprintf.
9469 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
9470 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
9471 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
9472 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
9473 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
9474
9475 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
9476 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
9477 * stdio-common/fprintf.c, stdio-common/fxprintf.c
9478 * stdio-common/printf.c: Use __vfprintf_internal.
9479
9480 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
9481 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
9482 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
9483
9484 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
9485 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
9486 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
9487 __vfwprintf_internal.
9488
9489 * libio/libio.h: Remove libc_hidden_proto and declaration for
9490 _IO_vfprintf.
9491 Remove declaration of _IO_vfwprintf.
9492 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
9493 _IO_vsprintf.
9494 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
9495 _IO_obstack_printf.
9496 * include/stdio.h: Add prototype for __vasprintf.
9497 (__vsnprintf): Remove declaration, because there are no more
9498 internal calls.
9499 * include/wchar.h (__vfwprintf, __vswprintf): Remove
9500 declaration, because there are no more internal calls.
9501
9502 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
9503 __vsnprintf_internal, instead of _IO_vsnprintf.
9504 * argp/argp-help.c (__argp_error, __argp_failure): Use
9505 __vasprintf_internal, instead of _IO_vasprintf.
9506 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
9507 redefine, because there are no more internal calls.
9508
9509 2018-12-05 Zack Weinberg <zackw@panix.com>
9510 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9511
9512 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
9513 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
9514 Include libio/strfile.h instead of libioP.h.
9515 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
9516 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
9517 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
9518 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
9519 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
9520 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
9521 necessary. Do not set __no_long_double. Normalize variable names.
9522 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
9523 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
9524 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
9525 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
9526 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
9527 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
9528 Call __vfscanf_internal / __vfwscanf_internal directly, passing
9529 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
9530 Do not set __no_long_double. Normalize variable names.
9531
9532 2018-12-05 Zack Weinberg <zackw@panix.com>
9533 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9534
9535 * stdio-common/isoc99_scanf.c
9536 * stdio-common/isoc99_fscanf.c
9537 * stdio-common/isoc99_sscanf.c
9538 * stdio-common/isoc99_vscanf.c
9539 * stdio-common/isoc99_vfscanf.c
9540 * stdio-common/isoc99_vsscanf.c
9541 * wcsmbs/isoc99_wscanf.c
9542 * wcsmbs/isoc99_fwscanf.c
9543 * wcsmbs/isoc99_swscanf.c
9544 * wcsmbs/isoc99_vwscanf.c
9545 * wcsmbs/isoc99_vfwscanf.c
9546 * wcsmbs/isoc99_vswscanf.c:
9547 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
9548 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
9549 No need to lock and unlock the FILE passed to that function.
9550
9551 * stdio-common/vfscanf-internal.c
9552 (__vfscanf_internal, __vfwscanf_internal):
9553 Don't look at _IO_FLAGS2_SCANF_STD.
9554 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
9555 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
9556 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
9557
9558 2018-12-05 Zack Weinberg <zackw@panix.com>
9559 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9560
9561 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
9562 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
9563 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
9564 * libio/strfile.h: Add multiple inclusion guard.
9565 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
9566
9567 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
9568 consistency with the other version of this file.
9569 (ldbl_compat_symbol): New macro.
9570 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
9571 New macro.
9572
9573 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
9574 Define __vfscanf_internal or __vfwscanf_internal, depending on
9575 COMPILE_WSCANF; don't define any other public symbols.
9576 Remove errval and code to set errp.
9577 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
9578 as the mode_flags argument.
9579 (encode_error, conv_error, input_error): Don't set errval.
9580 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
9581 Include vfscanf-internal.c.
9582 * stdio-common/vfscanf.c: New file defining the public entry
9583 point vfscanf, which calls __vfscanf_internal.
9584 * stdio-common/vfwscanf.c: New file defining the public entry
9585 point vfwscanf, which calls __vfwscanf_internal.
9586
9587 * stdio-common/iovfscanf.c: New file.
9588 * stdio-common/iovfwscanf.c: Likewise.
9589
9590 * stdio-common/Makefile (routines): Add vfscanf-internal,
9591 vfwscanf-internal, iovfscanf, iovfwscanf.
9592 * stdio-common/Versions: Mention GLIBC_2.29, so that
9593 it can be used in SHLIB_COMPAT expressions.
9594 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
9595 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
9596 Call __vfscanf_internal, instead of _IO_vfscanf.
9597 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
9598 _IO_vfscanf.
9599 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
9600 _IO_vfwscanf.
9601
9602 * libio/iovsscanf.c: Clean up includes, when possible. Use
9603 _IO_strfile_read or _IO_strfile_readw, when needed. Call
9604 __vfscanf_internal or __vfwscanf_internal directly.
9605 * libio/iovswscanf.c: Likewise.
9606 * libio/swscanf.c: Likewise.
9607 * libio/vscanf.c: Likewise.
9608 * libio/vwscanf.c: Likewise.
9609 * libio/wscanf.c: Likewise.
9610 * stdio-common/isoc99_fscanf.c: Likewise.
9611 * stdio-common/isoc99_scanf.c: Likewise.
9612 * stdio-common/isoc99_sscanf.c: Likewise.
9613 * stdio-common/isoc99_vfscanf.c: Likewise.
9614 * stdio-common/isoc99_vscanf.c: Likewise.
9615 * stdio-common/isoc99_vsscanf.c: Likewise.
9616 * stdio-common/scanf.c: Likewise.
9617 * stdio-common/sscanf.c: Likewise.
9618 * wcsmbs/isoc99_fwscanf.c: Likewise.
9619 * wcsmbs/isoc99_swscanf.c: Likewise.
9620 * wcsmbs/isoc99_vfwscanf.c: Likewise.
9621 * wcsmbs/isoc99_vswscanf.c: Likewise.
9622 * wcsmbs/isoc99_vwscanf.c: Likewise.
9623 * wcsmbs/isoc99_wscanf.c: Likewise.
9624
9625 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
9626
9627 * include/time.h
9628 (__tz_compute): Replace time_t with __time64_t.
9629 (__tz_convert): Replace time_t* with __time64_t.
9630 (__offtime): Replace time_t* with __time64_t.
9631 * time/gmtime.c
9632 (__gmtime_r): Adjust call to __tz_convert.
9633 (gmtime): Likewise.
9634 * time/localtime.c
9635 (__localtime_r): Likewise.
9636 (localtime): Likewise.
9637 * time/offtime.c: Replace time_t with __time64_t.
9638 * time/tzset.c: Likewise.
9639
9640 2018-12-04 Joseph Myers <joseph@codesourcery.com>
9641
9642 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
9643 dynamic linker unless [$(run-built-tests) = yes].
9644
9645 2018-12-03 DJ Delorie <dj@delorie.com>
9646
9647 * support/test-container.c (check_for_unshare_hints): New.
9648 (main): Call it if unshare fails. Add support for "su" scriptlet
9649 command.
9650
9651 2018-12-03 Joseph Myers <joseph@codesourcery.com>
9652
9653 * scripts/gen-as-const.py (compute_c_consts): Take an argument
9654 'START' to indicate that start text should be output.
9655 (gen_test): Likewise.
9656 (main): Generate 'START' for first symbol or '--' line, or at end
9657 of input if not previously generated.
9658
9659 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
9660
9661 [BZ #19767]
9662 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
9663 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
9664 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
9665 ALWAYS_USE_VSYSCALL.
9666
9667 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9668
9669 [BZ #23913]
9670 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
9671 new_argv by one.
9672
9673 2018-12-03 Carlos O'Donell <carlos@redhat.com>
9674
9675 [BZ #23923]
9676 * locale/programs/localedef.c: Declare boolean hard_links default true.
9677 (options): Add --no-hard-links option.
9678 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
9679 * locale/programs/localedef.h: Declare prototype for hard_links.
9680 * locale/programs/locfile.c (write_locale_data): Don't use hard
9681 links if hard_links is false.
9682
9683 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
9684
9685 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
9686 cpu_features_basic.
9687 (__cache_sysconf): Likewise.
9688 (init_cacheinfo): Likewise.
9689 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
9690 populate COMMON_CPUID_INDEX_80000007 and
9691 COMMON_CPUID_INDEX_80000008.
9692 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
9693 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
9694 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
9695 (init_cpu_features): Use _Static_assert on
9696 index_arch_Fast_Unaligned_Load.
9697 __get_cpuid_registers and __get_arch_feature. Updated for
9698 cpu_features_basic. Set stepping in cpu_features.
9699 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
9700 (FEATURE_INDEX_2): New.
9701 (FEATURE_INDEX_MAX): Changed to enum.
9702 (COMMON_CPUID_INDEX_D_ECX_1): New.
9703 (COMMON_CPUID_INDEX_80000007): Likewise.
9704 (COMMON_CPUID_INDEX_80000008): Likewise.
9705 (cpuid_registers): Likewise.
9706 (cpu_features_basic): Likewise.
9707 (CPU_FEATURE_USABLE): Likewise.
9708 (bit_arch_XXX_Usable): Likewise.
9709 (cpu_features): Use cpuid_registers and cpu_features_basic.
9710 (bit_arch_XXX): Reweritten.
9711 (bit_cpu_XXX): Likewise.
9712 (index_cpu_XXX): Likewise.
9713 (reg_XXX): Likewise.
9714 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
9715 <support/check.h>.
9716 (CHECK_CPU_FEATURE): New.
9717 (CHECK_CPU_FEATURE_USABLE): Likewise.
9718 (cpu_kinds): Likewise.
9719 (do_test): Print vendor, family, model and stepping. Check
9720 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
9721 (TEST_FUNCTION): Removed.
9722 Include <support/test-driver.c> instead of
9723 "../../test-skeleton.c".
9724 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
9725 Check POPCNT instead of POPCOUNT.
9726 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
9727
9728 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
9729
9730 * scripts/gen-as-const.py (main): Avoid emitting empty line when
9731 there is no element in `consts'.
9732
9733 2018-12-01 Florian Weimer <fweimer@redhat.com>
9734
9735 * support/support_capture_subprocess.c
9736 (support_capture_subprocess): Check that pipe descriptors have
9737 expected values. Close original pipe descriptors in subprocess.
9738
9739 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9740
9741 [BZ #23032]
9742 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
9743 attr with __pthread_default_barrierattr.
9744 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
9745 attr with __pthread_default_condattr.
9746 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
9747 attr with __pthread_default_mutexattr.
9748 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
9749 attr with __pthread_default_rwlockattr.
9750
9751 2018-12-01 Kemi Wang <kemi.wang@intel.com>
9752
9753 * manual/tunables.texi (POSIX Thread Tunables): New node.
9754 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
9755 * nptl/nptl-init.c: Include pthread_mutex_conf.h
9756 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
9757 __pthread_tunables_init.
9758 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
9759 (max_adaptive_count): Define.
9760 * nptl/pthread_mutex_conf.c: New file.
9761 * nptl/pthread_mutex_conf.h: New file.
9762 * sysdeps/generic/adaptive_spin_count.h: New file.
9763 * sysdeps/nptl/dl-tunables.list: New file.
9764 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
9765 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
9766 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
9767 Likewise.
9768
9769 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
9770
9771 [BZ #20544]
9772 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
9773 * stdlib/on_exit.c (__on_exit): Likewise.
9774 * stdlib/Makefile (tests): Add tst-bz20544.
9775 * stdlib/tst-bz20544.c: New test.
9776
9777 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
9778
9779 [BZ #19767]
9780 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
9781 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
9782 New.
9783
9784 2018-11-30 Florian Weimer <fweimer@redhat.com>
9785
9786 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
9787 Extend error logging.
9788 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
9789 symbol.
9790
9791 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9792
9793 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
9794 __sigismember instead of sigismember.
9795 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
9796 cancel_handler): New definitions.
9797 (do_system): Use posix_spawn instead of fork and execl and remove
9798 reentracy code.
9799 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
9800 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
9801 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
9802 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
9803 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
9804 * sysdeps/unix/sysv/linux/system.c: Likewise.
9805
9806 [BZ #22834]
9807 [BZ #17490]
9808 * NEWS: Add new semantic for atfork with popen and system.
9809 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
9810 fork and execl.
9811
9812 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9813
9814 [BZ #23690]
9815 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
9816 modification order when accessing reloc_result->addr.
9817 * include/link.h (reloc_result): Add field init.
9818 * nptl/Makefile (tests): Add tst-audit-threads.
9819 (modules-names): Add tst-audit-threads-mod1 and
9820 tst-audit-threads-mod2.
9821 Add rules to build tst-audit-threads.
9822 * nptl/tst-audit-threads-mod1.c: New file.
9823 * nptl/tst-audit-threads-mod2.c: Likewise.
9824 * nptl/tst-audit-threads.c: Likewise.
9825 * nptl/tst-audit-threads.h: Likewise.
9826
9827 2018-11-30 Joseph Myers <joseph@codesourcery.com>
9828
9829 * scripts/gen-as-const.py: New file.
9830 * scripts/gen-as-const.awk: Remove.
9831 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
9832 gen-as-const.py.
9833 ($(objpfx)test-as-const-%.c): Likewise.
9834
9835 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
9836
9837 * elf/dl-exception.c: Include <_itoa.h>.
9838
9839 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9840
9841 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
9842 returned by __f_setlk.
9843
9844 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
9845 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9846
9847 * elf/Makefile (tests-internal): Add tst-create_format1.
9848 * elf/dl-exception.c (_dl_exception_create_format): Support
9849 %x, %lx and %zx.
9850 * elf/tst-create_format1.c: New file.
9851
9852 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
9853
9854 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
9855 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
9856 gnulib.)
9857 * argp/argp-help.c (__argp_failure): Likewise.
9858
9859 2018-11-29 Mao Han <han_mao@c-sky.com>
9860
9861 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
9862 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
9863 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
9864 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
9865 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
9866 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
9867 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
9868 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
9869 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
9870 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
9871 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
9872 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
9873 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
9874 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
9875 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
9876 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
9877 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
9878 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
9879 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
9880 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
9881 (R_CKCORE_TLS_TPOFF32): New defines.
9882
9883 2018-11-29 Florian Weimer <fweimer@redhat.com>
9884
9885 * posix/Makefile (before-compile): Remove testcases.h and
9886 ptestcases.h.
9887 (generated): Add testcases.h and ptestcases.h.
9888 (testcases.h, ptestcases.h): Move to $(objpfx).
9889 (runtests.o): Add dependency on testcases.h.
9890 (runptests.o): Add dependency on ptestcases.h.
9891 * posix/testcases.h, posix/ptestcases.h: Remove files.
9892 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
9893 not touch posix/testcases.h and posix/ptestcases.h.
9894
9895 2018-11-28 Florian Weimer <fweimer@redhat.com>
9896
9897 support: Add signal support to support_capture_subprocess_check.
9898 * support/capture_subprocess.h (support_capture_subprocess_check):
9899 Adjust comment and rename parameter.
9900 * support/support_capture_subprocess_check.c
9901 (print_actual_status): New function.
9902 (support_capture_subprocess_check): Support negative
9903 status_or_signal. Call print_actual_status.
9904 * support/tst-support_capture_subprocess.c (do_test): Call
9905 support_capture_subprocess_check.
9906 * libio/tst-vtables-common.c (termination_status)
9907 (init_termination_status): Remove.
9908 (check_for_termination): Adjust support_capture_subprocess_check
9909 call.
9910 (do_test): Remove call to init_termination_status.
9911
9912 2018-11-28 Joseph Myers <joseph@codesourcery.com>
9913
9914 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
9915 source directory instead of a copy.
9916 (CommandList.create_copy_dir): Remove.
9917
9918 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
9919
9920 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
9921
9922 2018-11-28 Florian Weimer <fweimer@redhat.com>
9923
9924 * support/support.h (support_quote_string): Do not use str
9925 parameter name.
9926
9927 2018-11-27 Joseph Myers <joseph@codesourcery.com>
9928
9929 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
9930 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
9931
9932 2018-11-27 Florian Weimer <fweimer@redhat.com>
9933
9934 * support/support.h (support_quote_string): Declare.
9935 * support/support_quote_string.c: New file.
9936 * support/tst-support_quote_string.c: Likewise.
9937 * support/Makefile (libsupport-routines): Add
9938 support_quote_string.
9939 (tests): Add tst-support_quote_string.
9940
9941 2018-11-27 Florian Weimer <fweimer@redhat.com>
9942
9943 [BZ #23927]
9944 CVE-2018-19591
9945 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
9946 descriptor leak in case of ENODEV error.
9947
9948 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
9949
9950 [BZ #19767]
9951 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
9952 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
9953 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
9954
9955 2018-11-26 Carlos O'Donell <carlos@redhat.com>
9956
9957 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
9958 Error for unknown lines.
9959
9960 2018-11-26 Joseph Myers <joseph@codesourcery.com>
9961
9962 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
9963 Touch additional files.
9964
9965 2018-11-26 Florian Weimer <fweimer@redhat.com>
9966
9967 [BZ #23907]
9968 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
9969 double-frees.
9970
9971 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
9972
9973 [BZ #19767]
9974 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
9975 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
9976 SHARED. Include sysdep.h.
9977 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
9978 ALWAYS_USE_VSYSCALL.
9979 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
9980 ALWAYS_USE_VSYSCALL.
9981
9982 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
9983
9984 [BZ #19767]
9985 * nptl/Makefile (tests-static): Add tst-cond11-static.
9986 (tests): Likewise.
9987 * nptl/tst-cond11-static.c: New File.
9988 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
9989 tst-affinity-static.
9990 (tests): Likewise.
9991 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
9992 instead of SHARED.
9993 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
9994 (USE_VSYSCALL): Likewise.
9995 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
9996 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
9997 instead of SHARED.
9998 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
9999 SHARED.
10000 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
10001 New.
10002
10003 2018-11-23 Joseph Myers <joseph@codesourcery.com>
10004
10005 [BZ #23915]
10006 * sysdeps/unix/sysv/linux/arm/kernel-features.h
10007 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
10008 Undefine.
10009
10010 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
10011
10012 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
10013 (tst-cet-legacy-1a-ARGS): New.
10014 ($(objpfx)tst-cet-legacy-1a): New target.
10015 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
10016
10017 2018-11-22 Joseph Myers <joseph@codesourcery.com>
10018
10019 * conform/conformtest.py (CompileSubTest.__init__): Set
10020 self.run_early to False.
10021 (ExecuteSubTest.__init__): Likewise.
10022 (HeaderTests.run): Try running all non-optional, non-XFAILed
10023 compilation tests in a single execution of the compiler.
10024
10025 * conform/conformtest.py (CompileSubTest): New class.
10026 (ExecuteSubTest): Likewise.
10027 (ElementTest.run): Rename to gen_subtests. Append tests to
10028 self.subtests instead of running them.
10029 (ConstantTest.run): Likewise.
10030 (SymbolTest.run): Likewise.
10031 (TypeTest.run): Likewise.
10032 (TagTest.run): Likewise.
10033 (FunctionTest.run): Likewise.
10034 (VariableTest.run): Likewise.
10035 (MacroFunctionTest.run): Likewise.
10036 (MacroStrTest.run): Likewise.
10037 (HeaderTests.handle_test_line): Generate subtests for tests.
10038 (HeaderTests.run): Run subtests for tests.
10039
10040 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10041
10042 * math/Versions (GLIBC_2.29): Add pow.
10043 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
10044 symbol.
10045 * math/w_pow.c: New file.
10046 * sysdeps/i386/fpu/w_pow.c: New file.
10047 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
10048 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
10049 and add necessary aliases.
10050 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
10051 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
10052 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10053 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10054 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10055 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10056 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10057 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10058 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10059 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10060 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10061 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10062 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10063 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10064 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10065 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10066 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10067 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10068 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10069 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10070 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10071 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10072 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10073 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10074 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10075 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10076 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
10077 __pow.
10078 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
10079 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
10080 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
10081
10082 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10083
10084 * math/Versions (GLIBC_2.29): Add log2.
10085 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
10086 symbol.
10087 * math/w_log2.c: New file.
10088 * sysdeps/i386/fpu/w_log2.c: New file.
10089 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
10090 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
10091 and add necessary aliases.
10092 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
10093 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
10094 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10095 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10096 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10097 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10098 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10099 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10100 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10101 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10102 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10103 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10104 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10105 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10106 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10107 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10108 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10109 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10110 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10111 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10112 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10113 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10114 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10115 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10116 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10117 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10118
10119 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10120
10121 * math/Versions (GLIBC_2.29): Add log.
10122 * math/w_log_compat.c (__log_compat): Change to versioned compat
10123 symbol.
10124 * math/w_log.c: New file.
10125 * sysdeps/i386/fpu/w_log.c: New file.
10126 * sysdeps/ia64/fpu/e_log.S: Update.
10127 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
10128 and add necessary aliases.
10129 * sysdeps/ieee754/dbl-64/w_log.c: New file.
10130 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
10131 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10132 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10133 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10134 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10135 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10136 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10137 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10138 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10139 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10140 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10141 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10142 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10143 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10144 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10145 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10146 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10147 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10148 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10149 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10150 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10151 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10152 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10153 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10154 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10155 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
10156 __log.
10157 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
10158 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
10159 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
10160 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
10161
10162 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10163
10164 * math/Versions (GLIBC_2.29): Add exp and exp2.
10165 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
10166 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
10167 * math/w_exp_compat.c (__exp_compat): Likewise.
10168 * math/w_exp.c: New file.
10169 * math/w_exp2.c: New file.
10170 * sysdeps/i386/fpu/w_exp.c: New file.
10171 * sysdeps/i386/fpu/w_exp2.c: New file.
10172 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
10173 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
10174 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
10175 and add necessary aliases.
10176 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
10177 and add necessary aliases.
10178 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
10179 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
10180 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
10181 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
10182 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10183 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10184 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10185 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10186 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10187 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10188 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10189 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10190 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10191 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10192 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10193 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10194 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10195 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10196 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10197 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10198 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10199 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10200 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10201 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10202 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10203 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10204 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10205 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10206 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
10207 (__ieee754_exp): Rename to __exp.
10208 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
10209 (__ieee754_exp): Rename to __exp.
10210 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
10211 (__ieee754_exp): Rename to __exp.
10212 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
10213 __exp.
10214 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
10215
10216 2018-11-20 DJ Delorie <dj@redhat.com>
10217
10218 * malloc/malloc.c (tcache_entry): Add key field.
10219 (tcache_put): Set it.
10220 (tcache_get): Likewise.
10221 (_int_free): Check for double free in tcache.
10222 * malloc/tst-tcfree1.c: New.
10223 * malloc/tst-tcfree2.c: New.
10224 * malloc/Makefile: Run the new tests.
10225 * manual/probes.texi: Document memory_tcache_double_free probe.
10226
10227 * dlfcn/dlerror.c (check_free): Prevent double frees.
10228
10229 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
10230
10231 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
10232
10233 2018-11-20 Joseph Myers <joseph@codesourcery.com>
10234
10235 * conform/conformtest.py (ElementTest.run): Use unique identifiers
10236 in tests. Use names for format arguments.
10237 (ConstantTest.run): Likewise.
10238 (SymbolTest.run): Likewise.
10239 (TypeTest.run): Likewise.
10240 (TagTest.run): Likewise.
10241 (FunctionTest.run): Likewise.
10242 (VariableTest.run): Likewise.
10243 (MacroFunctionTest.run): Likewise.
10244 (MacroStrTest.run): Likewise.
10245 (HeaderTests.__init__): Set self.num_tests.
10246 (HeaderTests.handle_test_line): Set test.num. Increment
10247 self.num_tests.
10248
10249 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
10250
10251 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
10252 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
10253 SEEK_SET.
10254
10255 2018-11-19 Mao Han <han_mao@c-sky.com>
10256
10257 * scripts/config.guess: Update to version 2018-08-29.
10258 * scripts/config.sub: Update to version 2018-08-29.
10259
10260 2018-11-19 Florian Weimer <fweimer@redhat.com>
10261
10262 support: Print timestamps in timeout handler.
10263 * support/support_test_main.c (print_timestamp): New function.
10264 (signal_handler): Use it to print the termination time and the
10265 time of the last write to standard output.
10266
10267 2018-11-16 Zack Weinberg <zackw@panix.com>
10268 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10269
10270 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
10271 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
10272 argument.
10273 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
10274 and add flags argument. Check flags instead of __ldbl_is_dbl when
10275 deciding whether to set is_long_double.
10276 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
10277 passing zero for flags argument.
10278 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
10279
10280 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
10281 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
10282 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
10283 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
10284 variable names. Remove libc_hidden_def/libc_hidden_proto from
10285 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
10286 longer called from within the library.
10287 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
10288 for __nldbl___vstrfmon_l, declare it explicitly.
10289
10290 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
10291
10292 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
10293
10294 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
10295 macros
10296 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
10297 F_SETLK64, F_SETLKW64, respectively.
10298 * sysdeps/mach/hurd/f_setlk.c: New file.
10299 * sysdeps/mach/hurd/f_setlk.h: New file.
10300 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
10301 f_setlk.
10302 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
10303 (__libc_fcntl): Move non-flock operations to...
10304 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
10305 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
10306
10307 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
10308
10309 mktime: DEBUG_MKTIME cleanup
10310 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
10311 And it’s no longer needed now that glibc and Gnulib both have
10312 their own testing mechanisms for mktime.
10313 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
10314
10315 mktime: fix non-EOVERFLOW errno handling
10316 [BZ#23789]
10317 mktime was not properly reporting failures when the underlying
10318 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
10319 them like EOVERFLOW failures, and set errno to EOVERFLOW.
10320 The problem could happen on non-glibc platforms, with Gnulib.
10321 * time/mktime.c (guess_time_tm): Remove, replacing with ...
10322 (tm_diff): ... this simpler function, which does not change errno.
10323 All callers changed to deal with errno themselves.
10324 (ranged_convert, __mktime_internal): Return failure immediately if
10325 the underlying function reports any failure other than EOVERFLOW.
10326 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
10327 gap code fails.
10328
10329 mktime: fix bug with Y2038 DST transition
10330 [BZ#23789]
10331 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
10332 mishandle a DST transition that jumps over the Y2038 boundary.
10333 No such DST transitions are known so this is only a theoretical
10334 bug, but we might as well do things right.
10335
10336 mktime: make more room for overflow
10337 [BZ#23789]
10338 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
10339 This is so that we can add tm_diff results to a previous guess,
10340 which will be useful in a later patch.
10341
10342 mktime: simplify offset guess
10343 [BZ#23789]
10344 * time/mktime.c (__mktime_internal): Omit excess precision.
10345
10346 mktime: new test for mktime failure
10347 [BZ#23789]
10348 Based on a test suggested by Albert Aribaud in:
10349 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
10350 * time/Makefile (tests): Add bug-mktime4.
10351 * time/bug-mktime4.c: New file.
10352
10353 mktime: fix EOVERFLOW bug
10354 [BZ#23789]
10355 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
10356 Include libc-config.h, not config.h, for __set_errno.
10357 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
10358
10359 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
10360
10361 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
10362 __attribute_copy__ to copy attributes from name. Drop static qualifier
10363 to avoid warnings about leaf attribute not having effect on static
10364 functions.
10365
10366 2018-11-13 Florian Weimer <fweimer@redhat.com>
10367
10368 * malloc/malloc.c (fastbin_push_entry): New function.
10369 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
10370 (REMOVE_FB): Remove macro.
10371 (_int_malloc): Use fastbin_pop_entry and reindent.
10372 (_int_free): Use fastbin_push_entry.
10373 (malloc_consolidate): Use atomic_exchange_acquire.
10374
10375 2018-11-13 Joseph Myers <joseph@codesourcery.com>
10376
10377 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
10378 alias attribute, not with strong_alias.
10379
10380 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
10381 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
10382 with additional parameter thread.
10383 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
10384 in terms of __hidden_ver2.
10385 (hidden_tls_def): New macro.
10386 (libc_hidden_tls_def): Likewise.
10387 (rtld_hidden_tls_def): Likewise.
10388 (libm_hidden_tls_def): Likewise.
10389 (libmvec_hidden_tls_def): Likewise.
10390 (libresolv_hidden_tls_def): Likewise.
10391 (librt_hidden_tls_def): Likewise.
10392 (libdl_hidden_tls_def): Likewise.
10393 (libnss_files_hidden_tls_def): Likewise.
10394 (libnsl_hidden_tls_def): Likewise.
10395 (libnss_nisplus_hidden_tls_def): Likewise.
10396 (libutil_hidden_tls_def): Likewise.
10397 (libutil_hidden_tls_def): Likweise.
10398 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
10399 libc_hidden_tls_def.
10400 (__sim_disabled_exceptions_thread): Likewise.
10401 (__sim_round_mode_thread): Likewise.
10402
10403 * sysdeps/sparc/sparc-ifunc.h [SHARED]
10404 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
10405 copy attributes from name.
10406
10407 2018-11-12 Joseph Myers <joseph@codesourcery.com>
10408
10409 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
10410 Use __attribute_copy__ to copy attributes from name.
10411
10412 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
10413 with __hidden_ver1 call.
10414 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
10415 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
10416 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
10417 (__cosf): Do not declare here.
10418 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
10419 (__sincosf): Do not declare here.
10420 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
10421 (__sinf): Do not declare here.
10422
10423 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
10424 (__BIG_ENDIAN): Likewise.
10425 (__BYTE_ORDER): Likewise.
10426 (strong_alias): Likewise.
10427 (_strong_alias): Likewise.
10428
10429 2018-11-12 Florian Weimer <fweimer@redhat.com>
10430
10431 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
10432 function. Move after the definition of in_smallbin_range. Do not
10433 use __builtin_expect for paths that lead to a noreturn function.
10434 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
10435 because it is unclear whether this is in fact an unlikely
10436 condition.
10437 (_int_malloc, _int_free): Adjust.
10438 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
10439 variables.
10440 * malloc/arena.c (heap_trim): Likewise.
10441
10442 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
10443
10444 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
10445 it, free it if needed.
10446 (reauthenticate): Test and use ccwdir.
10447 (child_init_port): In non-resetids case, test and use ccwdir.
10448 (child_chdir): New nested function to set ccwdir.
10449 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
10450 * hurd/hurd/port.h (_hurd_port_move): New function.
10451 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
10452 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
10453 * hurd/Versions (_hurd_port_move): Export function.
10454 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
10455 symbol.
10456 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
10457 of dtablesize for allocating dtable_cloexec.
10458
10459 2018-11-09 Martin Sebor <msebor@redhat.com>
10460
10461 * include/libc-symbols.h (__attribute_copy__): Define macro unless
10462 it's already defined.
10463 (_strong_alias): Use __attribute_copy__.
10464 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
10465 * misc/sys/cdefs.h (__attribute_copy__): New macro.
10466 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
10467 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
10468 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
10469 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
10470 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
10471 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
10472 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
10473 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
10474 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
10475 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
10476 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
10477 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
10478 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
10479 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
10480 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
10481 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
10482 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
10483
10484 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10485
10486 * misc/tst-efgcvt.c: Include support/check.h and
10487 support/test-driver.c. Do not include test-skeleton.c.
10488 (error_count): Remove.
10489 (output_error): Replace increments to error_count with calls to
10490 support_record_failure.
10491 (output_r_error): Likewise.
10492 (special): Likewise.
10493 (do_test): Unconditionally return zero.
10494 (TEST_FUNCTION): Remove.
10495
10496 2018-11-09 Joseph Myers <joseph@codesourcery.com>
10497
10498 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
10499 not $(@D)/scratch.
10500 ($(linknamespace-header-tests)): Likewise.
10501
10502 * conform/conformtest.py: New file.
10503 * conform/conformtest.pl: Remove.
10504 * conform/GlibcConform.pm: Likewise.
10505 * conform/glibcconform.py (KEYWORDS_C90): New constant.
10506 (KEYWORDS_C99): Likewise.
10507 (KEYWORDS): Likewise.
10508 * conform/Makefile ($(conformtest-header-tests)): Use
10509 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
10510 option. Use --header instead of --headers.
10511 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
10512 function entries.
10513 * conform/data/spawn.h-data: Likewise.
10514 * conform/data/fcntl.h-data (openat): Add space after function
10515 name.
10516 * conform/data/wchar.h-data (wcscasecmp): Likewise.
10517 (wcscasecmp_l): Likewise.
10518 * conform/data/termios.h-data (c_cc): Add space after element
10519 name.
10520
10521 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10522
10523 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
10524 instead of manually comparing and reporting mismatching strings.
10525 * misc/tst-ldbl-error.c (do_one_test): Likewise.
10526 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
10527
10528 2018-11-08 Joseph Myers <joseph@codesourcery.com>
10529
10530 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
10531 __ASSUME_SOCKETCALL.
10532 * sysdeps/unix/sysv/linux/i386/kernel-features.h
10533 (__ASSUME_SOCKETCALL): Remove.
10534 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
10535 (__ASSUME_SOCKETCALL): Likewise.
10536 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10537 (__ASSUME_SOCKETCALL): Likewise.
10538 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
10539 (__ASSUME_SOCKETCALL): Likewise.
10540 * sysdeps/unix/sysv/linux/s390/kernel-features.h
10541 (__ASSUME_SOCKETCALL): Likewise.
10542 * sysdeps/unix/sysv/linux/sh/kernel-features.h
10543 (__ASSUME_SOCKETCALL): Likewise.
10544 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
10545 (__ASSUME_SOCKETCALL): Likewise.
10546
10547 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
10548
10549 [BZ #23509]
10550 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
10551 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
10552 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
10553 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
10554 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
10555 lc_unknown.
10556
10557 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
10558
10559 [BZ #17630]
10560 * resolv/tst-resolv-network.c: Add test for getnetbyname.
10561
10562 2018-11-07 Joseph Myers <joseph@codesourcery.com>
10563
10564 [BZ #23867]
10565 * sysdeps/unix/sysv/linux/arm/kernel-features.h
10566 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
10567 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10568 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
10569
10570 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10571
10572 * support/support_test_compare_string.c
10573 (support_test_compare_string): Fix printf format.
10574
10575 2018-11-07 Florian Weimer <fweimer@redhat.com>
10576
10577 Implement TEST_COMPARE_STRING.
10578 * support/check.h (TEST_COMPARE_STRING): Define.
10579 (support_test_compare_string): Declare.
10580 * support/Makefile (libsupport-routines): Add
10581 support_test_compare_string.
10582 (tests): Add tst-test_compare_string.
10583 * support/support_test_compare_string.c: New file.
10584 * support/tst-test_compare_string.c: Likewise.
10585
10586 2018-11-07 Andreas Schwab <schwab@suse.de>
10587
10588 [BZ #23864]
10589 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
10590 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
10591 Undef.
10592
10593 2018-11-06 Joseph Myers <joseph@codesourcery.com>
10594
10595 [BZ #23862]
10596 * sysdeps/unix/sysv/linux/sh/kernel-features.h
10597 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
10598 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
10599 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
10600 Likewise.
10601
10602 2018-11-06 Florian Weimer <fweimer@redhat.com>
10603
10604 [BZ #17405]
10605 * posix/Makefile (routines): Add spawn_faction_addchdir.
10606 (tests): Add tst-spawn-chdir.
10607 * posix/Versions (GLIBC_2.29): Add
10608 posix_spawn_file_actions_addchdir_np.
10609 * posix/spawn_faction_addchdir.c: New file.
10610 * posix/spawn_faction_destroy.c
10611 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
10612 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
10613 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
10614 chdir_action.
10615 * posix/tst-spawn-chdir.c: New file.
10616 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
10617 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
10618 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
10619 posix_spawn_file_actions_addchdir_np.
10620 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
10621 Likewise.
10622 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
10623 Likewise.
10624 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
10625 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
10626 Likewise.
10627 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
10628 Likewise.
10629 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
10630 Likewise.
10631 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
10632 Likewise.
10633 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
10634 Likewise.
10635 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
10636 Likewise.
10637 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
10638 (GLIBC_2.29): Likewise.
10639 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
10640 (GLIBC_2.29): Likewise.
10641 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
10642 (GLIBC_2.29): Likewise.
10643 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
10644 (GLIBC_2.29): Likewise.
10645 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
10646 Likewise.
10647 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
10648 (GLIBC_2.29): Likewise.
10649 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
10650 (GLIBC_2.29): Likewise.
10651 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
10652 (GLIBC_2.29): Likewise.
10653 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
10654 (GLIBC_2.29): Likewise.
10655 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
10656 Likewise.
10657 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
10658 Likewise.
10659 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
10660 Likewise.
10661 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
10662 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
10663 Likewise.
10664 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
10665 Likewise.
10666 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
10667 Likewise.
10668 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
10669 Likewise.
10670
10671 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10672
10673 * misc/Makefile (tests): Add tst-ldbl-error.
10674 * misc/tst-ldbl-error.c: New file.
10675
10676 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10677
10678 * misc/Makefile (tests): Add tst-ldbl-warn.
10679 * misc/tst-ldbl-warn.c: New file.
10680
10681 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10682
10683 * argp/Makefile (tests): Add tst-ldbl-argp.
10684 * argp/tst-ldbl-argp.c: New file.
10685
10686 2018-11-05 Arjun Shankar <arjun@redhat.com>
10687
10688 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
10689 __gconv_path_elem and call __gconv_get_path unconditionally.
10690
10691 2018-11-05 Andreas Schwab <schwab@suse.de>
10692
10693 [BZ #22927]
10694 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
10695 creating the first helper thread failed.
10696
10697 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10698
10699 * sysdeps/mach/hurd/msync.c: New file.
10700
10701 2018-11-02 Florian Weimer <fweimer@redhat.com>
10702
10703 * support/shell-container.c (copy_func): Call
10704 support_copy_file_range instead of copy_file_range to support
10705 cross-device copies.
10706
10707 2018-11-02 Florian Weimer <fweimer@redhat.com>
10708
10709 * support/test-container.c: Include <libc-pointer-arith.h> for
10710 ALIGN_UP.
10711
10712 2018-11-01 Zong Li <zong@andestech.com>
10713
10714 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
10715 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
10716 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
10717 (__FP_FRAC_SET_8): Add implementation for RV32 use.
10718
10719 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
10720 variable to avoid overlap arguments.
10721
10722 2018-11-01 Joseph Myers <joseph@codesourcery.com>
10723
10724 * posix/bug-regex22.c (main): Use puts with distinct error
10725 messages for unexpected success of re_compile_pattern, not printf
10726 with NULL argument to %s.
10727
10728 * stdio-common/bug22.c: Include <libc-diag.h>.
10729 (do_test): Disable -Wformat-overflow= warnings around fprintf
10730 calls outputting more than INT_MAX characters.
10731 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
10732 around printf call with NULL %s argument.
10733
10734 [BZ #23848]
10735 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
10736 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
10737 Undefine.
10738 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
10739 (__ASSUME_RECVMSG_SYSCALL): Likewise.
10740 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
10741 (__ASSUME_SENDTO_SYSCALL): Likewise.
10742 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
10743 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
10744 [!__arch64__].
10745 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
10746 (__ASSUME_CONNECT_SYSCALL): Likewise.
10747 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
10748 (__ASSUME_RECVFROM_SYSCALL): Likewise.
10749 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
10750 Define.
10751 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
10752 Likewise.
10753 [__LINUX_KERNEL_VERSION >= 0x040400]
10754 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
10755 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
10756 Remove.
10757 (listen): Likewise.
10758 (setsockopt): Likewise.
10759
10760 2018-11-01 Fredrik Noring <noring@nocrew.org>
10761
10762 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
10763 with the ISA override.
10764
10765 2018-10-31 Rafael Ávila de Espíndola <rafael@espindo.la>
10766
10767 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
10768 #endif.
10769
10770 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
10771
10772 * manual/errno.texi (EIEIO): Document how translators should
10773 translate the error message.
10774 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
10775 printing trailing whitespaces refused by git.
10776 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
10777 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
10778 * hurd/Makefile (user-interfaces): Add pci.
10779
10780 2018-10-30 Joseph Myers <joseph@codesourcery.com>
10781
10782 * conform/linknamespace.py: New file.
10783 * conform/linknamespace.pl: Remove file.
10784 * conform/Makefile ($(linknamespace-header-tests)): Use
10785 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
10786 option.
10787
10788 2018-10-30 Florian Weimer <fweimer@redhat.com>
10789
10790 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
10791 memory leaks.
10792
10793 2018-10-30 Florian Weimer <fweimer@redhat.com>
10794
10795 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
10796
10797 2018-10-30 Florian Weimer <fweimer@redhat.com>
10798
10799 * stdlib/tst-strtod-overflow.c (do_test): Switch to
10800 support_blob_repeat.
10801
10802 2018-10-30 Florian Weimer <fweimer@redhat.com>
10803
10804 Avoid spurious test failures in stdlib/test-bz22786.
10805 * support/Makefile (libsupport-routines): Add blob_repeat.
10806 (tests): Add tst-support_blob_repeat.
10807 * support/blob_repeat.h: New file.
10808 * support/blob_repeat.c: Likewise.
10809 * support/tst-support_blob_repeat.c: Likewise.
10810 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
10811 support_blob_repeat_allocate.
10812
10813 2018-10-30 Andreas Schwab <schwab@suse.de>
10814
10815 [BZ #23125]
10816 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
10817 Don't use tail call.
10818 * elf/tst-unwind-main.c: New file.
10819 * elf/Makefile (tests): Add tst-unwind-main.
10820 (CFLAGS-tst-unwind-main.c): Define.
10821
10822 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
10823
10824 [BZ #23791]
10825 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
10826 n_cs_precedes to 0.
10827 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
10828
10829 2018-10-29 Joseph Myers <joseph@codesourcery.com>
10830
10831 * conform/glibcconform.py: Do not import shutil.
10832 (list_exported_functions): Use tempfile.TemporaryDirectory instead
10833 of mkdtemp.
10834
10835 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
10836 critic_missing for versions before 3.4.
10837 * configure: Regenerated.
10838 * manual/install.texi (Tools for Compilation): Document
10839 requirement for Python to build glibc.
10840 * INSTALL: Regenerated.
10841 * Rules [PYTHON]: Make code unconditional.
10842 * benchtests/Makefile [PYTHON]: Likewise.
10843 * conform/Makefile [PYTHON]: Likewise.
10844 * manual/Makefile [PYTHON]: Likewise.
10845 * math/Makefile [PYTHON]: Likewise.
10846
10847 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
10848
10849 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
10850 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
10851 answer to interrupt_operation, return EIEIO instead of EINTR.
10852 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
10853 _hurd_intr_rpc_msg_about_to global point to start of controlled
10854 assembly snippet. Make it check canceled flag.
10855 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
10856 the _hurd_intr_rpc_msg_about_to point.
10857 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
10858 issue, remove cancel flag check.
10859
10860 2018-10-26 Joseph Myers <joseph@codesourcery.com>
10861
10862 * scripts/build-many-glibcs.py: Remove compatibility for missing
10863 os.cpu_count and re.fullmatch.
10864
10865 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
10866
10867 [BZ #23822]
10868 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
10869 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
10870 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
10871
10872 2018-10-25 Joseph Myers <joseph@codesourcery.com>
10873
10874 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
10875 macro.
10876
10877 2018-10-25 Florian Weimer <fweimer@redhat.com>
10878
10879 [BZ #23562]
10880 [BZ #23821]
10881 XFAIL siginfo_t si_band conform test on sparc64.
10882 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
10883 (__SI_BAND_TYPE): Only override long int default type on sparc64.
10884 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
10885 (conformtest-xfail-conds): Add sparc64-linux.
10886 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
10887 sparc64.
10888 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
10889
10890 2018-10-25 Joseph Myers <joseph@codesourcery.com>
10891
10892 * elf/elf.h (NT_MIPS_DSP): New macro.
10893 (NT_MIPS_FP_MODE): Likewise.
10894
10895 2018-10-25 Zong Li <zong@andestech.com>
10896
10897 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
10898 name by adding the file extension (.so).
10899
10900 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
10901
10902 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
10903 (test-xfail-ISO11/threads.h/linknamespace,
10904 test-xfail-ISO11/threads.h/conform): Add.
10905
10906 2018-10-24 Joseph Myers <joseph@codesourcery.com>
10907
10908 * math/gen-libm-test.py: Import os.
10909 (ALL_FLOATS_MANUAL): New constant.
10910 (ALL_FLOATS_SUFFIX): Likewise.
10911 (Ulps.all_functions): New function.
10912 (real_all_ulps): Likewise.
10913 (generate_err_table_sub): Likewise.
10914 (generate_err_table): Likewise.
10915 (main): Handle -s and -m options.
10916 * manual/libm-err-tab.pl: Remove.
10917 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
10918 instead of libm-err-tab.pl.
10919 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
10920 != no].
10921 * manual/install.texi (Tools for Compilation): Document
10922 requirement for Python to build manual.
10923 * INSTALL: Regenerated.
10924
10925 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
10926
10927 * bits/time64.h: New file.
10928 * include/time.h: Replace internal_time_t with __time64_t.
10929 * posix/bits/types (__time64_t): Add.
10930 * stdlib/Makefile: Add bits/time64.h to includes.
10931 * time/tzfile.c: Replace internal_time_t with __time64_t.
10932
10933 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10934
10935 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
10936 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
10937 __posix_spawn_file_actions_init, __posix_spawnattr_init,
10938 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
10939 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
10940 prototype.
10941 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
10942 * posix/spawn_faction_addclose.c
10943 (__posix_spawn_file_actions_addclose): Add hidden definition.
10944 * posix/spawn_faction_adddup2.c
10945 (__posix_spawn_file_actions_adddup2): Likewise.
10946 * posix/spawn_faction_destroy.c
10947 (__posix_spawn_file_actions_destroy): Likewise.
10948 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
10949 Likewise.
10950 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
10951 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
10952 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
10953 Likewise.
10954 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
10955 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
10956 Likewise.
10957
10958 2018-10-24 Andreas Schwab <schwab@suse.de>
10959
10960 [BZ #18093]
10961 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
10962 format cache.
10963 * elf/cache.c (print_cache): Likewise.
10964
10965 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
10966
10967 * bits/timesize.h: New file.
10968 * stdlib/Makefile (headers): Add bits/timesize.h.
10969 * sysdeps/unix/sysv/linux/bits/msq-pad.h
10970 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
10971 * sysdeps/unix/sysv/linux/bits/sem-pad.h
10972 (__SEM_PAD_AFTER_TIME): Likewise.
10973 * sysdeps/unix/sysv/linux/bits/shm-pad.h
10974 (__SHM_PAD_AFTER_TIME): Likewise.
10975 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
10976 (__MSQ_PAD_BEFORE_TIME): Likewise.
10977 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
10978 (__SEM_PAD_BEFORE_TIME): Likewise.
10979 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
10980 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
10981 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
10982 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
10983 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
10984 (__MSQ_PAD_BEFORE_TIME): Likewise.
10985 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
10986 (__SEM_PAD_BEFORE_TIME): Likewise.
10987 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
10988 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
10989 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
10990 (__MSQ_PAD_BEFORE_TIME): Likewise.
10991 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
10992 (__SEM_PAD_BEFORE_TIME): Likewise.
10993 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
10994 (__SHM_PAD_BEFORE_TIME): Likewise.
10995 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
10996 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
10997 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
10998
10999 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
11000
11001 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
11002 USE_RDTSCP is defined.
11003 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
11004 USE_RDTSCP is defined.
11005
11006 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11007
11008 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
11009 defined.
11010
11011 [BZ #23709]
11012 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
11013 independently of other flags.
11014
11015 2018-10-23 Florian Weimer <fweimer@redhat.com>
11016
11017 * time/tst-mktime2.c (N_STRINGS): Remove.
11018 (set_timezone): New function.
11019 (spring_forward_gap): Call it. Use FAIL_EXIT1.
11020 (mktime_test1): Report localtime failure and check errno value.
11021 Use TEST_COMPARE.
11022 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
11023 (do_test): Remove alarm call. Use set_timezone and array_length.
11024
11025 2018-10-23 Andreas Schwab <schwab@suse.de>
11026
11027 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
11028 (__start_context): Use END instead of PSEUDO_END.
11029
11030 2018-10-22 Joseph Myers <joseph@codesourcery.com>
11031
11032 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
11033 version to 4.19.
11034
11035 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
11036 version to 4.19.
11037
11038 [BZ #23793]
11039 * wcsmbs/c32rtomb.c: New file.
11040 * wcsmbs/mbrtoc32.c: Likewise.
11041 * wcsmbs/tst-c32-state.c: Likewise.
11042 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
11043 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
11044 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
11045 (tests): Add tst-c32-state.
11046 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
11047 $(gen-locales).
11048
11049 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
11050
11051 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
11052 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
11053
11054 2018-10-19 Joseph Myers <joseph@codesourcery.com>
11055
11056 [BZ #23794]
11057 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
11058 pair and return 0 in that case, and use saved character to
11059 interpret following character.
11060 * wcsmbs/tst-c16-surrogate.c: New file.
11061 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
11062 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
11063 Depend on $(gen-locales)
11064
11065 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11066
11067 [BZ #23562]
11068 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
11069 (struct siginfo_t): Use correct type for si_band.
11070
11071 2018-10-19 Florian Weimer <fweimer@redhat.com>
11072
11073 [BZ #23689]
11074 * resource/bits/types/struct_rusage.h (struct rusage): Update
11075 comment on struct. Remove extraneous field comment.
11076
11077 2018-10-18 David S. Miller <davem@davemloft.net>
11078
11079 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
11080 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
11081 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
11082 sysdep_routines in subdir elf.
11083 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
11084 version for __vdso_clock_gettime.
11085 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
11086 Define.
11087 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
11088 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
11089
11090 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
11091
11092 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
11093
11094 * sysdeps/i386/init-arch.h: Removed.
11095 * sysdeps/i386/i586/init-arch.h: Likewise.
11096 * sysdeps/i386/i686/init-arch.h: Likewise.
11097 * sysdeps/i386/i686/hp-timing.h: Likewise.
11098 * sysdeps/x86_64/hp-timing.h: Likewise.
11099 * sysdeps/i386/isa.h: New file.
11100 * sysdeps/i386/i586/isa.h: Likewise.
11101 * sysdeps/i386/i686/isa.h: Likewise.
11102 * sysdeps/x86_64/isa.h: Likewise.
11103 * sysdeps/x86/hp-timing.h: New file.
11104 * sysdeps/x86/init-arch.h: Include <isa.h>.
11105
11106 2018-10-17 Joseph Myers <joseph@codesourcery.com>
11107
11108 * math/libm-test-pow.inc (pow_test_data): Do not allow
11109 divide-by-zero exception for pow(+/- 0, -Inf).
11110
11111 2018-10-17 Zack Weinberg <zackw@panix.com>
11112
11113 * manual/job.texi (Job Control is Optional): Remove node, as
11114 job control has not been optional in quite some time.
11115 (Job Control): Mention briefly that systems older than
11116 POSIX.1-2001 might not support job control.
11117 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
11118 defined on systems conforming to POSIX.1-2001.
11119
11120 2018-10-17 Arjun Shankar <arjun@redhat.com>
11121
11122 [BZ #22062]
11123 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
11124 indentation.
11125 * (__gconv_read_conf): Mark function static.
11126 * (once): New static variable.
11127 * (__gconv_load_conf): New function.
11128 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
11129 * iconv/gconv_db.c (once): Remove static variable.
11130 * (__gconv_compare_alias): Use __gconv_load_conf instead of
11131 __gconv_read_conf.
11132 * (__gconv_find_transform): Likewise.
11133 * iconv/tst-iconv-mt.c: New test.
11134 * iconv/Makefile: Add tst-iconv_mt.
11135
11136 2018-10-17 Joseph Myers <joseph@codesourcery.com>
11137
11138 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11139 bits/shm-pad.h.
11140 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
11141 (shmatt_t): Define as __syscall_ulong_t.
11142 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
11143 and [__SHM_PAD_AFTER_TIME].
11144 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
11145 Define shm_segsz and associated padding based on
11146 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
11147 Use __syscall_ulong_t instead of unsigned long int.
11148 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
11149 unsigned long int.
11150 [__USE_MISC] (struct shm_info): Likewise.
11151 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
11152 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
11153 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
11154 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
11155 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
11156 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
11157 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
11158 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
11159 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
11160 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
11161 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
11162
11163 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11164 bits/shmlba.h.
11165 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
11166 (SHMLBA): Remove macro.
11167 (__getpagesize): Remove function declaration.
11168 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
11169 <bits/shmlba.h>.
11170 (SHMLBA): Remove macro.
11171 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
11172 <bits/shmlba.h>.
11173 (SHMLBA): Remove macro.
11174 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
11175 <bits/shmlba.h>.
11176 (SHMLBA): Remove macro.
11177 (__getpagesize): Remove function declaration.
11178 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
11179 <bits/shmlba.h>.
11180 (SHMLBA): Remove macro.
11181 (__getshmlba): Remove function declaration.
11182 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
11183 (SHMLBA): Remove macro.
11184 (__getpagesize): Remove function declaration.
11185 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
11186 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
11187 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
11188 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
11189 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
11190 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
11191 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
11192 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
11193 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
11194 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
11195
11196 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
11197
11198 [BZ #23275]
11199 * nptl/tst-mutex10.c: New File.
11200 * nptl/Makefile (tests): Add tst-mutex10.
11201 (tst-mutex10-ENV): New variable.
11202 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
11203 Ensure that elision path is used if elision is available.
11204 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
11205 Likewise.
11206 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
11207 Likewise.
11208 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
11209 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
11210 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
11211 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
11212 Likewise.
11213 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
11214 (__pthread_mutex_cond_lock_adjust): Likewise.
11215 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
11216 Likewise.
11217 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
11218 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
11219 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
11220 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
11221 Add comments.
11222 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
11223 Use atomic_load_relaxed and atomic_store_relaxed.
11224 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
11225 Use atomic_store_relaxed.
11226
11227 2018-10-17 Andreas Schwab <schwab@suse.de>
11228
11229 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
11230 * crypt/badsalttest.c (TIMEOUT): Likewise.
11231 * crypt/sha256c-test.c (TIMEOUT): Likewise.
11232 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
11233 * io/test-lfs.c (TIMEOUT): Likewise.
11234 * libio/tst-atime.c (TIMEOUT): Likewise.
11235 * localedata/tst-leaks.c (TIMEOUT): Likewise.
11236 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
11237 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
11238 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
11239 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
11240 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
11241 * nptl/tst-cond11.c (TIMEOUT): Likewise.
11242 * nptl/tst-cond14.c (TIMEOUT): Likewise.
11243 * nptl/tst-cond15.c (TIMEOUT): Likewise.
11244 * nptl/tst-cond24.c (TIMEOUT): Likewise.
11245 * nptl/tst-cond25.c (TIMEOUT): Likewise.
11246 * nptl/tst-kill2.c (TIMEOUT): Likewise.
11247 * nptl/tst-kill3.c (TIMEOUT): Likewise.
11248 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
11249 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
11250 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
11251 * nptl/tst-once2.c (TIMEOUT): Likewise.
11252 * nptl/tst-once3.c (TIMEOUT): Likewise.
11253 * nptl/tst-once4.c (TIMEOUT): Likewise.
11254 * nptl/tst-robust8.c (TIMEOUT): Likewise.
11255 * nptl/tst-robust9.c (TIMEOUT): Likewise.
11256 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
11257 * nptl/tst-sem14.c (TIMEOUT): Likewise.
11258 * nptl/tst-sem6.c (TIMEOUT): Likewise.
11259 * nptl/tst-signal3.c (TIMEOUT): Likewise.
11260 * nptl/tst-spin4.c (TIMEOUT): Likewise.
11261 * nptl/tst-tls3.c (TIMEOUT): Likewise.
11262 * nptl/tst-tls4.c (TIMEOUT): Likewise.
11263 * posix/tst-chmod.c (TIMEOUT): Likewise.
11264 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
11265 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
11266 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
11267 * posix/tst-regex2.c (TIMEOUT): Likewise.
11268 * posix/tst-waitid.c (TIMEOUT): Likewise.
11269 * rt/tst-aio.c (TIMEOUT): Likewise.
11270 * rt/tst-aio10.c (TIMEOUT): Likewise.
11271 * rt/tst-aio4.c (TIMEOUT): Likewise.
11272 * rt/tst-aio5.c (TIMEOUT): Likewise.
11273 * rt/tst-aio6.c (TIMEOUT): Likewise.
11274 * rt/tst-aio64.c (TIMEOUT): Likewise.
11275 * rt/tst-aio7.c (TIMEOUT): Likewise.
11276 * rt/tst-aio9.c (TIMEOUT): Likewise.
11277 * rt/tst-clock.c (TIMEOUT): Likewise.
11278 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
11279 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
11280 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
11281 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
11282 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
11283 * rt/tst-timer4.c (TIMEOUT): Likewise.
11284 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
11285 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
11286 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
11287 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
11288 * time/tst-ftime.c (TIMEOUT): Likewise.
11289 * timezone/tst-tzset.c (TIMEOUT): Likewise.
11290
11291 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
11292
11293 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
11294 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
11295 for thunderX2.
11296
11297 2018-10-15 Joseph Myers <joseph@codesourcery.com>
11298
11299 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11300 bits/sem-pad.h.
11301 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
11302 instead of <bits/wordsize.h>.
11303 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
11304 and [__SEM_PAD_AFTER_TIME].
11305 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
11306 __syscall_ulong_t instead of unsigned long int.
11307 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
11308 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
11309 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
11310 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
11311 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
11312 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
11313 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
11314 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
11315 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
11316 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
11317 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
11318
11319 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
11320
11321 regex: simplify by using intprops.h
11322 [BZ#23744]
11323 * posix/regex_internal.h [_LIBC]: Include intprops.h.
11324 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
11325 intprops.h defines them.
11326
11327 regex: __builtin_expect → __glibc_unlikely
11328 [BZ#23744]
11329 This refactoring was prompted by a problem when the regex code is
11330 used as part of Gnulib and when the builder’s compiler does not grok
11331 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
11332 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
11333 Although this refactoring does not fix the problem directly,
11334 we might as well have Gawk use the now-preferred glibc style for when
11335 __builtin_expect is unavailable.
11336 * posix/regex_internal.h (BE): Remove.
11337 All uses replaced by __glibc_unlikely or __glibc_likely.
11338
11339 2018-10-11 Joseph Myers <joseph@codesourcery.com>
11340
11341 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11342 bits/msq-pad.h.
11343 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
11344 instead of <bits/wordsize.h>.
11345 (msgqnum_t): Define as __syscall_ulong_t.
11346 (msglen_t): Likewise.
11347 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
11348 and [__MSQ_PAD_AFTER_TIME].
11349 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
11350 __syscall_ulong_t instead of unsigned long int.
11351 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
11352 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
11353 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
11354 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
11355 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
11356 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
11357 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
11358 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
11359 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
11360 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
11361 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
11362
11363 2018-10-10 Joseph Myers <joseph@codesourcery.com>
11364
11365 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
11366 (struct shmid_ds): Condition padding after time fields on
11367 [__WORDSIZE == 32].
11368 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
11369 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
11370 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
11371
11372 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
11373 (struct semid_ds): Condition padding after time fields on
11374 [__WORDSIZE == 32].
11375 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
11376 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
11377 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
11378 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
11379
11380 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
11381 (struct msqid_ds): Condition padding after time fields on
11382 [__WORDSIZE == 32].
11383 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
11384 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
11385 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
11386 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
11387
11388 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
11389
11390 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
11391
11392 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
11393
11394 * libio/tst-readline.c (TIMEOUT): Define.
11395
11396 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
11397
11398 mktime fix for Gnulib + coreutils
11399 [BZ#23745]
11400 This fix affects only Gnulib. Problem discovered when
11401 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
11402 * time/mktime.c:
11403 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
11404 Do not define since it is not used. Defining an unused static
11405 function prompts a warning from GCC when Coreutils is configured
11406 with --enable-gcc-warnings.
11407
11408 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11409
11410 * benchtests/scripts/compare_bench.py (main): set float type on
11411 threshold argument.
11412
11413 2018-10-08 Rafał Lużyński <digitalfreak@lingonborough.com>
11414
11415 [BZ #23740]
11416 * localedata/locales/kl_GL (mon): Update, the relative case.
11417 (alt_mon): Add, fill with month names in the nominative case.
11418 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
11419 (d_fmt): Set to "%b %d %Y".
11420
11421 2018-10-04 Joseph Myers <joseph@codesourcery.com>
11422
11423 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
11424 <bits/mman-linux.h>.
11425 (PROT_READ): Don't define here.
11426 (PROT_WRITE): Likewise.
11427 (PROT_EXEC): Likewise.
11428 (PROT_NONE): Likewise.
11429 (PROT_GROWSDOWN): Likewise.
11430 (PROT_GROWSUP): Likewise.
11431 (MAP_SHARED): Likewise.
11432 (MAP_PRIVATE): Likewise.
11433 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
11434 [__USE_MISC] (MAP_FILE): Likewise.
11435 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
11436 [__USE_MISC] (MAP_ANON): Likewise.
11437 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
11438 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
11439 (MCL_CURRENT): Likewise.
11440 (MCL_FUTURE): Likewise.
11441 (MCL_ONFAULT): Likewise.
11442 [__USE_MISC] (MADV_NORMAL): Likewise.
11443 [__USE_MISC] (MADV_RANDOM): Likewise.
11444 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
11445 [__USE_MISC] (MADV_WILLNEED): Likewise.
11446 [__USE_MISC] (MADV_DONTNEED): Likewise.
11447 [__USE_MISC] (MADV_FREE): Likewise.
11448 [__USE_MISC] (MADV_REMOVE): Likewise.
11449 [__USE_MISC] (MADV_DONTFORK): Likewise.
11450 [__USE_MISC] (MADV_DOFORK): Likewise.
11451 [__USE_MISC] (MADV_HWPOISON): Likewise.
11452 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
11453 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
11454 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
11455 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
11456 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
11457 (__MAP_ANONYMOUS): New macro.
11458 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
11459 <bits/mman-linux.h> inclusion.
11460 (MAP_FIXED): Likewise.
11461 (MS_SYNC): Likewise.
11462 (MS_ASYNC): Likewise.
11463 (MS_INVALIDATE): Likewise.
11464 [__USE_MISC] (MADV_MERGEABLE): Likewise.
11465 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
11466 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
11467 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
11468 [__USE_MISC] (MADV_DONTDUMP): Likewise.
11469 [__USE_MISC] (MADV_DODUMP): Likewise.
11470 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
11471 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
11472
11473 [BZ #23735]
11474 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
11475 Define.
11476 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
11477 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
11478 Add test-nldbl-redirect.
11479 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
11480 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
11481 $(objpfx)libnldbl_nonshared.a.
11482
11483 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
11484
11485 * support/support.h (support_objdir_elf_ldso): New variable.
11486 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
11487 * support/Makefile (CFLAGS-support_paths.c): Add definition
11488 for OBJDIR_ELF_LDSO_PATH.
11489 * support/test-container.c (main): Search for the ld.so
11490 which is also used by the testsuite.
11491
11492 2018-10-02 Rafał Lużyński <digitalfreak@lingonborough.com>
11493
11494 [BZ #20209]
11495 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
11496 should be "sap" rather than "sab".
11497 (day): Fix spelling of Sunday, should be "sapaat" rather than
11498 "sabaat".
11499
11500 2018-10-02 Joseph Myers <joseph@codesourcery.com>
11501
11502 * math/libm-test-fma.inc (fma_test_data): Add more tests.
11503
11504 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
11505
11506 [BZ #19444]
11507 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
11508 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
11509 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
11510
11511 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11512
11513 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
11514
11515 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
11516
11517 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
11518 Add -mrtm.
11519 (CFLAGS-elision-unlock.c): Likewise.
11520 (CFLAGS-elision-timed.c): Likewise.
11521 (CFLAGS-elision-trylock.c): Likewise.
11522 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
11523
11524 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11525
11526 [BZ #21037]
11527 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
11528 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
11529 new fd_to_filename interface.
11530 * libio/freopen64.c (freopen64): Likewise.
11531 * libio/tst-memstream.h: New file.
11532 * libio/tst-memstream4.c: Likewise.
11533 * libio/tst-wmemstream4.c: Likewise.
11534 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
11535 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
11536 and remove internal dynamic allocation.
11537
11538 2018-10-01 Joseph Myers <joseph@codesourcery.com>
11539
11540 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
11541 (MREMAP_MAYMOVE): Do not define here.
11542 [__USE_GNU] (MREMAP_FIXED): Likewise.
11543 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
11544 (MREMAP_MAYMOVE): Define here instead.
11545 [__USE_GNU] (MREMAP_FIXED): Likewise.
11546 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
11547 (MREMAP_MAYMOVE): Remove.
11548 [__USE_GNU] (MREMAP_FIXED): Likewise.
11549
11550 2018-09-28 Joseph Myers <joseph@codesourcery.com>
11551
11552 * math/fromfp.h: Do not include <math_private.h>.
11553 * math/s_cacosh_template.c: Likewise.
11554 * math/s_casin_template.c: Likewise.
11555 * math/s_casinh_template.c: Likewise.
11556 * math/s_ccos_template.c: Likewise.
11557 * math/s_cproj_template.c: Likewise.
11558 * math/s_fdim_template.c: Likewise.
11559 * math/s_fmaxmag_template.c: Likewise.
11560 * math/s_fminmag_template.c: Likewise.
11561 * math/s_iseqsig_template.c: Likewise.
11562 * math/s_ldexp_template.c: Likewise.
11563 * math/s_nextdown_template.c: Likewise.
11564 * math/w_log1p_template.c: Likewise.
11565 * math/w_scalbln_template.c: Likewise.
11566 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
11567 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
11568 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
11569 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
11570 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
11571 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
11572 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
11573 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
11574 * sysdeps/i386/fpu/s_atanl.c: Likewise.
11575 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
11576 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
11577 * sysdeps/i386/fpu/s_fdim.c: Likewise.
11578 * sysdeps/i386/fpu/s_logbl.c: Likewise.
11579 * sysdeps/i386/fpu/s_rintl.c: Likewise.
11580 * sysdeps/i386/fpu/s_significandl.c: Likewise.
11581 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
11582 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
11583 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11584 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
11585 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
11586 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
11587 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
11588 * sysdeps/ieee754/k_standardf.c: Likewise.
11589 * sysdeps/ieee754/k_standardl.c: Likewise.
11590 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11591 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
11592 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
11593 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
11594 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
11595 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
11596 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
11597 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
11598 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
11599 * sysdeps/ieee754/s_signgam.c: Likewise.
11600 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
11601 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
11602 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
11603 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
11604 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
11605 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
11606 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
11607 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
11608 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
11609 * sysdeps/riscv/rvd/s_finite.c: Likewise.
11610 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
11611 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
11612 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
11613 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
11614 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
11615 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
11616 * sysdeps/riscv/rvf/fegetround.c: Likewise.
11617 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
11618 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
11619 * sysdeps/riscv/rvf/fesetround.c: Likewise.
11620 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
11621 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
11622 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
11623 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
11624 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
11625 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
11626 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
11627 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
11628 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
11629 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
11630 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
11631 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
11632 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
11633 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
11634 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
11635 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
11636 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
11637 <math_private.h>.
11638 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
11639
11640 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
11641
11642 [BZ #23716]
11643 * sysdeps/i386/dl-cet.c: Removed.
11644 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
11645 prototype.
11646 (_dl_runtime_profile_shstk): Likewise.
11647 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
11648 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
11649
11650 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11651
11652 [BZ #23579]
11653 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
11654 do_test_with_invalid_iov): New tests.
11655 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
11656 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
11657 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
11658 errno is ENOSYS.
11659 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
11660 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
11661 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
11662
11663 2018-09-27 Joseph Myers <joseph@codesourcery.com>
11664
11665 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
11666 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
11667 (MATH_REDIRECT_BINARY_ARGS): New macro.
11668 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
11669 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
11670 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
11671 header inclusion.
11672 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
11673 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
11674 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
11675 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
11676 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
11677 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11678 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
11679 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
11680 Likewise.
11681 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
11682 Likewise.
11683 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
11684 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
11685 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
11686 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
11687 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
11688 Likewise.
11689 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
11690 Likewise.
11691 * sysdeps/generic/math_private_calls.h
11692 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
11693 Do not declare and define as an inline function.
11694 * math/divtc3.c (__divtc3): Use copysign functions instead of
11695 __copysign variants.
11696 * math/multc3.c (__multc3): Likewise.
11697 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
11698 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
11699 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
11700 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
11701 Likewise.
11702 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
11703 (__ieee754_yn): Likewise.
11704 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
11705 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
11706 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
11707 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
11708 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
11709 (__sin): Likewise.
11710 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
11711 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
11712 Likewise.
11713 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
11714 Likewise.
11715 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
11716 Likewise.
11717 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
11718 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
11719 Likewise.
11720 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
11721 (__ieee754_ynf): Likewise.
11722 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
11723 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
11724 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
11725 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
11726 Likewise.
11727 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
11728 (__ieee754_ynl): Likewise.
11729 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
11730 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
11731 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
11732 Likewise.
11733 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
11734 (__ieee754_ynl): Likewise.
11735 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
11736 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
11737 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
11738 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
11739 Likewise.
11740 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
11741 (__ieee754_ynl)
11742 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
11743 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
11744 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
11745 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
11746 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
11747
11748 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
11749 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
11750 using MATH_REDIRECT.
11751 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
11752 header inclusion.
11753 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
11754 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
11755 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
11756 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
11757 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
11758 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
11759 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
11760 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
11761 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
11762 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
11763 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
11764 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
11765 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
11766 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
11767 (round): Redirect to __round.
11768 (__roundl): Call round instead of __round.
11769 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
11770 Remove macro.
11771 [_ARCH_PWR5X] (__roundf): Likewise.
11772 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
11773 functions instead of __round variants.
11774 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
11775 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
11776 Likewise.
11777 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
11778 Likewise.
11779 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
11780 Likewise.
11781 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
11782 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
11783 __lroundl.
11784 (__ieee754_expl): Call roundl instead of __roundl.
11785
11786 2018-09-27 Andreas Schwab <schwab@suse.de>
11787
11788 [BZ #23717]
11789 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
11790 (do_test): Make st1 static.
11791
11792 2018-09-26 Andreas Schwab <schwab@suse.de>
11793
11794 [BZ #23707]
11795 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
11796 * elf/Makefile (tests): Add tst-unwind-ctor.
11797 (modules-names): Add tst-unwind-ctor-lib.
11798 ($(objpfx)tst-unwind-ctor): Depend on
11799 $(objpfx)tst-unwind-ctor-lib.so.
11800
11801 2018-09-26 Joseph Myers <joseph@codesourcery.com>
11802
11803 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
11804 file. Most contents moved from ....
11805 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
11806 and include <bits/mman-map-flags-generic.h>.
11807 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
11808 (sysdep_headers): Add bits/mman-map-flags-generic.h.
11809 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
11810 <bits/mman-map-flags-generic.h>.
11811 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
11812 macros defined in <bits/mman-map-flags-generic.h>.
11813 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
11814 <bits/mman-map-flags-generic.h>.
11815 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
11816 defined in <bits/mman-map-flags-generic.h>.
11817
11818 2018-09-26 Andreas Schwab <schwab@suse.de>
11819
11820 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
11821 output.
11822
11823 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
11824 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11825 Fangrui Song <maskray@google.com>
11826
11827 [BZ #20480]
11828 * config.make.in (have-textrel_ifunc): New define.
11829 * configure.ac: Add check if linker supports textrel relocation with
11830 ifunc.
11831 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
11832 tst-ifunc-textrel.
11833 (CFLAGS-tst-ifunc-textrel.c): New rule.
11834 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
11835 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
11836 * elf/tst-ifunc-textrel.c: New file.
11837
11838 2018-09-25 Joseph Myers <joseph@codesourcery.com>
11839
11840 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
11841 <bits/procfs-prregset.h>.
11842 (prgregset_t): Define using __prgregset_t.
11843 (prfpregset_t): Define using __prfpregset_t.
11844 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
11845 (sysdep_headers): Add bits/procfs-prregset.h.
11846 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
11847 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
11848 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
11849 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
11850
11851 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
11852 <bits/procfs-id.h> and <bits/procfs-extra.h>.
11853 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
11854 pr_uid and pr_gid.
11855 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
11856 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
11857 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
11858 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
11859 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
11860 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
11861 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
11862 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
11863 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
11864 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
11865 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
11866 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
11867 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
11868 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
11869 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
11870 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
11871 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
11872 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
11873 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
11874 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
11875 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
11876 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
11877 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
11878 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
11879
11880 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
11881 AArch64 version. Include <bits/procfs.h>.
11882 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
11883 (sysdep_headers): Add bits/procfs.h.
11884 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
11885 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
11886 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
11887 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
11888 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
11889 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
11890 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
11891 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
11892 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
11893 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
11894 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
11895 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
11896 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
11897 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
11898 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
11899 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
11900 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
11901
11902 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11903
11904 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
11905 Use libsupport.
11906
11907 2018-09-25 Arjun Shankar <arjun@redhat.com>
11908
11909 * iconv/gconv_int.h (__gconv_path_elem): Remove.
11910 (__gconv_max_path_elem_len): Likewise.
11911 (__gconv_nmodules): Likewise.
11912 (__gconv_get_path): Likewise.
11913 (path_elem): Move to ...
11914 * iconv/gconv_conf.c: ... here.
11915 (__gconv_get_path): Mark function static.
11916 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
11917 * iconv/gconv_open.c: ... here.
11918
11919 2018-09-24 Andreas Schwab <schwab@suse.de>
11920
11921 * scripts/haveversions.awk: New file.
11922 * Makerules ($(common-objpfx)Versions.def)
11923 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
11924 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
11925 Move rules ...
11926 * Makeconfig ($(common-objpfx)Versions.def)
11927 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
11928 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
11929 ... here.
11930 ($(common-objpfx)Versions.mk): New rule. Include it.
11931 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
11932 Emit error if build-obsolete-nsl = yes.
11933 * manual/install.texi (Configuring and compiling): Describe
11934 --enable-obsolete-nsl as unavaiable after version 2.28.
11935 * INSTALL: Regenerate.
11936
11937 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11938
11939 * NEWS: Add note about new TLE support on powerpc64le.
11940 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
11941 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
11942 __ununsed1.
11943 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
11944 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
11945 * sysdeps/powerpc/powerpc32/sysdep.h,
11946 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
11947 ABORT_TRANSACTION): Remove macros.
11948 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
11949 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
11950 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
11951 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
11952 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
11953 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
11954 usage.
11955 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
11956
11957 2018-09-21 Rafał Lużyński <digitalfreak@lingonborough.com>
11958
11959 [BZ #10425]
11960 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
11961 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
11962 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
11963 which is the same as in it_IT.
11964 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
11965 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
11966
11967 2018-09-20 Joseph Myers <joseph@codesourcery.com>
11968
11969 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
11970 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
11971 using MATH_REDIRECT.
11972 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
11973 header inclusion.
11974 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
11975 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
11976 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
11977 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
11978 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
11979 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
11980 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
11981 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
11982 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
11983 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
11984 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
11985 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
11986 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
11987 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
11988 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
11989 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
11990 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
11991 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
11992 (ceil): Redirect to __ceil.
11993 (floor): Redirect to __floor.
11994 (trunc): Redirect to __trunc.
11995 (__truncl): Call trunc instead of __trunc.
11996 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
11997 Remove macro.
11998 [_ARCH_PWR5X] (__truncf): Likewise.
11999 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
12000 trunc functions instead of __trunc variants.
12001 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
12002 Likewise.
12003 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
12004 Likewise.
12005 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
12006 Likewise.
12007 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
12008 Likewise.
12009
12010 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
12011 [__i586__ || __pentium__].
12012 [__i486__]: Handle explicitly.
12013 (HAS_CPUID): Define to 1 if above macros are undefined.
12014 (HAS_I586): Likewise.
12015 (HAS_I686): Likewise.
12016
12017 2018-09-20 Florian Weimer <fweimer@redhat.com>
12018
12019 * misc/tst-gethostid.c: New file.
12020 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
12021 (tst-gethostid): Link with -ldl.
12022
12023 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
12024
12025 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
12026 value from gethostbyname_r.
12027
12028 2018-09-19 Carlos O'Donell <carlos@redhat.com>
12029
12030 * stdlib/tst-setcontext9.c (f1): Rename to...
12031 (f1a): ... this.
12032 (f1b): New function implementing lower half of f1 in alternate stack.
12033
12034 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
12035
12036 Fix mktime localtime offset confusion
12037 [BZ #23603]
12038 * include/time.h (__mktime_internal): The localtime offset is now
12039 of type long int instead of time_t. This is the longstanding type
12040 in glibc, and it is more than enough to represent difference
12041 between localtime and gmtime even if it is 32 bits and time_t is
12042 64. Changing it now will let us avoid an unnecessary change when
12043 time_t is widened to 64 bits on 32-bit platforms.
12044 * time/mktime-internal.h (mktime_offset_t): Now long int.
12045
12046 Merge mktime, timegm from upstream Gnulib
12047 [BZ #23603][BZ #16346]
12048 This fixes some obscure problems with integer overflow.
12049 Although it looks scary, it is almost all a byte-for-byte copy
12050 from Gnulib, and the Gnulib code has been tested reasonably well.
12051 * include/intprops.h: New file, copied from Gnulib.
12052 * include/verify.h, time/mktime-internal.h:
12053 New tiny files, simplified from Gnulib.
12054 * time/mktime.c: Copy from Gnulib. This has the following changes:
12055 Do not include config.h if DEBUG_MKTIME is nonzero.
12056 Include stdbool.h, intprops.h, verify.h.
12057 Include string.h only if needed.
12058 Include stdlib.h on MS-Windows.
12059 Include mktime-internal.h.
12060 (DEBUG_MKTIME): Default to 0, and simplify later uses.
12061 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
12062 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
12063 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
12064 simplify later conditionals; default the others to zero. Use
12065 these conditionals to express only the code needed on the current
12066 platform. In uses of these conditionals, explicitly spell out how
12067 _LIBC affects things, so it’s easier to review from a glibc
12068 viewpoint.
12069 (WRAPV): Remove; no longer needed now that we have
12070 systematic overflow checking.
12071 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
12072 compartmentalize tzset issues. Move system-dependent tzsettish
12073 code here from mktime.
12074 (verify): Remove; now done by verify.h. All uses changed.
12075 (long_int): Use a more-conservative definition, to avoid
12076 integer overflow.
12077 (SHR): Remove, replacing with ...
12078 (shr): New function, which means we needn’t worry about side
12079 effects in args, and conversion analysis is simpler.
12080 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
12081 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
12082 (time_t_avg, time_t_add_ok): Remove.
12083 (mktime_min, mktime_max): New constants.
12084 (leapyear, isdst_differ): Use bool for booleans.
12085 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
12086 Use long_int, not time_t, for mktime differences.
12087 (long_int_avg): New function, replacing time_t_avg.
12088 INT_ADD_WRAPV replaces time_t_add_ok.
12089 (guess_time_tm): 6th arg is now long_int, not time_t const *.
12090 All uses changed.
12091 (convert_time): New function.
12092 (ranged_convert): Use it.
12093 (__mktime_internal): Last arg now points to mktime_offset_t, not
12094 time_t. All uses changed. This is a no-op on glibc, where
12095 mktime_offset_t is always time_t. Use int, not time_t, for UTC
12096 offset guess. Directly check for integer overflow instead of
12097 using a heuristic that works only 99.9...% of the time.
12098 Access *OFFSET only once, to avoid an unlikely race if the
12099 compiler delays a load and if this cascades into a signed integer
12100 overflow.
12101 (mktime): Move tzsettish code to my_tzset, and move
12102 localtime_offset to within mktime so that it doesn’t
12103 need a separate ifdef.
12104 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
12105 instead of localtime.
12106 * time/timegm.c: Copy from Gnulib. This has the following changes:
12107 Include mktime-internal.h.
12108 [!_LIBC]: Include config.h and time.h. Do not include
12109 timegm.h or time_r.h. Make __mktime_internal a macro,
12110 and include mktime-internal.h to get its declaration.
12111 (timegm): Temporary is now mktime_offset_t, not time_t.
12112 This affects only Gnulib.
12113
12114 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
12115
12116 [BZ #23637]
12117 * string/test-strstr.c (pr23637): New function.
12118 (test_main): Add tests with longer needles.
12119 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
12120 * string/strstr.c (AVAILABLE): Likewise.
12121
12122 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
12123
12124 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
12125
12126 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
12127
12128 * NEWS: Mention pow improvements.
12129 * math/Makefile (type-double-routines): Add e_pow_log_data.
12130 * sysdeps/generic/math_private.h (__exp1): Remove.
12131 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
12132 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
12133 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
12134 contraction.
12135 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
12136 (exp_inline): Remove.
12137 (__ieee754_exp): Only single double input is handled.
12138 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
12139 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
12140 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
12141 (__pow_log_data): Define.
12142 * sysdeps/ieee754/dbl-64/upow.h: Remove.
12143 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
12144 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
12145 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
12146 contraction.
12147 (CFLAGS-e_pow-fma4.c): Likewise.
12148
12149 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
12150
12151 Simplify tzfile fstat failure code
12152 [BZ #21716]
12153 * time/tzfile.c (__tzfile_read): Simplify slightly.
12154
12155 Fix tzfile low-memory assertion failure
12156 [BZ #21716]
12157 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
12158 when registering time zone abbreviations.
12159
12160 2018-09-18 Joseph Myers <joseph@codesourcery.com>
12161
12162 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
12163 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
12164 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
12165 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
12166 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
12167 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
12168 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
12169 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
12170 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
12171
12172 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
12173 __ceil.
12174 (__ceill): Call ceil instead of __ceil.
12175 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
12176 __floor.
12177 (__floorl): Call floor instead of __floor.
12178
12179 2018-09-17 Joseph Myers <joseph@codesourcery.com>
12180
12181 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12182 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
12183 using MATH_REDIRECT.
12184 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
12185 header inclusion.
12186 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
12187 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
12188 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
12189 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
12190 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
12191 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12192 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
12193 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
12194 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
12195 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
12196 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
12197 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
12198 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
12199 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
12200 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
12201 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
12202 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
12203 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
12204 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
12205 Remove macro.
12206 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
12207 functions instead of __ceil variants.
12208 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
12209 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
12210 Likewise.
12211 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
12212 Likewise.
12213 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
12214 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
12215 Likewise.
12216 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
12217 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
12218
12219 [BZ #21286]
12220 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
12221 constant.
12222 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
12223 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
12224 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
12225 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
12226 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
12227 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
12228 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
12229 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
12230 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
12231 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
12232 (ILL_BADIADDR): Remove constant.
12233 (TRAP_BRANCH): Likewise.
12234 (TRAP_HWBKPT): Likewise.
12235
12236 2018-09-14 Joseph Myers <joseph@codesourcery.com>
12237
12238 [BZ #23656]
12239 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
12240 Remove [_MIPS_SIM = _ABIN32] conditional case.
12241 (struct elf_prpsinfo): Likewise.
12242
12243 [BZ #23649]
12244 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
12245 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
12246 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
12247 Likewise.
12248 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
12249 elf_prpsinfo): Likewise.
12250 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
12251 elf_prpsinfo): Likewise.
12252 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
12253 Likewise.
12254
12255 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12256 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
12257 using MATH_REDIRECT.
12258 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
12259 header inclusion.
12260 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
12261 * sysdeps/alpha/fpu/s_rint.c: Likewise.
12262 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
12263 * sysdeps/i386/fpu/s_rintl.c: Likewise.
12264 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
12265 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
12266 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
12267 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
12268 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12269 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12270 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
12271 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
12272 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
12273 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
12274 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
12275 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
12276 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
12277 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
12278 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
12279 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
12280 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
12281 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
12282 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
12283 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
12284 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
12285 * sysdeps/x86_64/fpu/math_private.h: Remove file.
12286 * math/e_scalb.c (invalid_fn): Use rint functions instead of
12287 __rint variants.
12288 * math/e_scalbf.c (invalid_fn): Likewise.
12289 * math/e_scalbl.c (invalid_fn): Likewise.
12290 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
12291 Likewise.
12292 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
12293 Likewise.
12294 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
12295 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
12296 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
12297 Likewise.
12298 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
12299 Likewise.
12300 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
12301 Likewise.
12302 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
12303 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
12304
12305 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12306 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
12307 New macro.
12308 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12309 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
12310 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12311 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
12312 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12313 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
12314 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12315 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
12316 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12317 && !NO_MATH_REDIRECT] (floor): Likewise.
12318 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
12319 header inclusion.
12320 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
12321 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12322 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
12323 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
12324 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
12325 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12326 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12327 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
12328 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
12329 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
12330 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
12331 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
12332 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
12333 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
12334 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
12335 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
12336 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
12337 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
12338 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
12339 Remove macro.
12340 [_ARCH_PWR5X] (__floorf): Likewise.
12341 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
12342 inline function.
12343 [__SSE4_1__] (__floorf): Likewise.
12344 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
12345 instead of __floor variants.
12346 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
12347 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
12348 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
12349 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
12350 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
12351 * math/w_tgamma_compat.c (__tgamma): Likewise.
12352 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
12353 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
12354 * math/w_tgammal_compat.c (__tgammal): Likewise.
12355 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
12356 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
12357 Likewise.
12358 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
12359 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
12360 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
12361 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
12362 Likewise.
12363 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
12364 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
12365 Likewise.
12366 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
12367 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
12368 Likewise.
12369 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
12370 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
12371 Likewise.
12372 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
12373 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
12374 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
12375 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
12376 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
12377 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
12378
12379 2018-09-12 Joseph Myers <joseph@codesourcery.com>
12380
12381 * elf/Makefile (modules-names-tests): New variable.
12382
12383 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
12384
12385 * NEWS: Mention log2 improvements.
12386 * math/Makefile (type-double-routines): Add e_log2_data.
12387 * sysdeps/i386/fpu/e_log2_data.c: New file.
12388 * sysdeps/ia64/fpu/e_log2_data.c: New file.
12389 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
12390 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
12391 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
12392 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
12393 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
12394
12395 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
12396
12397 * NEWS: Mention log improvement.
12398 * math/Makefile (type-double-routines): Add e_log_data.
12399 * sysdeps/i386/fpu/e_log_data.c: New file.
12400 * sysdeps/ia64/fpu/e_log_data.c: New file.
12401 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
12402 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
12403 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
12404 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
12405 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
12406 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
12407
12408 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
12409 Xuepeng Guo <xuepeng.guo@intel.com>
12410
12411 [BZ #23606]
12412 * sysdeps/i386/start.S: Include <sysdep.h>
12413 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
12414 enabled. Add cfi_undefined (eip).
12415
12416 2018-09-11 Joseph Myers <joseph@codesourcery.com>
12417
12418 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
12419 (MOVQ): Likewise.
12420 (EXTRACT_WORDS64): Likewise.
12421 (INSERT_WORDS64): Likewise.
12422 (GET_FLOAT_WORD): Likewise.
12423 (SET_FLOAT_WORD): Likewise.
12424
12425 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
12426 argument.
12427 (Config.build_gcc): Use --disable-libsanitizer for first GCC
12428 build, but not for second build if --full-gcc. Use
12429 --enable-languages=all for second build if --full-gcc.
12430 (get_parser): Add --full-gcc option.
12431 (main): Update call to Context.
12432
12433 2018-09-10 Rafał Lużyński <digitalfreak@lingonborough.com>
12434
12435 [BZ #10797]
12436 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
12437 Single Quotation Mark).
12438 (thousands_sep): Likewise.
12439 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
12440 * localedata/locales/it_IT (thousands_sep): Use ".".
12441 (grouping): Use "3;3".
12442
12443 2018-09-10 Joseph Myers <joseph@codesourcery.com>
12444
12445 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
12446 x86_64 and i686 configs using --enable-obsolete-rpc
12447 --enable-obsolete-nsl.
12448
12449 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
12450
12451 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
12452
12453 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
12454
12455 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
12456 Increment size of new_argv by one.
12457
12458 2018-09-05 Rafał Lużyński <digitalfreak@lingonborough.com>
12459
12460 [BZ #17426]
12461 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
12462 * localedata/locales/ar_IN (d_fmt): Likewise.
12463 * localedata/locales/bhb_IN (d_fmt): Likewise.
12464 * localedata/locales/bho_IN (d_fmt): Likewise.
12465 * localedata/locales/bn_BD (d_fmt): Likewise.
12466 * localedata/locales/bn_IN (d_fmt): Likewise.
12467 * localedata/locales/doi_IN (d_fmt): Likewise.
12468 * localedata/locales/gu_IN (d_fmt): Likewise.
12469 * localedata/locales/hi_IN (d_fmt): Likewise.
12470 * localedata/locales/hne_IN (d_fmt): Likewise.
12471 * localedata/locales/kn_IN (d_fmt): Likewise.
12472 * localedata/locales/mag_IN (d_fmt): Likewise.
12473 * localedata/locales/mai_IN (d_fmt): Likewise.
12474 * localedata/locales/mjw_IN (d_fmt): Likewise.
12475 * localedata/locales/ml_IN (d_fmt): Likewise.
12476 * localedata/locales/mni_IN (d_fmt): Likewise.
12477 * localedata/locales/mr_IN (d_fmt): Likewise.
12478 * localedata/locales/pa_IN (d_fmt): Likewise.
12479 * localedata/locales/raj_IN (d_fmt): Likewise.
12480 * localedata/locales/sat_IN (d_fmt): Likewise.
12481 * localedata/locales/sd_IN (d_fmt): Likewise.
12482 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
12483 * localedata/locales/ta_IN (d_fmt): Likewise.
12484 * localedata/locales/ta_LK (d_fmt): Likewise.
12485 * localedata/locales/tcy_IN (d_fmt): Likewise.
12486 * localedata/locales/ur_IN (d_fmt): Likewise.
12487
12488 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
12489 * localedata/locales/ks_IN (d_fmt): Likewise.
12490 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
12491
12492 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
12493 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
12494 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
12495 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
12496
12497 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
12498
12499 * NEWS: Mention exp and exp2 improvements.
12500 * math/Makefile (libm-support): Remove t_exp.
12501 (type-double-routines): Add math_err and e_exp_data.
12502 * sysdeps/aarch64/libm-test-ulps: Update.
12503 * sysdeps/arm/libm-test-ulps: Update.
12504 * sysdeps/i386/fpu/e_exp_data.c: New file.
12505 * sysdeps/i386/fpu/math_err.c: New file.
12506 * sysdeps/i386/fpu/t_exp.c: Remove.
12507 * sysdeps/ia64/fpu/e_exp_data.c: New file.
12508 * sysdeps/ia64/fpu/math_err.c: New file.
12509 * sysdeps/ia64/fpu/t_exp.c: Remove.
12510 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
12511 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
12512 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
12513 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
12514 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
12515 * sysdeps/ieee754/dbl-64/math_config.h: New file.
12516 * sysdeps/ieee754/dbl-64/math_err.c: New file.
12517 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
12518 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
12519 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
12520 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
12521 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
12522 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
12523 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
12524 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12525 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
12526
12527 2018-09-05 Joseph Myers <joseph@codesourcery.com>
12528
12529 * sysdeps/alpha/fpu/math_private.h: Remove.
12530
12531 * sysdeps/generic/math_private.h
12532 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
12533 Move this inline function ....
12534 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
12535 * include/math.h [!_ISOMAC]: To here....
12536
12537 2018-09-04 Joseph Myers <joseph@codesourcery.com>
12538
12539 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
12540 code ....
12541 [!FE_HAVE_ROUNDING_MODES]: And this code ....
12542 * include/fenv.h [!_ISOMAC]: ... to here.
12543 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
12544 (feraiseexcept): Likewise.
12545 * math/fromfp.h: Do not include <fenv_private.h>.
12546 * math/s_cexp_template.c: Likewise.
12547 * math/s_csin_template.c: Likewise.
12548 * math/s_csinh_template.c: Likewise.
12549 * math/s_ctan_template.c: Likewise.
12550 * math/s_ctanh_template.c: Likewise.
12551 * math/s_iseqsig_template.c: Likewise.
12552 * math/w_acos_compat.c: Likewise.
12553 * math/w_acosf_compat.c: Likewise.
12554 * math/w_acosl_compat.c: Likewise.
12555 * math/w_asin_compat.c: Likewise.
12556 * math/w_asinf_compat.c: Likewise.
12557 * math/w_asinl_compat.c: Likewise.
12558 * math/w_j0_compat.c: Likewise.
12559 * math/w_j0f_compat.c: Likewise.
12560 * math/w_j0l_compat.c: Likewise.
12561 * math/w_j1_compat.c: Likewise.
12562 * math/w_j1f_compat.c: Likewise.
12563 * math/w_j1l_compat.c: Likewise.
12564 * math/w_jn_compat.c: Likewise.
12565 * math/w_jnf_compat.c: Likewise.
12566 * math/w_log10_compat.c: Likewise.
12567 * math/w_log10f_compat.c: Likewise.
12568 * math/w_log10l_compat.c: Likewise.
12569 * math/w_log2_compat.c: Likewise.
12570 * math/w_log2f_compat.c: Likewise.
12571 * math/w_log2l_compat.c: Likewise.
12572 * math/w_log_compat.c: Likewise.
12573 * math/w_logf_compat.c: Likewise.
12574 * math/w_logl_compat.c: Likewise.
12575 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12576 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
12577 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12578 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
12579 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
12580 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12581 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
12582 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12583 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
12584 * sysdeps/ieee754/k_standardl.c: Likewise.
12585 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12586 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
12587 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
12588 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
12589 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
12590 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
12591 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12592 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
12593 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12594 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
12595 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
12596 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
12597 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
12598 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
12599 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
12600 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
12601 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
12602 * math/w_ilogb_template.c: Include <fenv.h> instead of
12603 <fenv_private.h>.
12604 * math/w_llogb_template.c: Likewise.
12605 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
12606 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
12607
12608 2018-09-03 Joseph Myers <joseph@codesourcery.com>
12609
12610 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
12611 * math/fromfp.h: Include <fenv_private.h>.
12612 * math/math-narrow.h: Likewise.
12613 * math/s_cexp_template.c: Likewise.
12614 * math/s_csin_template.c: Likewise.
12615 * math/s_csinh_template.c: Likewise.
12616 * math/s_ctan_template.c: Likewise.
12617 * math/s_ctanh_template.c: Likewise.
12618 * math/s_iseqsig_template.c: Likewise.
12619 * math/w_acos_compat.c: Likewise.
12620 * math/w_acosf_compat.c: Likewise.
12621 * math/w_acosl_compat.c: Likewise.
12622 * math/w_asin_compat.c: Likewise.
12623 * math/w_asinf_compat.c: Likewise.
12624 * math/w_asinl_compat.c: Likewise.
12625 * math/w_ilogb_template.c: Likewise.
12626 * math/w_j0_compat.c: Likewise.
12627 * math/w_j0f_compat.c: Likewise.
12628 * math/w_j0l_compat.c: Likewise.
12629 * math/w_j1_compat.c: Likewise.
12630 * math/w_j1f_compat.c: Likewise.
12631 * math/w_j1l_compat.c: Likewise.
12632 * math/w_jn_compat.c: Likewise.
12633 * math/w_jnf_compat.c: Likewise.
12634 * math/w_llogb_template.c: Likewise.
12635 * math/w_log10_compat.c: Likewise.
12636 * math/w_log10f_compat.c: Likewise.
12637 * math/w_log10l_compat.c: Likewise.
12638 * math/w_log2_compat.c: Likewise.
12639 * math/w_log2f_compat.c: Likewise.
12640 * math/w_log2l_compat.c: Likewise.
12641 * math/w_log_compat.c: Likewise.
12642 * math/w_logf_compat.c: Likewise.
12643 * math/w_logl_compat.c: Likewise.
12644 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
12645 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
12646 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
12647 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
12648 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12649 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12650 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12651 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12652 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12653 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12654 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
12655 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12656 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
12657 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
12658 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12659 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
12660 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
12661 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12662 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
12663 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12664 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
12665 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12666 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12667 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12668 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12669 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
12670 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
12671 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
12672 * sysdeps/ieee754/float128/float128_private.h: Likewise.
12673 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12674 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12675 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12676 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
12677 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12678 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
12679 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12680 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
12681 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12682 * sysdeps/ieee754/k_standardl.c: Likewise.
12683 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12684 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
12685 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12686 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12687 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
12688 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
12689 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
12690 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
12691 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
12692 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
12693 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
12694 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12695 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
12696 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
12697 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
12698 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
12699 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12700 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
12701 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12702 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
12703 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12704 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
12705 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
12706 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12707 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
12708 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
12709 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12710 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
12711 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
12712 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
12713 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
12714 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
12715 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
12716 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
12717 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
12718 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
12719 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
12720 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
12721 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
12722 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
12723 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
12724 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
12725 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
12726 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
12727 * sysdeps/riscv/rvd/s_finite.c: Likewise.
12728 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
12729 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
12730 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
12731 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
12732 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
12733 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
12734 * sysdeps/riscv/rvf/fegetround.c: Likewise.
12735 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
12736 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
12737 * sysdeps/riscv/rvf/fesetround.c: Likewise.
12738 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
12739 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
12740 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
12741 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
12742 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
12743 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
12744 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
12745 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
12746 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
12747 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
12748 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
12749 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
12750 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
12751 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
12752 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
12753 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
12754
12755 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
12756
12757 [BZ #20271]
12758 * include/stdio.h (__libc_fatal): Mention newline in comment.
12759 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
12760 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
12761 * nscd/initgrcache.c (addinitgroupsX): Likewise.
12762 * nss/nsswitch.c (__nss_next2): Likewise.
12763 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
12764 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
12765 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
12766 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
12767 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
12768 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
12769 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
12770 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
12771 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
12772 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
12773 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
12774 * sysdeps/unix/sysv/linux/netlink_assert_response.c
12775 (__netlink_assert_response): Likewise.
12776
12777 2018-08-31 Joseph Myers <joseph@codesourcery.com>
12778
12779 * conform/glibcconform.py: New file.
12780 * conform/list-header-symbols.py: Likewise.
12781 * conform/list-header-symbols.pl: Remove.
12782 * conform/Makefile (tests-special): Only add linknamespace tests
12783 if [PYTHON].
12784 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
12785
12786 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
12787
12788 [BZ #23597]
12789 * support/Makefile (libsupport-routines): Add
12790 support_copy_file_range and xcopy_file_range.
12791 * support/support.h: Include <sys/types.h>.
12792 (support_copy_file_range): New prototype.
12793 * support/support_copy_file_range.c: New file. Copied and
12794 modified from io/copy_file_range-compat.c.
12795 * support/test-container.c (copy_one_file): Call xcopy_file_rang
12796 instead of copy_file_range.
12797 * support/xcopy_file_range.c: New file.
12798 * support/xunistd.h (xcopy_file_range): New prototype.
12799
12800 2018-08-30 Carlos O'Donell <carlos@redhat.com>
12801
12802 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
12803 xpthread_create and xpthread_join.
12804
12805 2018-08-30 Florian Weimer <fweimer@redhat.com>
12806
12807 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
12808
12809 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
12810
12811 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
12812 if malloc fails.
12813
12814 2018-08-29 Joseph Myers <joseph@codesourcery.com>
12815
12816 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
12817 and minus_oflow as non-finite.
12818
12819 2018-08-28 Joseph Myers <joseph@codesourcery.com>
12820
12821 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
12822 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
12823 moved to fenv_private.h except for ...
12824 (TOINT_INTRINSICS): Kept in math_private.h.
12825 (roundtoint): Likewise.
12826 (converttoint): Likewise.
12827 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
12828 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
12829 * sysdeps/arm/math_private.h: Remove.
12830 * sysdeps/generic/fenv_private.h: New file. Contents moved from
12831 ....
12832 * sysdeps/generic/math_private.h: ... this file. Include
12833 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
12834 Include <fenv_private.h>. Remove functions and macros moved to
12835 fenv_private.h.
12836 * sysdeps/i386/fpu/math_private.h: Remove.
12837 * sysdeps/mips/math_private.h: Move to ....
12838 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
12839 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
12840 [__mips_hard_float] conditional. Include next <fenv_private.h>.
12841 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
12842 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
12843 * sysdeps/powerpc/fpu/math_private.h: Do not include
12844 <fenv_private.h>.
12845 * sysdeps/riscv/rvf/math_private.h: Move to ....
12846 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
12847 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
12848 <fenv_private.h>.
12849 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
12850 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
12851 * sysdeps/sparc/fpu/math_private.h: Remove.
12852 * sysdeps/i386/fpu/fenv_private.h: Move to ....
12853 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
12854 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
12855 <fenv_private.h>.
12856 * sysdeps/x86_64/fpu/math_private.h: Do not include
12857 <sysdeps/i386/fpu/fenv_private.h>.
12858
12859 2018-08-28 Florian Weimer <fweimer@redhat.com>
12860
12861 [BZ #23578]
12862 * posix/tst-regcomp-truncated.c: New file.
12863 * posix/Makefile (tests): Add it.
12864 (tst-regcomp-truncated.out): Depend on generated locales.
12865
12866 2018-08-28 Florian Weimer <fweimer@redhat.com>
12867
12868 * support/test-container.c (main): Treat unshare failure with
12869 EPERM as an unsupported test.
12870
12871 2018-08-28 Florian Weimer <fweimer@redhat.com>
12872
12873 [BZ #23520]
12874 nscd: Fix use-after-free in addgetnetgrentX and its callers.
12875 * nscd/netgroupcache.c
12876 (addgetnetgrentX): Add tofreep parameter. Do not free
12877 heap-allocated buffer.
12878 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
12879 (addgetnetgrentX_ignore): New function.
12880 (addgetnetgrent): Call it.
12881 (readdgetnetgrent): Likewise.
12882
12883 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
12884
12885 * string/memmem.c: Use memcmp for first match.
12886
12887 2018-08-28 Rafał Lużyński <digitalfreak@lingonborough.com>
12888
12889 [BZ #17426]
12890 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
12891
12892 2018-08-27 DJ Delorie <dj@redhat.com>
12893
12894 * support/Makefile (others): Don't list programs explicitly as a
12895 dependency of "others".
12896
12897 2018-08-27 Joseph Myers <joseph@codesourcery.com>
12898
12899 * sysdeps/generic/math-tests-trap-force.h: New file.
12900 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
12901 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
12902 * sysdeps/powerpc/math-tests.h: Remove file.
12903 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
12904
12905 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
12906 Torvald Riegel <triegel@redhat.com>
12907
12908 [BZ #23538]
12909 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
12910 Update r to include the set wake-request flag if waiters are
12911 remaining after spinning.
12912
12913 2018-08-27 Joseph Myers <joseph@codesourcery.com>
12914
12915 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
12916
12917 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
12918
12919 [BZ #23578]
12920 regex: fix uninitialized memory access
12921 I introduced this bug into gnulib in commit
12922 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
12923 eventually it was merged into glibc. The bug was found by
12924 project-repo <bugs@feusi.co> and reported here:
12925 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
12926 Diagnosis and draft fix reported by Assaf Gordon here:
12927 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
12928 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
12929 * posix/regex_internal.c (build_wcs_upper_buffer):
12930 Fix bug when mbrtowc returns 0.
12931
12932 2018-08-24 Carlos O'Donell <carlos@redhat.com>
12933
12934 * po/be.po: Update translation.
12935
12936 2018-08-24 DJ Delorie <dj@delorie.com>
12937
12938 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
12939 $(libunwind).
12940
12941 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
12942
12943 [BZ #23400]
12944 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
12945 create temporary files in source tree.
12946
12947 2018-08-24 Joseph Myers <joseph@codesourcery.com>
12948
12949 * sysdeps/generic/math-tests-trap.h: New file.
12950 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
12951 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
12952 * sysdeps/aarch64/math-tests.h: Remove file.
12953 * sysdeps/arm/math-tests.h: Likewise.
12954 * sysdeps/riscv/math-tests.h: Likewise.
12955 * sysdeps/aarch64/math-tests-trap.h: New file.
12956 * sysdeps/arm/math-tests-trap.h: Likewise.
12957 * sysdeps/riscv/math-tests-trap.h: Likewise.
12958
12959 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
12960
12961 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
12962 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
12963 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
12964 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
12965 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
12966 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
12967 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
12968 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
12969 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
12970 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
12971 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
12972 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12973 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12974 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
12975 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
12976 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
12977 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
12978 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
12979
12980 2018-08-23 Joseph Myers <joseph@codesourcery.com>
12981
12982 * sysdeps/generic/math-tests-exceptions.h: New file.
12983 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
12984 (EXCEPTION_TESTS_float): Do not define here.
12985 (EXCEPTION_TESTS_double): Likewise.
12986 (EXCEPTION_TESTS_long_double): Likewise.
12987 (EXCEPTION_TESTS_float128): Likewise.
12988 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
12989 Likewise.
12990 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
12991 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
12992 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
12993 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
12994 * sysdeps/mips/math-tests.h: Likewise.
12995 * sysdeps/nios2/math-tests.h: Likewise.
12996 * sysdeps/riscv/math-tests.h [!__riscv_flen]
12997 (EXCEPTION_TESTS_float): Do not define here.
12998 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
12999 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
13000 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
13001
13002 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
13003
13004 * NEWS: Move optimized sinf entry to 2.29.
13005
13006 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
13007
13008 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
13009
13010 2018-08-22 DJ Delorie <dj@redhat.com>
13011
13012 * Makefile (testroot.pristine): New rules to initialize the
13013 test-in-container "testroot".
13014 * Makerules (all-testsuite): Add tests-container.
13015 * Rules (tests-expected): Add tests-container.
13016 (binaries-all-tests): Likewise.
13017 (tests-container): New, run these tests in the testroot container.
13018 * support/Makefile (others): Add *-container, support_paths.c,
13019 xmkdirp, and links-dso-program.
13020 * support/links-dso-program-c.c: New.
13021 * support/links-dso-program.cc: New.
13022 * support/test-container.c: New.
13023 * support/shell-container.c: New.
13024 * support/echo-container.c: New.
13025 * support/true-container.c: New.
13026 * support/xmkdirp.c: New.
13027 * support/xsymlink.c: New.
13028 * support/support_paths.c: New.
13029 * support/support.h: Add support paths prototypes.
13030 * support/xunistd.h: Add xmkdirp () and xsymlink ().
13031
13032 * nss/tst-nss-test3.c: Convert to test-in-container.
13033 * nss/tst-nss-test3.root/: New.
13034
13035 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
13036
13037 regex: port Gnulib code to z/OS POSIX environment
13038 Problem reported by Arnold Robbins in:
13039 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
13040 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
13041 Undef.
13042
13043 2018-08-22 Joseph Myers <joseph@codesourcery.com>
13044
13045 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
13046 (ROUNDING_TESTS_double): Remove.
13047 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
13048 (ROUNDING_TESTS_double): Remove.
13049 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
13050 (ROUNDING_TESTS_double): Remove.
13051 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
13052 (ROUNDING_TESTS_float): Remove.
13053 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
13054 (ROUNDING_TESTS_float): Remove.
13055 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
13056 (ROUNDING_TESTS_float): Remove.
13057 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
13058 !TEST_MATHVEC here.
13059 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
13060 (IF_ROUND_INIT_FE_UPWARD): Likewise.
13061
13062 * sysdeps/generic/math-tests-rounding.h: New file.
13063 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
13064 (ROUNDING_TESTS_float): Do not define here.
13065 (ROUNDING_TESTS_double): Likewise.
13066 (ROUNDING_TESTS_long_double): Likewise.
13067 (ROUNDING_TESTS_float128): Likewise.
13068 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
13069 (ROUNDING_TESTS_double): Undefine before defining.
13070 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
13071 (ROUNDING_TESTS_double): Undefine before defining.
13072 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
13073 (ROUNDING_TESTS_double): Undefine before defining.
13074 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
13075 (ROUNDING_TESTS_float): Undefine before defining.
13076 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
13077 (ROUNDING_TESTS_float): Undefine before defining.
13078 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
13079 (ROUNDING_TESTS_float): Undefine before defining.
13080 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
13081 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
13082 not define here.
13083 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
13084 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
13085 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
13086 * sysdeps/riscv/math-tests.h [!__riscv_flen]
13087 (ROUNDING_TESTS_float): Do not define here.
13088 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
13089 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
13090 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
13091 (ROUNDING_TESTS_float): Likewise.
13092 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
13093 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
13094 * sysdeps/mips/math-tests.h [__mips_soft_float]
13095 (ROUNDING_TESTS_float): Likewise.
13096 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
13097 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
13098 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
13099 (ROUNDING_TESTS_double): Likewise.
13100 (ROUNDING_TESTS_long_double): Likewise.
13101
13102 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
13103
13104 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
13105 (PF_XDP): New macro.
13106 (AF_XDP): New macro.
13107 (SOL_XDP): New macro.
13108
13109 2018-08-21 Joseph Myers <joseph@codesourcery.com>
13110
13111 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
13112 (TCP_INQ): Likewise.
13113 (TCP_CM_INQ): Likewise.
13114 (TCP_REPAIR_ON): Likewise.
13115 (TCP_REPAIR_OFF): Likewise.
13116 (TCP_REPAIR_OFF_NO_WP): Likewise.
13117 (struct tcp_zerocopy_receive): New type.
13118
13119 2018-08-21 Florian Weimer <fweimer@redhat.com>
13120
13121 * support/support.h (support_descriptor_supports_holes): Declare.
13122 * support/Makefile (libsupport-routines): Add
13123 support_descriptor_supports_holes.
13124 * support/support_descriptor_supports_holes.c: New file.
13125 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
13126 and stop testing if holes are not supported.
13127 * io/test-lfs.c (do_prepare): Likewise.
13128 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
13129 Likewise.
13130 * timezone/tst-tzset.c (create_tz_file): Likewise.
13131 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
13132 variable.
13133 (do_prepare): Set it.
13134 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
13135
13136 2018-08-21 Florian Weimer <fweimer@redhat.com>
13137
13138 [BZ #17248]
13139 * Makeconfig (+cflags): Do not sort (and deduplicate).
13140
13141 2018-08-21 Florian Weimer <fweimer@redhat.com>
13142
13143 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
13144 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
13145
13146 2018-08-20 Florian Weimer <fweimer@redhat.com>
13147
13148 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
13149 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
13150
13151 2018-08-20 Joseph Myers <joseph@codesourcery.com>
13152
13153 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
13154 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
13155 and ssi_arch members.
13156
13157 * elf/elf.c (NT_VMCOREDD): New macro.
13158 (AT_MINSIGSTKSZ): Likewise.
13159
13160 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13161
13162 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
13163 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
13164 s_cosf-ppc64 and s_cosf-power8.
13165 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
13166 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
13167 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
13168 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
13169 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
13170 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
13171 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
13172 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
13173 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
13174 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
13175 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
13176 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
13177
13178 2018-08-17 Florian Weimer <fweimer@redhat.com>
13179
13180 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
13181
13182 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
13183
13184 * malloc/malloc.c (_int_malloc): Additional binning code checks.
13185
13186 2018-08-16 Florian Weimer <fweimer@redhat.com>
13187
13188 * configure.ac: Add --with-nonshared-cflags option.
13189 * config.make.in (extra-nonshared-cflags): Set variable.
13190 * Makeconfig (CFLAGS-.oS): Use it.
13191 * manual/install.texi (Configuring and compiling): Document
13192 --with-nonshared-cflags.
13193 * configure: Regenerate.
13194 * INSTALL: Likewise.
13195
13196 2018-08-16 Florian Weimer <fweimer@redhat.com>
13197
13198 * Makeconfig (ASFLAGS): Always append required assembler flags.
13199
13200 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
13201
13202 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
13203 (malloc_consolidate): Likewise.
13204
13205 2018-08-16 Pochang Chen <johnchen902@gmail.com>
13206
13207 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
13208
13209 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
13210
13211 * benchtests/bench-strlen.c (do_test): Allocate buffers before
13212 every strlen call.
13213
13214 * benchtests/bench-strlen.c: Print performance numbers in json.
13215
13216 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13217
13218 * sysdeps/powerpc/powerpc64/multiarch/Makefile
13219 (sysdep_routines): Build strcmp-power9 and strncmp-power9
13220 only for little endian.
13221 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
13222 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
13223 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
13224 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
13225 Add check for little endian.
13226 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
13227 (__strcmp_power9): Add check for little endian.
13228 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
13229 Add check for little endian.
13230 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
13231 (__strncmp_power9): Add check for little endian.
13232 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
13233 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
13234 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
13235 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
13236 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
13237
13238 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
13239
13240 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
13241 [!STRLEN](STRLEN): Set to __strlen.
13242 * sysdeps/aarch64/multiarch/strlen.c: New file.
13243 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
13244 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
13245 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
13246 (__libc_ifunc_impl_list): Add strlen.
13247 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
13248 strlen_generic and strlen_asimd.
13249
13250 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
13251
13252 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
13253 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
13254 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
13255
13256 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
13257
13258 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
13259
13260 2018-08-14 Florian Weimer <fweimer@redhat.com>
13261
13262 [BZ #23519]
13263 * include/stdio.h (__vfxprintf): Declare.
13264 * stdio-common/fxprintf.c (__vfxprintf): New function.
13265 (__fxprintf): Call it.
13266 * misc/err.c (convert_and_print): Remove function.
13267 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
13268 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
13269 * misc/Makefile (tests): Add tst-warn-wide.
13270 * misc/tst-warn-wide.c: New file.
13271
13272 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
13273 Szabolcs Nagy <szabolcs.nagy@arm.com>
13274
13275 * NEWS: Mention sinf, cosf, sincosf.
13276 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
13277 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
13278 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
13279 constants rather than including generic sincosf.h.
13280 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
13281 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
13282 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
13283 (reduced_cos): Remove.
13284 (sinf_poly): New function.
13285 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
13286
13287 2018-08-14 Florian Weimer <fweimer@redhat.com>
13288
13289 [BZ #23521]
13290 [BZ #23522]
13291 * nss/nss_files/files-alias.c (get_next_alias): During :include:
13292 processing, bail out if no room, and close the stream before
13293 returning ERANGE.
13294 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
13295 (tst-nss-files-alias-leak): Link with libdl.
13296 (tst-nss-files-alias-leak.out): Depend on nss_files.
13297
13298 * nss/tst-nss-files-alias-leak.c: New file.
13299
13300 2018-08-14 Florian Weimer <fweimer@redhat.com>
13301
13302 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
13303 server_user, stat_user.
13304
13305 2018-08-13 Joseph Myers <joseph@codesourcery.com>
13306
13307 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13308 version to 4.18.
13309 (io_pgetevents): New syscall.
13310 (rseq): Likewise.
13311
13312 * manual/install.texi (Configuring and compiling): Do not list
13313 tools used for testing pretty printers here.
13314 (Tools for Compilation): List Python, PExpect and GDB here.
13315 Update descriptions of uses of Perl and Python.
13316 * INSTALL: Regenerate.
13317
13318 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13319 version to 4.18.
13320
13321 2018-08-13 Florian Weimer <fweimer@redhat.com>
13322
13323 * misc/error.c (error): Add missing va_end call.
13324 (error_at_line): Likewise.
13325
13326 2018-08-13 Florian Weimer <fweimer@redhat.com>
13327
13328 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
13329
13330 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
13331
13332 * benchtests/scripts/benchout.schema.json (properties): Add
13333 new properties.
13334
13335 * benchtests/bench-skeleton.c (main): Add duration and
13336 iterations attributes.
13337
13338 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
13339
13340 regex: Gnulib unibyte RRI uses bytes not chars
13341 Adjust the non-glibc code to agree with what Gawk needs for
13342 rational range interpretation (RRI) for regular expression ranges.
13343 In unibyte locales, Gawk wants ranges to use the underlying byte
13344 rather than the character code point. This change does not affect
13345 glibc proper.
13346 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
13347 In unibyte locales, use the byte value rather than
13348 running it through btowc.
13349
13350 2018-08-10 Joseph Myers <joseph@codesourcery.com>
13351
13352 * sysdeps/generic/math-tests-snan.h: New file.
13353 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
13354 (SNAN_TESTS_float): Do not define here.
13355 (SNAN_TESTS_double): Likewise.
13356 (SNAN_TESTS_long_double): Likewise.
13357 (SNAN_TESTS_float128): Likewise.
13358 * sysdeps/i386/fpu/math-tests-snan.h: New file.
13359 * sysdeps/i386/fpu/math-tests.h: Remove file.
13360 * sysdeps/ia64/math-tests-snan.h: New file.
13361 * sysdeps/ia64/math-tests.h: Remove file.
13362 * sysdeps/x86/math-tests.h: Likewise.
13363 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
13364
13365 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
13366 Szabolcs Nagy <szabolcs.nagy@arm.com>
13367
13368 * math/Makefile: Add s_sincosf_data.c.
13369 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
13370 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
13371 (sincosf_poly): Likewise.
13372 (reduce_small): Likewise.
13373 (reduce_large): Likewise.
13374 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
13375 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
13376 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
13377 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
13378
13379 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
13380 Szabolcs Nagy <szabolcs.nagy@arm.com>
13381
13382 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
13383 (converttoint): Use lround.
13384 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
13385 document the semantics when TOINT_INTRINSICS is set.
13386 (converttoint): Likewise.
13387 (TOINT_RINT): Remove.
13388 (TOINT_SHIFT): Remove.
13389 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
13390 path.
13391
13392 2018-08-10 Florian Weimer <fweimer@redhat.com>
13393
13394 [BZ #23497]
13395 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
13396 function.
13397 (__old_getdents64): Use getdents64. Convert entries without
13398 moving them.
13399 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
13400 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
13401 tst-readdir64-compat.
13402
13403 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13404
13405 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
13406 Fix unwind.
13407
13408 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13409
13410 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
13411 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
13412 code to s390x-mcount.h and #include it.
13413 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
13414 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
13415 (__fentry__): Add.
13416
13417 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13418
13419 * stdlib/Versions: Remove __fentry__.
13420 * sysdeps/i386/Versions: Add __fentry__.
13421 * sysdeps/x86_64/Versions: Add __fentry__.
13422
13423 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13424
13425 * sysdeps/s390/Makefile: Register the new tests.
13426 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
13427 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
13428 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
13429 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
13430 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
13431 * sysdeps/s390/tst-dl-runtime.c: New file.
13432
13433 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13434
13435 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
13436 Do not clobber R0.
13437
13438 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13439
13440 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
13441 Do not clobber R0.
13442
13443 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13444
13445 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
13446 Do not clobber R0.
13447
13448 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13449
13450 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
13451 Do not clobber R0.
13452
13453 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13454
13455 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
13456 Use symbolic offsets for stack variables.
13457
13458 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13459
13460 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
13461 Use symbolic offsets for stack variables.
13462
13463 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13464
13465 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
13466 Use symbolic offsets for stack variables.
13467
13468 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13469
13470 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
13471 Use symbolic offsets for stack variables.
13472
13473 2018-08-09 Joseph Myers <joseph@codesourcery.com>
13474
13475 * math/gen-libm-test.py: New file.
13476 * math/gen-libm-test.pl: Remove.
13477 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
13478 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
13479 gen-libm-test.pl.
13480 ($(libm-test-c-noauto-obj)): Likewise.
13481 ($(libm-test-c-auto-obj)): Likewise.
13482 ($(libm-test-c-narrow-obj)): Likewise.
13483 (regen-ulps): Likewise.
13484 * math/README.libm-test: Update references to gen-libm-test.pl.
13485 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
13486 referencing gen-libm-test.pl.
13487 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
13488 * math/libm-test-support.c: Likewise.
13489 * math/libm-test-support.h: Likewise.
13490 * sysdeps/generic/libm-test-ulps: Likewise.
13491
13492 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
13493
13494 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
13495 Fix value.
13496
13497 2018-08-08 Joseph Myers <joseph@codesourcery.com>
13498
13499 * math/libm-test-nextdown.inc (do_test): Move comment to ....
13500 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
13501
13502 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13503
13504 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
13505 symbols.
13506 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
13507 __pthread_setspecific): Add hidden proto.
13508 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
13509 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
13510
13511 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
13512
13513 * benchtests/bench-string.h (buf1_size, buf2_size): New
13514 variables.
13515 (init_sizes): New function.
13516 (test_init): Use it.
13517 (alloc_buf, exit_error): New functions.
13518 (alloc_bufs): Use ALLOC_BUF.
13519 (realloc_bufs): Remove.
13520 * benchtests/bench-memcmp.c (do_test): Adjust.
13521 * benchtests/bench-memset-large.c (do_test): Likewise.
13522 * benchtests/bench-memset-walk.c (do_test): Likewise.
13523 * benchtests/bench-memset.c (do_test): Likewise.
13524 * benchtests/bench-strncmp.c (do_test): Likewise.
13525
13526 2018-08-06 Andreas Schwab <schwab@suse.de>
13527
13528 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
13529 of CONST_THREAD_AREA.
13530
13531 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
13532
13533 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
13534 (STATE_SAVE_MASK): Likewise.
13535 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
13536 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
13537 (STATE_SAVE_MASK): Likewise.
13538 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
13539 instead of <cpu-features.h>.
13540
13541 2018-08-03 DJ Delorie <dj@redhat.com>
13542
13543 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
13544 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
13545
13546 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
13547
13548 2018-08-03 Joseph Myers <joseph@codesourcery.com>
13549
13550 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
13551 after TEST_* calls.
13552 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
13553 * math/libm-test-logb.inc (logb_test_data): Likewise.
13554
13555 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
13556
13557 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
13558 * string/strstr.c (AVAILABLE): Likewise.
13559
13560 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
13561
13562 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
13563 <init-arch.h>.
13564 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
13565 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
13566 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
13567
13568 2018-08-03 Carlos O'Donell <carlos@redhat.com>
13569
13570 * po/be.po: Update translation.
13571
13572 * po/be.po: Update translation.
13573
13574 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
13575
13576 * sysdeps/x86/cpu-features-offsets.sym
13577 (rtld_global_ro_offsetof): Removed.
13578 (CPU_FEATURES_SIZE): Likewise.
13579 (CPUID_OFFSET): Likewise.
13580 (CPUID_SIZE): Likewise.
13581 (CPUID_EAX_OFFSET): Likewise.
13582 (CPUID_EBX_OFFSET): Likewise.
13583 (CPUID_ECX_OFFSET): Likewise.
13584 (CPUID_EDX_OFFSET): Likewise.
13585 (FAMILY_OFFSET): Likewise.
13586 (MODEL_OFFSET): Likewise.
13587 (FEATURE_OFFSET): Likewise.
13588 (FEATURE_SIZ): Likewise.
13589 (COMMON_CPUID_INDEX_1): Likewise.
13590 (COMMON_CPUID_INDEX_7): Likewise.
13591 (FEATURE_INDEX_1): Likewise.
13592 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
13593
13594 2018-08-02 Carlos O'Donell <carlos@redhat.com>
13595
13596 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
13597 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
13598 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
13599 (install-locales): Depend on install-locale-archive.
13600 (install-locale-archive): Define.
13601 (install-locale-files): Define.
13602 (build-one-locale): Define macro.
13603 * manual/install.texi (Running make install): Document.
13604 * manual/INSTALL: Regenerate.
13605
13606 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
13607
13608 * benchtests/scripts/compare_strings.py: Import traceback.
13609 (parse_file): Pretty-print error.
13610
13611 * NEWS: Mention the change.
13612 * elf/dl-tunables.list: Rename tune namespace to cpu.
13613 * sysdeps/powerpc/dl-tunables.list: Likewise.
13614 * sysdeps/x86/dl-tunables.list: Likewise.
13615 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
13616 cpu.name.
13617 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
13618 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
13619 * manual/README.tunables: Likewise.
13620 * manual/tunables.texi: Likewise.
13621 * sysdeps/powerpc/cpu-features.c: Likewise.
13622 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
13623 (init_cpu_features): Likewise.
13624 * sysdeps/x86/cpu-features.c: Likewise.
13625 * sysdeps/x86/cpu-features.h: Likewise.
13626 * sysdeps/x86/cpu-tunables.c: Likewise.
13627 * sysdeps/x86_64/Makefile: Likewise.
13628 * sysdeps/x86/dl-cet.c: Likewise.
13629
13630 2018-08-02 Joseph Myers <joseph@codesourcery.com>
13631
13632 [BZ #23479]
13633 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
13634 [__mips_hard_float].
13635 (FE_UNDERFLOW): Likewise.
13636 (FE_OVERFLOW): Likewise.
13637 (FE_DIVBYZERO): Likewise.
13638 (FE_INVALID): Likewise.
13639 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
13640 (FE_TOWARDZERO): Define only if [__mips_hard_float].
13641 (FE_UPWARD): Likewise.
13642 (FE_DOWNWARD): Likewise.
13643 (__FE_UNDEFINED): Define if [!__mips_hard_float]
13644 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
13645 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
13646 [__mips_hard_float].
13647 (FP_ROUNDMODE): Likewise.
13648 (FP_RND_NEAREST): Likewise.
13649 (FP_RND_ZERO): Likewise.
13650 (FP_RND_PINF): Likewise.
13651 (FP_RND_MINF): Likewise.
13652 (FP_EX_INVALID): Likewise.
13653 (FP_EX_OVERFLOW): Likewise.
13654 (FP_EX_UNDERFLOW): Likewise.
13655 (FP_EX_DIVZERO): Likewise.
13656 (FP_EX_INEXACT): Likewise.
13657 (FP_INIT_ROUNDMODE): Likewise.
13658 * sysdeps/mips/nofpu/fesetenv.c: New file.
13659 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
13660
13661 2018-08-01 Joseph Myers <joseph@codesourcery.com>
13662
13663 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
13664 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
13665 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
13666 conditional on [FE_UPWARD].
13667
13668 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
13669
13670 regex: fix memory leak in Gnulib
13671 Problem and fix reported by Assaf Gordon in:
13672 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
13673 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
13674 range_ends members too, as they are defined in 'struct
13675 re_charset_t' even if not _LIBC. This affects only Gnulib.
13676
13677 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
13678
13679 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
13680 ...
13681 (get_common_indices): This.
13682 (init_cpu_features): Updated.
13683
13684 2018-08-01 Joseph Myers <joseph@codesourcery.com>
13685
13686 * sysdeps/generic/math-tests-snan-payload.h: New file.
13687 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
13688 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
13689 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
13690 * sysdeps/generic/math-tests.h: Include
13691 <math-tests-snan-payload.h>.
13692 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
13693 * sysdeps/hppa/math-tests.h: Remove file.
13694 * sysdeps/mips/math-tests.h [!__mips_nan2008]
13695 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
13696 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
13697 Likewise.
13698
13699 * sysdeps/generic/math-tests-snan-cast.h: New file.
13700 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
13701 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
13702 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
13703 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
13704
13705 2018-08-01 Carlos O'Donell <carlos@redhat.com>
13706
13707 * version.h (RELEASE): Set to "development".
13708 (VERSION): Set to "2.28.9000".
13709 * NEWS (2.29): New section.
13710
13711 * version.h (RELEASE): Set to "stable".
13712 (VERSION): Set to "2.28".
13713 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
13714 * NEWS: Add the list of bugs fixed in 2.28.
13715
13716 * po/ca.po: Update to latest version.
13717 * po/cs.po: Likewise
13718 * po/da.po: Likewise
13719 * po/el.po: Likewise
13720 * po/eo.po: Likewise
13721 * po/es.po: Likewise
13722 * po/fi.po: Likewise
13723 * po/fr.po: Likewise
13724 * po/gl.po: Likewise
13725 * po/hu.po: Likewise
13726 * po/ia.po: Likewise
13727 * po/id.po: Likewise
13728 * po/it.po: Likewise
13729 * po/ja.po: Likewise
13730 * po/ko.po: Likewise
13731 * po/lt.po: Likewise
13732 * po/nb.po: Likewise
13733 * po/nl.po: Likewise
13734 * po/pt_BR.po: Likewise
13735 * po/ru.po: Likewise
13736 * po/rw.po: Likewise
13737 * po/sk.po: Likewise
13738 * po/sl.po: Likewise
13739 * po/tr.po: Likewise
13740 * po/zh_CN.po: Likewise
13741 * po/zh_TW.po: Likewise
13742
13743 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
13744
13745 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
13746 initialization...
13747 (init): ... before initializing libpthread.
13748
13749 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
13750 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
13751 (__mach_setup_tls): ... new function.
13752 (mach_setup_tls): New alias.
13753 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
13754 __mach_setup_thread.
13755 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
13756 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
13757 * mach/Versions [libc] (mach_setup_tls): Add symbol.
13758 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
13759
13760 2018-07-31 Carlos O'Donell <carlos@redhat.com>
13761
13762 * manual/install.texi: Update versions.
13763 * INSTALL: Regenerate.
13764
13765 * manual/contrib.texi (Contributors): Update contributions.
13766
13767 2018-07-31 Carlos O'Donell <carlos@redhat.com>
13768
13769 * po/be.po: Update translations.
13770
13771 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13772
13773 * sysdeps/sh/libm-test-ulps: Update.
13774
13775 2018-07-30 Carlos O'Donell <carlos@redhat.com>
13776
13777 * po/bg.po: Update translations.
13778 * po/de.po: Likewise.
13779 * po/hr.po: Likewise.
13780 * po/pt_BR.po: Likewise.
13781 * po/sv.po: Likewise.
13782 * po/vi.po: Likewise.
13783
13784 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
13785
13786 [BZ #23467]
13787 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
13788 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
13789 (CFLAGS-tst-cet-property-1.o): New.
13790 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
13791 ($(objpfx)tst-cet-property-2): Likewise.
13792 ($(objpfx)tst-cet-property-2.out): Likewise.
13793 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
13794 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
13795 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
13796 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
13797 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
13798
13799 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
13800
13801 [BZ #23458]
13802 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
13803
13804 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
13805
13806 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
13807 __sbrk): Do not set attribute_hidden.
13808 * sysdeps/mach/hurd/not-errno.h: New file.
13809 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
13810 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
13811
13812 2018-07-27 Carlos O'Donell <carlos@redhat.com>
13813
13814 * po/uk.po: Update translations.
13815 * po/cs.po: Likewise.
13816 * po/pl.po: Likewise.
13817
13818 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
13819
13820 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
13821 parse beyond the note end.
13822
13823 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13824
13825 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
13826 kernel does not support OFD locks.
13827 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
13828
13829 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
13830
13831 * sysdeps/mach/hurd/Versions (libc): Make __access and
13832 __access_noerrno external so they can override the ld symbols.
13833 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
13834 __writev, __open64, __access_noerrno extern so they can be overrided.
13835 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
13836 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
13837
13838 2018-07-26 Carlos O'Donell <carlos@redhat.com>
13839
13840 * po/libc.pot: Regenerate.
13841
13842 2018-07-26 Joseph Myers <joseph@codesourcery.com>
13843
13844 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
13845
13846 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
13847
13848 [BZ #23459]
13849 * sysdeps/x86/cpu-features.c (get_extended_indices): New
13850 function.
13851 (init_cpu_features): Call get_extended_indices for both Intel
13852 and AMD CPUs.
13853 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
13854 Remove "for AMD" comment.
13855
13856 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
13857
13858 [BZ # 23456]
13859 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
13860 COMMON_CPUID_INDEX_80000001.
13861
13862 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
13863
13864 * string/tst-xbzero-opt.c (use_test_buffer): New function.
13865 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
13866
13867 2018-07-26 Florian Weimer <fweimer@redhat.com>
13868
13869 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
13870 aliases for symbols not in the implementation namespace.
13871
13872 2018-07-25 Carlos O'Donell <carlos@redhat.com>
13873
13874 [BZ #23393]
13875 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
13876 lowercase in LATIN script.
13877 * localedata/Makefile (test-input): Add en_US.UTF-8.
13878 * localedata/en_US.UTF-8.in: New file.
13879 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
13880 and restore old tests.
13881 * posix/tst-regexloc.c (do_test): Add back range expression test.
13882
13883 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
13884
13885 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
13886
13887 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13888
13889 * nptl/threads.h: Move to ...
13890 * sysdeps/nptl/threads.h: ... here.
13891 * sysdeps/hurd/stdc-predef.h: New file.
13892
13893 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
13894
13895 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
13896 tst-cet-setcontext-1 if CET is enabled.
13897 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
13898 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
13899
13900 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13901
13902 * include/threads.h: Move to ...
13903 * sysdeps/nptl/threads.h: ... here.
13904 * sysdeps/htl/threads.h: New file.
13905 * conform/Makefile (linknamespace-libs-ISO11): Use
13906 static-thread-library instead of linking libpthread.
13907 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
13908
13909 2018-07-25 Florian Weimer <fweimer@redhat.com>
13910
13911 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
13912 nanoseconds into seconds.
13913 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
13914 (do_test): Likewise.
13915 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
13916 (do_test): Likewise. Avoid nanosecond overflow and spurious
13917 timeouts due to system load.
13918 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
13919 (child_wait): Increment it.
13920 (do_test): Wait as long as necessary until all expected threads
13921 have arrived.
13922
13923 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
13924 H.J. Lu <hongjiu.lu@intel.com>
13925
13926 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
13927 __ssp.
13928 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
13929 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
13930 (__push___start_context): New.
13931 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
13932 <asm/prctl.h>.
13933 (__getcontext): Record the current shadow stack base. Save the
13934 caller's shadow stack pointer and base.
13935 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
13936 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
13937 (__push___start_context): New prototype.
13938 (__makecontext): Call __push___start_context to allocate a new
13939 shadow stack, push __start_context onto the new stack as well
13940 as the new shadow stack.
13941 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
13942 <asm/prctl.h>.
13943 (__setcontext): Restore the target shadow stack.
13944 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
13945 <asm/prctl.h>.
13946 (__swapcontext): Record the current shadow stack base. Save
13947 the caller's shadow stack pointer and base. Restore the target
13948 shadow stack.
13949 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
13950 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
13951 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
13952
13953 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
13954
13955 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
13956 tst-setcontext8 and tst-setcontext9.
13957 * stdlib/tst-setcontext6.c: New file.
13958 * stdlib/tst-setcontext7.c: Likewise.
13959 * stdlib/tst-setcontext8.c: Likewise.
13960 * stdlib/tst-setcontext9.c: Likewise.
13961
13962 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
13963
13964 * stdlib/Makefile ((tests): Add tst-setcontext5.
13965 * stdlib/tst-setcontext5.c: New file.
13966
13967 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
13968
13969 * stdlib/Makefile (tests): Add tst-setcontext4.
13970 * stdlib/tst-setcontext4.c: New file.
13971
13972 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
13973
13974 * stdlib/Makefile (tests): Add tst-swapcontext1.
13975 * stdlib/tst-swapcontext1.c: New test.
13976
13977 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
13978
13979 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
13980 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
13981 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
13982 and tst-cet-legacy-4c.
13983 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
13984 and tst-cet-legacy-mod-4.
13985 (CFLAGS-tst-cet-legacy-2.c): New.
13986 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
13987 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
13988 (CFLAGS-tst-cet-legacy-3.c): Likewise.
13989 (CFLAGS-tst-cet-legacy-4.c): Likewise.
13990 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
13991 ($(objpfx)tst-cet-legacy-1): Likewise.
13992 ($(objpfx)tst-cet-legacy-2): Likewise.
13993 ($(objpfx)tst-cet-legacy-2.out): Likewise.
13994 ($(objpfx)tst-cet-legacy-2a): Likewise.
13995 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
13996 ($(objpfx)tst-cet-legacy-4): Likewise.
13997 ($(objpfx)tst-cet-legacy-4.out): Likewise.
13998 ($(objpfx)tst-cet-legacy-4a): Likewise.
13999 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
14000 (tst-cet-legacy-4a-ENV): Likewise.
14001 ($(objpfx)tst-cet-legacy-4b): Likewise.
14002 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
14003 (tst-cet-legacy-4b-ENV): Likewise.
14004 ($(objpfx)tst-cet-legacy-4c): Likewise.
14005 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
14006 (tst-cet-legacy-4c-ENV): Likewise.
14007 * sysdeps/x86/tst-cet-legacy-1.c: New file.
14008 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
14009 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
14010 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
14011 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
14012 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
14013 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
14014 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
14015 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
14016 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
14017 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
14018
14019 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14020
14021 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
14022 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
14023 with ssp_base.
14024 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
14025 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
14026 with ssp_base.
14027
14028 2018-07-25 Andreas Schwab <schwab@suse.de>
14029
14030 [BZ #23442]
14031 * locale/weightwc.h (findidx): Handle the case where usrc is a
14032 prefix of cp but one character too short.
14033
14034 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14035
14036 * NEWS: Add ISO C threads addition.
14037
14038 2018-07-24 Florian Weimer <fweimer@redhat.com>
14039
14040 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
14041 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
14042 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
14043 4.13.
14044
14045 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
14046
14047 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
14048 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
14049 <sys/prctl.h> and <asm/prctl.h>.
14050 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
14051 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
14052 and <asm/prctl.h>.
14053 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
14054 ARCH_CET_LEGACY_BITMAP.
14055 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
14056 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
14057 * sysdeps/x86/libc-start.c: Include <startup.h>.
14058
14059 2018-07-24 Florian Weimer <fweimer@redhat.com>
14060
14061 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
14062 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
14063
14064 2018-07-24 Rical Jasan <rj@2c3t.io>
14065 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14066 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
14067
14068 [BZ #14092]
14069 * manual/debug.texi: Update adjacent chapter name.
14070 * manual/probes.texi: Likewise.
14071 * manual/threads.texi (ISO C Threads): New section.
14072 (POSIX Threads): Convert to a section.
14073
14074 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14075 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
14076
14077 [BZ# 14092]
14078 * nptl/Makefile (tests): Add new test files.
14079 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
14080 * nptl/tst-cnd-basic.c: Likewise.
14081 * nptl/tst-cnd-broadcast.c: Likewise.
14082 * nptl/tst-cnd-timedwait.c: Likewise.
14083 * nptl/tst-mtx-basic.c: Likewise.
14084 * nptl/tst-mtx-recursive.c: Likewise.
14085 * nptl/tst-mtx-timedlock.c: Likewise.
14086 * nptl/tst-mtx-trylock.c: Likewise.
14087 * nptl/tst-thrd-basic.c: Likewise.
14088 * nptl/tst-thrd-detach.c: Likewise.
14089 * nptl/tst-thrd-sleep.c: Likewise.
14090 * nptl/tst-tss-basic.c: Likewise.
14091
14092 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14093
14094 [BZ #14092]
14095 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
14096 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
14097 symbols.
14098 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
14099 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
14100 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
14101 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
14102 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
14103 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
14104 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
14105 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
14106 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
14107 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
14108 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
14109 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
14110 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
14111 Likewise.
14112 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
14113 Likewise.
14114 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
14115 Likewise.
14116 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
14117 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
14118 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
14119 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
14120 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
14121 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
14122 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
14123 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
14124 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
14125 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
14126 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
14127 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
14128 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
14129 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
14130 Likewise.
14131 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
14132 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
14133 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
14134 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
14135 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
14136 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
14137 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
14138 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
14139 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
14140 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
14141 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
14142 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
14143 ikewise.
14144 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
14145 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
14146 Likewise.
14147 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
14148 Likewise.
14149 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
14150 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
14151 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
14152 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
14153 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
14154 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
14155 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
14156 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
14157
14158 [BZ #14092]
14159 * conform/data/threads.h-data (thread_local): New macro.
14160 (TSS_DTOR_ITERATIONS): Likewise.
14161 (tss_t): New type.
14162 (tss_dtor_t): Likewise.
14163 (tss_create): New function.
14164 (tss_get): Likewise.
14165 (tss_set): Likewise.
14166 (tss_delete): Likewise.
14167 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
14168 tss_get, and tss_set objects.
14169 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
14170 * nptl/tss_create.c: New file.
14171 * nptl/tss_delete.c: Likewise.
14172 * nptl/tss_get.c: Likewise.
14173 * nptl/tss_set.c: Likewise.
14174 * sysdeps/nptl/threads.h (thread_local): New define.
14175 (TSS_DTOR_ITERATIONS): Likewise.
14176 (tss_t): New typedef.
14177 (tss_dtor_t): Likewise.
14178 (tss_create): New prototype.
14179 (tss_get): Likewise.
14180 (tss_set): Likewise.
14181 (tss_delete): Likewise.
14182
14183 [BZ #14092]
14184 * conform/data/threads.h-data (cnd_t): New type.
14185 (cnd_init): New function.
14186 (cnd_signal): Likewise.
14187 (cnd_broadcast): Likewise.
14188 (cnd_wait): Likewise.
14189 (cnd_timedwait): Likewise.
14190 (cnd_destroy): Likewise.
14191 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
14192 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
14193 object.
14194 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
14195 * nptl/cnd_broadcast.c: New file.
14196 * nptl/cnd_destroy.c: Likewise.
14197 * nptl/cnd_init.c: Likewise.
14198 * nptl/cnd_signal.c: Likewise.
14199 * nptl/cnd_timedwait.c: Likewise.
14200 * nptl/cnd_wait.c: Likewise.
14201 * sysdeps/nptl/threads.h (cnd_t): New type.
14202 (cnd_init): New prototype.
14203 (cnd_signa): Likewise.
14204 (cnd_broadcast): Likewise.
14205 (cnd_wait): Likewise.
14206 (cnd_timedwait): Likewise.
14207 (cnd_destroy): Likewise.
14208
14209 [BZ #14092]
14210 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
14211 (once_flag): New type.
14212 (call_once): New function.
14213 * nptl/Makefile (libpthread-routines): Add call_once object.
14214 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
14215 * nptl/call_once.c: New file.
14216 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
14217 (once_flag): New type.
14218 (call_once): New prototype.
14219
14220 [BZ #14092]
14221 * conform/data/threads.h-data (mtx_plain): New constant.
14222 (mtx_recursive): Likewise.
14223 (mtx_timed): Likewise.
14224 (mtx_t): New type.
14225 (mtx_init): New function.
14226 (mtx_lock): Likewise.
14227 (mtx_timedlock): Likewise.
14228 (mtx_trylock): Likewise.
14229 (mtx_unlock): Likewise.
14230 (mtx_destroy): Likewise.
14231 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
14232 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
14233 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
14234 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
14235 * nptl/mtx_destroy.c: New file.
14236 * nptl/mtx_init.c: Likewise.
14237 * nptl/mtx_lock.c: Likewise.
14238 * nptl/mtx_timedlock.c: Likewise.
14239 * nptl/mtx_trylock.c: Likewise.
14240 * nptl/mtx_unlock.c: Likewise.
14241 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
14242 (mtx_recursive): Likewise.
14243 (mtx_timed): Likewise.
14244 (mtx_t): New type.
14245 (mtx_init): New prototype.
14246 (mtx_lock): Likewise.
14247 (mtx_timedlock): Likewise.
14248 (mtx_trylock): Likewise.
14249 (mtx_unlock): Likewise.
14250 (mtx_destroy): Likewise.
14251
14252 [BZ #14092]
14253 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
14254 (linknamespace-libs-ISO11): Add libpthread.a.
14255 * conform/data/threads.h-data: New file: add C11 thrd_* types and
14256 functions.
14257 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
14258 * nptl/Makefile (headers): Add threads.h.
14259 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
14260 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
14261 thrd_yield.
14262 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
14263 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
14264 thrd_join, thrd_sleep, and thrd_yield symbols.
14265 * nptl/descr.h (struct pthread): Add c11 field.
14266 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
14267 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
14268 routine with expected function prototype.
14269 (__pthread_create_2_1): Add C11 threads check based on attribute
14270 value.
14271 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
14272 * nptl/thrd_create.c: New file.
14273 * nptl/thrd_current.c: Likewise.
14274 * nptl/thrd_detach.c: Likewise.
14275 * nptl/thrd_equal.c: Likewise.
14276 * nptl/thrd_exit.c: Likewise.
14277 * nptl/thrd_join.c: Likewise.
14278 * nptl/thrd_priv.h: Likewise.
14279 * nptl/thrd_sleep.c: Likewise.
14280 * nptl/thrd_yield.c: Likewise.
14281 * include/threads.h: Likewise.
14282
14283 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
14284
14285 * bits/indirect-return.h: New file.
14286 * misc/sys/cdefs.h (__glibc_has_attribute): New.
14287 * sysdeps/x86/bits/indirect-return.h: Likewise.
14288 * stdlib/Makefile (headers): Add bits/indirect-return.h.
14289 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
14290 (swapcontext): Add __INDIRECT_RETURN.
14291 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
14292 (prepare_test_buffer): Use it.
14293
14294 2018-07-24 Andreas Schwab <schwab@suse.de>
14295
14296 [BZ #23448]
14297 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
14298 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
14299
14300 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
14301
14302 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
14303 Redefine if shadow stack is enabled.
14304 (SYSCALL_ERROR_LABEL): Likewise.
14305 (__vfork): Pop shadow stack and jump back to to caller directly
14306 when shadow stack is in use.
14307 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
14308 Redefine if shadow stack is enabled.
14309 (SYSCALL_ERROR_LABEL): Likewise.
14310 (__vfork): Pop shadow stack and jump back to to caller directly
14311 when shadow stack is in use.
14312
14313 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
14314
14315 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
14316 enabled.
14317 (foo): Likewise.
14318 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
14319 (foo): Likewise.
14320
14321 2018-07-20 Joseph Myers <joseph@codesourcery.com>
14322
14323 * scripts/build-many-glibcs.py (Context.checkout): Default
14324 binutils version to 2.31 branch.
14325
14326 2018-07-20 Zong Li <zong@andestech.com>
14327
14328 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
14329 URL of gcc's tarball.
14330
14331 2018-07-20 Florian Weimer <fweimer@redhat.com>
14332
14333 [BZ #23396]
14334 * posix/regcomp.c (build_equiv_class): When comparing weights, do
14335 not compare an extra byte after the end of the weights.
14336
14337 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
14338
14339 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
14340 to 1.
14341 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
14342 hidden prototypes.
14343 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
14344 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
14345 * scripts/check-execstack.awk: Consider `xfail' variable containing a
14346 list of libraries whose stack executability is expected.
14347 * elf/Makefile ($(objpfx)check-execstack.out): Pass
14348 $(check-execstack-xfail) to check-execstack.awk through `xfail'
14349 variable.
14350 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
14351 libc.so libpthread.so.
14352
14353 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
14354
14355 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
14356 SOCK_NONBLOCK.
14357 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
14358 and SOCK_NONBLOCK.
14359 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
14360 implement __pipe2.
14361 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
14362
14363 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
14364
14365 * benchtests/scripts/compare_bench.py (__main__): use the argparse
14366 library to improve command line parsing.
14367 (__main__): make schema file as optional parameter (--schema),
14368 defaulting to benchtests/scripts/benchout.schema.json.
14369 (main): move out of the parsing stuff to __main_  and leave it
14370 only as caller of main comparison functions.
14371
14372 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
14373
14374 * NEWS: Add a note for Intel CET status.
14375 * manual/install.texi: Likewise.
14376 * INSTALL: Regenerated.
14377
14378 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
14379
14380 [BZ #23140]
14381 * localedata/locales/oc_FR (mon): Rename to...
14382 (alt_mon): This, then update October (typo fix).
14383 (mon): New content (genitive case, month names preceded by
14384 "de" or "d’").
14385
14386 [BZ #23422]
14387 * localedata/locales/oc_FR (abday): Update all items.
14388 (day): Update Wednesday and Saturday (typo fixes).
14389 (abmon): Update all items, except May.
14390 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
14391 (LC_IDENTIFICATION): Bump the revision number and date.
14392 Keep the "category" entries in alphabetic order.
14393 (LC_ADDRESS): Remove no longer needed comment.
14394 (LC_COLLATE): Use “copy "ca_ES"”.
14395 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
14396 "name_mrs".
14397
14398 2018-07-18 Joseph Myers <joseph@codesourcery.com>
14399
14400 * grp/tst_fgetgrent.c: Include <unistd.h>.
14401 (main): Use mkstemp instead of tmpnam.
14402 * io/test-utime.c (main): Likewise.
14403 * posix/annexc.c (macrofile): Change to modifiable array.
14404 (main): Remove macrofile here.
14405 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
14406 macrofile here.
14407 (check_header): Do not remove macrofile here.
14408 * posix/bug-getopt1.c: Include <stdlib.h>.
14409 (do_test): Use mkstemp instead of tmpnam.
14410 * posix/bug-getopt2.c: Include <stdlib.h>.
14411 (do_test): Use mkstemp instead of tmpnam.
14412 * posix/bug-getopt3.c: Include <stdlib.h>.
14413 (do_test): Use mkstemp instead of tmpnam.
14414 * posix/bug-getopt4.c: Include <stdlib.h>.
14415 (do_test): Use mkstemp instead of tmpnam.
14416 * posix/bug-getopt5.c: Include <stdlib.h>.
14417 (do_test): Use mkstemp instead of tmpnam.
14418 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
14419 (main): Use mkstemp instead of tmpnam.
14420 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
14421 (main): Use mkstemp instead of tmpnam.
14422 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
14423 (main): use mkstemp instead of tmpnam.
14424 * stdlib/isomac.c (macrofile): Change to modifiable array.
14425 (main): Remove macrofile here.
14426 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
14427 macrofile here.
14428 (check_header): Do not remove macrofile here.
14429
14430 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14431
14432 * manual/tunables.texi: Document glibc.tune.x86_ibt and
14433 glibc.tune.x86_shstk.
14434
14435 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14436
14437 * NEWS: Mention --enable-cet.
14438 * manual/install.texi: Document --enable-cet.
14439 * INSTALL: Regenerated.
14440
14441 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14442
14443 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
14444 Add _CET_NOTRACK before indirect jump to jump table.
14445
14446 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14447
14448 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
14449 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14450 to jump table.
14451
14452 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14453
14454 * sysdeps/i386/i686/multiarch/strcat-sse2.S
14455 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14456 to jump table.
14457
14458 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14459
14460 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
14461 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14462 to jump table.
14463
14464 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14465
14466 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
14467 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14468 to jump table.
14469
14470 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14471
14472 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
14473 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14474 to jump table.
14475 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
14476
14477 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14478
14479 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
14480 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14481 to jump table.
14482
14483 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14484
14485 * sysdeps/i386/i686/multiarch/memset-sse2.S
14486 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14487 to jump table.
14488
14489 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14490
14491 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
14492 indirect jump to jump table.
14493
14494 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14495
14496 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
14497 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14498 to jump table.
14499 (MEMCPY): Likewise.
14500
14501 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14502
14503 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
14504 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14505 to jump table.
14506 (MEMCPY): Likewise.
14507
14508 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14509
14510 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
14511 _CET_NOTRACK before indirect jump to jump table.
14512
14513 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14514
14515 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
14516 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14517 to jump table.
14518
14519 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14520
14521 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
14522 indirect jump to jump table.
14523
14524 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
14525
14526 [BZ #22241]
14527 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
14528 (LOCALES): Likewise.
14529 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
14530 * localedata/locales/sah_RU: New file.
14531 * localedata/sah_RU.UTF-8.in: New file.
14532
14533 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
14534
14535 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
14536 "sysdep.h".
14537 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
14538 _CET_ENDBR to indirect jump targets and adjust jump destination
14539 for _CET_ENDBR.
14540 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
14541 "sysdep.h".
14542 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
14543 _CET_ENDBR to indirect jump targets and adjust jump destination
14544 for _CET_ENDBR.
14545 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
14546 "sysdep.h".
14547 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
14548 _CET_ENDBR to indirect jump targets and adjust jump destination
14549 for _CET_ENDBR.
14550
14551 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
14552
14553 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
14554 _CET_ENDBR.
14555
14556 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
14557
14558 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
14559 _CET_ENDBR.
14560 (_dl_tlsdesc_undefweak): Likewise.
14561 (_dl_tlsdesc_dynamic): Likewise.
14562 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
14563 (_dl_tlsdesc_resolve_rel): Likewise.
14564 (_dl_tlsdesc_resolve_rela): Likewise.
14565 (_dl_tlsdesc_resolve_hold): Likewise.
14566 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
14567 (_dl_tlsdesc_undefweak): Likewise.
14568 (_dl_tlsdesc_dynamic): Likewise.
14569 (_dl_tlsdesc_resolve_rela): Likewise.
14570 (_dl_tlsdesc_resolve_hold): Likewise.
14571
14572 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
14573
14574 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
14575 (_fini): Likewise.
14576 * sysdeps/x86_64/crti.S (_init): Likewise.
14577 (_fini): Likewise.
14578
14579 2018-07-17 Rafał Lużyński <digitalfreak@lingonborough.com>
14580
14581 [BZ #23140]
14582 * localedata/locales/os_RU (mon): Rename to...
14583 (alt_mon): This.
14584 (mon): Import from CLDR (genitive case).
14585
14586 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
14587
14588 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
14589 cet-tunables.h> when CET is enabled.
14590
14591 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
14592
14593 [BZ #21598]
14594 * configure.ac: Add --enable-cet.
14595 * configure: Regenerated.
14596 * elf/Makefille (all-built-dso): Add a comment.
14597 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
14598 Include <dl-prop.h>.
14599 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
14600 segment.
14601 * elf/dl-open.c: Include <dl-prop.h>.
14602 (dl_open_worker): Call _dl_open_check.
14603 * elf/rtld.c: Include <dl-prop.h>.
14604 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
14605 _rtld_main_check.
14606 * sysdeps/generic/dl-prop.h: New file.
14607 * sysdeps/i386/dl-cet.c: Likewise.
14608 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
14609 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
14610 * sysdeps/x86/cet-tunables.h: Likewise.
14611 * sysdeps/x86/check-cet.awk: Likewise.
14612 * sysdeps/x86/configure: Likewise.
14613 * sysdeps/x86/configure.ac: Likewise.
14614 * sysdeps/x86/dl-cet.c: Likewise.
14615 * sysdeps/x86/dl-procruntime.c: Likewise.
14616 * sysdeps/x86/dl-prop.h: Likewise.
14617 * sysdeps/x86/libc-start.h: Likewise.
14618 * sysdeps/x86/link_map.h: Likewise.
14619 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
14620 _CET_ENDBR.
14621 (_dl_runtime_profile): Likewise.
14622 (_dl_runtime_resolve_shstk): New.
14623 (_dl_runtime_profile_shstk): Likewise.
14624 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
14625 if CET is enabled.
14626 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
14627 (CFLAGS-.os): Likewise.
14628 (CFLAGS-.op): Likewise.
14629 (CFLAGS-.oS): Likewise.
14630 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
14631 is enabled.
14632 (tests-special): Add $(objpfx)check-cet.out.
14633 (cet-built-dso): New.
14634 (+$(cet-built-dso:=.note)): Likewise.
14635 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
14636 ($(objpfx)check-cet.out): New.
14637 (generated): Add check-cet.out.
14638 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
14639 <cet-tunables.h>.
14640 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
14641 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
14642 (init_cpu_features): Call get_cet_status to check CET status
14643 and update dl_x86_feature_1 with CET status. Call
14644 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
14645 (set_x86_shstk). Disable and lock CET in libc.a.
14646 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
14647 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
14648 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
14649 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
14650 (_CET_ENDBR): Define if not defined.
14651 (ENTRY): Add _CET_ENDBR.
14652 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
14653 x86_shstk.
14654 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
14655 _CET_ENDBR.
14656 (_dl_runtime_profile): Likewise.
14657
14658 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
14659
14660 [BZ #21895]
14661 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
14662 restore r2 on longjmp.
14663 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
14664 test list.
14665 Added rules to build test tst-setjmp-bug21895-static.
14666 Added module setjmp-bug21895 and rules to build a shared object from it.
14667 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
14668 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
14669
14670 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
14671
14672 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
14673 * benchtests/bench-strstr.c: Likewise.
14674 * string/memmem.c (FASTSEARCH): Define.
14675 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
14676 Add support for FASTSEARCH.
14677 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
14678 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
14679 (FASTSEARCH): Define.
14680 * string/test-strcasestr.c: Rename __strnlen to strnlen.
14681 * string/test-strstr.c: Likewise.
14682
14683 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
14684
14685 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
14686 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
14687
14688 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
14689 H.J. Lu <hongjiu.lu@intel.com>
14690
14691 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
14692 (__longjmp): Restore shadow stack pointer if shadow stack is
14693 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
14694 isn't defined for __longjmp_cancel.
14695 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
14696 (_setjmp): Save shadow stack pointer if shadow stack is enabled
14697 and SHADOW_STACK_POINTER_OFFSET is defined.
14698 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
14699 (setjmp): Save shadow stack pointer if shadow stack is enabled
14700 and SHADOW_STACK_POINTER_OFFSET is defined.
14701 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
14702 (__sigsetjmp): Save shadow stack pointer if shadow stack is
14703 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
14704 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
14705 <jmp_buf-ssp.h>.
14706 (____longjmp_chk): Restore shadow stack pointer if shadow stack
14707 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
14708 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
14709 Remove jmp_buf-ssp.sym.
14710 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
14711 <jmp_buf-ssp.h>.
14712 (____longjmp_chk): Restore shadow stack pointer if shadow stack
14713 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
14714 * sysdeps/x86/Makefile (gen-as-const-headers): Add
14715 jmp_buf-ssp.sym.
14716 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
14717 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
14718 (__longjmp): Restore shadow stack pointer if shadow stack is
14719 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
14720 isn't defined for __longjmp_cancel.
14721 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
14722 (__sigsetjmp): Save shadow stack pointer if shadow stack is
14723 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
14724
14725 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
14726
14727 [BZ #22563]
14728 * nptl/pthread_create.c: Include <tls-setup.h>.
14729 (__pthread_create_2_1): Call tls_setup_tcbhead.
14730 * sysdeps/generic/tls-setup.h: New file.
14731 * sysdeps/x86/nptl/tls-setup.h: Likewise.
14732 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
14733 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
14734 Likewise.
14735 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
14736 to feature_1.
14737 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
14738 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
14739 (X86_FEATURE_1_SHSTK): Likewise.
14740 (CET_ENABLED): Likewise.
14741 (IBT_ENABLED): Likewise.
14742 (SHSTK_ENABLED): Likewise.
14743
14744 2018-07-13 Rafał Lużyński <digitalfreak@lingonborough.com>
14745
14746 [BZ #23208]
14747 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
14748 (LOCALES): Likewise.
14749 * localedata/dsb_DE.UTF-8.in: New file.
14750 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
14751
14752 2018-07-12 Florian Weimer <fweimer@redhat.com>
14753
14754 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
14755 __mprotect, not mprotect.
14756
14757 2018-07-11 Florian Weimer <fweimer@redhat.com>
14758
14759 * io/Makefile (headers): Add bits/statx.h.
14760
14761 2018-07-10 Mike FABIAN <mfabian@redhat.com>
14762
14763 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
14764 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
14765 and headers.
14766 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
14767 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
14768 for utf8_gen.py
14769
14770 2018-07-10 Florian Weimer <fweimer@redhat.com>
14771
14772 * io/Makefile (routines): Add statx.
14773 (tests-internal): Add tst-statx.
14774 * io/Versions (GLIBC_2.28): Export statx.
14775 * io/bits/statx.h: New file.
14776 * io/sys/stat.h [__USE_GNU]: Include it.
14777 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
14778 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
14779 Define.
14780 * io/statx.c: New file.
14781 * io/statx_generic.: Likewise.
14782 * io/tst-statx.: Likewise.
14783 * include/bits/statx.h: Likewise.
14784 * sysdeps/unix/sysv/linux/kernel-features.h
14785 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
14786 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
14787 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
14788 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
14789 Undefine.
14790 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
14791 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
14792 * sysdeps/unix/sysv/linux/statx.c: New file.
14793 * manual/filesys.texi: Note that statx is undocumented.
14794 * sysdeps/**/libc*.abilist: Update.
14795
14796 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14797
14798 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
14799 a kernel issue which lead to test failure in some cases.
14800
14801 2018-07-10 Florian Weimer <fweimer@redhat.com>
14802
14803 [BZ #23036]
14804 * posix/regexec.c (check_node_accept_bytes): When comparing
14805 weights, do not compare an extra byte after the end of the
14806 weights.
14807
14808 2018-07-10 Florian Weimer <fweimer@redhat.com>
14809
14810 * libio/readline.c: Fix copyright year.
14811 * libio/tst-readline.c Likewise.
14812 * nss/tst-nss-files-hosts-getent.c: Likewise.
14813
14814 2018-07-06 Florian Weimer <fweimer@redhat.com>
14815
14816 [BZ #18991]
14817 * nss/nss_files/files-XXX.c (internal_getent): Use
14818 __libc_readline_unlocked. Seek back to the start of the line if
14819 parsing failes with ERANGE.
14820 (get_contents_ret, get_contents): Remove.
14821 * nss/tst-nss-files-hosts-getent.c: New file.
14822 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
14823 (tst-nss-files-hosts-getent): Link with -ldl.
14824
14825 2018-07-06 Florian Weimer <fweimer@redhat.com>
14826
14827 * include/stdio.h (__libc_readline_unlocked): Declare.
14828 (__ftello64, __fseeko64): Declare aliases.
14829 * libio/readline.c: New file.
14830 * libio/tst-readline.c: Likewise.
14831 (routines): Add readline.
14832 (tests-internal): Add tst-readlime.
14833 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
14834 __libc_readline_unlocked.
14835 * libio/fseeko.c (__fseeko): Rename from fseeko.
14836 (fseeko): Add alias.
14837 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
14838 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
14839 (fseeko64): Add alias.
14840 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
14841 * libio/ftello64.c (__ftello64): Rename from ftello64.
14842 (ftello64): Add alias.
14843
14844 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
14845
14846 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
14847 HWCAP_ATOMICS.
14848
14849 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
14850
14851 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
14852 Use dl_hwcap without masking.
14853 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
14854 Remove HWCAP_CPUID.
14855
14856 2018-07-06 Florian Weimer <fweimer@redhat.com>
14857
14858 * conform/conformtest.pl (checknamespace): Escape literal braces
14859 in regular expressions.
14860
14861 2018-07-06 Amit Pawar <amit.pawar@amd.com>
14862
14863 * sysdeps/x86/cpu-features.c (get_common_indeces):
14864 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
14865 * sysdeps/x86/cpu-features.c (init_cpu_features):
14866 AVX_Fast_Unaligned_Load is disabled for Excavator core.
14867
14868 2018-07-05 Florian Weimer <fweimer@redhat.com>
14869
14870 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
14871 protector.
14872 (CFLAGS-elf-init.oS): Likewise.
14873
14874 2018-07-05 Florian Weimer <fweimer@redhat.com>
14875 Carlos O'Donell <carlos@redhat.com>
14876
14877 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
14878 $(no-stack-protector). stack_chk_fail_local.c can be compiled
14879 with stack protector enabled because there is no risk of infinite
14880 recursion.
14881
14882 2018-07-05 Maciej W. Rozycki <macro@mips.com>
14883
14884 [BZ #19818]
14885 [BZ #23307]
14886 * libc-abis (ABSOLUTE): New ABI.
14887 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
14888 * NEWS: Mention the new ABI.
14889
14890 2018-07-05 Florian Weimer <fweimer@redhat.com>
14891
14892 [BZ # 17662]
14893 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
14894 (RENAME_WHITEOUT): Define.
14895 [__USE_GNU] (renameat2): Declare.
14896 * stdio-common/Makefile (routines): Add renameat2.
14897 (tests): Add tst-renameat2.
14898 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
14899 * stdio-common/renameat2.c: New file.
14900 * stdio-common/tst-renameat2.c: Likewise.
14901 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
14902 * manual/filesys.texi (Temporary Files): Note that renameat2 is
14903 undocumented.
14904 * sysdeps/unix/sysv/linux/kernel-features.h
14905 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
14906 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
14907 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
14908 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
14909 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
14910 * sysdeps/unix/sysv/linux/sh/kernel-features.h
14911 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
14912 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
14913 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
14914 * include/stdio.h (__renameat): Add alias for renameat.
14915 * stdio-common/renameat.c (__renameat): Rename from renameat.
14916 Add hidden definition and alias.
14917 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
14918 * sysdeps/mach/hurd/renameat.c: Likewise.
14919 * sysdeps/**/libc*.abilist: Add renameat2.
14920
14921 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14922
14923 * posix/bug-regex33.c: Fix build after regex sync.
14924
14925 2018-07-04 Carlos O'Donell <carlos@redhat.com>
14926
14927 [BZ #23164]
14928 * localedata/tst-langinfo-setlocale.c: New file.
14929 * localedata/tst-langinfo-setlocale-static.c: New file.
14930 * localedata/tst-langinfo-newlocale.c: New file.
14931 * localedata/tst-langinfo-newlocale-static.c: New file.
14932 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
14933 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
14934 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
14935 (tests-static): Remove tst-langinfo-static. Add
14936 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
14937 (tests-special): Remove $(objpfx)tst-langinfo.out,
14938 $(objpfx)tst-langinfo-static.out. Add
14939 $(objpfx)tst-langinfo-setlocale.out,
14940 $(objpfx)tst-langinfo-newlocale.out,
14941 $(objpfx)tst-langinfo-setlocale-static.out,
14942 $(objpfx)tst-langinfo-newlocale-static.out.
14943 ($(objpfx)tst-langinfo.out): Remove.
14944 ($(objpfx)tst-langinfo-static.out): Remove.
14945 ($(objpfx)tst-langinfo-newlocale.out): New target.
14946 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
14947 (test-xfail-tst-langinfo-newlocale-static): Add.
14948 ($(objpfx)tst-langinfo-setlocale.out): New target.
14949 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
14950 * localedata/tst-langinfo.c: Call test_locale.
14951 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
14952 data.
14953
14954 2018-07-04 Florian Weimer <fweimer@redhat.com>
14955
14956 testrun.sh: Implement --tool=strace, --tool=valgrind
14957 * Makefile (testrun-script): Define variable.
14958 (testrun.sh): Use variable.
14959 * manual/install.texi (Tools for Compilation): make 4.0 or later
14960 is required.
14961 * configure.ac: Check for make 4.0 or later.
14962 * INSTALL: Regenerate.
14963 * configure: Likewise.
14964
14965 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14966
14967 [BZ #23233]
14968 [BZ #21163]
14969 [BZ #18986]
14970 [BZ #13762]
14971 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
14972 * posix/PCRE.tests: Remove invalid test.
14973 * posix/bug-regex28.c: Fix expected values for used syntax.
14974 * posix/bug-regex37.c: New file.
14975 * posix/bug-regex38.c: Likewise.
14976 * posix/regcomp.c: Sync with gnulib.
14977 * posix/regex.c: Likewise.
14978 * posix/regex.h: Likewise.
14979 * posix/regex_internal.c: Likewise.
14980 * posix/regex_internal.h: Likewise.
14981 * posix/regexec.c: Likewise.
14982
14983 2018-06-26 Mike FABIAN <mfabian@redhat.com>
14984
14985 [BZ #23308]
14986 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
14987 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
14988 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
14989 * localedata/unicode-gen/PropList.txt: likewise.
14990 * localedata/unicode-gen/UnicodeData.txt: likewise.
14991 * localedata/charmaps/UTF-8: Regenerate.
14992 * localedata/locales/i18n_ctype: likewise.
14993 * localedata/locales/tr_TR: likewise.
14994 * localedata/locales/translit_circle: likewise.
14995 * localedata/locales/translit_cjk_compat: likewise.
14996 * localedata/locales/translit_combining: likewise.
14997 * localedata/locales/translit_compat: likewise.
14998 * localedata/locales/translit_font: likewise.
14999 * localedata/locales/translit_fraction: likewise.
15000
15001 2018-07-03 Florian Weimer <fweimer@redhat.com>
15002
15003 [BZ #23363]
15004 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
15005 * stdio-common/tst-printf.sh: Adjust expected output.
15006 * LICENSES: Update.
15007
15008 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15009
15010 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
15011 symbol.
15012
15013 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
15014
15015 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
15016 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
15017 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
15018 * stdio-common/tst-printfsz-islongdouble.c: New file.
15019 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
15020 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
15021 [subdir == stdio-common] (routines): Add ieee128-printf_size.
15022 [subdir == stdio-common] (tests-internal): Add
15023 test-printf-size-ieee128, and test-printf-size-ibm128.
15024 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
15025 (CFLAGS-test-printf-size-ibm128.c): New variables.
15026 [subdir == stdio-common] (tests-special): Add
15027 $(objpfx)test-printf-size-ieee128.out and
15028 $(objpfx)test-printf-size-ibm128.out.
15029 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
15030 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
15031 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
15032 __printf_sizeieee128.
15033 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
15034 New file.
15035 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
15036 Likewise.
15037 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
15038 Likewise.
15039
15040 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
15041
15042 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
15043 (exp2f_inline): Likewise.
15044 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
15045 (__math_uflowf): Likewise.
15046 (__math_may_uflowf): Likewise.
15047 (__math_divzerof): Likewise.
15048 (__math_invalidf): Likewise.
15049 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
15050 (__math_oflowf): Likewise.
15051 (__math_uflowf): Likewise.
15052 (__math_may_uflowf): Likewise.
15053 (__math_divzerof): Likewise.
15054 (__math_invalidf): Likewise.
15055
15056 2018-06-29 DJ Delorie <dj@redhat.com>
15057 Carlos O'Donell <carlos@redhat.com>
15058
15059 [BZ #23329]
15060 * include/libc-symbols.h: Comment the freeres framework.
15061 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
15062 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
15063 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
15064 * dlfcn/dlerror.c: Include libc-symbols.h
15065 (__dlerror_main_freeres): New function.
15066 * dlfcn/dlfreeres.c: New file.
15067 * dlfcn/sdlfreeres.c: New file.
15068 * include/dlfcn.h: Declare __dlerror_main_freeres.
15069 * malloc/set-freeres.c: Declare __libdl_freeres, and
15070 __libpthread_freeres.
15071 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
15072 the releavant libraries are loaded.
15073 * malloc/thread-freeres.c: Add comments.
15074 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
15075 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
15076 * nptl/allocatestack.c (__nptl_free_stacks): New function.
15077 (__free_stacks): Rename to...
15078 (free_stacks): ...this. Mark static.
15079 (queue_stack): Call free_stacks.
15080 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
15081 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
15082 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
15083 ptr_freeres element from struct.
15084 (pthread_functions): Remove .ptr_freeres from struct initializer.
15085 [SHARED] (nptl_freeres): Remove.
15086 * nptl/nptlfreeres.c: New file.
15087 * nptl/pthreadP.h
15088 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
15089 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
15090 attribute_hidden.
15091 (__free_stacks): Rename to...
15092 (__nptl_stacks_freeres): ...this.
15093 (__shm_directory_freeres): Declare.
15094 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
15095 (__nptl_unwind_freeres): ...this.
15096 * resolv/res-close.c: Add comment.
15097 * resolv/resolv_conf.c: Include libc-symbols.h.
15098 * string/strerror_l.c: Include libc-symbols.h.
15099 * sunrpc/rpc_thread.c: Include libc-symbols.h.
15100 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
15101 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
15102 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
15103
15104 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
15105
15106 * stdlib/tst-strfmon_l.c: Add tests for long double.
15107
15108 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
15109
15110 [BZ #23208]
15111 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
15112 * localedata/locales/dsb_DE: New file.
15113
15114 2018-06-29 Rafał Lużyński <digitalfreak@lingonborough.com>
15115
15116 [BZ #23140]
15117 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
15118 genitive case).
15119 (alt_mon): New entry, import from CLDR (nominative case).
15120
15121 2018-06-29 Sylvain Lesage <severo@rednegra.net>
15122
15123 [BZ #22996]
15124 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
15125
15126 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
15127
15128 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
15129 Use vector registers.
15130
15131 * sysdeps/aarch64/multiarch/memmove_falkor.S
15132 (__memcpy_falkor): Use vector registers.
15133
15134 2018-06-29 Martin Sebor <msebor@redhat.com>
15135
15136 * manual/stdio.texi (Customizing Printf): Mention interaction
15137 with GCC built-ins.
15138
15139 2018-06-29 Maciej W. Rozycki <macro@mips.com>
15140
15141 [BZ #23307]
15142 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
15143 `st_value' is 0 if `st_shndx' is SHN_ABS.
15144 * elf/tst-absolute-zero.c: New file.
15145 * elf/tst-absolute-zero-lib.c: New file.
15146 * elf/tst-absolute-zero-lib.lds: New file.
15147 * elf/Makefile (tests): Add `tst-absolute-zero'.
15148 (modules-names): Add `tst-absolute-zero-lib'.
15149 (LDLIBS-tst-absolute-zero-lib.so): New variable.
15150 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
15151 ($(objpfx)tst-absolute-zero: New dependency.
15152
15153 2018-06-29 Zack Weinberg <zackw@panix.com>
15154
15155 * configure.ac: New command-line option --disable-crypt.
15156 Force --disable-nss-crypt when --disable-crypt is given, with a
15157 warning if it was explicitly enabled.
15158 * configure: Regenerate.
15159 * config.make.in: New boolean substitution variable $(build-crypt).
15160 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
15161 when $(build-crypt).
15162 * manual/install.texi: Document --disable-crypt.
15163 * INSTALL: Regenerate.
15164
15165 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
15166 which is never set.
15167 * conform/Makefile: Only include libcrypt.a in
15168 linknamespace-libs-xsi and linknamespace-libs-XPG4
15169 when $(build-crypt).
15170 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
15171 USE_CRYPT to 1 when $(build-crypt).
15172 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
15173 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
15174 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
15175
15176 2018-06-29 Zack Weinberg <zackw@panix.com>
15177
15178 * crypt/crypt.h, posix/unistd.h: Update comments and
15179 prototypes for crypt and crypt_r.
15180
15181 * manual/crypt.texi (Cryptographic Functions): New initial
15182 exposition.
15183 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
15184 (Unpredictable Bytes): Improve initial exposition. Clarify error
15185 behavior of getentropy and getrandom.
15186 * manual/examples/genpass.c: Generate a salt using getentropy
15187 instead of the current time. Use hash $5$ (SHA-2-256).
15188 * manual/examples/testpass.c: Demonstrate validation against
15189 hashes generated with three different one-way functions.
15190
15191 * manual/intro.texi: crypt.texi does not need an overview
15192 anymore.
15193
15194 * manual/nss.texi, manual/memory.texi, manual/socket.texi
15195 * manual/terminal.texi: Consistently refer to "passphrases"
15196 * instead of "passwords", and to the "user database" instead
15197 * of the "password database".
15198 * manual/users.texi: Similarly. Add notes about how actual
15199 passphrase hashes are now stored in the shadow database.
15200 Remove 20-year-old junk todo note.
15201
15202 2018-06-29 Zack Weinberg <zackw@panix.com>
15203
15204 * manual/crypt.texi: Use a normal top-level @node declaration.
15205 Move most of the introductory text to the 'crypt' section.
15206 Move the example programs below the @deftypefun for 'crypt_r'.
15207 Move the 'getpass' section...
15208 * manual/terminal.texi: ...here.
15209
15210 2018-06-29 Zack Weinberg <zackw@panix.com>
15211 Florian Weimer <fweimer@redhat.com>
15212
15213 * posix/unistd.h: Do not declare encrypt.
15214 (_XOPEN_CRYPT): Remove macro definition.
15215 (crypt): Declare only for _USE_MISC.
15216 * stdlib/stdlib.h: Do not declare setkey.
15217 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
15218 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
15219
15220 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
15221 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
15222 into compat symbols. Don't define initial_perm if it's not
15223 going to be used.
15224 * crypt/cert.c: Link explicitly with the expected versions for
15225 setkey and encrypt. If they are not available at all, mark
15226 the test as unsupported.
15227
15228 * sunrpc/des_crypt.c: Unconditionally block linkage with
15229 cbc_crypt and ecb_crypt for new binaries.
15230 * sunrpc/des_soft.c: Unconditionally block linkage with
15231 des_setparity for new binaries.
15232
15233 * manual/crypt.texi: Remove the entire "DES Encryption"
15234 section. Also remove the paragraph talking about FIPS 140-2
15235 from the introduction.
15236 * manual/string.texi (strfry, memfrob): Revise. Recommend use
15237 of libgcrypt for "real" encryption, not DES.
15238 * manual/conf.texi (Constants for Sysconf): Mention that
15239 _XOPEN_CRYPT is no longer impelemented.
15240
15241 * conform/data/unistd.h-data: Remove crypt function declaration.
15242
15243 2018-06-29 Florian Weimer <fweimer@redhat.com>
15244
15245 [BZ #23351]
15246 * malloc/hooks.c: Update comments on restoring of dumped heaps.
15247 (disallow_malloc_check): Remove variable.
15248 (__malloc_check_init): Adjust.
15249 (malloc_set_state): Update comment.
15250 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
15251 declarations.
15252
15253 2018-06-29 Rafał Lużyński <digitalfreak@lingonborough.com>
15254
15255 [BZ #23140]
15256 * localedata/locales/ast_ES (mon): Rename to...
15257 (alt_mon): This.
15258 (mon): Import from CLDR (genitive case).
15259
15260 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
15261 Jakub Sitnicki <jkbs@redhat.com>
15262
15263 [BZ #21812]
15264 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
15265 on NLM_F_DUMP_INTR.
15266
15267 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
15268
15269 * manual/llio.texi: Remove spurious space.
15270
15271 2018-06-28 Florian Weimer <fweimer@redhat.com>
15272
15273 [BZ #23349]
15274 * time/bits/types/struct_timespec.h: Change header inclusion guard to
15275 _STRUCT_TIMESPEC.
15276
15277 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
15278
15279 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
15280 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
15281 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
15282 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
15283 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
15284 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
15285 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
15286
15287 2018-06-27 Maciej W. Rozycki <macro@mips.com>
15288
15289 [BZ #23266]
15290 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
15291 Copy and null-terminate entries that are not terminated, in
15292 addition to empty ones.
15293
15294 2018-06-27 Florian Weimer <fweimer@redhat.com>
15295
15296 [BZ #18023]
15297 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
15298 (extend_alloca_account): Remove.
15299 * manual/stdio.texi (Variable Arguments Output): Update comment.
15300
15301 2018-06-27 Joseph Myers <joseph@codesourcery.com>
15302
15303 * nptl/sockperf.c: Remove file.
15304
15305 2018-06-27 Florian Weimer <fweimer@redhat.com>
15306
15307 [BZ #18023]
15308 * elf/dl-deps.c (_dl_map_object_deps): Use struct
15309 scratch_buffer instead of extend_alloca.
15310
15311 2018-06-27 Florian Weimer <fweimer@redhat.com>
15312
15313 [BZ #18023]
15314 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
15315 scratch_buffer instead of extend_alloca. Update comments.
15316
15317 2018-06-27 Florian Weimer <fweimer@redhat.com>
15318
15319 [BZ #18023]
15320 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
15321 instead of extend_alloca.
15322
15323 2018-06-26 Joseph Myers <joseph@codesourcery.com>
15324
15325 [BZ #13888]
15326 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
15327 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
15328 /tmp.
15329 * scripts/test-installation.pl: Put temporary files in build
15330 directory, not /tmp.
15331 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
15332 (CFLAGS-bug4.c): Likewise.
15333 (CFLAGS-bug5.c): Likewise.
15334 (CFLAGS-test-fseek.c): Likewise.
15335 (CFLAGS-test-popen.c): Likewise.
15336 (CFLAGS-test_rdwr.c): Likewise.
15337 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
15338 /tmp.
15339 * stdio-common/bug4.c (main): Likewise.
15340 * stdio-common/bug5.c (main): Likewise.
15341 * stdio-common/test-fseek.c (TESTFILE): Likewise.
15342 * stdio-common/test-popen.c (do_test): Likewise.
15343 * stdio-common/test_rdwr.c (main): Likewise.
15344
15345 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
15346
15347 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
15348 (sem_open): Set sem.newsem.pad to zero for valgrind.
15349
15350 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15351
15352 [BZ #20251]
15353 * NEWS: Mention fcntl64 addition.
15354 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
15355 * login/utmp_file.c: Likewise.
15356 * sysdeps/posix/fdopendir.c: Likewise.
15357 * sysdeps/posix/opendir.c: Likewise.
15358 * sysdeps/unix/pt-fcntl.c: Likewise.
15359 * include/fcntl.h (__libc_fcntl64, __fcntl64,
15360 __fcntl64_nocancel_adjusted): New prototype.
15361 (__fcntl_nocancel_adjusted): Remove prototype.
15362 * io/Makefile (routines): Add fcntl64.
15363 (CFLAGS-fcntl64.c): New rule.
15364 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
15365 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
15366 * io/fcntl.h (fcntl64): Add prototype and redirect if
15367 __USE_FILE_OFFSET64 is defined.
15368 * io/fcntl64.c: New file.
15369 * manual/llio.text: Add a note for which commands fcntl acts a
15370 cancellation point.
15371 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
15372 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
15373 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
15374 New symbols.
15375 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
15376 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
15377 non-LFS case.
15378 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
15379 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
15380 to __fcntl64_nocancel.
15381 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
15382 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
15383 to __fcntl64_nocancel.
15384 * sysdeps/generic/not-cancel.h: Likewise.
15385 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
15386 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
15387 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
15388 (fcntl64): New symbol.
15389 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
15390 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
15391 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
15392 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
15393 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
15394 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
15395 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
15396 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
15397 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
15398 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
15399 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
15400 fcntl64): Likewise.
15401 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
15402 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
15403 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
15404 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
15405 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
15406 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
15407 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
15408 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
15409 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
15410 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
15411 Likewise.
15412 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
15413 Likewise.
15414 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
15415 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
15416 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
15417
15418 2018-06-26 Florian Weimer <fweimer@redhat.com>
15419
15420 Run thread shutdown functions in an explicit order.
15421 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
15422 definition.
15423 (__libc_thread_freeres): Call thread shutdown functions
15424 explicitly.
15425 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
15426 * include/string.h (__strerror_thread_freeres): Declare.
15427 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
15428 arena_thread_freeres. No longer static. Remove thread shutdown
15429 hook registration.
15430 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
15431 Declare.
15432 * resolv/res-close.c (__res_thread_freeres): Renamed from
15433 res_thread_freeres. No longer static. Remove thread shutdown
15434 hook registration.
15435 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
15436 * resolv/resolv_conf.c (freeres): Remove incorrect section
15437 attribute and use libc_freeres_fn.
15438 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
15439 strerror_thread_freeres. No longer static. Remove thread
15440 shutdown hook registration.
15441 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
15442 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
15443 shutdown hook registration.
15444 * Makerules (shlib.lds): Do not provide section boundary symbols
15445 for __libc_thread_subfreeres.
15446 * manual/memory.texi (Basic Allocation): Update comment.
15447
15448 2018-06-26 Florian Weimer <fweimer@redhat.com>
15449
15450 Remove always-defined _RPC_THREAD_SAFE_ macro.
15451 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
15452 Do not define _RPC_THREAD_SAFE_.
15453 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
15454 conditional.
15455 * sunrpc/clnt_perr.c: Likewise.
15456 * sunrpc/clnt_raw.c: Likewise.
15457 * sunrpc/clnt_simp.c: Likewise.
15458 * sunrpc/key_call.c: Likewise.
15459 * sunrpc/rpc_common.c: Likewise.
15460 * sunrpc/rpc_main.c: Likewise.
15461 * sunrpc/rpc_thread.c: Likewise.
15462 * sunrpc/svc.c: Likewise.
15463 * sunrpc/svc_raw.c: Likewise.
15464 * sunrpc/svc_simple.c: Likewise.
15465 * sumrpc/svcauth_des.c: Likewise.
15466
15467 2018-06-26 Florian Weimer <fweimer@redhat.com>
15468
15469 * libio/Makefile (tests-internal): Add tst-vtables,
15470 tst-vtables-interposed.
15471 * libio/tst-vtables.c: New file.
15472 * libio/tst-vtables-common.c: Likewise.
15473 * libio/tst-vtables-interposed.c: Likewise.
15474
15475 2018-06-26 Florian Weimer <fweimer@redhat.com>
15476
15477 * support/support_test_main.c (support_test_main): Only call
15478 setvbuf if not disables.
15479 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
15480 * support/test-driver.h (struct test_config): Add no_setvbuf member.
15481
15482 2018-06-26 Florian Weimer <fweimer@redhat.com>
15483
15484 [BZ #23313]
15485 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
15486
15487 2018-06-25 Florian Weimer <fweimer@redhat.com>
15488
15489 [BZ #18023]
15490 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15491 Use struct scratch_buffer instead of extend_alloca.
15492
15493 2018-06-25 Florian Weimer <fweimer@redhat.com>
15494
15495 [BZ #18023]
15496 * nss/getent.c (initgroups_keys): Use dynarray instead of
15497 extend_alloca.
15498
15499 2018-06-25 Florian Weimer <fweimer@redhat.com>
15500
15501 [BZ #18023]
15502 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
15503 Use struct scratch_buffer instead of extend_alloca.
15504
15505 2018-06-25 Florian Weimer <fweimer@redhat.com>
15506
15507 [BZ #18023]
15508 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
15509 back to malloc directly, without stack allocations.
15510
15511 2018-06-25 Florian Weimer <fweimer@redhat.com>
15512
15513 [BZ #18023]
15514 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
15515 of extend_alloca.
15516
15517 2018-06-25 Florian Weimer <fweimer@redhat.com>
15518
15519 [BZ #18023]
15520 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
15521 of extend_alloca.
15522 * nscd/hstcache.c (addhstbyX): Likewise.
15523 * nscd/pwdcache.c (addpwbyX): Likewise.
15524 * nscd/servicescache.c (addservbyX): Likewise.
15525
15526 2018-06-25 Florian Weimer <fweimer@redhat.com>
15527
15528 [BZ #18023]
15529 * nscd/connections.c (read_cmdline): New function.
15530 (restart): Use it. Update comment.
15531
15532 2018-06-25 Rafał Lużyński <digitalfreak@lingonborough.com>
15533
15534 [BZ #23140]
15535 * localedata/locales/csb_PL (mon): Rename to...
15536 (alt_mon): This.
15537 (abmon): Rename to...
15538 (ab_alt_mon): This.
15539 (mon): Add with proper genitive forms, copy from Wikipedia.
15540 (abmon): Likewise.
15541
15542 2018-06-25 Rafał Lużyński <digitalfreak@lingonborough.com>
15543
15544 [BZ #19485]
15545 * localedata/locales/csb_PL (mon): Fix typos:
15546 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
15547 (yesstr): Add, value is "jo".
15548 (nostr): Add, value is "nié".
15549
15550 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15551
15552 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
15553 all log1p and significand functions on m680x0.
15554 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
15555 of s_significand.c..
15556 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
15557 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
15558 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
15559 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
15560 s_log1p.c and include it..
15561
15562 2018-06-21 Vincent Chen <vincentc@andestech.com>
15563
15564 * elf/elf.h (R_NDS32_NONE): New define.
15565 (R_NDS32_32_RELA): Likewise.
15566 (R_NDS32_COPY): Likewise.
15567 (R_NDS32_GLOB_DAT): Likewise.
15568 (R_NDS32_JUMP_SLOT): Likewise.
15569 (R_NDS32_RELATIVE): Likewise.
15570 (R_NDS32_TLS_TPOFF): Likewise.
15571 (R_NDS32_TLS_DESC): Likewise.
15572
15573 2018-06-21 Mark Wielaard <mark@klomp.org>
15574
15575 * elf/elf.h (R_BPF_MAP_FD): Removed.
15576 (R_BPF_64_64, R_BPF_64_32): New.
15577
15578 2018-06-21 Florian Weimer <fweimer@redhat.com>
15579
15580 [BZ #23253]
15581 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
15582 Renamed from libc_feholdsetround_ctx.
15583 (default_libc_feresetround_ctx): Renamed from
15584 libc_feresetround_ctx.
15585 (default_libc_feholdsetround_noex_ctx): Renamed from
15586 libc_feholdsetround_noex_ctx.
15587 (default_libc_feresetround_noex_ctx): Renamed from
15588 libc_feresetround_noex_ctx.
15589 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
15590 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
15591 forwardning to the old implementations under the new names.
15592 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
15593 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
15594 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
15595 (libc_feresetround_ctx): Forward to default implements for i386
15596 and MATH_SET_BOTH_ROUNDING_MODES.
15597 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
15598 Add -DMATH_SET_BOTH_ROUNDING_MODES.
15599
15600 2018-06-20 Joseph Myers <joseph@codesourcery.com>
15601
15602 * string/tst-cmp.c: Include <libc-diag.h>.
15603 (strncmp_max): Disable -Wstringop-overflow= around call to
15604 strncmp.
15605 (strncasecmp_max): Disable -Wstringop-overflow= around call to
15606 strncasecmp.
15607
15608 * string/bug-strpbrk1.c: Include <libc-diag.h>.
15609 (main): Disable -Wunused-value around call to strpbrk.
15610 * string/bug-strspn1.c: Include <libc-diag.h>.
15611 (main): Disable -Wunused-value around call to strspn.
15612
15613 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15614 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
15615
15616 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
15617 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
15618
15619 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15620
15621 * math/Makefile (libm-calls): Move s_significandF to...
15622 (gen-libm-calls): ... here.
15623 * math/s_significand_template.c: New file.
15624 * math/s_significand.c: Removed.
15625 * math/s_significandf.c: Removed.
15626 * math/s_significandl.c: Removed.
15627 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
15628 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
15629
15630 * math/e_exp2_template.c (declare_mgen_finite_alias,
15631 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
15632 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
15633 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
15634
15635 2018-06-20 Florian Weimer <fweimer@redhat.com>
15636
15637 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
15638
15639 2018-06-19 Joseph Myers <joseph@codesourcery.com>
15640
15641 [BZ #23280]
15642 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
15643 floating-point number to strtod functions rather than possibly
15644 negating result of those functions.
15645 * stdio-common/tst-scanf-round.c: New file.
15646 * stdio-common/Makefile (tests): Add tst-scanf-round.
15647 ($(objpfx)tst-scanf-round): Depend on $(libm).
15648
15649 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
15650
15651 * sysdeps/mach/hurd/localplt.data: Move to...
15652 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
15653 R_386_GLOB_DAT like on Linux i386.
15654
15655 2018-06-18 Joseph Myers <joseph@codesourcery.com>
15656
15657 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
15658 (SHM_STAT_ANY): New macro.
15659 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
15660 (SHM_STAT_ANY): Likewise.
15661 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
15662 (SHM_STAT_ANY): Likewise.
15663 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
15664 (SHM_STAT_ANY): Likewise.
15665 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
15666 (SHM_STAT_ANY): Likewise.
15667 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
15668 (SHM_STAT_ANY): Likewise.
15669 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
15670 (SHM_STAT_ANY): Likewise.
15671 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
15672 (SHM_STAT_ANY): Likewise.
15673 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
15674 (SHM_STAT_ANY): Likewise.
15675 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
15676 (SHM_STAT_ANY): Likewise.
15677 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
15678 (SHM_STAT_ANY): Likewise.
15679 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
15680 (SHM_STAT_ANY): Likewise.
15681
15682 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
15683 (SEM_STAT_ANY): New macro.
15684 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
15685 (SEM_STAT_ANY): Likewise.
15686 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
15687 (SEM_STAT_ANY): Likewise.
15688 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
15689 (SEM_STAT_ANY): Likewise.
15690 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
15691 (SEM_STAT_ANY): Likewise.
15692 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
15693 (SEM_STAT_ANY): Likewise.
15694 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
15695 (SEM_STAT_ANY): Likewise.
15696 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
15697 (SEM_STAT_ANY): Likewise.
15698 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
15699 (SEM_STAT_ANY): Likewise.
15700 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
15701 (SEM_STAT_ANY): Likewise.
15702
15703 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
15704 (MSG_STAT_ANY): New macro.
15705 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
15706 (MSG_STAT_ANY): Likewise.
15707 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
15708 (MSG_STAT_ANY): Likewise.
15709 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
15710 (MSG_STAT_ANY): Likewise.
15711 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
15712 (MSG_STAT_ANY): Likewise.
15713 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
15714 (MSG_STAT_ANY): Likewise.
15715 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
15716 (MSG_STAT_ANY): Likewise.
15717 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
15718 (MSG_STAT_ANY): Likewise.
15719 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
15720 (MSG_STAT_ANY): Likewise.
15721 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
15722 (MSG_STAT_ANY): Likewise.
15723
15724 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
15725 (MAP_TYPE): Change value to 0x2b.
15726
15727 2018-06-18 Florian Weimer <fweimer@redhat.com>
15728
15729 [BZ #15722]
15730 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
15731 socket with SOCK_CLOEXEC.
15732
15733 2018-06-18 Joseph Myers <joseph@codesourcery.com>
15734
15735 [BZ #23303]
15736 * sysdeps/powerpc/powerpc64/le/Makefile
15737 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
15738 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
15739 (gnulib-tests): Also add $(f128-loader-link) for
15740 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
15741
15742 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
15743
15744 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
15745 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
15746 of sendfile.
15747 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
15748 (sendfile64): New strong alias.
15749 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
15750 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
15751 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
15752 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
15753 attribute.
15754 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
15755 ___pthread_get_cleanup_stack.
15756 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
15757 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
15758 * mach/shortcut.awk: Make syscall stubs include
15759 <mach-shortcuts-hidden.h> and add hidden definition.
15760 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
15761 (__mach_msg): Add hidden prototype.
15762 * mach/msg.c: Include <mach.h>.
15763 (__mach_msg): Add hidden definition.
15764 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
15765 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
15766 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
15767 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
15768 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
15769 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
15770 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
15771 prototype and definition.
15772 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
15773 hidden target for _hurd_self_sigstate.
15774
15775 2018-06-15 Joseph Myers <joseph@codesourcery.com>
15776
15777 [BZ #23007]
15778 * stdlib/tst-strtod-nan-sign-main.c: New file.
15779 * stdlib/tst-strtod-nan-sign.c: Likewise.
15780 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
15781 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
15782 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
15783 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
15784 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
15785
15786 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
15787
15788 [BZ #23007]
15789 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
15790 appropriate sign.
15791
15792 2018-06-14 Florian Weimer <fweimer@redhat.com>
15793
15794 [BZ #23290]
15795 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
15796 that the result stays within the ISO-8859-1 range.
15797 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
15798 characters are defined in IBM273.
15799
15800 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
15801
15802 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
15803 __mach_task_self): Remove attribute_hidden.
15804
15805 2018-06-14 Joseph Myers <joseph@codesourcery.com>
15806
15807 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
15808 ignore -Wrestrict for one test.
15809
15810 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
15811 Szabolcs Nagy <szabolcs.nagy@arm.com>
15812
15813 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
15814
15815 2018-06-14 Florian Weimer <fweimer@redhat.com>
15816
15817 * scripts/update-abilist.sh: Accept empty list of files to patch.
15818
15819 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
15820
15821 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
15822 test-xfail-check-abi-libmachuser): Add.
15823 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
15824 __libc_read and __libc_write to __read and __write.
15825 * sysdeps/hurd/include/hurd/port.h: New file.
15826 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
15827 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
15828 __thread_switch, __evc_wait): Move declarations to...
15829 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
15830 attribute_hidden.
15831 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
15832 use PLT to call _hurd_self_sigstate.
15833
15834 2018-06-13 Joseph Myers <joseph@codesourcery.com>
15835
15836 [BZ #23279]
15837 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
15838 MAX_EXP as overflowing.
15839 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
15840 overflow flag.
15841 (round_str): Output also whether result overflows in each rounding
15842 mode.
15843 * stdlib/tst-strtod-round-data: Add more tests.
15844 * stdlib/tst-strtod-round-data.h: Regenerated.
15845 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
15846 (TEST): Handle extra arguments for overflow flags.
15847 (struct test_overflow): New type.
15848 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
15849 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
15850 (test_in_one_mode): Take argument with overflow information.
15851 (do_test): Update calls to test_in_one_mode.
15852
15853 2018-06-12 Carlos O'Donell <carlos@redhat.com>
15854
15855 * elf/dl-load (_dl_dst_substitute): Correct comment.
15856 (_dl_dst_count): Likewise.
15857
15858 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
15859 lll_futex_timed_wait.
15860
15861 2018-06-12 Joseph Myers <joseph@codesourcery.com>
15862
15863 [BZ #23277]
15864 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
15865 attribute.
15866 * math/test-nan-const.c: New file.
15867 * math/Makefile (tests): Add test-nan-const.
15868 (CFLAGS-test-nan-const.c): New variable.
15869
15870 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
15871
15872 * benchtests/scripts/compare_strings.py (process_results): Add
15873 funcs argument. Compare only functions which are selected.
15874 (main): Check if base function is among selected functions.
15875 Pass selected functions to process_results.
15876 (__main__): Add -f/--functions argument.
15877
15878 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
15879 Hongbo Zhang <hongbo.zhang@linaro.org>
15880
15881 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
15882 __memcpy_falkor for phecda core.
15883 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
15884 __memmove_falkor for phecda core.
15885 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
15886 __memset_falkor for phecda core.
15887 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
15888 for phecda core.
15889 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
15890 macro to identify phecda core.
15891
15892 2018-06-12 Carlos O'Donell <carlos@redhat.com>
15893 Andreas Schwab <schwab@suse.de>
15894 Dmitry V. Levin <ldv@altlinux.org>
15895 Florian Weimer <fweimer@redhat.com>
15896
15897 [BZ #23102]
15898 [BZ #21942]
15899 [BZ #18018]
15900 [BZ #23259]
15901 CVE-2011-0536
15902 * elf/dl-dst.h: Remove DL_DST_COUNT.
15903 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
15904 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
15905 (is_dst): Comment. Support ELF gABI.
15906 (_dl_dst_count): Comment. Simplify and count DSTs.
15907 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
15908 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
15909 locals.
15910
15911 2018-06-12 Zack Weinberg <zackw@panix.com>
15912
15913 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
15914 * sysdeps/unix/sysv/linux/dl-sysdep.c
15915 Include not-cancel.h. Use __close_nocancel instead of __close,
15916 __open64_nocancel instead of __open, __read_nocancel instead of
15917 __libc_read, and __write_nocancel instead of __libc_write.
15918
15919 * csu/check_fds.c (check_one_fd)
15920 * sysdeps/posix/fdopendir.c (__fdopendir)
15921 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
15922 instead of __fcntl and/or __libc_fcntl.
15923
15924 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
15925 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
15926 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
15927 Use __open64_nocancel instead of __open_nocancel.
15928
15929 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
15930 hidden_proto declarations to the end and issue them if either
15931 IS_IN(libc) or IS_IN(rtld).
15932 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
15933 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
15934 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
15935 read_nocancel, waitpid_nocancel, write_nocancel.
15936
15937 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
15938 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
15939 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
15940
15941 * nptl/pt-fcntl.c: New file.
15942 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
15943 (libpthread-routines): Add pt-fcntl.
15944 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
15945 (__libc_fcntl): Remove attribute_hidden.
15946 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
15947 __fcntl_nocancel_adjusted, not fcntl_common.
15948 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
15949 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
15950 to fcntl_nocancel.c.
15951 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
15952 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
15953 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
15954 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
15955
15956 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
15957 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
15958 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
15959 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
15960 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
15961 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
15962 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
15963 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
15964 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
15965 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
15966 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
15967 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
15968 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
15969 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
15970 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
15971 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
15972 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
15973 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
15974 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
15975 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
15976
15977 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
15978 libpthread-routines.
15979 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
15980 defines nothing.
15981
15982 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
15983 __libc_read, and __write instead of __libc_write. Define
15984 __open64 in addition to __open.
15985
15986 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
15987
15988 [BZ #23250]
15989 [BZ #10686]
15990 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
15991 to _private_tm[3] and add __glibc_reserved2.
15992 Add _Static_assert of offset of __private_ss == 0x30.
15993 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
15994 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
15995
15996 2018-06-12 Florian Weimer <fweimer@redhat.com>
15997
15998 x86: Make strncmp usable from rtld.
15999 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
16000 __strncmp_ia32 if in libc (and not in rtld).
16001 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
16002 strncmp if not in libc (and not to __strncmp_sse2).
16003
16004 2018-06-12 Rafał Lużyński <digitalfreak@lingonborough.com>
16005
16006 [BZ #23140]
16007 * localedata/locales/gd_GB (mon): Rename to...
16008 (alt_mon): This.
16009 (mon): Import from CLDR (genitive case).
16010 * localedata/locales/hsb_DE (mon): Rename to...
16011 (alt_mon): This.
16012 (mon): Import from CLDR (genitive case).
16013 * localedata/locales/wa_BE (mon): Rename to...
16014 (alt_mon): This.
16015 (mon): Add, fill with the proper genitive forms, but CLDR data
16016 is incomplete; completed according to the comments in this file.
16017 (d_t_fmt): Do not use "di" before the month name, no longer needed.
16018
16019 * localedata/locales/wa_BE (country_name): Reword
16020 "Beljike" -> "Beldjike".
16021
16022 2018-06-11 Joseph Myers <joseph@codesourcery.com>
16023
16024 [BZ #23272]
16025 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
16026 cases of non-finite arguments.
16027 * math/libm-test-fma.inc (fma_test_data): Add more tests.
16028
16029 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
16030
16031 [BZ #23174]
16032 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
16033
16034 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16035
16036 [BZ #23264]
16037 * include/unistd.h (__execvpex): New prototype.
16038 * posix/Makefile (tests): Add tst-spawn4.
16039 (tests-internal): Add tst-spawn4-compat.
16040 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
16041 * posix/tst-spawn4-compat.c: New file.
16042 * posix/tst-spawn4.c: Likewise.
16043 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
16044 binaries as shell scripts.
16045 * sysdeps/posix/spawni.c (__spawni): Likewise.
16046
16047 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
16048
16049 [BZ #23145]
16050 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
16051 ($(all-built-dso:=.dynsym): New target.
16052 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
16053 ($(objpfx)check-initfini.out): New target.
16054 (generated): Add check-initfini.out.
16055 * scripts/check-initfini.awk: New file.
16056 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
16057 (_fini): Likewise.
16058 * sysdeps/alpha/crti.S (_init): Mark as hidden.
16059 (_fini): Likewise.
16060 * sysdeps/arm/crti.S (_init): Mark as hidden.
16061 (_fini): Likewise.
16062 * sysdeps/hppa/crti.S (_init): Mark as hidden.
16063 (_fini): Likewise.
16064 * sysdeps/i386/crti.S (_init): Mark as hidden.
16065 (_fini): Likewise.
16066 * sysdeps/ia64/crti.S (_init): Mark as hidden.
16067 (_fini): Likewise.
16068 * sysdeps/m68k/crti.S (_init): Mark as hidden.
16069 (_fini): Likewise.
16070 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
16071 (_fini): Likewise.
16072 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
16073 (_fini): Likewise.
16074 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
16075 (_fini): Likewise.
16076 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
16077 (_fini): Likewise.
16078 * sysdeps/nios2/crti.S (_init): Mark as hidden.
16079 (_fini): Likewise.
16080 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
16081 (_fini): Likewise.
16082 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
16083 (_fini): Likewise.
16084 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
16085 (_fini): Likewise.
16086 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
16087 (_fini): Likewise.
16088 * sysdeps/sh/crti.S (_init): Mark as hidden.
16089 (_fini): Likewise.
16090 * sysdeps/sparc/crti.S (_init): Mark as hidden.
16091 (_fini): Likewise.
16092 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
16093 (_fini): Likewise.
16094
16095 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16096
16097 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
16098 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
16099 and TF redirection to KFtype and KF only when the default
16100 long double type is not the IEEE 128-bit floating point type.
16101
16102 2018-06-05 Joseph Myers <joseph@codesourcery.com>
16103
16104 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
16105 macro.
16106 (HWCAP_USCAT): Likewise.
16107 (HWCAP_ILRCPC): Likewise.
16108 (HWCAP_FLAGM): Likewise.
16109 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
16110 Increase to 28.
16111 (_dl_aarch64_cap_flags): Add new flag names.
16112
16113 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
16114 (MAP_FIXED_NOREPLACE): New macro.
16115 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
16116 (MAP_FIXED_NOREPLACE): Likewise.
16117 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
16118 (MAP_FIXED_NOREPLACE): Likewise.
16119 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16120 (MAP_FIXED_NOREPLACE): Likewise.
16121 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
16122 (MAP_FIXED_NOREPLACE): Likewise.
16123 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
16124 (MAP_FIXED_NOREPLACE): Likewise.
16125 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
16126 (MAP_FIXED_NOREPLACE): Likewise.
16127 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
16128 (MAP_FIXED_NOREPLACE): Likewise.
16129 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
16130 (MAP_FIXED_NOREPLACE): Likewise.
16131 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
16132 (MAP_FIXED_NOREPLACE): Likewise.
16133 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
16134 (MAP_FIXED_NOREPLACE): Likewise.
16135 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
16136 (MAP_FIXED_NOREPLACE): Likewise.
16137 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
16138 (MAP_FIXED_NOREPLACE): Likewise.
16139 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
16140 (MAP_FIXED_NOREPLACE): Likewise.
16141 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
16142 (MAP_FIXED_NOREPLACE): Likewise.
16143
16144 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
16145 version to 4.17.
16146
16147 2018-06-04 Joseph Myers <joseph@codesourcery.com>
16148
16149 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
16150 version to 4.17
16151
16152 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
16153
16154 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
16155 int.
16156 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
16157
16158 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
16159
16160 * benchtests/scripts/compare_string.py: (process_results) Catch
16161 exception in non-existent base_func and catch exception in
16162 non-existent attribute.
16163 (parse_file) Catch exception if input file does not exist.
16164
16165 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
16166
16167 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
16168 options to avoid diff calculation and omit header, respectively.
16169 (main): process --no-diff and --no-header
16170
16171 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
16172 H.J. Lu <hongjiu.lu@intel.com>
16173
16174 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16175 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
16176 wcsncmp-sse2.
16177 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
16178 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
16179 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
16180 and __wcsncmp_sse2.
16181 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
16182 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
16183 AVX unaligned load is fast and vzeroupper is preferred.
16184 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
16185 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
16186 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
16187 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
16188 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
16189 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
16190 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
16191 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
16192 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
16193 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
16194 is undefined.
16195
16196 2018-06-01 Florian Weimer <fweimer@redhat.com>
16197
16198 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
16199 configuring with --disable-multi-arch, building with
16200 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
16201 Haswell-era CPU.
16202
16203 2018-06-01 Florian Weimer <fweimer@redhat.com>
16204
16205 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
16206 results from building with “-march=x86-64 -mtune=generic
16207 -mfpmath=sse” and running on a Haswell-era CPU.
16208
16209 2018-06-01 Joseph Myers <joseph@codesourcery.com>
16210
16211 [BZ #18473]
16212 * soft-fp/sqrttf2.c: Remove file.
16213 * soft-fp/sqrtdf2.c: Move to ....
16214 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
16215 <shlib-compat.h>.
16216 (__sqrtdf2): Make conditional on
16217 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
16218 symbol.
16219 * soft-fp/sqrtsf2.c: Move to ....
16220 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
16221 <shlib-compat.h>.
16222 (__sqrtsf2): Make conditional on
16223 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
16224 symbol.
16225 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
16226 (gcc-double-routines): Remove sqrtdf2.
16227 (gcc-quad-routines): Remove sqrttf2.
16228 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
16229 Do not filter out sqrtsf2 and sqrtdf2.
16230 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
16231 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
16232
16233 2018-06-01 Florian Weimer <fweimer@redhat.com>
16234
16235 * sysdeps/generic/libcidn.abilist: Remove file.
16236
16237 2018-06-01 Florian Weimer <fweimer@redhat.com>
16238
16239 [BZ #23236]
16240 * libio/strfile.h (struct _IO_str_fields): Rename members to
16241 discourage their use and add comment.
16242 (_IO_STR_DYNAMIC): Remove unused macro.
16243 * libio/strops.c (_IO_str_init_static_internal): Do not use
16244 callback pointers. Call malloc and free.
16245 (_IO_str_overflow): Do not use callback pointers. Call malloc
16246 and free.
16247 (enlarge_userbuf): Likewise.
16248 (_IO_str_finish): Call free.
16249 * libio/wstrops.c (_IO_wstr_init_static): Initialize
16250 _allocate_buffer_unused.
16251 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
16252 and free.
16253 (enlarge_userbuf): Likewise.
16254 (_IO_wstr_finish): Call free.
16255 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
16256 _allocate_buffer_unused, _free_buffer_unused.
16257 * libio/memstream.c (__open_memstream): Likewise.
16258 * libio/vasprintf.c (_IO_vasprintf): Likewise.
16259 * libio/wmemstream.c (open_wmemstream): Likewise.
16260
16261 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
16262
16263 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
16264 AMD Ryzen 7 1800X.
16265
16266 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
16267
16268 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
16269 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
16270 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
16271 New file.
16272 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
16273 Likewise.
16274 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
16275
16276 2018-05-29 Florian Weimer <fweimer@redhat.com>
16277
16278 * support/Makefile (libsupport-routines): Add
16279 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
16280 xpthread_barrierattr_setpshared.
16281 * support/xpthread_barrierattr_destroy.c: New file.
16282 * support/xpthread_barrierattr_init.c: Likewise.
16283 * support/xpthread_barrierattr_setpshared.c: Likewise.
16284
16285 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
16286
16287 [BZ #23206]
16288 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
16289 _r_debug and update DT_DEBUG for debugger.
16290
16291 2018-05-29 Florian Weimer <fweimer@redhat.com>
16292
16293 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
16294 (tst-strtod5i.out): Likewise.
16295
16296 2018-05-25 Joseph Myers <joseph@codesourcery.com>
16297
16298 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
16299 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
16300 (sparc64-quad-routines): New variable. Moved from ....
16301 [$(subdir) = soft-fp] (sysdep_routines): Add
16302 $(sparc64-quad-routines). Moved from ....
16303 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
16304 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
16305 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
16306 moved from ....
16307 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
16308 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
16309 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
16310 * sysdeps/sparc/sparc64/qp_add.c: ... here.
16311 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
16312 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
16313 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
16314 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
16315 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
16316 * sysdeps/sparc/sparc64/qp_div.c: ... here.
16317 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
16318 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
16319 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
16320 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
16321 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
16322 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
16323 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
16324 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
16325 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
16326 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
16327 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
16328 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
16329 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
16330 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
16331 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
16332 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
16333 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
16334 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
16335 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
16336 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
16337 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
16338 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
16339 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
16340 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
16341 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
16342 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
16343 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
16344 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
16345 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
16346 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
16347 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
16348 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
16349 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
16350 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
16351 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
16352 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
16353 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
16354 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
16355 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
16356 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
16357 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
16358 * sysdeps/sparc/sparc64/qp_util.c: ... here.
16359 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
16360 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
16361 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
16362 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
16363 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
16364 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
16365
16366 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
16367 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
16368 (sparc32-quad-routines): New variable. Moved from ....
16369 [$(subdir) = soft-fp] (sysdep_routines): Add
16370 $(sparc32-quad-routines). Moved from ....
16371 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
16372 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
16373 moved from ....
16374 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
16375 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
16376 * sysdeps/sparc/sparc32/q_add.c: ... here.
16377 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
16378 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
16379 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
16380 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
16381 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
16382 * sysdeps/sparc/sparc32/q_div.c: ... here.
16383 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
16384 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
16385 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
16386 * sysdeps/sparc/sparc32/q_feq.c: ... here.
16387 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
16388 * sysdeps/sparc/sparc32/q_fge.c: ... here.
16389 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
16390 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
16391 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
16392 * sysdeps/sparc/sparc32/q_fle.c: ... here.
16393 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
16394 * sysdeps/sparc/sparc32/q_flt.c: ... here.
16395 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
16396 * sysdeps/sparc/sparc32/q_fne.c: ... here.
16397 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
16398 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
16399 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
16400 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
16401 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
16402 * sysdeps/sparc/sparc32/q_mul.c: ... here.
16403 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
16404 * sysdeps/sparc/sparc32/q_neg.c: ... here.
16405 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
16406 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
16407 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
16408 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
16409 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
16410 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
16411 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
16412 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
16413 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
16414 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
16415 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
16416 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
16417 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
16418 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
16419 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
16420 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
16421 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
16422 * sysdeps/sparc/sparc32/q_sub.c: ... here.
16423 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
16424 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
16425 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
16426 * sysdeps/sparc/sparc32/q_util.c: ... here.
16427 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
16428 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
16429 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
16430 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
16431
16432 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16433 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
16434
16435 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
16436 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
16437 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
16438 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
16439
16440 2018-05-24 Joseph Myers <joseph@codesourcery.com>
16441
16442 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
16443 powerpc/soft-fp.
16444 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
16445 Likewise.
16446 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
16447 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
16448
16449 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
16450
16451 [BZ #23171]
16452 * math/math.h [C++] (iseqsig): Fix parameter type for the long
16453 double version.
16454
16455 2018-05-23 Joseph Myers <joseph@codesourcery.com>
16456
16457 * sysdeps/sh/Implies: Remove sh/soft-fp.
16458 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
16459 * sysdeps/sh/sfp-machine.h: ... here.
16460
16461 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
16462
16463 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
16464 (__mempcpy_erms): Skip zero length.
16465 (__memmove_erms): Likewise.
16466 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
16467 (__memset_erms): Likewise.
16468
16469 2018-05-23 Joseph Myers <joseph@codesourcery.com>
16470
16471 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
16472 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
16473 Add functions moved from ....
16474 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
16475 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
16476 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
16477 from ....
16478 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
16479 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
16480 * sysdeps/alpha/e_sqrtl.c: ... here.
16481 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
16482 * sysdeps/alpha/local-soft-fp.h: ... here.
16483 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
16484 * sysdeps/alpha/ots_add.c: ... here.
16485 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
16486 * sysdeps/alpha/ots_cmp.c: ... here.
16487 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
16488 * sysdeps/alpha/ots_cmpe.c: ... here.
16489 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
16490 * sysdeps/alpha/ots_cvtqux.c: ... here.
16491 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
16492 * sysdeps/alpha/ots_cvtqx.c: ... here.
16493 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
16494 * sysdeps/alpha/ots_cvttx.c: ... here.
16495 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
16496 * sysdeps/alpha/ots_cvtxq.c: ... here.
16497 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
16498 * sysdeps/alpha/ots_cvtxt.c: ... here.
16499 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
16500 * sysdeps/alpha/ots_div.c: ... here.
16501 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
16502 * sysdeps/alpha/ots_mul.c: ... here.
16503 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
16504 * sysdeps/alpha/ots_nintxq.c: ... here.
16505 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
16506 * sysdeps/alpha/ots_sub.c: ... here.
16507 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
16508 * sysdeps/alpha/sfp-machine.h: ... here.
16509
16510 2018-05-23 Florian Weimer <fweimer@redhat.com>
16511
16512 [BZ #19728]
16513 [BZ #19729]
16514 [BZ #22247]
16515 CVE-2016-6261
16516 CVE-2016-6263
16517 CVE-2017-14062
16518 Switch to extern IDNA implementation (libidn2).
16519 * libidn: Remove subdirectory.
16520 * LICENSES: Do not mention licensing conditions for the removed
16521 libidn code.
16522 * config.h.in (HAVE_LIBIDN): Remove.
16523 * include/dlfcn.h (__libc_dlopen): Update comment.
16524 * include/idna.h: Remove file.
16525 * inet/Makefile (routines): Add idna.
16526 (tests-static, tests-internal): Add tst-idna_name_classify.
16527 (LOCALES): Generate locales for tests.
16528 (tst-idna_name_classify.out): Depend on generated locales.
16529 * inet/idna_name_classify.c: New file.
16530 * inet/tst-idna_name_classify.c: Likewise.
16531 * inet/net-internal.h (__idna_to_dns_encoding)
16532 (__idna_from_dns_encoding): Declare.
16533 * inet/net-internal.h (enum idna_name_classification): Define.
16534 (__idna_name_classify): Declare.
16535 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
16536 __idna_from_dns_encoding.
16537 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
16538 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
16539 name as a fallback in case of encoding errors.
16540 (getnameinfo): Use DEPRECATED_NI_IDN.
16541 * inet/idna.c: New file.
16542 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
16543 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
16544 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
16545 (modules-names): Add tst-no-libidn2.
16546 (extra-test-objs): Add tst-no-libidn2.os.
16547 (LDFLAGS-tst-no-libidn2.so): Set soname.
16548 (LOCALES): Set, and generate locales.
16549 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
16550 (tst-resolv-ai_idn-latin1): Likewise.
16551 (tst-resolv-ai_idn-nolibidn2): Likewise.
16552 (tst-resolv-ai_idn.out): Depend on locales.
16553 (tst-resolv-ai_idn-latin1.out): Depend on locales.
16554 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
16555 tst-no-libidn2.so.
16556 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
16557 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
16558 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
16559 * resolv/tst-resolv-ai_idn.c: New file.
16560 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
16561 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
16562 * resolv/tst-no-libidn2.c: Likewise.
16563 * support/support_format_addrinfo.c (format_ai_flags): Do not
16564 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
16565 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
16566 (gaih_inet): Call __idna_to_dns_encoding and
16567 __idna_from_dns_encoding, and use the original (punycode) name if
16568 __idna_from_dns_encoding fails due to an encoding error.
16569 (getaddrinfo): Use DEPRECATED_AI_IDN.
16570 * sysdeps/unix/inet/Subdirs (libidn): Remove.
16571 * sysdeps/unix/inet/configure: Remove file.
16572 * sysdeps/unix/inet/configure.ac: Likewise.
16573
16574 2018-05-23 Florian Weimer <fweimer@redhat.com>
16575
16576 Implement allocate_once.
16577 * include/allocate_once.h: New file.
16578 * misc/allocate_once.c: Likewise.
16579 * misc/tst-allocate_once.c: Likewise.
16580 * misc/Makefile (routines): Add allocate_once.
16581 (tests-internal): Add tst-allocate_once.
16582 (generated): Add tst-allocate_once.mtrace,
16583 tst-allocate_once-mem.out.
16584 (tests-special): Add tst-allocate_once-mem.out.
16585 (tst-allocate_once-ENV): Set MALLOC_TRACE.
16586 (tst-allocate_once-mem.out): Call mtrace.
16587 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
16588
16589 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
16590
16591 [BZ #23196]
16592 * string/test-memcpy.c (do_test1): New function.
16593 (test_main): Call it.
16594
16595 2018-05-23 Andreas Schwab <schwab@suse.de>
16596
16597 [BZ #23196]
16598 CVE-2018-11237
16599 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
16600 (L(preloop_large)): Save initial destination pointer in %r11 and
16601 use it instead of %rax after the loop.
16602 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
16603
16604 2018-05-22 Joseph Myers <joseph@codesourcery.com>
16605
16606 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
16607 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
16608 -I../soft-fp. Moved from ....
16609 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
16610 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
16611 * sysdeps/aarch64/e_sqrtl.c: ... here.
16612 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
16613 * sysdeps/aarch64/sfp-machine.h: ... here.
16614
16615 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
16616 -Wmaybe-uninitialized around access to fq[0].
16617 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
16618 Likewise.
16619
16620 [BZ #18471]
16621 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
16622 aliases for non-libc case of versioned symbols.
16623 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
16624 (llseek): Define as compat symbol if
16625 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
16626 with link warning.
16627 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
16628 Make into a compat symbol, disabled for minimum symbol version
16629 GLIBC_2.28 and later.
16630 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
16631
16632 2018-05-22 Florian Weimer <fweimer@redhat.com>
16633
16634 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
16635 not add -mpreferred-stack-boundary=4.
16636 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
16637 (stack-align-test-flags): Likewise.
16638 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
16639 Likewise.
16640 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
16641 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
16642 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
16643 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
16644 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
16645 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
16646 (CFLAGS-tst-align2.c): Likewise.
16647
16648 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
16649
16650 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
16651 (index_arch_Prefer_FSRM): Likewise.
16652 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
16653 Also check Prefer_FSRM.
16654 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
16655 Also return OPTIMIZE (erms) for Prefer_FSRM.
16656
16657 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
16658
16659 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
16660 (index_cpu_FSRM): Likewise.
16661 (reg_FSRM): Likewise.
16662
16663 2018-05-18 Joseph Myers <joseph@codesourcery.com>
16664
16665 * math/gen-tgmath-tests.py: Import sys.
16666 (Tests.__init__): Initialize macros_seen.
16667 (Tests.add_tests): Add macro to macros_seen. Only generate tests
16668 if requested to do so for this macro.
16669 (Tests.add_all_tests): Take argument for macro for which to
16670 generate tests.
16671 (Tests.check_macro_list): New function.
16672 (main): Handle check-list argument and argument specifying macro
16673 for which to generate tests.
16674 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
16675 [PYTHON] (tgmath3-macro-tests): Likewise.
16676 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
16677 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
16678 not test-tgmath3.c.
16679 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
16680 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
16681 to CFLAGS.
16682 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
16683 [PYTHON] ($(foreach
16684 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
16685 rule.
16686 [PYTHON] (tests-special): Add
16687 $(objpfx)test-tgmath3-macro-list.out.
16688 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
16689
16690 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
16691 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
16692 later.
16693
16694 [BZ #22639]
16695 * time/tzset.c (SECSPERDAY): Cast to time_t.
16696 * time/tst-y2039.c: New file.
16697 * time/Makefile (tests): Add tst-y2039.
16698
16699 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
16700
16701 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
16702 (PREFETCH_ONE_SET): Remove duplicate line.
16703
16704 2018-05-17 Florian Weimer <fweimer@redhat.com>
16705
16706 * sysdeps/generic/math-type-macros-double.h: Include
16707 <math-nan-payload-double.h> after <libm-alias-double.h>.
16708 * sysdeps/generic/math-type-macros-float.h: Include
16709 <math-nan-payload-float.h> after <libm-alias-float.h>.
16710 * sysdeps/generic/math-type-macros-float128.h: Include
16711 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
16712 * sysdeps/generic/math-type-macros-ldouble.h: Include
16713 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
16714
16715 2018-05-17 Andreas Schwab <schwab@suse.de>
16716
16717 * resolv/res_send.c (__res_context_send): Don't set errno when
16718 returing error after malloc failure.
16719
16720 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
16721
16722 * nptl/allocatestack.c (allocate_stack): Remove the
16723 !__ASSUME_PRIVATE_FUTEX paths.
16724 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
16725 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
16726 Likewise.
16727 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
16728 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
16729 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
16730 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
16731 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
16732 !__ASSUME_PRIVATE_FUTEX path.
16733 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
16734 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
16735 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
16736 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
16737 !__ASSUME_PRIVATE_FUTEX macros.
16738 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
16739 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
16740 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
16741 * sysdeps/unix/sysv/linux/kernel-features.h
16742 (__ASSUME_PRIVATE_FUTEX): Removed.
16743
16744 2018-05-17 Joseph Myers <joseph@codesourcery.com>
16745
16746 * math/Makefile (libm-narrow-fns): Add div.
16747 (libm-test-funcs-narrow): Likewise.
16748 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
16749 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
16750 * math/gen-auto-libm-tests.c (test_functions): Add div.
16751 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
16752 (NARROW_DIV_ROUND_TO_ODD): Likewise.
16753 (NARROW_DIV_TRIVIAL): Likewise.
16754 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
16755 macro.
16756 (__ddivl): Likewise.
16757 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
16758 ddiv.
16759 (CFLAGS-nldbl-ddiv.c): New variable.
16760 (CFLAGS-nldbl-fdiv.c): Likewise.
16761 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
16762 __nldbl_ddivl.
16763 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
16764 prototype.
16765 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
16766 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
16767 * math/auto-libm-test-in: Add tests of div.
16768 * math/auto-libm-test-out-narrow-div: New generated file.
16769 * math/libm-test-narrow-div.inc: New file.
16770 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
16771 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
16772 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
16773 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
16774 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
16775 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
16776 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
16777 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
16778 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
16779 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
16780 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
16781 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
16782 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
16783 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
16784 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
16785 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
16786 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
16787 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
16788 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16789 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
16790 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
16791 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
16792 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
16793 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
16794 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
16795 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
16796 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
16797 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
16798 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
16799 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
16800 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
16801 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
16802 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
16803 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
16804 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
16805 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
16806 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16807 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
16808 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
16809 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
16810 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
16811 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
16812 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
16813 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
16814
16815 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16816
16817 [BZ #23178]
16818 * nscd/nscd-client.h (sendfileall): Remove prototype.
16819 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
16820 (handle_request): Use writeall instead of sendfileall.
16821 * nscd/aicache.c (addhstaiX): Likewise.
16822 * nscd/grpcache.c (cache_addgr): Likewise.
16823 * nscd/hstcache.c (cache_addhst): Likewise.
16824 * nscd/initgrcache.c (addinitgroupsX): Likewise.
16825 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
16826 * nscd/pwdcache.c (cache_addpw): Likewise.
16827 * nscd/servicescache.c (cache_addserv): Likewise.
16828 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
16829 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
16830 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
16831 Remove define.
16832
16833 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
16834
16835 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
16836 Include <string/strncat.c>.
16837 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
16838 alias.
16839 (__GI___strncat): New hidden alias.
16840
16841 2018-05-16 Joseph Myers <joseph@codesourcery.com>
16842
16843 * sysdeps/mips/mips32/libm-test-ulps: Update.
16844 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
16845
16846 2018-05-16 Florian Weimer <fweimer@redhat.com>
16847
16848 * support/Makefile (libsupport-routines): Add support_quote_blob,
16849 support_test_compare_blob.
16850 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
16851 * support/check.h (TEST_COMPARE_BLOB): Define.
16852 (support_test_compare_blob): Declare.
16853 * support/support.h (support_quote_blob): Declare.
16854 * support/support_quote_blob.c: New file.
16855 * support/support_test_compare_blob.c: Likewise.
16856 * support/tst-support_quote_blob.c: Likewise.
16857 * support/tst-test_compare_blob.c: Likewise.
16858
16859 2018-05-16 Florian Weimer <fweimer@redhat.com>
16860
16861 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
16862 of <strtod_nan_double.h>.
16863 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
16864 instead of SET_MANTISSA.
16865 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
16866 of include <strtod_nan_float.h>.
16867 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
16868 instead of <strtod_nan_ldouble.h>.
16869 * stdlib/strtod_nan_double.h: Move to ...
16870 * sysdeps/generic/math-nan-payload-double.h: ... here.
16871 (FLOAT): Remove definition.
16872 (SET_MANTISSA): Rename to ...
16873 (SET_NAN_PAYLOAD): ... this.
16874 * stdlib/strtod_nan_float.h: Move to ...
16875 * sysdeps/generic/math-nan-payload-float.h: ... here.
16876 (FLOAT): Remove definition.
16877 (SET_MANTISSA): Rename to ...
16878 (SET_NAN_PAYLOAD): ... this.
16879 * sysdeps/generic/math-type-macros-double.h: Include
16880 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
16881 instead of <math-svid-compat.h>.
16882 * sysdeps/generic/math-type-macros-float.h: Include
16883 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
16884 instead of <math-svid-compat.h>.
16885 * sysdeps/generic/math-type-macros-float128.h: Include
16886 <math-nan-payload-float128.h>.
16887 * sysdeps/generic/math-type-macros-ldouble.h: Include
16888 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
16889 instead of <math-svid-compat.h>.
16890 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
16891 check for definition.
16892 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
16893 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
16894 Include <ieee754_float128.h>.
16895 (FLOAT): Remove definition.
16896 (SET_MANTISSA): Rename to ...
16897 (SET_NAN_PAYLOAD): ... this.
16898 * sysdeps/ieee754/float128/strtof128_nan.c: Include
16899 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
16900 Do not include <float128_private.h>.
16901 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
16902 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
16903 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
16904 (FLOAT): Remove definition.
16905 (SET_MANTISSA): Rename to ...
16906 (SET_NAN_PAYLOAD): ... this.
16907 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
16908 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
16909 (FLOAT): Remove definition.
16910 (SET_MANTISSA): Rename to ...
16911 (SET_NAN_PAYLOAD): ... this.
16912 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
16913 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
16914 (FLOAT): Remove definition.
16915 (SET_MANTISSA): Rename to ...
16916 (SET_NAN_PAYLOAD): ... this.
16917 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
16918 of "../stdlib/strtod_nan_double.h".
16919 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
16920 of "../stdlib/strtod_nan_float.h".
16921 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
16922 instead of "../stdlib/strtod_nan_ldouble.h".
16923 * manual/arith.texi (Parsing of Floats): Adjust comment.
16924
16925 2018-05-16 Joseph Myers <joseph@codesourcery.com>
16926
16927 * math/Makefile (libm-narrow-fns): Add mul.
16928 (libm-test-funcs-narrow): Likewise.
16929 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
16930 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
16931 * math/gen-auto-libm-tests.c (test_functions): Add mul.
16932 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
16933 (NARROW_MUL_ROUND_TO_ODD): Likewise.
16934 (NARROW_MUL_TRIVIAL): Likewise.
16935 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
16936 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
16937 macro.
16938 (__dmull): Likewise.
16939 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
16940 dmul.
16941 (CFLAGS-nldbl-dmul.c): New variable.
16942 (CFLAGS-nldbl-fmul.c): Likewise.
16943 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
16944 __nldbl_dmull.
16945 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
16946 prototype.
16947 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
16948 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
16949 * math/auto-libm-test-in: Add tests of mul.
16950 * math/auto-libm-test-out-narrow-mul: New generated file.
16951 * math/libm-test-narrow-mul.inc: New file.
16952 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
16953 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
16954 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
16955 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
16956 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
16957 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
16958 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
16959 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
16960 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
16961 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
16962 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
16963 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
16964 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
16965 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
16966 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
16967 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
16968 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
16969 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
16970 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16971 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
16972 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
16973 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
16974 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
16975 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
16976 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
16977 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
16978 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
16979 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
16980 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
16981 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
16982 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
16983 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
16984 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
16985 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
16986 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
16987 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
16988 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16989 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
16990 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
16991 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
16992 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
16993 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
16994 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
16995 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
16996
16997 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
16998
16999 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
17000 with *%eax in call.
17001
17002 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
17003
17004 * sysdeps/i386/ldsodefs.h: Removed.
17005 * sysdeps/x86_64/ldsodefs.h: Moved to ...
17006 * sysdeps/x86/ldsodefs.h: This.
17007 (La_i86_regs): New.
17008 (La_i86_retval): Likewise.
17009 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
17010 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
17011
17012 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
17013
17014 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
17015 unnecessary testl.
17016
17017 2018-05-13 Alan Modra <amodra@gmail.com>
17018
17019 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
17020 R_PARISC_TLS_DTPOFF32 reloc addend.
17021
17022 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
17023
17024 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
17025 * math/math.h: Restrict the prototype definition for the functions
17026 issignaling(_Float128) and iszero(_Float128); and template
17027 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
17028 __HAVE_FLOAT128_UNLIKE_LDBL.
17029 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
17030 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
17031 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
17032 __f128() constants; define the type _Float128 as long double;
17033 and reuse long double in __CFLOAT128.
17034
17035 2018-05-11 Joseph Myers <joseph@codesourcery.com>
17036
17037 * sysdeps/generic/math_private.h: Do not include
17038 <math-barriers.h>.
17039 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
17040 <math_private.h>.
17041 * math/fromfp.h: Include <math-barriers.h>.
17042 * math/math-narrow.h: Likewise.
17043 * math/s_nextafter.c: Likewise.
17044 * math/s_nexttowardf.c: Likewise.
17045 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
17046 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
17047 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
17048 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
17049 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
17050 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
17051 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
17052 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
17053 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
17054 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
17055 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17056 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
17057 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
17058 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
17059 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
17060 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
17061 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
17062 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
17063 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
17064 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
17065 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
17066 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
17067 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
17068 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
17069 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
17070 * sysdeps/ieee754/k_standardl.c: Likewise.
17071 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
17072 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17073 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
17074 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
17075 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
17076 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
17077 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
17078 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
17079 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17080 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
17081 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
17082 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
17083 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
17084 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
17085 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
17086 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
17087 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
17088 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
17089 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
17090 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
17091 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
17092 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
17093
17094 2018-05-11 Florian Weimer <fweimer@redhat.com>
17095
17096 Use 64-bit epoch values in the time zone file parser.
17097 * include/time.h (internal_time_t): Define.
17098 (__tzfile_compute): Use it.
17099 * time/tzfile.c (struct leap): Use internal_time_t for epoch
17100 member.
17101 (transitions): Switch to internal_time_t.
17102 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
17103 types.
17104 (__tzfile_compute): Use internal_time_t for timer argument. Check
17105 for truncation before calling __offtime.
17106
17107 2018-05-11 Florian Weimer <fweimer@redhat.com>
17108
17109 [BZ #23166]
17110 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
17111 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
17112 Likewise.
17113 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
17114 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
17115 export without --enable-obsolete-rpc.
17116 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
17117 symbol. This should not have been exported, ever.
17118
17119 2018-05-11 Rafał Lużyński <digitalfreak@lingonborough.com>
17120
17121 [BZ #23152]
17122 * localedata/locales/gd_GB (abmon): Fix typo in May:
17123 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
17124
17125 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
17126
17127 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
17128 Use multiple registers to copy data in loop tail.
17129
17130 * sysdeps/aarch64/multiarch/memmove_falkor.S
17131 (__memmove_falkor): Use multiple registers to move data in
17132 loop tail.
17133
17134 2018-05-10 Joseph Myers <joseph@codesourcery.com>
17135
17136 * math/math-underflow.h: New file.
17137 * sysdeps/generic/math_private.h: Do not include <float.h>.
17138 (fabs_tg): Remove macro. Moved to math-underflow.h.
17139 (min_of_type_f): Likewise.
17140 (min_of_type_): Likewise.
17141 (min_of_type_l): Likewise.
17142 (min_of_type_f128): Likewise.
17143 (min_of_type): Likewise.
17144 (math_check_force_underflow): Likewise.
17145 (math_check_force_underflow_nonneg): Likewise.
17146 (math_check_force_underflow_complex): Likewise.
17147 * math/e_exp2_template.c: Include <math-underflow.h>.
17148 * math/k_casinh_template.c: Likewise.
17149 * math/s_catan_template.c: Likewise.
17150 * math/s_catanh_template.c: Likewise.
17151 * math/s_ccosh_template.c: Likewise.
17152 * math/s_cexp_template.c: Likewise.
17153 * math/s_clog10_template.c: Likewise.
17154 * math/s_clog_template.c: Likewise.
17155 * math/s_csin_template.c: Likewise.
17156 * math/s_csinh_template.c: Likewise.
17157 * math/s_csqrt_template.c: Likewise.
17158 * math/s_ctan_template.c: Likewise.
17159 * math/s_ctanh_template.c: Likewise.
17160 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
17161 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
17162 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17163 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
17164 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
17165 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17166 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17167 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17168 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
17169 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
17170 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
17171 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
17172 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
17173 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
17174 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
17175 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
17176 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
17177 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
17178 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
17179 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
17180 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
17181 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17182 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17183 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
17184 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
17185 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
17186 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
17187 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
17188 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
17189 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
17190 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
17191 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
17192 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
17193 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
17194 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17195 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
17196 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
17197 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
17198 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17199 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
17200 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
17201 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
17202 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
17203 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
17204 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
17205 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
17206 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
17207 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
17208 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
17209 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17210 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
17211 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
17212 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
17213 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
17214 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
17215 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
17216 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
17217 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
17218 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
17219 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
17220 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
17221 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
17222 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
17223 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
17224 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
17225 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
17226 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
17227 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
17228 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
17229 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
17230 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17231 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
17232 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
17233 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
17234 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
17235 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
17236 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
17237 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
17238 * sysdeps/x86/fpu/powl_helper.c: Likewise.
17239 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
17240 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
17241 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
17242 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
17243 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
17244
17245 2018-05-09 Joseph Myers <joseph@codesourcery.com>
17246
17247 * sysdeps/generic/math-barriers.h: New file.
17248 * sysdeps/generic/math_private.h [!math_opt_barrier]
17249 (math_opt_barrier): Move to math-barriers.h.
17250 [!math_opt_barrier] (math_force_eval): Likewise.
17251 * sysdeps/aarch64/fpu/math-barriers.h: New file.
17252 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
17253 math-barriers.h.
17254 (math_force_eval): Likewise.
17255 * sysdeps/alpha/fpu/math-barriers.h: New file.
17256 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
17257 math-barriers.h.
17258 (math_force_eval): Likewise.
17259 * sysdeps/x86/fpu/math-barriers.h: New file.
17260 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
17261 math-barriers.h.
17262 (math_force_eval): Likewise.
17263 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
17264 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
17265 multiple-include guard for rename.
17266 * sysdeps/powerpc/fpu/math-barriers.h: New file.
17267 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
17268 math-barriers.h.
17269 (math_force_eval): Likewise.
17270
17271 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
17272
17273 [BZ #22786]
17274 CVE-2018-11236
17275 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
17276 computation.
17277 * stdlib/Makefile (test-bz22786): New test.
17278 * stdlib/test-bz22786.c: New test.
17279
17280 2018-05-09 Joseph Myers <joseph@codesourcery.com>
17281
17282 * include/math-narrow-eval.h: New file. Contents moved from ....
17283 * sysdeps/generic/math_private.h: ... here.
17284 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
17285 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
17286 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
17287 * stdlib/strtod_l.c: Likewise.
17288 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
17289 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
17290 * sysdeps/i386/fpu/s_fdim.c: Likewise.
17291 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
17292 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
17293 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17294 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17295 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
17296 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
17297 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
17298 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
17299 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
17300 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
17301 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
17302 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
17303 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
17304 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
17305 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
17306 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
17307 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17308 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17309 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
17310 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
17311 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
17312 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
17313 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
17314 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
17315 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
17316 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
17317
17318 2018-05-08 Andreas Schwab <schwab@suse.de>
17319
17320 * sysdeps/nptl/internaltypes.h: Fix comment.
17321
17322 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
17323
17324 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
17325 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
17326 hidden.
17327
17328 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
17329
17330 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
17331 of I into loop header.
17332 * benchtests/bench-memmove-walk.c
17333 (test_main): Likewise.
17334
17335 2018-05-07 Alexandre Oliva <oliva@gnu.org>
17336
17337 Revert:
17338 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
17339 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
17340
17341 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
17342
17343 [BZ #20419]
17344 * elf/dl-load.c (open_verify): Fix stack overflow.
17345 * elf/Makefile (tst-big-note): New test.
17346 * elf/tst-big-note-lib.S: New.
17347 * elf/tst-big-note.c: New.
17348
17349 2018-05-04 Joseph Myers <joseph@codesourcery.com>
17350
17351 * scripts/abilist.awk: Ignore absolute symbols.
17352 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
17353 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
17354 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
17355 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
17356 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
17357 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
17358 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17359 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
17360 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
17361 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
17362 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
17363 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
17364 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
17365 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
17366 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
17367 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
17368 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
17369 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
17370 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17371 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
17372 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
17373 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
17374 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
17375 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
17376 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
17377 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
17378 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
17379 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
17380 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
17381 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
17382 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
17383 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17384 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
17385 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
17386 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
17387 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
17388 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
17389 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
17390 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
17391 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
17392 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
17393 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
17394 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
17395 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
17396 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17397 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
17398 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
17399 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
17400 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
17401 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
17402 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
17403 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
17404 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
17405 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
17406 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
17407 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
17408 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
17409 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17410 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
17411 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
17412 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
17413 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
17414 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
17415 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
17416 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
17417 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
17418 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
17419 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
17420 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
17421 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
17422 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17423 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
17424 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
17425 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
17426 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
17427 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
17428 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
17429 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
17430 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
17431 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
17432 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
17433 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
17434 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
17435 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17436 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
17437 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
17438 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
17439 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
17440 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
17441 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
17442 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
17443 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
17444 Likewise.
17445 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
17446 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
17447 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
17448 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
17449 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17450 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
17451 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
17452 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
17453 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
17454 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
17455 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
17456 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
17457 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
17458 Likewise.
17459 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
17460 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
17461 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
17462 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
17463 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17464 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
17465 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
17466 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
17467 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
17468 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
17469 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
17470 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
17471 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
17472 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
17473 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
17474 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
17475 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
17476 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17477 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
17478 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
17479 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
17480 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
17481 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
17482 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
17483 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
17484 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
17485 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
17486 Likewise.
17487 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
17488 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
17489 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
17490 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
17491 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17492 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
17493 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
17494 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
17495 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
17496 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
17497 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
17498 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
17499 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
17500 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
17501 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
17502 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
17503 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
17504 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
17505 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
17506 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
17507 Likewise.
17508 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
17509 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
17510 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
17511 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17512 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
17513 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
17514 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
17515 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
17516 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
17517 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
17518 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
17519 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
17520 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
17521 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
17522 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
17523 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
17524 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
17525 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
17526 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
17527 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
17528 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
17529 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17530 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
17531 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
17532 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
17533 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
17534 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
17535 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
17536 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
17537 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17538 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
17539 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
17540 Likewise.
17541 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
17542 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
17543 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
17544 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
17545 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
17546 Likewise.
17547 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
17548 Likewise.
17549 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
17550 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
17551 Likewise.
17552 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
17553 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
17554 Likewise.
17555 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
17556 Likewise.
17557 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
17558 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
17559 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
17560 Likewise.
17561 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
17562 Likewise.
17563 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
17564 Likewise.
17565 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
17566 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
17567 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
17568 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
17569 Likewise.
17570 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
17571 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
17572 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
17573 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17574 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17575 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
17576 Likewise.
17577 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
17578 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
17579 Likewise.
17580 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
17581 Likewise.
17582 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
17583 Likewise.
17584 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
17585 Likewise.
17586 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
17587 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
17588 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
17589 Likewise.
17590 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
17591 Likewise.
17592 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
17593 Likewise.
17594 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
17595 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
17596 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
17597 Likewise.
17598 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
17599 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
17600 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
17601 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
17602 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17603 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
17604 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
17605 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
17606 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
17607 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
17608 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
17609 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
17610 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
17611 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
17612 Likewise.
17613 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
17614 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
17615 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
17616 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17617 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
17618 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
17619 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
17620 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
17621 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
17622 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
17623 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
17624 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
17625 Likewise.
17626 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
17627 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
17628 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
17629 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17630 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
17631 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
17632 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
17633 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
17634 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
17635 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
17636 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
17637 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
17638 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
17639 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
17640 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
17641 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
17642 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
17643 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
17644 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
17645 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
17646 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
17647 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
17648 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
17649 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
17650 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
17651 Likewise.
17652 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
17653 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
17654 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
17655 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
17656 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17657 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
17658 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
17659 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
17660 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
17661 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
17662 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
17663 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
17664 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
17665 Likewise.
17666 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
17667 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
17668 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
17669 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
17670 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17671 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
17672 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
17673 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
17674 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
17675 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
17676 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
17677 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
17678 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
17679 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
17680 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
17681 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
17682 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
17683 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17684 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
17685 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
17686 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
17687 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
17688 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
17689 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
17690 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
17691 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
17692 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
17693 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
17694 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
17695 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
17696 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
17697 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
17698 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
17699 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
17700 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
17701 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
17702 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
17703 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
17704
17705 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
17706
17707 [BZ #23137]
17708 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
17709 Use atomic_load_acquire to load __tid.
17710
17711 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
17712
17713 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
17714 Restore the pointer into %rdx, after syscall and use %rdx,
17715 instead of %rsi, to restore context.
17716
17717 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
17718
17719 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
17720 Pop the pointer into %rdx after syscall and use %rdx, instead
17721 of %rsi, to restore context.
17722
17723 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
17724
17725 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
17726 handlers after setjmp.
17727 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
17728 defined.
17729 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
17730 <libc-pointer-arith.h>.
17731 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
17732 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
17733 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
17734 _JUMP_BUF_SIGSET_BITS_PER_WORD.
17735 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
17736 * sysdeps/x86/__longjmp_cancel.S: New file.
17737 * sysdeps/x86/longjmp.c: Likewise.
17738 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
17739
17740 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17741
17742 * NEWS: Add ustat.h deprecation entry.
17743 * bits/ustat.h: Remove file.
17744 * misc/sys/ustat.h: Likewise.
17745 * misc/ustat.h: Likewise.
17746 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
17747 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
17748 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
17749 compatibility mode.
17750 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
17751 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
17752 generic Linux implementation.
17753
17754 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
17755
17756 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
17757 * math/w_expl_compat.c: Likewise.
17758 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
17759
17760 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
17761
17762 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
17763
17764 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17765
17766 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
17767 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
17768 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
17769 Remove.
17770 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
17771 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
17772 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
17773 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
17774 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
17775 and SYSCALL_LL64.
17776
17777 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
17778
17779 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
17780
17781 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
17782 * math/w_asin_template.c: Likewise.
17783 * math/w_atanh_template.c: Likewise.
17784
17785 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
17786
17787 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
17788 to powerpc/powerpc64/be for big-endian.
17789 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
17790 little-endian.
17791
17792 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
17793 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
17794 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
17795 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
17796 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
17797 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
17798 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
17799 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
17800 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
17801 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
17802 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
17803 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
17804 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
17805 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
17806 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
17807 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
17808 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
17809 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
17810 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
17811 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
17812 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
17813 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
17814 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
17815 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
17816 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
17817 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
17818 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
17819 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
17820 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
17821 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
17822 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
17823 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
17824
17825 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
17826 adjusted to imply powerpc64 and older processors on powerpc64/be.
17827 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
17828 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
17829 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
17830 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
17831 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
17832 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
17833 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
17834 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
17835 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
17836 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
17837 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
17838 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
17839 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
17840 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
17841 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
17842 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
17843 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
17844 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
17845 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
17846 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
17847 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
17848 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
17849 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
17850 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
17851 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
17852 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
17853 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
17854 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
17855 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
17856 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
17857 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
17858
17859 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
17860 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
17861 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
17862 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
17863
17864 * sysdeps/powerpc/powerpc64/be/Implies: New file.
17865 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
17866 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
17867 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
17868
17869 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
17870 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
17871 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
17872 * sysdeps/powerpc/powerpc64le/configure: Likewise.
17873 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
17874 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
17875 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
17876 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
17877 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
17878 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
17879 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
17880
17881 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
17882 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
17883 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
17884 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
17885 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
17886 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
17887 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
17888 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
17889 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
17890 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
17891 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
17892
17893 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
17894 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
17895 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
17896 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
17897 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
17898 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
17899 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
17900 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
17901 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
17902 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
17903 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
17904 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
17905
17906 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
17907 and adjusted to imply olders processors.
17908 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
17909 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
17910 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
17911 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
17912 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
17913 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
17914 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
17915 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
17916 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
17917 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
17918 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
17919
17920 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
17921 powerpc64/le.
17922 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
17923 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
17924
17925 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
17926 powerpc64le.
17927 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
17928 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
17929
17930 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
17931 powerpc64/be.
17932 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
17933 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
17934 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
17935
17936 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
17937 powerpc64 and adjusted.
17938 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
17939 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
17940 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
17941 Likewise.
17942
17943 2018-04-27 Joseph Myers <joseph@codesourcery.com>
17944
17945 * sysdeps/tile: Remove.
17946 * sysdeps/unix/sysv/linux/tile: Likewise.
17947 * README (tilegx-*-linux-gnu): Remove from list of supported
17948 configurations.
17949 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
17950 contribution of support for generic Linux kernel syscall
17951 interface.
17952 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
17953 tilegx configurations.
17954 (Config.install_linux_headers): Do not handle tile.
17955 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
17956 in comment.
17957 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
17958 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
17959 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
17960 conditional undefine and redefine.
17961 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
17962 in comment.
17963 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
17964 conditional undefine and redefine.
17965
17966 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
17967
17968 * signal/tst-sigaction.c: New file to test BZ #23069.
17969 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
17970
17971 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
17972
17973 [BZ #22766]
17974 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
17975 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
17976 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
17977 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
17978
17979 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17980
17981 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
17982 _DIRENT_MATCHES_DIRENT64 is not defined.
17983 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
17984 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
17985 is defined.
17986 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
17987 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
17988
17989 2018-04-25 Joseph Myers <joseph@codesourcery.com>
17990
17991 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
17992 version to GCC 8 branch.
17993
17994 2018-04-24 Joseph Myers <joseph@codesourcery.com>
17995
17996 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
17997 (check_no_hidden): Use type of original function when declaring
17998 alias.
17999
18000 * sysdeps/unix/sysv/linux/sys/ptrace.h
18001 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
18002 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
18003 (struct __ptrace_seccomp_metadata): New type.
18004 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
18005 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18006 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
18007 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18008 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
18009 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18010 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
18011 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18012 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
18013 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18014 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
18015 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18016 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
18017 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18018 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
18019 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18020
18021 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18022
18023 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
18024 defined.
18025 * dirent/versionsort.c (versionsort): Likewise.
18026 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
18027 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
18028 * dirent/versionsort64.c (versionsort64): Likewise.
18029 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
18030 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
18031 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
18032 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
18033 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
18034 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
18035 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
18036 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
18037 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
18038 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
18039 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
18040 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
18041 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
18042 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
18043
18044 2018-04-23 Joseph Myers <joseph@codesourcery.com>
18045
18046 * elf/elf.h (NT_PPC_PKEY): New macro.
18047
18048 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
18049
18050 [BZ #23094]
18051 * localedata/locales/hr_HR: fix thousands_sep and
18052 mon_thousands_sep
18053
18054 2018-04-20 Joseph Myers <joseph@codesourcery.com>
18055
18056 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
18057 (XTABS): Define to TAB3.
18058
18059 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18060
18061 * sysdeps/hppa/fpu/libm-test-ulps: Update.
18062
18063 * dirent/scandir-tail-common.c: New file.
18064 * dirent/scandir-tail.c: Use scandir-tail-common.c.
18065 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
18066 * dirent/scandir.c: Use scandir-tail-common.c.
18067 * dirent/scandirat.c: Likewise.
18068 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
18069 * dirent/scandir64.c (scandir64): Always build and alias to scandir
18070 if _DIRENT_MATCHES_DIRENT64 is defined.
18071 * dirent/scandirat64.c (scandirat64): Likewise.
18072 * include/dirent.h (__scandir_tail): Only define iff
18073 _DIRENT_MATCHES_DIRENT64 is not defined.
18074 (__scandir64_tail): Define regardless.
18075 (__scandirat, scandirat64): Remove libc_hidden_proto.
18076 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
18077 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
18078 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
18079 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
18080 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
18081 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
18082 * sysdeps/unix/sysv/linux/scandir64.c: New file.
18083
18084 2018-04-20 Joseph Myers <joseph@codesourcery.com>
18085
18086 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
18087 New macro.
18088 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
18089 Increase to 24.
18090 (_dl_aarch64_cap_flags): Add asimdfhm.
18091
18092 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
18093
18094 * sysdeps/nios2/libm-test-ulps: Update.
18095
18096 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18097
18098 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
18099 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
18100
18101 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
18102 requirements.
18103 (_DIRENT_MATCHES_DIRENT64): Undef
18104 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
18105 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
18106 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
18107 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
18108 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
18109 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
18110 use getdents64 syscalls as base.
18111 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
18112 symbol if required.
18113 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
18114 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
18115 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
18116 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
18117 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
18118 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
18119 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
18120 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
18121 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
18122 (__get_clockfreq_via_proc_openprom): Use __getdents64.
18123 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
18124
18125 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
18126
18127 * scripts/test_printers_common.py (init_test): Disable lock elision.
18128
18129 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
18130
18131 * math/test-tgmath.c (count_double, count_float,
18132 count_ldouble, count_cdouble, count_cfloat,
18133 count_cldouble): Use volatile int.
18134
18135 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
18136
18137 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
18138 (conformtest-xfail-conds): Add i386-gnu.
18139 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
18140 i386-gnu.
18141 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
18142 ipc_perm.cuid, ipc_perm.cgid): Likewise.
18143 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
18144 msqid_ds.msg_lrpid): Likewise.
18145 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
18146 Likewise.
18147 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
18148 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
18149 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
18150 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
18151 unsigned int.
18152 (struct statvfs64): Likewise.
18153 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
18154 Likewise.
18155 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
18156 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
18157 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
18158 instead of wait_queue.
18159 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
18160 instead of vm_area_struct.
18161 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
18162 struct sched_param definition to it.
18163 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
18164 * bits/types/struct_sched_param.h: New file.
18165 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
18166 <bits/types/struct_sched_param.h> instead of <sched.h>.
18167 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
18168 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
18169 generic version but include <bits/pthreadtypes.h> to make struct
18170 sigevent's sigev_notify_attributes field a pthread_attr_t*.
18171 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
18172 non-compliant.
18173 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
18174 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
18175 [__USE_XOPEN] (OFDEL): New macro.
18176 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
18177 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
18178 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
18179 prototypes.
18180 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
18181 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
18182 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
18183 non-compliant.
18184 * sysdeps/i386/sys/ucontext.h: Likewise.
18185 * sysdeps/m68k/sys/ucontext.h: Likewise.
18186 * sysdeps/mips/sys/ucontext.h: Likewise.
18187 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
18188 * sysdeps/mach/hurd/i386/Makefile
18189 (test-xfail-POSIX/fcntl.h/conform): Add.
18190 (test-xfail-POSIX/signal.h/conform): Add.
18191 (test-xfail-POSIX/semaphore.h/conform): Add.
18192 (test-xfail-POSIX/regex.h/conform): Add.
18193 (test-xfail-POSIX/aio.h/conform): Add.
18194 (test-xfail-POSIX/mqueue.h/conform): Add.
18195 (test-xfail-POSIX/sys/types.h/conform): Add.
18196 (test-xfail-UNIX98/fcntl.h/conform): Add.
18197 (test-xfail-UNIX98/netdb.h/conform): Add.
18198 (test-xfail-UNIX98/signal.h/conform): Add.
18199 (test-xfail-UNIX98/semaphore.h/conform): Add.
18200 (test-xfail-UNIX98/regex.h/conform): Add.
18201 (test-xfail-UNIX98/aio.h/conform): Add.
18202 (test-xfail-UNIX98/ftw.h/conform): Add.
18203 (test-xfail-UNIX98/mqueue.h/conform): Add.
18204 (test-xfail-UNIX98/netinet/in.h/conform): Add.
18205 (test-xfail-UNIX98/sys/wait.h/conform): Add.
18206 (test-xfail-UNIX98/sys/sem.h/conform): Add.
18207 (test-xfail-UNIX98/sys/uio.h/conform): Add.
18208 (test-xfail-UNIX98/sys/socket.h/conform): Add.
18209 (test-xfail-UNIX98/sys/types.h/conform): Add.
18210 (test-xfail-UNIX98/stdlib.h/conform): Add.
18211 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
18212 (test-xfail-POSIX2008/fcntl.h/conform): Add.
18213 (test-xfail-POSIX2008/netdb.h/conform): Add.
18214 (test-xfail-POSIX2008/signal.h/conform): Add.
18215 (test-xfail-POSIX2008/semaphore.h/conform): Add.
18216 (test-xfail-POSIX2008/regex.h/conform): Add.
18217 (test-xfail-POSIX2008/aio.h/conform): Add.
18218 (test-xfail-POSIX2008/mqueue.h/conform): Add.
18219 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
18220 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
18221 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
18222 (test-xfail-POSIX2008/sys/types.h/conform): Add.
18223 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
18224 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
18225 (test-xfail-XOPEN2K/netdb.h/conform): Add.
18226 (test-xfail-XOPEN2K/signal.h/conform): Add.
18227 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
18228 (test-xfail-XOPEN2K/regex.h/conform): Add.
18229 (test-xfail-XOPEN2K/aio.h/conform): Add.
18230 (test-xfail-XOPEN2K/ftw.h/conform): Add.
18231 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
18232 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
18233 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
18234 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
18235 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
18236 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
18237 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
18238 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
18239 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
18240 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
18241 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
18242 (test-xfail-XOPEN2K8/signal.h/conform): Add.
18243 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
18244 (test-xfail-XOPEN2K8/regex.h/conform): Add.
18245 (test-xfail-XOPEN2K8/aio.h/conform): Add.
18246 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
18247 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
18248 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
18249 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
18250 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
18251 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
18252 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
18253 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
18254 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
18255 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
18256 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
18257 i386-gnu.
18258 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
18259 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
18260
18261 2018-04-18 Joseph Myers <joseph@codesourcery.com>
18262
18263 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
18264 --enable-obsolete for powerpc-linux-gnuspe.
18265
18266 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
18267
18268 * conform/data/sys/un.h-data: Allow sun_ prefix.
18269 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
18270 prototypes.
18271 * sysdeps/mach/include/mach.h: Likewise.
18272 * sysdeps/mach/include/mach/mig_support.h: Likewise.
18273 * sysdeps/mach/include/mach_error.h: Likewise.
18274
18275 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18276
18277 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
18278 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
18279 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
18280 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
18281
18282 2018-04-16 Andreas Schwab <schwab@suse.de>
18283
18284 [BZ #19527]
18285 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
18286
18287 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18288
18289 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
18290 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
18291
18292 2018-04-12 DJ Delorie <dj@redhat.com>
18293
18294 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
18295 version to 4.16.
18296
18297 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
18298
18299 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
18300 (struct kernel_sigaction): Use the same definition on 31bit as is used
18301 on 64bit.
18302
18303 2018-04-09 Florian Weimer <fweimer@redhat.com>
18304
18305 [BZ #23037]
18306 * resolv/res_send.c (send_dg): Use designated initializers instead
18307 of assignment to zero-initialize other fields of struct mmsghdr.
18308
18309 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18310
18311 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
18312 __READDIR_ALIAS): Undefine after usage.
18313 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
18314 __READDIR_R_ALIAS): Likewise.
18315 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
18316 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
18317 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
18318 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
18319 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
18320 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
18321 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
18322 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
18323 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
18324 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
18325 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
18326 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
18327 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
18328 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
18329 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
18330 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
18331 * sysdeps/unix/sysv/linux/readdir.c: New file.
18332 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
18333 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
18334 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
18335
18336 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
18337
18338 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
18339
18340 * manual/charset.texi (Converting a Character): Fix typo.
18341
18342 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18343
18344 * sysdeps/sparc/fpu/libm-test-ulps: Update.
18345
18346 * sysdeps/arm/libm-test-ulps: Update.
18347
18348 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
18349 as base implementation.
18350 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
18351 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
18352 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
18353 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
18354 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
18355 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
18356 remove unrequired definitions and update comments.
18357 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
18358 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
18359 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
18360 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
18361 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
18362 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
18363 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
18364 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
18365 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
18366 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
18367 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
18368 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
18369 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
18370 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
18371 and RESET_SA_RESTORER hooks.
18372
18373 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
18374
18375 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
18376
18377 2018-04-05 Florian Weimer <fweimer@redhat.com>
18378
18379 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
18380 integer overflow, memory leak on error, and indeterminate errno
18381 value. Add a null wide character to terminate the result string.
18382 * manual/charset.texi (Converting a Character): Mention embedded
18383 null bytes in the mbrtowc input string. Explain what happens in
18384 the -2 result case. Do not claim that mbrtowc is simple or
18385 obvious to use. Adjust the description of the code example. Use
18386 @code, not @var, for concrete variables.
18387
18388 2018-04-05 Florian Weimer <fweimer@redhat.com>
18389
18390 * manual/examples/mbstouwcs.c: New file.
18391 * manual/charset.texi (Converting a Character): Include it.
18392
18393 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
18394
18395 * include/dirent.h (dirfd): Add hidden proto.
18396 * dirent/dirfd.c (dirfd): Add hidden def.
18397 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
18398 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
18399
18400 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18401
18402 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
18403 sin, cos and sincos to 1 ULP.
18404
18405 2018-04-04 Maciej W. Rozycki <macro@mips.com>
18406
18407 [BZ #19818]
18408 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
18409 symbols.
18410 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
18411 * elf/tst-absolute-sym.c: New file.
18412 * elf/tst-absolute-sym-lib.c: New file.
18413 * elf/tst-absolute-sym-lib.lds: New file.
18414 * elf/Makefile (tests): Add `tst-absolute-sym'.
18415 (modules-names): Add `tst-absolute-sym-lib'.
18416 (LDLIBS-tst-absolute-sym-lib.so): New variable.
18417 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
18418 ($(objpfx)tst-absolute-sym): New dependency.
18419
18420 [BZ #19818]
18421 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
18422 parameter.
18423 (SYMBOL_ADDRESS): New macro.
18424 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
18425 SYMBOL_ADDRESS for symbol address calculation.
18426 * elf/dl-runtime.c (_dl_fixup): Likewise.
18427 (_dl_profile_fixup): Likewise.
18428 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
18429 * elf/rtld.c (dl_main): Likewise.
18430 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
18431 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
18432 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
18433 (elf_machine_rela): Likewise.
18434 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
18435 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
18436 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
18437 (elf_machine_rela): Likewise.
18438 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
18439 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
18440 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
18441 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
18442 Likewise.
18443 (elf_machine_reloc): Likewise.
18444 (elf_machine_got_rel): Likewise.
18445 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
18446 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
18447 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
18448 Likewise.
18449 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
18450 Likewise.
18451 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
18452 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
18453 Likewise.
18454 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
18455 Likewise.
18456 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
18457 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
18458 Likewise.
18459 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
18460 Likewise.
18461 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
18462 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
18463
18464 2018-04-04 Zack Weinberg <zackw@panix.com>
18465
18466 * sysdeps/generic/internal-signals.h: Include signal.h,
18467 sigsetops.h, and stdbool.h.
18468 (__libc_signal_block_all): Actually block all signals.
18469 (__libc_signal_block_app): Likewise.
18470 (__libc_signal_restore_set): Actually restore the signal mask.
18471
18472 2018-04-04 Florian Weimer <fweimer@redhat.com>
18473
18474 inet: Actually build and run tst-deadline.
18475 * inet/Makefile (tests-internal): Add tst-deadline and do not
18476 overwrite the variable.
18477 (tests-static-internal): Remove variable.
18478
18479 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
18480
18481 [BZ #22947]
18482 * bits/uio-ext.h (RWF_APPEND): New.
18483 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
18484 * manual/llio.texi: Document RWF_APPEND.
18485 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
18486 (RWF_SUPPORTED): Add RWF_APPEND.
18487
18488 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18489
18490 [BZ #22391]
18491 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
18492 check for internal nptl signals.
18493 * nptl/sigaction.c (__sigaction): Likewise.
18494 * signal/sigaddset.c (sigaddset): Likewise.
18495 * signal/sigdelset.c (sigdelset): Likewise.
18496 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
18497 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
18498 value.
18499 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
18500 to filter out internal nptl signals.
18501 * signal/tst-sigset.c (do_test): Check ech signal indidually and
18502 also check realtime signals using standard macros.
18503 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
18504 __is_internal_signal, __libc_signal_block_all,
18505 __libc_signal_block_app, __libc_signal_restore_set): New functions.
18506 * sysdeps/nptl/sigfillset.c: Remove file.
18507 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
18508 Change return to bool.
18509 (__clear_internal_signals): Remove SIGTIMER clean since it is
18510 equal to SIGCANEL on Linux.
18511 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
18512 signal set was constructed using standard functions.
18513
18514 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
18515
18516 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
18517 ifname is too long.
18518 * hurd/hurdsig.c (interrupted_reply_port_location): Use
18519 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
18520 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
18521 hidden def.
18522 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
18523 * signal/sigaddset.c: Include <sigsetopts.h>.
18524 * signal/sigdelset.c: Likewise.
18525
18526 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18527
18528 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
18529 (__cos): Likewise.
18530 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
18531 logic as sin and cos.
18532
18533 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18534
18535 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
18536 inputs. Return correct sign.
18537 (do_sincos): Remove small input check before do_sin, let do_sin set
18538 the sign.
18539 (__sin): Likewise.
18540 (__cos): Likewise.
18541
18542 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18543
18544 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
18545 (do_cos_slow): Likewise.
18546 (do_sin_slow): Likewise.
18547 (reduce_and_compute): Likewise.
18548 (slow): Likewise.
18549 (slow1): Likewise.
18550 (slow2): Likewise.
18551 (sloww): Likewise.
18552 (sloww1): Likewise.
18553 (sloww2): Likewise.
18554 (bslow): Likewise.
18555 (bslow1): Likewise.
18556 (bslow2): Likewise.
18557 (cslow2): Likewise.
18558
18559 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18560
18561 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
18562 (do_cos): Remove corp parameter and calculations.
18563 (do_sin): Likewise.
18564 (do_sincos): Remove cor variable.
18565 (__sin): Use do_sincos for huge inputs.
18566 (__cos): Likewise.
18567 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
18568 (reduce_and_compute_sincos): Remove unused function.
18569
18570 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18571
18572 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
18573 reduce_sincos, improve accuracy to 136 bits.
18574 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
18575 (__sin): Use improved reduction and simplified do_sincos calculation.
18576 (__cos): Likewise.
18577 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
18578
18579 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18580
18581 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
18582 (do_sincos_2): Likewise.
18583 (__sin): Remove middle range reduction case.
18584 (__cos): Likewise.
18585 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
18586 reduction case.
18587
18588 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18589
18590 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
18591 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
18592 inputs.
18593 (__cos): Likewise.
18594 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
18595
18596 2018-04-03 Joseph Myers <joseph@codesourcery.com>
18597
18598 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
18599 version to 4.16
18600
18601 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18602
18603 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
18604 Remove definitions.
18605 (opendir_oflags): Use O_DIRECTORY regardless.
18606 (__opendir, __opendirat): Remove need_isdir_precheck usage.
18607 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
18608
18609 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
18610
18611 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
18612 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
18613 macros.
18614 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
18615 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
18616 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
18617 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
18618 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
18619 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
18620
18621 * htl/Makefile: Bump licence to LGPL 2.1+.
18622 * htl/alloca_cutoff.c: Likewise.
18623 * htl/cthreads-compat.c: Likewise.
18624 * htl/lockfile.c: Likewise.
18625 * htl/pt-alloc.c: Likewise.
18626 * htl/pt-cancel.c: Likewise.
18627 * htl/pt-cleanup.c: Likewise.
18628 * htl/pt-create.c: Likewise.
18629 * htl/pt-dealloc.c: Likewise.
18630 * htl/pt-detach.c: Likewise.
18631 * htl/pt-exit.c: Likewise.
18632 * htl/pt-getattr.c: Likewise.
18633 * htl/pt-initialize.c: Likewise.
18634 * htl/pt-internal.h: Likewise.
18635 * htl/pt-join.c: Likewise.
18636 * htl/pt-self.c: Likewise.
18637 * htl/pt-setcancelstate.c: Likewise.
18638 * htl/pt-setcanceltype.c: Likewise.
18639 * htl/pt-sigmask.c: Likewise.
18640 * htl/pt-spin-inlines.c: Likewise.
18641 * htl/pt-testcancel.c: Likewise.
18642 * htl/pt-yield.c: Likewise.
18643 * htl/tests/test-1.c: Likewise.
18644 * htl/tests/test-10.c: Likewise.
18645 * htl/tests/test-11.c: Likewise.
18646 * htl/tests/test-12.c: Likewise.
18647 * htl/tests/test-13.c: Likewise.
18648 * htl/tests/test-14.c: Likewise.
18649 * htl/tests/test-15.c: Likewise.
18650 * htl/tests/test-16.c: Likewise.
18651 * htl/tests/test-17.c: Likewise.
18652 * htl/tests/test-2.c: Likewise.
18653 * htl/tests/test-3.c: Likewise.
18654 * htl/tests/test-4.c: Likewise.
18655 * htl/tests/test-5.c: Likewise.
18656 * htl/tests/test-6.c: Likewise.
18657 * htl/tests/test-7.c: Likewise.
18658 * htl/tests/test-8.c: Likewise.
18659 * htl/tests/test-9.c: Likewise.
18660 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
18661 * sysdeps/htl/bits/cancelation.h: Likewise.
18662 * sysdeps/htl/bits/pthread-np.h: Likewise.
18663 * sysdeps/htl/bits/pthread.h: Likewise.
18664 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
18665 * sysdeps/htl/bits/semaphore.h: Likewise.
18666 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
18667 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
18668 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
18669 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
18670 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
18671 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
18672 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
18673 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
18674 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
18675 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
18676 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
18677 * sysdeps/htl/old_pt-atfork.c: Likewise.
18678 * sysdeps/htl/pt-atfork.c: Likewise.
18679 * sysdeps/htl/pt-attr-destroy.c: Likewise.
18680 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
18681 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
18682 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
18683 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
18684 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
18685 * sysdeps/htl/pt-attr-getscope.c: Likewise.
18686 * sysdeps/htl/pt-attr-getstack.c: Likewise.
18687 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
18688 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
18689 * sysdeps/htl/pt-attr-init.c: Likewise.
18690 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
18691 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
18692 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
18693 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
18694 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
18695 * sysdeps/htl/pt-attr-setscope.c: Likewise.
18696 * sysdeps/htl/pt-attr-setstack.c: Likewise.
18697 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
18698 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
18699 * sysdeps/htl/pt-attr.c: Likewise.
18700 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
18701 * sysdeps/htl/pt-barrier-init.c: Likewise.
18702 * sysdeps/htl/pt-barrier-wait.c: Likewise.
18703 * sysdeps/htl/pt-barrier.c: Likewise.
18704 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
18705 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
18706 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
18707 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
18708 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
18709 * sysdeps/htl/pt-cond-destroy.c: Likewise.
18710 * sysdeps/htl/pt-cond-init.c: Likewise.
18711 * sysdeps/htl/pt-cond-signal.c: Likewise.
18712 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
18713 * sysdeps/htl/pt-cond-wait.c: Likewise.
18714 * sysdeps/htl/pt-cond.c: Likewise.
18715 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
18716 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
18717 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
18718 * sysdeps/htl/pt-condattr-init.c: Likewise.
18719 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
18720 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
18721 * sysdeps/htl/pt-destroy-specific.c: Likewise.
18722 * sysdeps/htl/pt-equal.c: Likewise.
18723 * sysdeps/htl/pt-getconcurrency.c: Likewise.
18724 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
18725 * sysdeps/htl/pt-getschedparam.c: Likewise.
18726 * sysdeps/htl/pt-getspecific.c: Likewise.
18727 * sysdeps/htl/pt-init-specific.c: Likewise.
18728 * sysdeps/htl/pt-key-create.c: Likewise.
18729 * sysdeps/htl/pt-key-delete.c: Likewise.
18730 * sysdeps/htl/pt-key.h: Likewise.
18731 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
18732 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
18733 * sysdeps/htl/pt-mutex-init.c: Likewise.
18734 * sysdeps/htl/pt-mutex-lock.c: Likewise.
18735 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
18736 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
18737 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
18738 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
18739 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
18740 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
18741 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
18742 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
18743 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
18744 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
18745 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
18746 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
18747 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
18748 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
18749 * sysdeps/htl/pt-mutexattr.c: Likewise.
18750 * sysdeps/htl/pt-once.c: Likewise.
18751 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
18752 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
18753 * sysdeps/htl/pt-rwlock-init.c: Likewise.
18754 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
18755 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
18756 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
18757 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
18758 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
18759 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
18760 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
18761 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
18762 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
18763 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
18764 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
18765 * sysdeps/htl/pt-setconcurrency.c: Likewise.
18766 * sysdeps/htl/pt-setschedparam.c: Likewise.
18767 * sysdeps/htl/pt-setschedprio.c: Likewise.
18768 * sysdeps/htl/pt-setspecific.c: Likewise.
18769 * sysdeps/htl/pt-spin.c: Likewise.
18770 * sysdeps/htl/pt-startup.c: Likewise.
18771 * sysdeps/htl/pthread.h: Likewise.
18772 * sysdeps/htl/sem-close.c: Likewise.
18773 * sysdeps/htl/sem-destroy.c: Likewise.
18774 * sysdeps/htl/sem-getvalue.c: Likewise.
18775 * sysdeps/htl/sem-init.c: Likewise.
18776 * sysdeps/htl/sem-open.c: Likewise.
18777 * sysdeps/htl/sem-post.c: Likewise.
18778 * sysdeps/htl/sem-timedwait.c: Likewise.
18779 * sysdeps/htl/sem-trywait.c: Likewise.
18780 * sysdeps/htl/sem-unlink.c: Likewise.
18781 * sysdeps/htl/sem-wait.c: Likewise.
18782 * sysdeps/hurd/htl/pt-kill.c: Likewise.
18783 * sysdeps/i386/htl/pt-machdep.h: Likewise.
18784 * sysdeps/mach/htl/pt-block.c: Likewise.
18785 * sysdeps/mach/htl/pt-spin.c: Likewise.
18786 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
18787 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
18788 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
18789 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
18790 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
18791 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
18792 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
18793 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
18794 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
18795 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
18796 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
18797 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
18798 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
18799 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
18800 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
18801 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
18802 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
18803 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
18804 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
18805 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
18806 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
18807 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
18808 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
18809 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
18810 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
18811 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
18812 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
18813 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
18814 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
18815 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
18816 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
18817 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
18818 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
18819 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
18820 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
18821 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
18822 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
18823 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
18824 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
18825 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
18826 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
18827 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
18828 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
18829
18830 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
18831 * README: Remove the mention of out-of-tree patches needed for
18832 GNU/Hurd.
18833
18834 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
18835 (UTIME_NOW, UTIME_OMIT): Define macros.
18836
18837 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
18838 instead of pthread_detach.
18839 (__cthread_fork): Call __pthread_create instead of pthread_create.
18840 (__cthread_keycreate): Call __pthread_key_create instead of
18841 pthread_key_create.
18842 (__cthread_getspecific): Call __pthread_getspecific instead of
18843 pthread_getspecific.
18844 (__cthread_setspecific): Call __pthread_setspecific instead of
18845 pthread_setspecific.
18846 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
18847 __pthread_mutex_unlock instead of pthread_mutex_lock and
18848 pthread_mutex_unlock.
18849 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
18850 ___pthread_get_cleanup_stack.
18851 (__pthread_get_cleanup_stack): New strong alias.
18852 * htl/pt-create.c: Include <pthreadP.h>.
18853 (entry_point): Call __pthread_exit instead of pthread_exit.
18854 (pthread_create): Rename to __pthread_create.
18855 (pthread_create): New strong alias.
18856 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
18857 (pthread_detach): New strong alias.
18858 (__pthread_detach): Call __pthread_cond_broadcast instead of
18859 pthread_cond_broadcast.
18860 * htl/pt-exit.c: Include <pthreadP.h>.
18861 (__pthread_exit): Call __pthread_setcancelstate and
18862 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
18863 __pthread_get_cleanup_stack.
18864 * htl/pt-testcancel.c: Include <pthreadP.h>.
18865 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
18866 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
18867 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
18868 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
18869 pthread_attr_getstacksize.
18870 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
18871 Rename to __pthread_attr_getstackaddr.
18872 (pthread_attr_getstackaddr): New strong alias.
18873 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
18874 Rename to __pthread_attr_getstacksize.
18875 (pthread_attr_getstacksize): New strong alias.
18876 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
18877 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
18878 (pthread_attr_setstack): New strong alias.
18879 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
18880 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
18881 pthread_attr_getstacksize, pthread_attr_setstacksize and
18882 pthread_attr_setstackaddr.
18883 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
18884 Rename to __pthread_attr_setstackaddr.
18885 (pthread_attr_setstackaddr): New strong alias.
18886 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
18887 Rename to __pthread_attr_setstacksize.
18888 (pthread_attr_setstacksize): New strong alias.
18889 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
18890 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
18891 pthread_exit.
18892 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
18893 (__pthread_key_create): New hidden def.
18894 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
18895 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
18896 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
18897 __pthread_exit, __pthread_key_create, __pthread_getspecific,
18898 __pthread_setspecific, __pthread_setcancelstate,
18899 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
18900 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
18901 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
18902 declarations.
18903 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
18904 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
18905 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
18906 (pthread_attr_setstackaddr): New strong alias.
18907 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
18908 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
18909 (pthread_attr_setstacksize): New strong alias.
18910 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
18911 (call_exit): Call __pthread_exit instead of pthread_exit.
18912 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
18913 (_pthread_mutex_init): New hidden definition.
18914 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
18915 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
18916 instead of pthread_attr_init and pthread_attr_setstack.
18917
18918 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
18919 __vm_deallocate instead of vm_allocate and vm_deallocate.
18920 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
18921 setenv.
18922 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
18923 of geteuid.
18924 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
18925 strdup.
18926 * hurd/siginfo.c: Include <libioP.h>.
18927 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
18928 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
18929 munmap.
18930 * mach/devstream.c: Include <libioP.h>.
18931 (dealloc_ref): Call __mach_port_deallocate instead of
18932 mach_port_deallocate.
18933 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
18934 Call __mach_port_deallocate instead of mach_port_deallocate.
18935 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
18936 pathconf.
18937 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
18938 munmap.
18939 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
18940 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
18941 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
18942 of munmap.
18943 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
18944 of close.
18945 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
18946 instead of sysconf.
18947 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
18948 __clock_gettime instead of clock_gettime.
18949 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
18950 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
18951 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
18952 * sysdeps/unix/bsd/stty.c (stty): Likewise.
18953 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
18954 tcgetattr.
18955 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
18956 __clock_gettime and __nanosleep instead of clock_gettime and
18957 nanosleep.
18958 * hurd/catch-signal.c (hurd_catch_signal): Rename to
18959 __hurd_catch_signal.
18960 (hurd_catch_signal): New strong alias.
18961 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
18962 __hurd_catch_signal instead of hurd_catch_signal.
18963 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
18964 * hurd/hurdexec.c (_hurd_init): Add hidden def.
18965 * hurd/hurdinit.c (_hurd_init): Add hidden def.
18966 * hurd/hurdsig.c: Include <mach/mig_support.h>.
18967 (_hurd_thread_sigstate): Add hidden def.
18968 (_hurd_internal_post_signal): Use __mutex_unlock instead of
18969 mutex_unlock.
18970 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
18971 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
18972 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
18973 __hurd_file_name_path_lookup.
18974 (hurd_file_name_path_lookup): New strong alias.
18975 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
18976 hurd_file_name_path_lookup.
18977 * mach/errstring.c (mach_error_type): Add hidden def.
18978 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
18979 * mach/mutex-init.c (__mutex_init): Add hidden def.
18980 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
18981 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
18982 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
18983 * sysdeps/mach/hurd/getcwd.c
18984 (_hurd_canonicalize_directory_name_internal): Rename to
18985 __hurd_canonicalize_directory_name_internal.
18986 (_hurd_canonicalize_directory_name_internal): New strong alias.
18987 (__canonicalize_directory_name_internal, __getcwd): Call
18988 __hurd_canonicalize_directory_name_internal instead of
18989 _hurd_canonicalize_directory_name_internal.
18990 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
18991 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
18992 hidden defs.
18993 * sysdeps/hurd/include/hurd.h: New file.
18994 * sysdeps/hurd/include/hurd/fd.h: New file.
18995 * sysdeps/hurd/include/hurd/signal.h: New file.
18996 * sysdeps/mach/include/lock-intern.h: New file.
18997 * sysdeps/mach/include/mach.h: New file.
18998 * sysdeps/mach/include/mach/mig_support.h: New file.
18999 * sysdeps/mach/include/mach_error.h: New file.
19000 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
19001 prototype.
19002 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
19003 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
19004 _HEADER_H_HIDDEN_DEF macro.
19005 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
19006 _hurd_fd_error_signal): Add hidden prototype.
19007 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
19008 hidden def.
19009 * libio/iolibio.h (_IO_puts): New hidden prototype.
19010 * libio/ioputs.c (_IO_puts): New hidden def.
19011 * sysdeps/mach/hurd/localplt.data: New file.
19012
19013 2018-04-02 Agustina Arzille <avarzille@riseup.net>
19014 Amos Jeffries <squid3@treenet.co.nz>
19015 David Michael <fedora.dm0@gmail.com>
19016 Marco Gerards <marco@gnu.org>
19017 Marcus Brinkmann <marcus@gnu.org>
19018 Neal H. Walfield <neal@gnu.org>
19019 Pino Toscano <toscano.pino@tiscali.it>
19020 Richard Braun <rbraun@sceen.net>
19021 Roland McGrath <roland@gnu.org>
19022 Samuel Thibault <samuel.thibault@ens-lyon.org>
19023 Thomas DiModica <ricinwich@yahoo.com>
19024 Thomas Schwinge <tschwinge@gnu.org>
19025
19026 * htl: New directory.
19027 * sysdeps/htl: New directory.
19028 * sysdeps/hurd/htl: New directory.
19029 * sysdeps/i386/htl: New directory.
19030 * sysdeps/mach/htl: New directory.
19031 * sysdeps/mach/hurd/htl: New directory.
19032 * sysdeps/mach/hurd/i386/htl: New directory.
19033 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
19034 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
19035 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
19036
19037 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
19038
19039 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
19040 signals in thread created for runing timers.
19041
19042 2018-04-01 Florian Weimer <fweimer@redhat.com>
19043
19044 * support/support_format_addrinfo.c (support_format_addrinfo):
19045 Include unknown error number in formatted result.
19046
19047 2018-03-29 Florian Weimer <fweimer@redhat.com>
19048
19049 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
19050 capture SIGBUS.
19051
19052 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19053
19054 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
19055 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
19056 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
19057 (__ASSUME_CLONE_BACKWARDS): Define.
19058
19059 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
19060
19061 [BZ #23024]
19062 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
19063 early when linux sentinel value is set.
19064
19065 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
19066
19067 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
19068
19069 2018-03-27 Andreas Schwab <schwab@suse.de>
19070
19071 [BZ #23005]
19072 * resolv/res_send.c (__res_context_send): Return ENOMEM if
19073 allocation of private copy of nsaddr_list fails.
19074
19075 2018-03-26 Joseph Myers <joseph@codesourcery.com>
19076
19077 [BZ #16552]
19078 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
19079 * sysdeps/unix/sysv/linux/umount.c: ... here.
19080 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
19081 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
19082 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
19083 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
19084 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
19085 * sysdeps/unix/sysv/linux/umount.S: Likewise.
19086 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
19087
19088 2018-03-26 Andreas Schwab <schwab@suse.de>
19089
19090 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
19091 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
19092 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
19093 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
19094 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
19095 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
19096 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
19097 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
19098 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
19099 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
19100 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
19101 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
19102 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
19103 (R_RISCV_NUM): Define.
19104
19105 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
19106
19107 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
19108 TLS declaration of errno.
19109 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
19110 __libc_setup_tls.
19111 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
19112 (ARCH_SETUP_TLS): Likewise.
19113 * sysdeps/mach/hurd/libc-start.h: New file copied from
19114 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
19115 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
19116 instead of __libc_setup_tls.
19117 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
19118 __libc_setup_tls before initializing libpthread and running _hurd_init
19119 which starts the signal thread.
19120 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
19121 Declare function.
19122 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
19123
19124 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
19125
19126 [BZ #22998]
19127 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
19128 after it is defined.
19129
19130 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
19131 Max Horn <max@quendi.de>
19132
19133 [BZ #22644]
19134 CVE-2017-18269
19135 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
19136 branch conditions.
19137 * string/test-memmove.c (do_test2): New testcase.
19138
19139 2018-03-22 Joseph Myers <joseph@codesourcery.com>
19140
19141 * sysdeps/generic/frame.h: Remove file.
19142 * sysdeps/arm/frame.h: Likewise.
19143 * sysdeps/hppa/frame.h: Likewise.
19144 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
19145 macro.
19146 (GET_FRAME): Likewise.
19147 (GET_STACK): Likewise.
19148 (CALL_SIGHANDLER): Likewise.
19149 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
19150 Likewise.
19151 (GET_FRAME): Likewise.
19152 (GET_STACK): Likewise.
19153 (CALL_SIGHANDLER): Likewise.
19154 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
19155 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19156 (GET_FRAME): Likewise.
19157 (GET_STACK): Likewise.
19158 (CALL_SIGHANDLER): Likewise.
19159 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
19160 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19161 (GET_FRAME): Likewise.
19162 (GET_STACK): Likewise.
19163 (ADVANCE_STACK_FRAME): Likewise.
19164 (CALL_SIGHANDLER): Likewise.
19165 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
19166 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19167 (GET_FRAME): Likewise.
19168 (GET_STACK): Likewise.
19169 (CALL_SIGHANDLER): Likewise.
19170 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
19171 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19172 (GET_FRAME): Likewise.
19173 (GET_STACK): Likewise.
19174 (CALL_SIGHANDLER): Likewise.
19175 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
19176 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19177 (GET_FRAME): Likewise.
19178 (GET_STACK): Likewise.
19179 (CALL_SIGHANDLER): Likewise.
19180 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
19181 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19182 (GET_FRAME): Likewise.
19183 (GET_STACK): Likewise.
19184 (CALL_SIGHANDLER): Likewise.
19185 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
19186 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19187 (GET_FRAME): Likewise.
19188 (GET_STACK): Likewise.
19189 (CALL_SIGHANDLER): Likewise.
19190 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
19191 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19192 (GET_FRAME): Likewise.
19193 (GET_STACK): Likewise.
19194 (CALL_SIGHANDLER): Likewise.
19195 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
19196 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19197 (GET_FRAME): Likewise.
19198 (GET_STACK): Likewise.
19199 (CALL_SIGHANDLER): Likewise.
19200 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
19201 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19202 (GET_FRAME): Likewise.
19203 (GET_STACK): Likewise.
19204 (CALL_SIGHANDLER): Likewise.
19205 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
19206 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19207 (GET_FRAME): Likewise.
19208 (GET_STACK): Likewise.
19209 (CALL_SIGHANDLER): Likewise.
19210 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
19211 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19212 (FIRST_FRAME_POINTER): Likewise.
19213 (ADVANCE_STACK_FRAME): Likewise.
19214 (GET_STACK): Likewise.
19215 (GET_FRAME): Likewise.
19216 (CALL_SIGHANDLER): Likewise.
19217 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
19218 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19219 (ADVANCE_STACK_FRAME): Likewise.
19220 (GET_STACK): Likewise.
19221 (GET_FRAME): Likewise.
19222 (CALL_SIGHANDLER): Likewise.
19223 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
19224 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19225 (GET_FRAME): Likewise.
19226 (GET_STACK): Likewise.
19227 (CALL_SIGHANDLER): Likewise.
19228 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
19229 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19230 (GET_FRAME): Likewise.
19231 (GET_STACK): Likewise.
19232 (CALL_SIGHANDLER): Likewise.
19233
19234 2018-03-21 Joseph Myers <joseph@codesourcery.com>
19235
19236 * sysdeps/x86_64/backtrace.c: Move to ....
19237 * debug/backtrace.c: ... here.
19238 * sysdeps/aarch64/backtrace.c: Remove file.
19239 * sysdeps/alpha/backtrace.c: Likewise.
19240 * sysdeps/hppa/backtrace.c: Likewise.
19241 * sysdeps/ia64/backtrace.c: Likewise.
19242 * sysdeps/mips/backtrace.c: Likewise.
19243 * sysdeps/nios2/backtrace.c: Likewise.
19244 * sysdeps/riscv/backtrace.c: Likewise.
19245 * sysdeps/sh/backtrace.c: Likewise.
19246 * sysdeps/tile/backtrace.c: Likewise.
19247
19248 2018-03-20 Joseph Myers <joseph@codesourcery.com>
19249
19250 [BZ #22987]
19251 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
19252 function.
19253 (fdimf): Likewise.
19254 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
19255
19256 [BZ #17343]
19257 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
19258 possibly overflowing computations.
19259
19260 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
19261
19262 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
19263 values from Linux-specific section now that it is in the GNU section.
19264 * sysdeps/gnu/errlist.c: Regenerate.
19265
19266 2018-03-20 Joseph Myers <joseph@codesourcery.com>
19267
19268 * math/Makefile (libm-narrow-fns): Add sub.
19269 (libm-test-funcs-narrow): Likewise.
19270 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
19271 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
19272 * math/gen-auto-libm-tests.c (test_functions): Add sub.
19273 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
19274 (NARROW_SUB_ROUND_TO_ODD): Likewise.
19275 (NARROW_SUB_TRIVIAL): Likewise.
19276 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
19277 macro.
19278 (__dsubl): Likewise.
19279 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
19280 dsub.
19281 (CFLAGS-nldbl-dsub.c): New variable.
19282 (CFLAGS-nldbl-fsub.c): Likewise.
19283 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
19284 __nldbl_dsubl.
19285 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
19286 prototype.
19287 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
19288 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
19289 * math/auto-libm-test-in: Add tests of sub.
19290 * math/auto-libm-test-out-narrow-sub: New generated file.
19291 * math/libm-test-narrow-sub.inc: New file.
19292 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
19293 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
19294 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
19295 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
19296 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
19297 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
19298 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
19299 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
19300 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
19301 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
19302 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
19303 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
19304 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
19305 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
19306 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
19307 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
19308 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
19309 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
19310 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19311 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
19312 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19313 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19314 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19315 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19316 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19317 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19318 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19319 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19320 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19321 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19322 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19323 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19324 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
19325 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
19326 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
19327 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
19328 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
19329 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19330 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19331 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19332 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19333 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19334 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
19335 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
19336 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19337 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19338
19339 2018-03-19 Joseph Myers <joseph@codesourcery.com>
19340
19341 [BZ #20079]
19342 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
19343
19344 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
19345
19346 * benchtests/bench-timing.h (attribute_hidden): Undefine.
19347
19348 2018-03-18 Richard Braun <rbraun@sceen.net>
19349
19350 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
19351 thread reference.
19352
19353 2018-03-18 Agustina Arzille <avarzille@riseup.net>
19354
19355 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
19356 (__libc_cleanup_fct): Define function.
19357 (__libc_cleanup_region_start, __libc_cleanup_region_end,
19358 __libc_cleanup_end): Rewrite implementation using
19359 __attribute__ ((__cleanup__)).
19360 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
19361 * hurd/Makefile (routines): Add hurdlock.
19362 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
19363 interface.
19364 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
19365 * hurd/hurdpid.c: Include <lowlevellock.h>
19366 (_S_msg_proc_newids): Use lll_wait to synchronize.
19367 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
19368 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
19369 * mach/Makefile (lock-headers): Remove machine-lock.h.
19370 * mach/lock-intern.h: Include <lowlevellock.h> instead of
19371 <machine-lock.h>.
19372 (__spin_lock_t): New type.
19373 (__SPIN_LOCK_INITIALIZER): New macro.
19374 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
19375 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
19376 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
19377 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
19378 (__mutex_init): Initialize with lll.
19379 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
19380 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
19381 needing lll.
19382 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
19383 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
19384 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
19385 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
19386 (__setpgid): Use lll for synchronization.
19387 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
19388 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
19389 instead of <cthreads.h>.
19390 (_IO_lock_inexpensive): New macro
19391 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
19392 (__libc_lock_self0): New declaration.
19393 (__libc_lock_owner_self): New macro.
19394 (__libc_key_t): Remove type.
19395 (_LIBC_LOCK_INITIALIZER): New macro.
19396 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
19397 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
19398 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
19399 __libc_lock_define_initialized_recursive,
19400 __rtld_lock_define_initialized_recursive,
19401 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
19402 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
19403 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
19404 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
19405 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
19406 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
19407 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
19408 New macros.
19409 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
19410 * hurd/hurdlock.c: New file.
19411 * hurd/hurdlock.h: New file.
19412 * mach/lowlevellock.h: New file
19413
19414 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
19415
19416 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
19417 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
19418 when opening a symlink with O_NOFOLLOW.
19419 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
19420 path when flags contains O_NOFOLLOW.
19421 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
19422 if flags contains O_DIRECTORY and the result is a directory.
19423 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
19424 oneself when the pointer given in D is nul (as set by ext2fs).
19425 * sysdeps/mach/hurd/mlockall.c: New file.
19426 * sysdeps/mach/hurd/munlockall.c: New file.
19427
19428 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
19429
19430 * hurd/hurdsig.c: Include <pthread.h>.
19431 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
19432 get the signal thread stack layout.
19433 * hurd/Makefile (headers): Remove threadvar.h.
19434 (inline-headers): Remove threadvar.h.
19435 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
19436 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
19437 __hurd_threadvar_max, __hurd_errno_location.
19438 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
19439 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
19440 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
19441 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
19442 unless TLS is not initialized yet, in which case we do not need a
19443 critical section yet anyway.
19444 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
19445 <machine-sp.h>.
19446 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
19447 declarations.
19448 (__hurd_threadvar_index): Remove enum.
19449 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
19450 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
19451 inlines.
19452 (__hurd_reply_port0): New variable declaration.
19453 (__hurd_local_reply_port): New macro.
19454 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
19455 (interrupted_reply_port_location): Add thread_t parameter. Use it
19456 with THREAD_TCB to access thread-local variables.
19457 (_hurdsig_abort_rpcs): Pass ss->thread to
19458 interrupted_reply_port_location.
19459 (_hurd_internal_post_signal): Likewise.
19460 (_hurdsig_init): Use presence of cthread_fork instead of
19461 __hurd_threadvar_stack_mask to start signal thread by hand.
19462 Remove signal thread threadvar initialization.
19463 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
19464 * hurd/sigunwind.c: Include <hurd/threadvar.h>
19465 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
19466 of threadvar.
19467 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
19468 __libc_lock_self0.
19469 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
19470 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
19471 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
19472 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
19473 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
19474 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
19475 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
19476 define variables.
19477 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
19478 <hurd/threadvar.h>.
19479 [IS_IN(rtld)] (rtld_errno): New variable.
19480 [IS_IN(rtld)] (__errno_location): New weak function.
19481 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
19482 * sysdeps/mach/hurd/errno.c: Remove file.
19483 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
19484 (__fork): Remove THREADVAR_SPACE macro and its use.
19485 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
19486 variable.
19487 (init): Do not initialize threadvar.
19488 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
19489 symbol.
19490 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
19491 __hurd_local_reply_port instead of threadvar.
19492 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
19493 _hurd_sigstate fields.
19494 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
19495 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
19496 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
19497 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
19498 instead of threadvar.
19499 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
19500 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
19501 (use_threadvar, global_reply_port): Remove variables.
19502 (__hurd_reply_port0): New variable.
19503 (__mig_get_reply_port): Use __hurd_local_reply_port and
19504 __hurd_reply_port0 instead of threadvar.
19505 (__mig_dealloc_reply_port): Likewise.
19506 (__mig_init): Do not initialize threadvar.
19507 * sysdeps/mach/hurd/profil.c: Fix comment.
19508 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
19509 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
19510 cthread_keycreate, cthread_getspecific, cthread_setspecific to
19511 __cthread_fork, __cthread_detach, __pthread_getattr_np,
19512 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
19513 __cthread_setspecific.
19514 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
19515 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
19516 __cthread_t instead of cthread_fork, cthread_detach,
19517 pthread_getattr_np, pthread_attr_getstack.
19518 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
19519 __cthread_keycreate.
19520 (cthread_getspecific): Rename to __cthread_getspecific.
19521 (cthread_setspecific): Rename to __cthread_setspecific.
19522 (__libc_getspecific): Use __cthread_getspecific instead of
19523 cthread_getspecific.
19524 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
19525 __cthread_keycreate instead of cthread_keycreate.
19526 (__libc_setspecific): Use __cthread_setspecific instead of
19527 cthread_setspecific.
19528 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
19529 Likewise.
19530 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
19531 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
19532 testing whether it is defined.
19533
19534 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
19535
19536 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
19537 Define macro.
19538 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
19539 * sysdeps/mach/i386/thread_state.h
19540 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
19541 i386_THREAD_STATE.
19542 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
19543 i386_THREAD_STATE.
19544 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
19545
19546 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
19547 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
19548
19549 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
19550 macros.
19551 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
19552 descriptor instead of creating a new one.
19553 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
19554
19555 * mach/setup-thread.c: Include <ldsodefs.h>.
19556 (__mach_setup_thread): Call _dl_allocate_tls, pass
19557 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
19558 MACHINE_THREAD_STATE_FLAVOR, before getting
19559 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
19560 MACHINE_THREAD_STATE_FLAVOR with the result.
19561 * hurd/hurdfault.c (_hurdsig_fault_init): Call
19562 MACHINE_THREAD_STATE_FIX_NEW.
19563 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
19564 too. Add original thread parameter.
19565
19566 2018-03-16 Joseph Myers <joseph@codesourcery.com>
19567
19568 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
19569 Remove inline function.
19570
19571 * sysdeps/i386/fpu/libm-test-ulps: Update.
19572 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19573
19574 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
19575
19576 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
19577 commit.
19578
19579 2018-03-15 Joseph Myers <joseph@codesourcery.com>
19580
19581 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
19582 (__sincos_code): Remove define and undefine.
19583 [__FAST_MATH__] (__sincos): Remove inline function.
19584 [__FAST_MATH__] (__sincosf): Remove inline function.
19585 [__FAST_MATH__] (__sincosl): Remove inline function.
19586 (__atan2l): Remove inline functions.
19587 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
19588 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
19589 function.
19590 (floor): Remove inline function.
19591 (ceil): Likewise.
19592 [__FAST_MATH__] (__ldexp_code): Remove macro.
19593 [__FAST_MATH__] (ldexp): Remove inline function.
19594 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
19595 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
19596 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
19597 [__USE_ISOC99] (__lrint_code): Remove macro.
19598 [__USE_ISOC99] (__llrint_code): Likewise.
19599 [__USE_ISOC99] (lrintf): Remove inline function.
19600 [__USE_ISOC99] (lrint): Likewise.
19601 [__USE_ISOC99] (lrintl): Likewise.
19602 [__USE_ISOC99] (llrint): Likewise.
19603 [__USE_ISOC99] (llrintf): Likewise.
19604 [__USE_ISOC99] (llrintl): Likewise.
19605
19606 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
19607
19608 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
19609 (__ieee754_sqrtf): Remove.
19610 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
19611 (__ieee754_sqrtf): Remove.
19612 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
19613 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
19614 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
19615 (__ieee754_sqrtf): Remove.
19616 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
19617 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
19618 (sqrtf): Remove.
19619 (sqrtl): Remove.
19620 (__ieee754_sqrt): Remove.
19621 (__ieee754_sqrtf): Remove.
19622 (__ieee754_sqrtl): Remove.
19623 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
19624 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
19625 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
19626 (__ieee754_sqrtf): Remove.
19627 (__ieee754_sqrtl): Remove.
19628
19629 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
19630
19631 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
19632 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
19633 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
19634 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
19635 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
19636 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
19637 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
19638 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
19639 Likewise.
19640 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
19641 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
19642 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
19643 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
19644 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
19645 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
19646 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
19647 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
19648 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
19649 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
19650 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
19651 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
19652 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
19653 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
19654 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
19655 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
19656 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
19657 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
19658 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
19659 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
19660 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
19661 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
19662 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
19663 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
19664 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
19665 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
19666 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
19667 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
19668 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
19669 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
19670 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
19671 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
19672 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
19673 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
19674 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
19675 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
19676 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
19677 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
19678 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
19679 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
19680
19681 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
19682
19683 * include/math.h (sqrt): Declare with asm redirect.
19684 (sqrtf): Likewise.
19685 (sqrtl): Likewise.
19686 (sqrtf128): Likewise.
19687 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
19688 nonlib and libnldbl with -fmath-errno.
19689 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
19690 * math/w_sqrt_template.c: Likewise.
19691 * math/w_sqrtf_compat.c: Likewise.
19692 * math/w_sqrtl_compat.c: Likewise.
19693 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
19694 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
19695 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
19696 complex.h.
19697
19698 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
19699
19700 * benchtests/Makefile: Define _ISOMAC.
19701 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
19702 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
19703 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
19704 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
19705 * benchtests/bench-timing.h: Define attribute_hidden.
19706
19707 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
19708
19709 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
19710 mov + lsr.
19711
19712 2018-03-15 Rafał Lużyński <digitalfreak@lingonborough.com>
19713
19714 [BZ #22963]
19715 * localedata/locales/cs_CZ (mon): Rename to...
19716 (alt_mon): This.
19717 (mon): Import from CLDR (genitive case).
19718
19719 2018-03-15 Rafał Lużyński <digitalfreak@lingonborough.com>
19720
19721 [BZ #22937]
19722 * localedata/locales/el_CY (abmon): Rename to...
19723 (ab_alt_mon): This.
19724 (abmon): Import from CLDR (abbreviated genitive case).
19725 * localedata/locales/el_GR (abmon): Rename to...
19726 (ab_alt_mon): This.
19727 (abmon): Import from CLDR (abbreviated genitive case).
19728
19729 2018-03-15 Rafał Lużyński <digitalfreak@lingonborough.com>
19730
19731 [BZ #22932]
19732 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
19733
19734 2018-03-15 Robert Buj <robert.buj@gmail.com>
19735
19736 [BZ #22848]
19737 * localedata/locales/ca_ES (abmon): Rename to...
19738 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
19739 (mon): Rename to...
19740 (alt_mon): This.
19741 (abmon): Import from CLDR (genitive case, month names preceded by
19742 "de" or "d’").
19743 (mon): Likewise.
19744 (abday): Synchronize with CLDR.
19745 (d_t_fmt): Likewise.
19746 (d_fmt): Likewise.
19747 (am_pm): Likewise.
19748
19749 (LC_TIME): Improve indentation.
19750 (LC_TELEPHONE): Likewise.
19751 (LC_NAME): Likewise.
19752 (LC_ADDRESS): Likewise.
19753
19754 2018-03-14 Joseph Myers <joseph@codesourcery.com>
19755
19756 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
19757 (lrintf): Remove definitions used only with old GCC.
19758 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
19759 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
19760 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
19761 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
19762 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
19763 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
19764 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
19765 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
19766 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
19767 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
19768 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
19769 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
19770 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
19771 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
19772 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
19773 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
19774 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
19775 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
19776 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
19777 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
19778 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
19779 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
19780 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
19781 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
19782 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
19783 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
19784 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
19785 [__FAST_MATH__] (__M_SQRT2): Remove macro.
19786
19787 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
19788
19789 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
19790 instruction to unbreak builds with binutils 2.26 and older.
19791
19792 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
19793
19794 * sysdeps/aarch64/strncmp.S (count): New macro.
19795 (strncmp): Store misaligned length in SRC1 in COUNT.
19796 (mutual_align): Adjust.
19797 (misaligned8): Load dword at a time when it is safe.
19798
19799 2018-03-12 Zack Weinberg <zackw@panix.com>
19800
19801 [BZ #1190]
19802 [BZ #19476]
19803 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
19804 if the _IO_EOF_SEEN bit is already set; update commentary.
19805 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
19806 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
19807
19808 * support/support_openpty.c, support/tty.h: New files.
19809 * support/Makefile (libsupport-routines): Add support_openpty.
19810
19811 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
19812 New test cases.
19813 * libio/Makefile (tests): Add tst-fgetc-after-eof.
19814 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
19815
19816 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
19817
19818 * po/pt_BR.po: Update translations.
19819
19820 2018-03-12 David Michael <fedora.dm0@gmail.com>
19821
19822 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
19823 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
19824 get a port to the startup server.
19825
19826 2018-03-11 Zack Weinberg <zackw@panix.com>
19827
19828 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
19829 before nldbl-compat.h.
19830
19831 2018-03-10 Zack Weinberg <zackw@panix.com>
19832
19833 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
19834 math.h or math_private.h.
19835
19836 * sysdeps/alpha/fpu/s_isnan.c
19837 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
19838 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
19839 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
19840 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
19841 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
19842 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
19843 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
19844 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
19845 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
19846 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
19847 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
19848 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
19849 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
19850 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
19851 Include math_private.h.
19852
19853 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
19854 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
19855 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
19856 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
19857 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
19858 * sysdeps/powerpc/power7/fpu/s_logb.c:
19859 Include math.h and math_private.h.
19860
19861 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
19862 uses of $at in .set noat / .set at.
19863
19864 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
19865
19866 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
19867 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
19868 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
19869 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
19870 Likewise.
19871
19872 2018-03-09 Florian Weimer <fweimer@redhat.com>
19873
19874 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
19875 in comment.
19876
19877 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
19878
19879 [BZ #22919]
19880 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
19881 Add nop before __startcontext, add explaining comments.
19882
19883 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19884
19885 [BZ #22926]
19886 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
19887 empty for __SPE__.
19888 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
19889 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
19890 Do not build hardware transactional code for __SPE__.
19891 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
19892 (__lll_trylock_elision): Likewise.
19893 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
19894 (__lll_unlock_elision): Likewise.
19895
19896 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
19897 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
19898 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
19899 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
19900 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
19901 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
19902 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
19903 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
19904 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
19905 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
19906 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
19907 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
19908 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
19909 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
19910 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
19911 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
19912 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
19913 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
19914 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
19915 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
19916 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
19917 * sysdeps/unix/sysv/linux/arm/kernel-features.h
19918 (__ASSUME_CLONE_BACKWARDS): Define.
19919 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
19920 __clone2 if __NR_clone2 is defined.
19921 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
19922 (__ASSUME_CLONE_BACKWARDS): Likewise.
19923 * sysdeps/unix/sysv/linux/i386/kernel-features.h
19924 (__ASSUME_CLONE_BACKWARDS): Likewise.
19925 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
19926 (__ASSUME_CLONE2): Likewise.
19927 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
19928 (__ASSUME_CLONE_BACKWARDS3): Likewise.
19929 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
19930 variants and the define architecture can use.
19931 (__ASSUME_CLONE_DEFAULT): Define as default.
19932 * sysdeps/unix/sysv/linux/mips/kernel-features.h
19933 (__ASSUME_CLONE_BACKWARDS): Likewise.
19934 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
19935 (__ASSUME_CLONE_BACKWARDS): Likewise.
19936 * sysdeps/unix/sysv/linux/s390/kernel-features.h
19937 (__ASSUME_CLONE_BACKWARDS2): Likewise.
19938
19939 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
19940
19941 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
19942
19943 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
19944 time.
19945
19946 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
19947 (do_test_limit): Likewise.
19948
19949 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
19950 for every implementation.
19951 (do_test): Likewise.
19952
19953 * benchtests/bench-strncmp.c: Convert output to json.
19954
19955 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
19956
19957 * io/futimens.c: Add missing start-of-file descriptive comment.
19958 * io/utime.c: Likewise.
19959 * misc/futimesat.c: Likewise.
19960 * misc/utimes.c: Likewise.
19961 * sysdeps/mach/hurd/futimesat.c: Likewise.
19962 * sysdeps/mach/hurd/utimes.c: Likewise.
19963 * sysdeps/posix/utime.c: Likewise.
19964 * sysdeps/posix/utimes.c: Likewise.
19965 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
19966 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
19967 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
19968 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
19969
19970 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
19971
19972 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
19973 hurd_futimes.
19974 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
19975 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
19976 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
19977 (__futimens): Move implementation to...
19978 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
19979 utime_tvalue_from_tspec): ... new helper functions.
19980 (hurd_futimens): New function.
19981 * sysdeps/mach/hurd/futimesat.c: New file.
19982 * sysdeps/mach/hurd/utimensat.c: New file.
19983
19984 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
19985
19986 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
19987 UTIME_OMIT): New macros.
19988 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
19989 before reverting to converting time spec to time value and calling
19990 __file_utimes.
19991 * sysdeps/mach/hurd/utime-helper.c: New file.
19992 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
19993 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
19994 reverting to utime_tvalue_from_tval and __file_utimes.
19995 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
19996 (__lutimes): Just call hurd_futimens after lookup.
19997 * sysdeps/mach/hurd/utimes.c: Likewise.
19998
19999 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
20000
20001 * bits/sigaction.h: Add include guard.
20002 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
20003 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
20004 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
20005 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
20006 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
20007 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
20008 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
20009 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
20010 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
20011
20012 2018-03-05 Joseph Myers <joseph@codesourcery.com>
20013
20014 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
20015 -Wmaybe-uninitialized for -Os.
20016 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
20017 this disabling.
20018
20019 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20020
20021 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
20022 __INO_T_MATCHES_INO64_T is defined.
20023 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
20024 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
20025 of definition.
20026 * dirent/alphasort64.c: Likewise.
20027 * dirent/scandir.c: Likewise.
20028 * dirent/scandir64-tail.c: Likewise.
20029 * dirent/scandir64.c: Likewise.
20030 * dirent/scandirat.c: Likewise.
20031 * dirent/scandirat64.c: Likewise.
20032 * dirent/versionsort.c: Likewise.
20033 * dirent/versionsort64.c: Likewise.
20034 * include/dirent.h: Likewise.
20035
20036 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
20037 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
20038 for socketpair endpoint.
20039 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
20040 WRITE_BUFFER_SIZE as buffer size for sending socket.
20041 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
20042 issue on system where send is implemented with sendto syscall.
20043 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
20044 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
20045 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
20046 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
20047
20048 [BZ #21269]
20049 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
20050 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
20051 sa_restorer for vDSO case.
20052 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
20053
20054 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
20055
20056 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
20057 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
20058 * hurd/hurd/ioctl.h: Include <mach/port.h>
20059 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
20060 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
20061 <mach/mach_types.h> and <mach/message.h>.
20062 (headers): Move mach/param.h to bits/mach/param.h.
20063 * sysdeps/mach/i386/mach/param.h: Move file to ...
20064 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
20065 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
20066 of <mach/param.h>.
20067 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
20068 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
20069 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
20070 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
20071 trivial, for C++ conformity.
20072 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
20073 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
20074 Process mig output through $(migheadersed).
20075 * hurd/Makefile (migheadersed): Define variable.
20076 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
20077 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
20078 headers.
20079 * hurd/hurd.h: Include <bits/types/sigset_t.h>
20080 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
20081 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
20082 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
20083 <bits/types/sigset_t.h>.
20084 [!defined __USE_GNU]: Do not #error out.
20085 (struct hurd_sigstate): Use _NSIG instead of NSIG.
20086 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
20087 Include <stddef.h> and <bits/types/sigset_t.h>
20088 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
20089 instead of sighandler_t.
20090 * stdlib/errno.h (error_t): Move definition to...
20091 * bits/types/error_t.h: ... new header.
20092 * stdlib/Makefile (headers): Add bits/types/error_t.h.
20093 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
20094 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
20095 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
20096 * hurd/hurd.h: Include <bits/types/error_t.h>
20097 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
20098 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
20099 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
20100 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
20101 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
20102 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
20103 * sysdeps/mach/hurd/futimens.c: New file.
20104
20105 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
20106
20107 [BZ #22918]
20108 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
20109 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
20110 * nscd/gai.c (__nss_hosts_database): Readd definition.
20111 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
20112 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
20113 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
20114
20115 2018-03-02 Joseph Myers <joseph@codesourcery.com>
20116
20117 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
20118 (ifunc_one): Likewise.
20119
20120 2018-03-01 DJ Delorie <dj@delorie.com>
20121
20122 [BZ #22342]
20123 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
20124 key value.
20125
20126 2018-03-01 Maciej W. Rozycki <macro@mips.com>
20127
20128 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
20129 `match_pid' parameter.
20130 (td_ta_thr_iter): Update accordingly.
20131
20132 2018-03-01 Florian Weimer <fweimer@redhat.com>
20133
20134 * nptl/Makefile (install-lib-ldscripts): Remove.
20135 (install): Remove rule.
20136 ($(inst_libdir)/libpthread.so): Likewise.
20137
20138 2018-03-01 Mike FABIAN <mfabian@redhat.com>
20139
20140 [BZ #22896]
20141 * localedata/locales/an_ES: update month and day names,
20142 improve d_fmt, improve postal_fmt, add country_post,
20143 add country_isbn
20144
20145 2018-03-01 Mike FABIAN <mfabian@redhat.com>
20146
20147 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
20148 Ukrainian instead of Bulgarian.
20149
20150 2018-03-01 Florian Weimer <fweimer@redhat.com>
20151
20152 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
20153 reference.
20154
20155 2018-03-01 Florian Weimer <fweimer@redhat.com>
20156
20157 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
20158 * nptl/Makefile (routines): Add pthread_atfork.
20159 (static-only-routines): Set to pthread_atfork.
20160 (libpthread-routines): Remove pthread_atfork.
20161 (libpthread-static-only-routines): Remove.
20162 (install): Update comment.
20163 (libpthread.so): Do not install libpthread_nonshared.a.
20164 (tests): Do not link with libpthread_nonshared.a.
20165 (generated): Remove libpthread_nonshared.a.
20166 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
20167 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
20168 with libpthread_nonshared.a.
20169
20170 2018-02-28 Joseph Myers <joseph@codesourcery.com>
20171
20172 [BZ #22902]
20173 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
20174 (libc_feholdexcept_setroundf128): New macro.
20175 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
20176
20177 [BZ #15105]
20178 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
20179 libc_hidden_def.
20180 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
20181 * include/inttypes.h: New file.
20182
20183 2018-02-27 Joseph Myers <joseph@codesourcery.com>
20184
20185 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
20186 -Os in two more places.
20187
20188 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20189
20190 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
20191 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
20192 be sorted correctly at the moment because of a bug.
20193
20194 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20195
20196 [BZ #22550] - es_ES locale (and other es_* locales): collation should
20197 treat ñ as a primary different character, sync the collation
20198 for Spanish with CLDR.
20199 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
20200 * localedata/Makefile: Add new test files.
20201 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
20202 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
20203 collation order.
20204 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
20205 * localedata/am_ET.UTF-8.in: New test file.
20206 * localedata/az_AZ.UTF-8.in: Likewise.
20207 * localedata/be_BY.UTF-8.in: Likewise.
20208 * localedata/ber_DZ.UTF-8.in: Likewise.
20209 * localedata/ber_MA.UTF-8.in: Likewise.
20210 * localedata/bg_BG.UTF-8.in: Likewise.
20211 * localedata/br_FR.UTF-8.in: Likewise.
20212 * localedata/cmn_TW.UTF-8.in: Likewise.
20213 * localedata/crh_UA.UTF-8.in: Likewise.
20214 * localedata/csb_PL.UTF-8.in: Likewise.
20215 * localedata/cv_RU.UTF-8.in: Likewise.
20216 * localedata/cy_GB.UTF-8.in: Likewise.
20217 * localedata/dz_BT.UTF-8.in: Likewise.
20218 * localedata/eo.UTF-8.in: Likewise.
20219 * localedata/es_ES.UTF-8.in: Likewise.
20220 * localedata/fa_IR.UTF-8.in: Likewise.
20221 * localedata/fi_FI.UTF-8.in: Likewise.
20222 * localedata/fil_PH.UTF-8.in: Likewise.
20223 * localedata/fur_IT.UTF-8.in: Likewise.
20224 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
20225 * localedata/ha_NG.UTF-8.in: Likewise.
20226 * localedata/ig_NG.UTF-8.in: Likewise.
20227 * localedata/ik_CA.UTF-8.in: Likewise.
20228 * localedata/kk_KZ.UTF-8.in: Likewise.
20229 * localedata/ku_TR.UTF-8.in: Likewise.
20230 * localedata/ky_KG.UTF-8.in: Likewise.
20231 * localedata/ln_CD.UTF-8.in: Likewise.
20232 * localedata/mi_NZ.UTF-8.in: Likewise.
20233 * localedata/ml_IN.UTF-8.in: Likewise.
20234 * localedata/mn_MN.UTF-8.in: Likewise.
20235 * localedata/mr_IN.UTF-8.in: Likewise.
20236 * localedata/mt_MT.UTF-8.in: Likewise.
20237 * localedata/nb_NO.UTF-8.in: Likewise.
20238 * localedata/om_KE.UTF-8.in: Likewise.
20239 * localedata/os_RU.UTF-8.in: Likewise.
20240 * localedata/ps_AF.UTF-8.in: Likewise.
20241 * localedata/ro_RO.UTF-8.in: Likewise.
20242 * localedata/ru_RU.UTF-8.in: Likewise.
20243 * localedata/sc_IT.UTF-8.in: Likewise.
20244 * localedata/se_NO.UTF-8.in: Likewise.
20245 * localedata/sq_AL.UTF-8.in: Likewise.
20246 * localedata/sv_SE.UTF-8.in: Likewise.
20247 * localedata/szl_PL.UTF-8.in: Likewise.
20248 * localedata/tg_TJ.UTF-8.in: Likewise.
20249 * localedata/tk_TM.UTF-8.in: Likewise.
20250 * localedata/tt_RU.UTF-8.in: Likewise.
20251 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
20252 * localedata/ug_CN.UTF-8.in: Likewise.
20253 * localedata/uz_UZ.UTF-8.in: Likewise.
20254 * localedata/vi_VN.UTF-8.in: Likewise.
20255 * localedata/yi_US.UTF-8.in: Likewise.
20256 * localedata/yo_NG.UTF-8.in: Likewise.
20257 * localedata/zh_CN.UTF-8.in: Likewise.
20258 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
20259 file and fix bugs in the collation.
20260 * localedata/locales/az_AZ: Likewise.
20261 * localedata/locales/be_BY: Likewise.
20262 * localedata/locales/ber_DZ: Likewise.
20263 * localedata/locales/ber_MA: Likewise.
20264 * localedata/locales/bg_BG: Likewise.
20265 * localedata/locales/br_FR: Likewise.
20266 * localedata/locales/br_FR@euro: Likewise.
20267 * localedata/locales/ca_ES: Likewise.
20268 * localedata/locales/cns11643_stroke: Likewise.
20269 * localedata/locales/crh_UA: Likewise.
20270 * localedata/locales/cs_CZ: Likewise.
20271 * localedata/locales/csb_PL: Likewise.
20272 * localedata/locales/cv_RU: Likewise.
20273 * localedata/locales/cy_GB: Likewise.
20274 * localedata/locales/da_DK: Likewise.
20275 * localedata/locales/dz_BT: Likewise.
20276 * localedata/locales/en_CA: Likewise.
20277 * localedata/locales/eo: Likewise.
20278 * localedata/locales/es_CU: Likewise.
20279 * localedata/locales/es_EC: Likewise.
20280 * localedata/locales/es_ES: Likewise.
20281 * localedata/locales/es_US: Likewise.
20282 * localedata/locales/et_EE: Likewise.
20283 * localedata/locales/fa_IR: Likewise.
20284 * localedata/locales/fi_FI: Likewise.
20285 * localedata/locales/fil_PH: Likewise.
20286 * localedata/locales/fur_IT: Likewise.
20287 * localedata/locales/gez_ER@abegede: Likewise.
20288 * localedata/locales/ha_NG: Likewise.
20289 * localedata/locales/hr_HR: Likewise.
20290 * localedata/locales/hsb_DE: Likewise.
20291 * localedata/locales/hu_HU: Likewise.
20292 * localedata/locales/ig_NG: Likewise.
20293 * localedata/locales/ik_CA: Likewise.
20294 * localedata/locales/is_IS: Likewise.
20295 * localedata/locales/iso14651_t1_pinyin: Likewise.
20296 * localedata/locales/kk_KZ: Likewise.
20297 * localedata/locales/ku_TR: Likewise.
20298 * localedata/locales/ky_KG: Likewise.
20299 * localedata/locales/ln_CD: Likewise.
20300 * localedata/locales/lt_LT: Likewise.
20301 * localedata/locales/lv_LV: Likewise.
20302 * localedata/locales/mi_NZ: Likewise.
20303 * localedata/locales/ml_IN: Likewise.
20304 * localedata/locales/mn_MN: Likewise.
20305 * localedata/locales/mr_IN: Likewise.
20306 * localedata/locales/mt_MT: Likewise.
20307 * localedata/locales/nb_NO: Likewise.
20308 * localedata/locales/om_KE: Likewise.
20309 * localedata/locales/os_RU: Likewise.
20310 * localedata/locales/pl_PL: Likewise.
20311 * localedata/locales/ps_AF: Likewise.
20312 * localedata/locales/ro_RO: Likewise.
20313 * localedata/locales/ru_RU: Likewise.
20314 * localedata/locales/ru_UA: Likewise.
20315 * localedata/locales/sc_IT: Likewise.
20316 * localedata/locales/se_NO: Likewise.
20317 * localedata/locales/si_LK: Likewise.
20318 * localedata/locales/sq_AL: Likewise.
20319 * localedata/locales/sv_FI: Likewise.
20320 * localedata/locales/sv_FI@euro: Likewise.
20321 * localedata/locales/sv_SE: Likewise.
20322 * localedata/locales/szl_PL: Likewise.
20323 * localedata/locales/tg_TJ: Likewise.
20324 * localedata/locales/ti_ER: Likewise.
20325 * localedata/locales/tk_TM: Likewise.
20326 * localedata/locales/tl_PH: Likewise.
20327 * localedata/locales/tr_TR: Likewise.
20328 * localedata/locales/tt_RU: Likewise.
20329 * localedata/locales/tt_RU@iqtelif: Likewise.
20330 * localedata/locales/ug_CN: Likewise.
20331 * localedata/locales/uk_UA: Likewise.
20332 * localedata/locales/uz_UZ: Likewise.
20333 * localedata/locales/uz_UZ@cyrillic: Likewise.
20334 * localedata/locales/vi_VN: Likewise.
20335 * localedata/locales/yi_US: Likewise.
20336 * localedata/locales/yo_NG: Likewise.
20337
20338 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20339
20340 * gen-locales.mk: Make test files which contain @ modifiers in their
20341 name work.
20342 * localedata/gen-locale.sh: Likewise.
20343
20344 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20345
20346 * posix/tst-fnmatch.input: Fix results for range expressions
20347 for non C locales.
20348 * posix/tst-regexloc.c: Do not use a range expression for
20349 de_DE.ISO-8859-1 locale.
20350
20351 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20352
20353 * posix/bug-regex5.c: Fix test case because with the new
20354 iso14651_t1_common file, the da_DK locale now has 6 collating elements
20355 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
20356 file.
20357
20358 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20359
20360 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
20361 downloaded from ISO, the collation order of @-. and space has changed.
20362 Therefore, this test file needed to be adapted.
20363 * localedata/fr_CA.UTF-8.in: Likewise.
20364 * localedata/fr_FR.UTF-8.in: Likewise.
20365 * localedata/uk_UA.UTF-8.in: Likewise.
20366
20367 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20368
20369 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
20370 order of ȥ in the new iso14651_t1_common file.
20371 * localedata/pl_PL.UTF-8.in: Likewise.
20372
20373 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20374
20375 * localedata/locales/iso14651_t1_common: Add sections for various
20376 scripts to the iso14651_t1_common file.
20377
20378 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20379
20380 * localedata/locales/iso14651_t1_common: Use the code point of a
20381 character in the fourth collation level instead of IGNORE for all
20382 entries which have IGNORE on all 4 levels.
20383
20384 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20385
20386 * localedata/locales/iso14651_t1_common: Add some convenient collation
20387 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
20388 rules similar to those in CLDR.
20389
20390 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20391
20392 * localedata/locales/iso14651_t1_common: The new version of this
20393 file downloaded from ISO contained several syntax errors which
20394 are fixed by this patch.
20395
20396 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20397
20398 * localedata/locales/iso14651_t1_common: replace all <U.....>
20399 with <U000.....> because glibc understands only 4 digit or 8 digit
20400
20401 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20402
20403 * localedata/locales/iso14651_t1_common: Necessary changes
20404 to make the file downloaded from ISO usable by glibc.
20405
20406 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20407
20408 [BZ #14095]
20409 * localedata/locales/iso14651_t1_common: Update file to
20410 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
20411
20412 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
20413
20414 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
20415 of <nptl/pthreadP.h>
20416 (thread_attr_compare): Move function to...
20417 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
20418 * sysdeps/nptl/timer_routines.h: ... new header.
20419 * sysdeps/mach/hurd/gai_misc.h: New file.
20420
20421 2018-02-26 Joseph Myers <joseph@codesourcery.com>
20422
20423 * string/strcoll_l.c: Include <libc-diag.h>.
20424 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
20425 declarations of seq1 and seq2.
20426
20427 [BZ #15105]
20428 * stdlib/atoi.c (atoi): Use libc_hidden_def.
20429 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
20430
20431 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
20432
20433 [BZ #22433]
20434 [BZ #22807]
20435 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
20436 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
20437 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
20438 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
20439 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
20440 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
20441
20442 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
20443
20444 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
20445 macros used in __ptrace_request.
20446
20447 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
20448
20449 [BZ #22792]
20450 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
20451 to $(CC).
20452 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
20453 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
20454 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
20455 <tcb-offsets.h>.
20456
20457 2018-02-23 Joseph Myers <joseph@codesourcery.com>
20458
20459 [BZ #15105]
20460 * ctype/ctype.c (tolower): Use libc_hidden_def.
20461 (toupper): Likewise.
20462 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
20463 [!_ISOMAC] (toupper): Likewise.
20464
20465 2018-02-23 Mike FABIAN <mfabian@redhat.com>
20466
20467 * localedata/Makefile: Remove --quiet argument when
20468 installing locales
20469
20470 2018-02-23 Mike FABIAN <mfabian@redhat.com>
20471
20472 [BZ #17438]
20473 * localedata/locales/pt_BR (LC_TIME): use / instead of -
20474 in d_fmt.
20475 * localedata/locales/pt_PT (LC_TIME): likewise
20476
20477 2018-02-23 Mike FABIAN <mfabian@redhat.com>
20478
20479 [BZ #22646]
20480 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
20481 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
20482 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
20483
20484 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20485
20486 * sysdeps/sparc/fpu/libm-test-ulps: Update.
20487
20488 * nptl/Makefile (routines): Remove unregister-atfork.
20489 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
20490 (fork_handler_alloc): Remove function.
20491 (fork_handlers, fork_handler_init): New variables.
20492 (__fork_lock): Rename to atfork_lock.
20493 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
20494 to use a dynamic array to add/remove atfork handlers.
20495 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
20496 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
20497 Remove declaration.
20498 (fork_handler): Remove next, refcntr, and need_signal member.
20499 (__run_fork_handler_type): New enum.
20500 (__run_fork_handlers): New prototype.
20501 * nptl/register-atfork.c: Remove file.
20502 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
20503
20504 * sysdeps/nptl/nptl-signals.h: Move to ...
20505 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
20506 comments.
20507 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
20508 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
20509 unnecessary check for SIGTIMER.
20510 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
20511 remove unnecessary removal of SIGTIMER.
20512 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
20513 include-signals.h rename.
20514 * nptl/pthreadP.h: Likewise.
20515 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
20516 __is_internal_signal instead of __nptl_is_internal_signal.
20517
20518 2018-02-22 Andrew Waterman <andrew@sifive.com>
20519
20520 [BZ # 22884]
20521 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
20522 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
20523 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
20524 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
20525
20526 2018-02-22 DJ Delorie <dj@delorie.com>
20527
20528 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
20529
20530 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
20531
20532 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
20533 do_misaligned, not misaligned8.
20534
20535 2018-02-22 Steve Ellcey <sellcey@cavium.com>
20536
20537 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
20538 Add memcpy_thunderx2.
20539 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
20540 Increment to 4.
20541 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
20542 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
20543 and IS_THUNDERX2PA checks.
20544 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
20545 Use macro to set name appropriately.
20546 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
20547 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
20548 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
20549 New macro.
20550 (IS_THUNDERX2): New macro.
20551
20552 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
20553
20554 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
20555
20556 2018-02-21 Zack Weinberg <zackw@panix.com>
20557
20558 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
20559 Define here, unconditionally.
20560 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
20561 * libio/libioP.h: Remove #if 0 blocks.
20562 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
20563 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
20564 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
20565
20566 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
20567 Assume weak_alias is always defined.
20568
20569 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
20570 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
20571 Remove #if 0 and #ifdef TODO blocks.
20572 Assume text_set_element is always defined.
20573
20574 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
20575 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
20576 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
20577
20578 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
20579 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
20580 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
20581 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
20582 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
20583 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
20584 Reformat bit flags for _flags field to make occupancy clearer.
20585 Update commentary.
20586 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
20587 Keep definitions consistent with those in libio/libio.h.
20588
20589 * libio/libio.h (_IO_file_flags): Remove macro.
20590 All uses changed to _flags.
20591
20592 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
20593 (__HAVE_COLUMN, _IO_BE): Don't define.
20594 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
20595 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
20596 * libio/libioP.h (EOF): Don't define.
20597 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
20598 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
20599 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
20600 testing _IO_UNIFIED_JUMPTABLES.
20601
20602 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
20603 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
20604 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
20605 (_IO_size_t): Delete; all uses changed to size_t.
20606 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
20607 (_IO_off_t): Delete; all uses changed to off_t.
20608 (_IO_off64_t): Delete; all uses changed to off64_t.
20609 (_IO_pid_t): Delete; all uses changed to pid_t.
20610 (_IO_uid_t): Delete; all uses changed to uid_t.
20611 (_IO_wint_t): Delete; all uses changed to wint_t.
20612 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
20613 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
20614 (_IO_cookie_io_functions_t): Delete; all uses changed to
20615 cookie_io_functions_t.
20616 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
20617 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
20618 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
20619 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
20620
20621 * libio/iofopncook.c: Remove unnecessary forward declarations.
20622 * libio/iolibio.h: Correct outdated commentary.
20623 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
20624 * stdio-common/fxprintf.c (__fxprintf_nocancel):
20625 Remove unnecessary casts.
20626 * stdio-common/getline.c: Use _IO_getdelim directly.
20627 Don't redefine ssize_t.
20628 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
20629 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
20630 Remove outdated comments.
20631 * stdio-common/vfscanf.c: Don't redefine va_list.
20632
20633 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
20634 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
20635 Remove preprocessor conditionals on _LIBC and __USE_GNU,
20636 which are always true, and __cplusplus, which is always false.
20637
20638 2018-02-21 Joseph Myers <joseph@codesourcery.com>
20639
20640 [BZ #15105]
20641 [BZ #19463]
20642 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
20643 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
20644 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
20645 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
20646 libc_hidden_proto.
20647 [!_ISOMAC] (putc_unlocked): Likewise.
20648 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
20649 define inline if [__USE_EXTERN_INLINES].
20650 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
20651 putc_unlocked.
20652
20653 [BZ #15105]
20654 [BZ #19463]
20655 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
20656 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
20657 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
20658 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
20659 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
20660 getc_unlocked.
20661 * time/tzfile.c (__tzfile_read): Likewise.
20662
20663 2018-02-21 Mike FABIAN <mfabian@redhat.com>
20664
20665 [BZ #22517]
20666 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
20667
20668 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
20669
20670 * io/fcntl.h: Fix a typo in a comment.
20671
20672 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
20673
20674 [BZ #22862]
20675 * include/features.h: Add _ISOC11_SOURCE to test for whether to
20676 define _DEFAULT_SOURCE.
20677 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
20678
20679 2018-02-21 Florian Weimer <fweimer@redhat.com>
20680
20681 [BZ #20890]
20682 * elf/cache.c (save_cache): Call fsync on temporary file before
20683 renaming it.
20684 (save_aux_cache): Call fdatasync on temporary file before renaming
20685 it.
20686
20687 2018-02-21 Florian Weimer <fweimer@redhat.com>
20688
20689 [BZ #22787]
20690 * include/caller.h: Remove file.
20691 * elf/dl-caller.c: Likewise.
20692 * elf/Makefile (dl-routines): Remove dl-caller.
20693 (shared-only-routines): Do not add dl-caller.
20694 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
20695 __check_caller.
20696 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
20697 member.
20698 (dl_open_worker): Do not call __check_caller.
20699 (_dl_open): Do not set caller_dl_open member.
20700 * elf/rtld.c (_rtld_global_ro): Do not initialize
20701 _dl_check_caller member.
20702 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
20703 _dl_check_caller member.
20704 (_dl_check_caller): Remove declaration.
20705 * sysdeps/unix/sysv/linux/dl-execstack.c
20706 (_dl_make_stack_executable): Do not call __check_caller.
20707
20708 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
20709
20710 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
20711 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
20712
20713 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
20714
20715 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
20716 description.
20717
20718 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
20719
20720 [BZ #16335]
20721 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
20722 of 199606L, 200112L, and 200809L.
20723 (_XOPEN_SOURCE): Document special values of 600 and 700.
20724 (_ISOC11_SOURCE): Document macro.
20725 (_ATFILE_SOURCE): Likewise.
20726 (_FORTIFY_SOURCE): Likewise.
20727
20728 2018-02-19 Joseph Myers <joseph@codesourcery.com>
20729
20730 [BZ #15105]
20731 [BZ #19463]
20732 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
20733 and define as weak alias of __ferror_unlocked. Use
20734 libc_hidden_weak.
20735 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
20736 libc_hidden_proto.
20737 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
20738 function if [__USE_EXTERN_INLINES].
20739 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
20740 ferror_unlocked.
20741
20742 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
20743
20744 [BZ #6889]
20745 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
20746
20747 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
20748
20749 [BZ #22818]
20750 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
20751 the GLIBC_2.1 version.
20752
20753 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
20754
20755 [BZ #21508]
20756 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
20757 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
20758 intl/tst-gettext-de.po from po/de.po by removing the
20759 POT-Creation-Date line.
20760 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
20761 ../po/de.po.
20762 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
20763 ../po/de.po.
20764
20765 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
20766
20767 * mach/Makefile (headers): Add mach/param.h.
20768 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
20769 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
20770 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
20771 (__ptsname_r): Move implementation to...
20772 (__ptsname_internal): ... new function. Add filling the STP
20773 structure.
20774
20775 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
20776
20777 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
20778 idouble to 1 ULP.
20779
20780 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
20781
20782 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
20783 syntax.
20784
20785 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
20786
20787 * nptl/Makefile (tst-mutex8-ENV): Delete.
20788 * nptl/tst-mutex8.c (check_type):
20789 Add runtime check if mutex will be elided.
20790
20791 2018-02-15 Joseph Myers <joseph@codesourcery.com>
20792
20793 [BZ #20980]
20794 [BZ #21234]
20795 * manual/install.texi (Configuring and compiling): Describe
20796 passing CC and CFLAGS on configure command line, not as
20797 environment variables. Use @code markup on those variables.
20798 Specify what options go in CC and what go in CFLAGS. Note the
20799 requirement to compile with optimization.
20800 * INSTALL: Regenerated.
20801
20802 [BZ #18124]
20803 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
20804 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
20805 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
20806 __sigprocmask instead of sigprocmask.
20807 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
20808 Likewise.
20809 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
20810 __sigsetjmp and sigprocmask.
20811
20812 [BZ #15105]
20813 * include/argz.h (argz_next): Use libc_hidden_proto.
20814 (__argz_next): Likewise.
20815 * string-argz-next.c (__argz_next): Use libc_hidden_def.
20816 (argz_next): Use libc_hidden_weak.
20817
20818 [BZ #15105]
20819 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
20820 libc_hidden_proto.
20821 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
20822 libc_hidden_def.
20823
20824 [BZ #15105]
20825 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
20826 libc_hidden_proto.
20827 * libio/iofputs.c (fputs): Use libc_hidden_weak.
20828
20829 [BZ #15105]
20830 [BZ #19463]
20831 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
20832 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
20833 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
20834 (__feof_unlocked): New declaration, and inline function if
20835 [__USE_EXTERN_INLINES].
20836 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
20837 instead of feof_unlocked.
20838 * intl/localealias.c [_LIBC] (FEOF): Likewise.
20839 * nss/nsswitch.c (nss_parse_file): Likewise.
20840 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
20841 Likewise.
20842 * time/getdate.c (__getdate_r): Likewise.
20843 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
20844 Define as macro to call __feof_unlocked.
20845
20846 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
20847
20848 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
20849
20850 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
20851
20852 * math/Makefile: Remove mpexp.c and mplog.c
20853 * sysdeps/i386/fpu/mpexp.c: Delete file.
20854 * sysdeps/i386/fpu/mplog.c: Likewise.
20855 * sysdeps/ia64/fpu/mpexp.c: Likewise.
20856 * sysdeps/ia64/fpu/mplog.c: Likewise.
20857 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
20858 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
20859 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
20860 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
20861 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
20862 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
20863 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
20864 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
20865 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
20866 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
20867 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
20868 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
20869 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
20870 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
20871 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
20872 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
20873
20874 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
20875
20876 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
20877
20878 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20879
20880 * sysdeps/sh/libm-test-ulps: Update.
20881
20882 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
20883
20884 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
20885 idouble to 1 ULP.
20886
20887 2018-02-12 Zack Weinberg <zackw@panix.com>
20888
20889 [BZ #19239]
20890 * posix/sys/types.h: Don't include sys/sysmacros.h.
20891 * misc/sys/sysmacros.h: Remove the conditional deprecation
20892 warnings for the macros defined by this header.
20893
20894 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
20895
20896 * manual/probes.texi: Remove slowexp probes.
20897 * math/Makefile: Remove slowexp.
20898 * sysdeps/generic/math_private.h (__slowexp): Remove.
20899 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
20900 document error bounds.
20901 * sysdeps/i386/fpu/slowexp.c: Remove.
20902 * sysdeps/ia64/fpu/slowexp.c: Remove.
20903 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
20904 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
20905 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
20906 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
20907 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
20908 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
20909 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
20910 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
20911 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
20912 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
20913 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
20914
20915 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
20916
20917 [BZ #13932]
20918 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
20919 * benchtests/pow-inputs: Update comment for slow path cases.
20920 * manual/probes.texi (slowpow_p10): Delete removed probe.
20921 (slowpow_p10): Likewise.
20922 * math/Makefile: Remove halfulp.c and slowpow.c.
20923 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
20924 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
20925 (__halfulp): Remove.
20926 (__slowpow): Remove.
20927 * sysdeps/i386/fpu/halfulp.c: Delete file.
20928 * sysdeps/i386/fpu/slowpow.c: Likewise.
20929 * sysdeps/ia64/fpu/halfulp.c: Likewise.
20930 * sysdeps/ia64/fpu/slowpow.c: Likewise.
20931 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
20932 improve comments and add error analysis.
20933 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
20934 (power1): Remove function:
20935 (log1): Remove error argument, add error analysis.
20936 (my_log2): Remove function.
20937 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
20938 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
20939 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
20940 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
20941 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
20942 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
20943 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
20944 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
20945 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
20946 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
20947 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
20948 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
20949 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
20950 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
20951
20952 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
20953
20954 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
20955 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
20956
20957 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
20958
20959 [BZ #22433]
20960 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
20961 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
20962 and PTRACE_SETHBPREGS.
20963
20964 2018-02-10 Zack Weinberg <zackw@panix.com>
20965
20966 [BZ #22830]
20967 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
20968 correctly.
20969 * malloc/tst-malloc-stats-cancellation.c: New test case.
20970 * malloc/Makefile: Add new test case.
20971
20972 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
20973
20974 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
20975
20976 2018-02-10 Joseph Myers <joseph@codesourcery.com>
20977
20978 * math/Makefile (libm-narrow-fns): Add add.
20979 (libm-test-funcs-narrow): Likewise.
20980 * math/Versions (GLIBC_2.28): Add narrowing add functions.
20981 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
20982 * math/gen-auto-libm-tests.c (test_functions): Add add.
20983 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
20984 (NARROW_ADD_ROUND_TO_ODD): Likewise.
20985 (NARROW_ADD_TRIVIAL): Likewise.
20986 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
20987 macro.
20988 (__daddl): Likewise.
20989 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
20990 dadd.
20991 (CFLAGS-nldbl-dadd.c): New variable.
20992 (CFLAGS-nldbl-fadd.c): Likewise.
20993 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
20994 __nldbl_daddl.
20995 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
20996 prototype.
20997 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
20998 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
20999 * math/auto-libm-test-in: Add tests of add.
21000 * math/auto-libm-test-out-narrow-add: New generated file.
21001 * math/libm-test-narrow-add.inc: New file.
21002 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
21003 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
21004 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
21005 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
21006 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
21007 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
21008 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
21009 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
21010 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
21011 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
21012 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
21013 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
21014 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
21015 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
21016 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
21017 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
21018 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
21019 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
21020 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21021 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
21022 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21023 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21024 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
21025 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
21026 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21027 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21028 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
21029 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
21030 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
21031 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
21032 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21033 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
21034 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
21035 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
21036 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
21037 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
21038 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
21039 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21040 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21041 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
21042 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21043 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21044 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
21045 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
21046 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21047 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21048
21049 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
21050 (f128-pairs): New variable.
21051 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
21052 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
21053 to CFLAGS.
21054 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
21055 Also make tests add $(f128-loader-link) to gnulib-tests.
21056
21057 2018-02-09 DJ Delorie <dj@redhat.com>
21058
21059 [BZ #22827]
21060 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
21061 64-bit ELF type for 64-bit ELF objects.
21062
21063 2018-02-09 Joseph Myers <joseph@codesourcery.com>
21064
21065 * math/libm-test-driver.c (snan_tests_arg): New variable.
21066 * math/libm-test-support.h (snan_tests_arg): New declaration.
21067 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
21068
21069 * math/Makefile (test-type-pairs): New variable.
21070 (test-type-pairs-f64xf128-yes): Likewise.
21071 (tests): Add test-narrow-macros.
21072 (libm-test-funcs-narrow): New variable.
21073 (libm-test-c-narrow): Likewise.
21074 (generated): Add $(libm-test-c-narrow).
21075 (libm-tests-base-narrow): New variable.
21076 (libm-tests-narrow): Likewise.
21077 (libm-tests): Add $(libm-tests-narrow).
21078 (libm-tests-for-type): Handle $(libm-tests-narrow).
21079 (libm-test-c-narrow-obj): New variable.
21080 ($(libm-test-c-narrow-obj)): New rule.
21081 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
21082 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
21083 $(o-iterator) to set dependencies and CFLAGS.
21084 * math/gen-auto-libm-tests.c: Document use for narrowing
21085 functions.
21086 (output_for_one_input_case): Take argument NARROW.
21087 (generate_output): Likewise. Update call to
21088 output_for_one_input_case.
21089 (main): Take --narrow option. Update call to generate_output.
21090 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
21091 (apply_lit): Update call to _apply_lit.
21092 (apply_arglit): New function.
21093 (parse_args): Handle "a" arguments.
21094 (parse_auto_input): Handle format names using ":".
21095 * math/README.libm-test: Document "a" parameter type.
21096 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
21097 (ARG_TYPE_TRUE_MIN): Likewise.
21098 (ARG_TYPE_MAX): Likwise.
21099 (ARG_MIN_EXP): Likewise.
21100 (ARG_MAX_EXP): Likewise.
21101 (ARG_MANT_DIG): Likewise.
21102 (TEST_COND_arg_ibm128): Likewise.
21103 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
21104 (TEST_COND_arg_fmt): New macro.
21105 (init_max_error): Update prototype.
21106 * math/libm-test-support.c (test_ibm128): New variable.
21107 (init_max_error): Take argument testing_ibm128 and set test_ibm128
21108 instead of using [TEST_COND_ibm128] conditional.
21109 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
21110 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
21111 [TEST_NARROW] (TEST_MSG): New definition.
21112 (arg_plus_zero): New macro.
21113 (arg_minus_zero): Likewise.
21114 (arg_plus_infty): Likewise.
21115 (arg_minus_infty): Likewise.
21116 (arg_qnan_value_pl): Likewise.
21117 (arg_qnan_value): Likewise.
21118 (arg_snan_value_pl): Likewise.
21119 (arg_snan_value): Likewise.
21120 (arg_max_value): Likewise.
21121 (arg_min_value): Likewise.
21122 (arg_min_subnorm_value): Likewise.
21123 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
21124 (RUN_TEST_LOOP_aa_f): New macro.
21125 (TEST_SUFF): New macro.
21126 (TEST_SUFF_STR): Likewise.
21127 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
21128 (TEST_COND_any_ibm128): New macro.
21129 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
21130 this_func. Update call to init_max_error.
21131 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
21132 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
21133 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
21134 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
21135 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
21136 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
21137 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
21138 * math/test-math-scalar.h (TEST_NARROW): Likewise.
21139 * math/test-math-vector.h (TEST_NARROW): Likewise.
21140 * math/test-arg-double.h: New file.
21141 * math/test-arg-float128.h: Likewise.
21142 * math/test-arg-float32x.h: Likewise.
21143 * math/test-arg-float64.h: Likewise.
21144 * math/test-arg-float64x.h: Likewise.
21145 * math/test-arg-ldouble.h: Likewise.
21146 * math/test-math-narrow.h: Likewise.
21147 * math/test-narrow-macros.c: Likewise.
21148 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
21149 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
21150 test-narrow-macros-ldbl-64.
21151 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
21152
21153 * math/bits/mathcalls-narrow.h: New file.
21154 * include/bits/mathcalls-narrow.h: Likewise.
21155 * math/math-narrow.h: Likewise.
21156 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
21157 (__MATHCALL_NARROW_ARGS_2): Likewise.
21158 (__MATHCALL_NARROW_ARGS_3): Likewise.
21159 (__MATHCALL_NARROW_NORMAL): Likewise.
21160 (__MATHCALL_NARROW_REDIR): Likewise.
21161 (__MATHCALL_NARROW): Likewise.
21162 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
21163 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
21164 defined.
21165 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
21166 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
21167 (libm-narrow-fns): New variable.
21168 (libm-narrow-types-basic): Likewise.
21169 (libm-narrow-types-ldouble-yes): Likewise.
21170 (libm-narrow-types-float128-yes): Likewise.
21171 (libm-narrow-types-float128-alias-yes): Likewise.
21172 (libm-narrow-types): Likewise.
21173 (libm-routines): Add narrowing functions.
21174 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
21175 (libc_feholdexcept_setroundf128): New macro.
21176 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
21177 * sysdeps/ieee754/float128/float128_private.h: Include
21178 <math/math-narrow.h>.
21179 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
21180 Undefine and redefine.
21181 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
21182 (libm_alias_float_ldouble): Undefine and redefine.
21183 (libm_alias_double_ldouble): Likewise.
21184
21185 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
21186
21187 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
21188
21189 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
21190 FPCR/FPSR.
21191
21192 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
21193
21194 * manual/creature.texi: Convert references to gcc.info to gcc.
21195 * manual/stdio.texi: Likewise.
21196 * manual/string.texi: Likewise.
21197
21198 2018-02-07 Joseph Myers <joseph@codesourcery.com>
21199
21200 [BZ #17979]
21201 * posix/bits/types.h (__int_least8_t): New typedef.
21202 (__uint_least8_t): Likewise.
21203 (__int_least16_t): Likewise.
21204 (__uint_least16_t): Likewise.
21205 (__int_least32_t): Likewise.
21206 (__uint_least32_t): Likewise.
21207 (__int_least64_t): Likewise.
21208 (__uint_least64_t): Likewise.
21209 * sysdeps/generic/stdint.h (int_least8_t): Define using
21210 __int_least8_t.
21211 (int_least16_t): Define using __int_least16_t.
21212 (int_least32_t): Define using __int_least32_t.
21213 (int_least64_t): Define using __int_least64_t.
21214 (uint_least8_t): Define using __uint_least8_t.
21215 (uint_least16_t): Define using __uint_least16_t.
21216 (uint_least32_t): Define using __uint_least32_t.
21217 (uint_least64_t): Define using __uint_least64_t.
21218 * wcsmbs/uchar.h: Include <bits/types.h>.
21219 (char16_t): Define using __uint_least16_t conditional only on
21220 [!__USE_ISOCXX11].
21221 (char32_t): Define using __uint_least32_t conditional only on
21222 [!__USE_ISOCXX11].
21223 * wcsmbs/test-char-types.c: New file.
21224 * wcsmbs/Makefile (tests): Add test-char-types.
21225
21226 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
21227 version to 4.0.1.
21228
21229 2018-02-07 Zack Weinberg <zackw@panix.com>
21230
21231 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
21232 Delete all contents except for definitions of _G_HAVE_MMAP and
21233 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
21234 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
21235 sysdeps/unix/sysv/linux/_G_config.h. Make same content
21236 change as above.
21237
21238 * libio/libio.h: Don't include bits/_G_config.h here.
21239 Include stddef.h with __need_wchar_t defined. Include
21240 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
21241 Define _IO_iconv_t here, directly.
21242 Don't define _IO_HAVE_ST_BLKSIZE.
21243 * libio/libioP.h: Include _G_config.h here. Move include of
21244 shlib-compat.h up with rest of includes. Simplify conditionals
21245 controlling definition of _IO_JUMPS_OFFSET.
21246
21247 * csu/init.c: Remove always-true #if around entire file.
21248 Don't include stdio.h. Set _IO_stdin_used to hardwired
21249 constant 0x20001, and update commentary.
21250 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
21251 Replace all uses of _G_va_list with __gnuc_va_list.
21252 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
21253 instead of #if _IO_HAVE_ST_BLKSIZE.
21254 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
21255 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
21256 not #ifdef.
21257
21258 * libio/bits/libio.h: Move back to libio/libio.h and adjust
21259 multiple-include guard to match.
21260 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
21261 into this file.
21262 Remove preprocessor conditionals that are always true and/or
21263 redundant to other preprocessor conditionals in the same nest.
21264 Include shlib-compat.h unconditionally.
21265 Error out if _LIBC is not defined, or if _ISOMAC is defined,
21266 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
21267 defined after including stdio.h.
21268 Use __BEGIN_DECLS/__END_DECLS.
21269
21270 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
21271 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
21272 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
21273
21274 2018-02-07 Zack Weinberg <zackw@panix.com>
21275
21276 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
21277 New single-type headers split from _G_config.h.
21278 * libio/bits/types/cookie_io_functions_t.h
21279 * libio/bits/types/struct_FILE.h
21280 New single-type headers split from libio.h.
21281
21282 * libio/Makefile: Install the above new headers. Don't install
21283 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
21284 bits/libio-ldbl.h.
21285 * libio/_G_config.h, libio/libio.h: Delete file.
21286
21287 * libio/bits/libio.h: Remove improper-inclusion guard.
21288 Include stdio.h and don't repeat anything that it does.
21289 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
21290 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
21291 __io_read_fn as cookie_read_function_t,
21292 __io_write_fn as cookie_write_function_t,
21293 __io_seek_fn as cookie_seek_function_t,
21294 __io_close_fn as cookie_close_function_t,
21295 and _IO_cookie_io_functions_t as cookie_io_functions_t.
21296 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
21297 here, in the "compatibility defines" section. Remove an #if 0
21298 block. Use the "body" macros from bits/types/struct_FILE.h to
21299 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
21300 and _IO_ferror_unlocked.
21301 Move prototypes of __uflow and __overflow...
21302
21303 * libio/stdio.h: ...here. Don't include bits/libio.h.
21304 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
21305 directly from stdarg.h. Include bits/types/__fpos_t.h,
21306 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
21307 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
21308 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
21309 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
21310 cookie_io_functions_t, not _IO_cookie_io_functions_t;
21311 __ssize_t, not _IO_ssize_t. Unconditionally define
21312 BUFSIZ as 8192 and EOF as (-1).
21313
21314 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
21315 macros from bits/types/struct_FILE.h instead of _IO_* macros
21316 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
21317 instead of _IO_ssize_t.
21318 * libio/bits/stdio2.h: Similarly.
21319
21320 * libio/iolibio.h: Add multiple-include guard.
21321 Include bits/libio.h after stdio.h.
21322 * libio/libioP.h: Add multiple-include guard.
21323 Include stdio.h and bits/libio.h before iolibio.h.
21324
21325 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
21326 * include/bits/types/cookie_io_functions_t.h
21327 * include/bits/types/struct_FILE.h: New wrappers.
21328
21329 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
21330 Get definitions of _G_fpos_t and _G_fpos64_t from
21331 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
21332 respectively. Remove improper-inclusion guards.
21333
21334 * conform/data/stdio.h-data: Update expectations of va_list.
21335 * scripts/check-installed-headers.sh: Remove special case for
21336 libio.h and _G_config.h.
21337
21338 2018-02-07 Joseph Myers <joseph@codesourcery.com>
21339
21340 [BZ #15105]
21341 [BZ #19463]
21342 * include/sys/sysmacros.h [!_ISOMAC]
21343 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
21344 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
21345 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
21346 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
21347 libc_hidden_proto.
21348 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
21349 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
21350 Likewise.
21351 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
21352 Undefine and redefine to add use __gnu_dev_ prefix.
21353 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
21354 Likewise.
21355 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
21356 and define as hidden inline function.
21357 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
21358 Likewise.
21359 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
21360 Likewise.
21361 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
21362 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
21363 (gnu_dev_minor): Likewise.
21364 (gnu_dev_makedev): Likewise.
21365 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
21366 makedev.
21367 * posix/wordexp.c (exec_comm_child): Likewise.
21368 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
21369 instead of minor and __gnu_dev_major instead of major.
21370 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
21371 __gnu_dev_major instead of major.
21372 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
21373 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
21374 instead of gnu_dev_minor.
21375 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
21376 (SLAVE_P): Likewise.
21377 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
21378 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
21379 instead of major.
21380
21381 [BZ #21313]
21382 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
21383 in another place.
21384 * locale/weightwc.h (findidx): Likewise.
21385
21386 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
21387
21388 * manual/probes.texi (slowlog): Delete documentation of removed probe.
21389 (slowlog_inexact): Likewise
21390 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
21391 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
21392
21393 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
21394
21395 [BZ #22797]
21396 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
21397 missing second underscore to parameter name.
21398
21399 2018-02-06 Joseph Myers <joseph@codesourcery.com>
21400
21401 [BZ #14508]
21402 [BZ #15512]
21403 [BZ #17082]
21404 [BZ #20530]
21405 * bits/byteswap.h: Update file comment. Do not include
21406 <bits/byteswap-16.h>.
21407 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
21408 constant.
21409 (__bswap_16): Define as inline function.
21410 (__bswap_constant_32): Reformat definition.
21411 (__bswap_32): Always define as inline function, not macro, using
21412 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
21413 otherwise __bswap_constant_32.
21414 (__bswap_constant_64): Reformat definition. Do not use
21415 __extension__ here.
21416 (__bswap_64): Always define as inline function, not macro. Use
21417 __extension__ on function definition. Use __builtin_bswap64 if
21418 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
21419 * string/test-endian-file-scope.c: New file.
21420 * string/test-endian-sign-conversion.c: Likewise.
21421 * string/Makefile (headers): Remove bits/byteswap-16.h.
21422 (tests): Add test-endian-file-scope and
21423 test-endian-sign-conversion.
21424 (CFLAGS-test-endian-sign-conversion.c): New variable.
21425 * bits/byteswap-16.h: Remove file.
21426 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
21427 * sysdeps/ia64/bits/byteswap.h: Likewise.
21428 * sysdeps/m68k/bits/byteswap.h: Likewise.
21429 * sysdeps/s390/bits/byteswap-16.h: Likewise.
21430 * sysdeps/s390/bits/byteswap.h: Likewise.
21431 * sysdeps/tile/bits/byteswap.h: Likewise.
21432 * sysdeps/x86/bits/byteswap-16.h: Likewise.
21433 * sysdeps/x86/bits/byteswap.h: Likewise.
21434
21435 [BZ #17721]
21436 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
21437 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
21438 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
21439 199901L] (__restrict): Define to restrict.
21440
21441 [BZ #19667]
21442 * string/testcopy.c: Include <support/support.h>. Do not include
21443 <malloc.h>. Use <support/test-driver.c>.
21444 (main): Rename to do_test. Make static. Use xmalloc instead of
21445 malloc.
21446
21447 [BZ #13575]
21448 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
21449 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
21450 (SSIZE_MAX): Define to INT_MAX.
21451 * posix/test-ssize-max.c: New file.
21452 * posix/Makefile (tests): Add test-ssize-max.
21453
21454 [BZ #19668]
21455 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
21456 <support/support.h>. Do not include <malloc.h>.
21457 (query_auxv): Use xmalloc instead of malloc.
21458
21459 [BZ #14553]
21460 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
21461 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
21462 instead of loff_t.
21463
21464 2018-02-06 Florian Weimer <fweimer@redhat.com>
21465
21466 [BZ #18023]
21467 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
21468 Use scratch_buffer instead of extend_alloca.
21469
21470 2018-02-06 Zack Weinberg <zackw@panix.com>
21471
21472 * libio/stdio.h: Don't define getc or putc as macros.
21473 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
21474 not _IO_getc and _IO_putc.
21475
21476 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
21477 * stdio-common/tstgetln.c: Don't redefine ssize_t.
21478
21479 2018-02-06 Joseph Myers <joseph@codesourcery.com>
21480
21481 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
21482 (TCP_FASTOPEN_NO_COOKIE): Likewise.
21483
21484 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
21485
21486 [BZ #14890]
21487 * elf/elf.h (NT_PRFPREG): New macro.
21488 (NT_S390_VXRS_LOW): Likewise.
21489 (NT_S390_VXRS_HIGH): Likewise.
21490 (NT_S390_GS_CB): Likewise.
21491 (NT_S390_GS_BC): Likewise.
21492 (NT_S390_RI_CB): Likewise.
21493
21494 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
21495 (MAP_SYNC): New macro.
21496 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
21497 Likewise.
21498 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
21499 (MAP_SYNC): Likewise.
21500 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
21501 (MAP_SYNC): Likewise.
21502 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
21503 (MAP_SYNC): Likewise.
21504 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
21505 (MAP_SYNC): Likewise.
21506 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
21507 (MAP_SYNC): Likewise.
21508 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
21509 (MAP_SYNC): Likewise.
21510 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
21511 Likewise.
21512 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
21513 Likewise.
21514
21515 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
21516 (MAP_SHARED_VALIDATE): New macro.
21517 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
21518 (MAP_SHARED_VALIDATE): Likewise.
21519
21520 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21521
21522 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
21523 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
21524 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
21525
21526 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21527
21528 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
21529 (DT_NUM): Updated to 35.
21530
21531 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21532
21533 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
21534 __builtin_expect with __glibc_likely and __glibc_unlikely.
21535 (elf_machine_rela): Likewise.
21536 (elf_machine_lazy_rel): Likewise.
21537
21538 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21539
21540 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
21541 __builtin_expect with __glibc_likely and __glibc_unlikely.
21542 (elf_machine_lazy_rel): Likewise.
21543
21544 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21545
21546 [BZ #22638]
21547 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
21548 SHARED.
21549 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
21550
21551 2018-02-05 Andreas Schwab <schwab@suse.de>
21552
21553 [BZ #22761]
21554 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
21555 string.
21556
21557 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
21558
21559 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
21560 not check against PTHREAD_STACK_MIN.
21561
21562 2018-02-02 Sean McKean <smckean83@gmail.com>
21563
21564 [BZ #22735]
21565 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
21566
21567 2018-02-02 Florian Weimer <fweimer@redhat.com>
21568
21569 [BZ #22753]
21570 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
21571 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
21572 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
21573 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
21574 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
21575 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
21576 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
21577 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
21578 * manual/llio.texi (Scatter-Gather): Mention offset -1.
21579 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
21580 * misc/tst-preadvwritev2.c (do_test): Call it.
21581 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
21582
21583 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
21584
21585 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
21586
21587 * benchtests/bench-memcmp.c: Print json instead of plain text.
21588
21589 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
21590 every test run.
21591
21592 2018-02-01 Joseph Myers <joseph@codesourcery.com>
21593
21594 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
21595 version to 4.15.
21596 (s390_sthyi): New syscall.
21597
21598 * sysdeps/generic/ldbl-classify-compat.h: New file.
21599 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
21600 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
21601 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
21602 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
21603 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
21604 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
21605 * sysdeps/ieee754/dbl-64/s_finite.c: Include
21606 <ldbl-classify-compat.h>.
21607 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
21608 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
21609 <ldbl-classify-compat.h>.
21610 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
21611 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
21612 <ldbl-classify-compat.h>.
21613 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
21614 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
21615 <ldbl-classify-compat.h>.
21616 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
21617 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
21618 <ldbl-classify-compat.h>.
21619 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
21620 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
21621 <ldbl-classify-compat.h>.
21622 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
21623 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
21624 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
21625 * sysdeps/m68k/coldfire/math_private.h: Remove file.
21626 * sysdeps/microblaze/math_private.h: Likewise.
21627 * sysdeps/nios2/math_private.h: Likewise.
21628 * sysdeps/sh/math_private.h: Likewise.
21629
21630 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
21631 * sysdeps/m68k/coldfire/math_private.h: ... here.
21632 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
21633 * sysdeps/tile/math_private.h: Likewise.
21634 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
21635 Remove macro.
21636 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
21637 Likewise.
21638
21639 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
21640 Remove macro.
21641 (libc_fetestexcept): Likewise.
21642 (libc_feupdateenv_test): Likewise.
21643 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
21644 (libc_fetestexcept): Likewise.
21645 (libc_feupdateenv_test): Likewise.
21646 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
21647 (libc_fetestexcept): Likewise.
21648 (libc_feupdateenv_test): Likewise.
21649 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
21650 (libc_fetestexcept): Likewise.
21651 (libc_feupdateenv_test): Likewise.
21652
21653 * sysdeps/generic/math_private.h
21654 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
21655 New inline function.
21656 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
21657 Likewise.
21658
21659 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
21660 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
21661 * sysdeps/generic/math_private.h
21662 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
21663 inline function.
21664 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
21665 Likewise.
21666 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
21667 Likewise.
21668 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
21669 Likewise.
21670 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
21671 Likewise.
21672 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
21673 Likewise.
21674 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
21675 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
21676 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
21677 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
21678 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
21679 (__fegetenv): Likewise.
21680 (fesetenv): Likewise.
21681 (__fesetenv): Likewise.
21682 (feupdateenv): Likewise.
21683 (__feupdateenv): Likewise.
21684 (fegetround): Likewise.
21685 (__fegetround): Likewise.
21686 (fesetround): Likewise.
21687 (__fesetround): Likewise.
21688
21689 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
21690 (feraiseexcept): New macro.
21691 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
21692 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
21693 Remove macro.
21694 (__feraiseexcept): Likewise.
21695 (feclearexcept): Likewise.
21696 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
21697 (__feraiseexcept): Likewise.
21698 (feclearexcept): Likewise.
21699 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
21700 (__feraiseexcept): Likewise.
21701 (feclearexcept): Likewise.
21702 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
21703 (__feraiseexcept): Likewise.
21704 (feclearexcept): Likewise.
21705 (fetestexcept): Likewise.
21706
21707 * sysdeps/m68k/coldfire/math-tests.h: New file.
21708
21709 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
21710 * sysdeps/m68k/bits/fenv.h: ... here.
21711 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
21712 not define.
21713 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
21714 Likewise.
21715 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
21716 Likewise.
21717 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
21718 Likewise.
21719 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
21720 Likewise.
21721 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
21722 Define to 0.
21723 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
21724 (__FE_UNDEFINED): New enum constant.
21725 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
21726 Do not define.
21727 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
21728 Likewise.
21729 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
21730 Likewise.
21731 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
21732 to match generic bits/fenv.h.
21733 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
21734 Do not define.
21735
21736 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
21737 packed on bits.
21738 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
21739 * soft-fp/half.h (union _FP_UNION_H): Likewise.
21740 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
21741 * soft-fp/single.h (union _FP_UNION_S): Likewise.
21742
21743 2018-02-01 Carlos O'Donell <carlos@redhat.com>
21744 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
21745 Joseph Myers <joseph@codesourcery.com>
21746
21747 [BZ #21314]
21748 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
21749 (__log1p): Disable -Wmaybe-uninitialized for -Os around
21750 computation using c.
21751 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
21752 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
21753 computation using c.
21754
21755 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
21756
21757 * version.h (RELEASE): Set to "development".
21758 (VERSION): Set to "2.27.9000".
21759 * NEWS (2.28): New section.
21760
21761 * version.h (RELEASE): Set to "stable".
21762 (VERSION): Set to "2.27".
21763 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
21764
21765 * NEWS: Add the list of bugs fixed in 2.27.
21766
21767 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21768
21769 * stdlib/test-atexit-race-common.c (do_test): Check stack size
21770 against PTHREAD_STACK_MIN.
21771
21772 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
21773
21774 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
21775 New entries.
21776 (Rafał Lużyński, Andreas Schwab): Update.
21777
21778 2018-02-01 Rafał Lużyński <digitalfreak@lingonborough.com>
21779
21780 [BZ #10871]
21781 * NEWS: List the languages which actually use the alternative
21782 months feature in this release. Also explain that "alt_mon" and
21783 "ab_alt_mon" are optional.
21784
21785 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
21786
21787 [BZ #22765]
21788 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
21789
21790 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
21791
21792 * manual/install.texi (Tools for Compilation): Update the newest
21793 versions of gcc, binutils, texinfo, gawk, bison, and sed.
21794 * INSTALL: Regenerated.
21795
21796 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
21797
21798 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
21799 instead of __builtin_expect.
21800
21801 2018-01-30 Florian Weimer <fweimer@redhat.com>
21802
21803 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
21804 data.
21805 * nss/tst-nss-getpwent.c (do_test): Likewise.
21806
21807 2018-01-30 Rafał Lużyński <digitalfreak@lingonborough.com>
21808
21809 [BZ #10871]
21810 * localedata/locales/hr_HR (mon): Rename to...
21811 (alt_mon): This.
21812 (mon): Import from CLDR (genitive case).
21813 (d_t_fmt): Update the comment.
21814
21815 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
21816
21817 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
21818 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
21819 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
21820
21821 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
21822
21823 * mach/Versions: Fix version when __mach_host_self_ was added.
21824 * hurd/Versions: Fix version when _hurd_exec_paths was added.
21825 * sysdeps/mach/hurd/i386/ld.abilist: New file.
21826 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
21827 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
21828 * sysdeps/mach/hurd/i386/libc.abilist: New file.
21829 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
21830 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
21831 * sysdeps/mach/hurd/i386/libm.abilist: New file.
21832 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
21833 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
21834 * sysdeps/mach/hurd/i386/librt.abilist: New file.
21835 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
21836 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
21837 || to respect codestyle.
21838 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
21839 (do_test_bz20181): Rename accordingly.
21840 * malloc/malloc.c: Include <assert.h>.
21841 (assert): Do not define.
21842 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
21843 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
21844 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
21845 * sysdeps/mach/hurd/hp-timing.h: New file.
21846 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
21847
21848 2018-01-29 Darius Rad <darius@bluespec.com>
21849
21850 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
21851
21852 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
21853
21854 * sysdeps/init_array/crti.S (.section .init_array): Add
21855 PREINIT_FUNCTION when defined.
21856 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
21857 * config.h.in: Regenerate.
21858 * manual/platform.texi: Add RISC-V documenation for
21859 __riscv_flush_icache.
21860 * sysdeps/riscv/__longjmp.S: New file.
21861 * sysdeps/riscv/backtrace.c: Likewise.
21862 * sysdeps/riscv/bits/endian.h: Likewise.
21863 * sysdeps/riscv/bits/setjmp.h: Likewise.
21864 * sysdeps/riscv/bits/wordsize.h: Likewise.
21865 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
21866 * sysdeps/riscv/bsd-setjmp.c: Likewise.
21867 * sysdeps/riscv/dl-trampoline.S: Likewise.
21868 * sysdeps/riscv/gccframe.h: Likewise.
21869 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
21870 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
21871 * sysdeps/riscv/machine-gmon.h: Likewise.
21872 * sysdeps/riscv/memusage.h: Likewise.
21873 * sysdeps/riscv/setjmp.S: Likewise.
21874 * sysdeps/riscv/sys/asm.h: Likewise.
21875 * sysdeps/riscv/tls-macros.h: Likewise.
21876 * sysdeps/riscv/dl-tls.h: New file.
21877 * sysdeps/riscv/libc-tls.c: Likewise.
21878 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
21879 * sysdeps/riscv/nptl/tls.h: Likewise.
21880 * sysdeps/riscv/stackinfo.h: Likewise.
21881 * sysdeps/riscv/bits/fenv.h: New file.
21882 * sysdeps/riscv/e_sqrtl.c: Likewise.
21883 * sysdeps/riscv/fpu_control.h: Likewise.
21884 * sysdeps/riscv/math-tests.h: Likewise.
21885 * sysdeps/riscv/nofpu/Implies: Likewise.
21886 * sysdeps/riscv/sfp-machine.h: Likewise.
21887 * sysdeps/riscv/tininess.h: Likewise.
21888 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
21889 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
21890 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
21891 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
21892 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
21893 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
21894 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
21895 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
21896 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
21897 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
21898 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
21899 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
21900 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
21901 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
21902 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
21903 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
21904 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
21905 * sysdeps/riscv/rvd/s_finite.c: Likewise.
21906 * sysdeps/riscv/rvd/s_fma.c: Likewise.
21907 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
21908 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
21909 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
21910 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
21911 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
21912 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
21913 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
21914 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
21915 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
21916 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
21917 * sysdeps/riscv/rvf/fegetround.c: Likewise.
21918 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
21919 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
21920 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
21921 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
21922 * sysdeps/riscv/rvf/fesetround.c: Likewise.
21923 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
21924 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
21925 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
21926 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
21927 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
21928 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
21929 * sysdeps/riscv/rvf/math_private.h: Likewise.
21930 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
21931 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
21932 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
21933 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
21934 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
21935 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
21936 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
21937 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
21938 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
21939 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
21940 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
21941 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
21942 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
21943 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
21944 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
21945 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
21946 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
21947 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
21948 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
21949 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
21950 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
21951 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
21952 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
21953 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
21954 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
21955 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
21956 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
21957 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
21958 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
21959 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
21960 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
21961 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
21962 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
21963 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
21964 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
21965 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
21966 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
21967 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
21968 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
21969 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
21970 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
21971 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
21972 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
21973 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
21974 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
21975 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
21976 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
21977 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
21978 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
21979 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
21980 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
21981 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
21982 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
21983 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
21984 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
21985 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
21986 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
21987 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
21988 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
21989 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
21990 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
21991 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
21992 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
21993 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
21994 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
21995 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
21996 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
21997 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
21998 * sysdeps/riscv/Implies: New file.
21999 * sysdeps/riscv/Makefile: Likewise.
22000 * sysdeps/riscv/configure: Likewise.
22001 * sysdeps/riscv/configure.ac: Likewise.
22002 * sysdeps/riscv/nptl/Makefile: Likewise.
22003 * sysdeps/riscv/preconfigure: Likewise.
22004 * sysdeps/riscv/rv64/Implies-after: Likewise.
22005 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
22006 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
22007 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
22008 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
22009 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
22010 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
22011 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
22012 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
22013 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
22014 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
22015 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
22016 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
22017 (Config): Likewise.
22018
22019 2018-01-29 Florian Weimer <fweimer@redhat.com>
22020
22021 [BZ #22701]
22022 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
22023 libnsl_hidden_proto.
22024 * include/rpcsvc/yp.h (yp_xdrall): Declare with
22025 libnsl_hidden_proto.
22026 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
22027 * nis/Makefile (libnsl-routines): Add nss-default only for
22028 build-obsolete-nsl.
22029 * nis/nis_defaults.c (__nis_default_ttl): Add
22030 libnsl_hidden_nolink_def.
22031 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
22032 declaration.
22033 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
22034 * nis/ypclnt.c (yp_maplist): Likewise.
22035
22036 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
22037
22038 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
22039 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
22040
22041 2018-01-29 Joseph Myers <joseph@codesourcery.com>
22042
22043 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
22044 clean -dxfq for git updates when replacing sources.
22045
22046 * scripts/build-many-glibcs.py (Config.build_gcc): Use
22047 --disable-libcilkrts unconditionally, not just for the final GCC
22048 build for Hurd.
22049
22050 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
22051 version to 4.15.
22052
22053 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
22054
22055 [BZ #10871]
22056 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
22057 case).
22058
22059 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
22060
22061 [BZ #10871]
22062 * localedata/locales/be_BY (mon): Rename to...
22063 (alt_mon): This, then synchronize with CLDR (nominative case).
22064 (abmon): Rename to...
22065 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
22066 (mon): Import from CLDR (genitive case).
22067 (abmon): Likewise.
22068 * localedata/locales/be_BY@latin (mon): Rename to...
22069 (alt_mon): This.
22070 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
22071
22072 * localedata/locales/be_BY@latin (lang_name): Reworded to
22073 "biełaruskaja mova".
22074
22075 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
22076
22077 [BZ #10871]
22078 * localedata/locales/el_CY (mon): Renamed to...
22079 (alt_mon): This.
22080 (mon): Import from CLDR (genitive case).
22081 * localedata/locales/el_GR: Likewise.
22082
22083 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
22084
22085 [BZ #10871]
22086 * localedata/locales/ru_RU (mon): Rename to...
22087 (alt_mon): This.
22088 (abmon): Rename to...
22089 (ab_alt_mon): This.
22090 (mon): Import from CLDR (genitive case).
22091 (abmon): Copy from the old content except the 5th month which is
22092 now in the genitive case, even when abbreviated.
22093 * localedata/locales/ru_UA: Likewise.
22094 * time/tst-strptime.c (day_tests): Add an actual example of
22095 a difference between %b and %Ob in Russian.
22096
22097 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
22098
22099 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
22100 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
22101 a `c' variable.
22102 * resolv/res-close.c: Include <stdlib.h>.
22103 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
22104 <sys/wait.h>, <time.h>, <sys/uio.h>.
22105 (NOT_CANCEL_H): Add inclusion guard.
22106 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
22107 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
22108 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
22109 return 0.
22110 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
22111 vm_address_t * to ElfW(Addr) * for dl_main parameter.
22112 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
22113 instead of void *.
22114 * sysdeps/pthread/timer_create.c (timer_create): Do not use
22115 timer_ptr2id to cast struct timer_node * to void *.
22116 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
22117 --disable-libcilkrts to gcc configure.
22118 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
22119 and make them the default for now.
22120 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
22121 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
22122 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
22123 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
22124 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
22125 MACH_IPC_COMPAT.
22126 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
22127 __task_terminate would ever return successfully.
22128 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
22129 to global scope.
22130 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
22131 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
22132 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
22133 critical section to make code simpler and avoid warning.
22134 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
22135 critical section to make code simpler and avoid warning.
22136 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
22137 const char * instead of char *.
22138 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
22139 __hurd_file_name_split, hurd_file_name_split,
22140 __hurd_directory_name_split, hurd_directory_name_split,
22141 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
22142 hurd_file_name_path_lookup): Make lookup function parameter take a
22143 const char *name instead of char *name.
22144 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
22145 __hurd_directory_name_split): Likewise.
22146 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
22147 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
22148 * sysdeps/mach/hurd/check_native.c: New file.
22149 * sysdeps/mach/hurd/check_pf.c: New file.
22150 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
22151 (__freeifaddrs): Define macro to freeifaddrs.
22152 * sysdeps/mach/hurd/libhurduser.abilist: New file.
22153 * sysdeps/mach/libmachuser.abilist: New file.
22154 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
22155 (do_test_bz20181): Rename accordingly.
22156 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
22157 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
22158 <sys/mount.h>.
22159 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
22160 version only if __USE_EXTERN_INLINES is defined.
22161 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
22162 __hurd_sockfail): Likewise.
22163 (_hurd_fd_get): Always declare functions, and provide inline versions
22164 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
22165 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
22166 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
22167 _hurd_port_set): Always declare functions, and provide inline versions
22168 only if __USE_EXTERN_INLINES and _LIBC are defined and
22169 IS_IN(libc).
22170 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
22171 _hurd_critical_section_unlock): Likewise.
22172 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
22173 * __hurd_threadvar_location): Likewise.
22174 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
22175 _hurd_userlink_clear): Likewise.
22176 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
22177 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
22178 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
22179 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
22180 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
22181 __spin_lock_locked): Likewise.
22182 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
22183 __spin_lock_locked): Likewise.
22184 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
22185 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
22186 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
22187 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
22188 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
22189 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
22190 _POSIX_NO_TRUNC): Define to 0.
22191 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
22192 check size against PTHREAD_STACK_MIN.
22193 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
22194 IS_IN(libpthread)]: Include <sigsetops.h>.
22195 * mach/Makefile (user-interfaces): Add mach/gnumach.
22196 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
22197 * sysdeps/mach/configure (mach_interface_list): Regenerate.
22198 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
22199 instead of invalid -1.
22200 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
22201 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
22202 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
22203 <net/ppp_defs.h>.
22204
22205 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
22206
22207 * hurd/fcntl-internal.h: New file.
22208
22209 2018-01-27 James Clarke <jrtc27@jrtc27.com>
22210
22211 * sysdeps/hppa/fpu/libm-test-ulps: Update.
22212
22213 * sysdeps/alpha/fpu/libm-test-ulps: Update.
22214
22215 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
22216
22217 [BZ #22701]
22218 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
22219 Build only shared objects.
22220
22221 2018-01-26 Carlos O'Donell <carlos@redhat.com>
22222
22223 * README: Update for hppa.
22224
22225 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
22226
22227 * sysdeps/sparc/fpu/libm-test-ulps: Update
22228 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
22229
22230 2018-01-26 Carlos O'Donell <carlos@redhat.com>
22231
22232 Revert:
22233
22234 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
22235
22236 [BZ #22563]
22237 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
22238 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
22239 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
22240 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
22241 to feature_1.
22242
22243 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
22244
22245 [BZ #22563]
22246 * bits/types/__cancel_jmp_buf_tag.h: New file.
22247 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
22248 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
22249 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
22250 * nptl/Makefile (headers): Add
22251 bits/types/__cancel_jmp_buf_tag.h.
22252 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
22253 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
22254 * sysdeps/nptl/pthread.h: Include
22255 <bits/types/__cancel_jmp_buf_tag.h>.
22256 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
22257 __cancel_jmp_buf.
22258 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
22259
22260 2018-01-25 Rafał Lużyński <digitalfreak@lingonborough.com>
22261
22262 [BZ #10871]
22263 * localedata/locales/uk_UA (mon): Renamed to...
22264 (alt_mon): This.
22265 (alt_digits): "0" removed and then renamed to...
22266 (mon): This.
22267 (date_fmt): Definition changed not to use the alternative
22268 digits hack.
22269
22270 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
22271
22272 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
22273 FLAG_RISCV_FLOAT_ABI_DOUBLE.
22274 * elf/elf.h (EF_RISCV_RVC): New define.
22275 (EF_RISCV_FLOAT_ABI): Likewise.
22276 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
22277 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
22278 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
22279 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
22280 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
22281 define.
22282 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
22283
22284 2018-01-25 Andreas Schwab <schwab@suse.de>
22285
22286 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
22287 single quotes.
22288 * sysdeps/gnu/configure: Regenerate.
22289 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
22290 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
22291 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
22292 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
22293 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
22294 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
22295 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
22296 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
22297
22298 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
22299
22300 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
22301 URL, and run autoconf, make it the default for now.
22302
22303 2018-01-24 Joseph Myers <joseph@codesourcery.com>
22304
22305 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
22306 soft-float ColdFire configuration.
22307
22308 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
22309 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
22310 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
22311
22312 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
22313 MicroBlaze file.
22314
22315 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
22316 ....
22317 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
22318 ... here.
22319 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
22320 New file.
22321
22322 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
22323 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
22324 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
22325 file.
22326
22327 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
22328
22329 [BZ #22742]
22330 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
22331 Rename to __reserved and add comment.
22332 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
22333 Rename to __reserved.
22334
22335 2018-01-24 Joseph Myers <joseph@codesourcery.com>
22336
22337 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
22338 i686-gnu configurations.
22339 (Context.run_builds): Include mig, gnumach and hurd in components
22340 considered.
22341 (Context.checkout): Add mig, gnumach and hurd to components.
22342 (Context.checkout_tar): Add URL mappings for mig, gnumach and
22343 hurd.
22344 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
22345 (Config.build): Install gnumach headers, build mig and install
22346 hurd headers for 'gnu' OS.
22347 (Config.install_gnumach_headers): New function.
22348 (Config.install_hurd_headers): Likewise.
22349 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
22350 when building for 'gnu' OS.
22351
22352 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
22353
22354 * manual/tunables.texi (Hardware Capability Tunables): Fix
22355 spelling.
22356
22357 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
22358
22359 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
22360 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
22361 (ALTMON_11, ALTMON_12): Improve documentation.
22362 * manual/time.texi (strftime): Likewise.
22363
22364 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
22365
22366 [BZ #10871]
22367 * localedata/locales/pl_PL: Alternative month names added,
22368 primary month names are genitive now.
22369 * time/tst-strptime.c (day_tests): Actually use a genitive case
22370 of a month name in Polish language.
22371
22372 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
22373
22374 [BZ #10871]
22375 * manual/locale.texi: Document ALTMON_1..12 constants for
22376 nl_langinfo. Specify when to use ALTMON instead of MON.
22377 * manual/time.texi (strftime, strptime): Document GNU extension
22378 permitting O modifier with %B and %b. Specify when to use
22379 %OB instead of %B.
22380
22381 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
22382
22383 [BZ #10871]
22384 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
22385 names, define them as the same as abbreviated month names explicitly.
22386 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
22387 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
22388 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
22389 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
22390 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
22391 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
22392 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
22393 _NL_WABALTMON_12): New enum constants.
22394 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
22395 wab_alt_mon, and ab_alt_mon_defined members.
22396 (time_output): Output ab_alt_mon and wab_alt_mon members.
22397 (time_read): Read them, initialize them as copies of abmon and wabmon
22398 respectively if they are missing, initialize ab_alt_mon_defined.
22399 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
22400 * locale/programs/locfile-kw.h: Regenerate.
22401 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
22402 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
22403 and ru_RU.UTF-8.
22404 * time/strftime_l.c (a_altmonth, aam_len): New macros.
22405 [!COMPILE_WIDE] (ABALTMON_1): New macro.
22406 (__strftime_internal): Handle %Ob and %Oh formats.
22407 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
22408 (__strptime_internal): Handle %Ob and %Oh formats.
22409 * time/tst-strptime.c (day_tests): Add more tests to parse different
22410 forms of month names including the new %Ob format specifier.
22411
22412 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
22413
22414 [BZ #10871]
22415 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
22416 define them as the same as primary full month names explicitly.
22417 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
22418 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
22419 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
22420 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
22421 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
22422 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
22423 _NL_WALTMON_12): New enum constants.
22424 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
22425 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
22426 macros.
22427 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
22428 walt_mon, and alt_mon_defined members.
22429 (time_output): Output alt_mon and walt_mon members.
22430 (time_read): Read them, initialize them as copies of mon and wmon
22431 respectively if they are missing, initialize alt_mon_defined.
22432 * locale/programs/locfile-kw.gperf (alt_mon): Define.
22433 * locale/programs/locfile-kw.h: Regenerate.
22434 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
22435 * localedata/tst-langinfo.c (map): Add tests for the new constants
22436 ALTMON_1 .. ALTMON_12.
22437 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
22438 and pl_PL.UTF-8.
22439 * time/strftime_l.c (f_altmonth): New macro.
22440 (__strftime_internal): Handle %OB format.
22441 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
22442 (__strptime_internal): Handle %OB format.
22443 * time/tst-strptime.c (day_tests): Add tests to parse different forms
22444 of month names including the new %OB format specifier.
22445
22446 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22447
22448 [BZ #22685]
22449 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
22450 from ABORT_TRANSACTION.
22451 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
22452 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
22453 ABORT_TRANSACTION_IMPL): Likewise.
22454 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
22455 Linux code, but remove the code that aborts transactions.
22456
22457 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
22458
22459 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
22460
22461 2018-01-19 Rafał Lużyński <digitalfreak@lingonborough.com>
22462
22463 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
22464 in date: "2004-14-09" should be "2004-09-14".
22465 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
22466 "2003-15-09" should be "2003-09-15".
22467
22468 2018-01-18 Arjun Shankar <arjun@redhat.com>
22469
22470 [BZ #22343]
22471 [BZ #22774]
22472 CVE-2018-6485
22473 CVE-2018-6551
22474 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
22475 after padding.
22476 (_int_memalign): check for integer overflow before calling
22477 _int_malloc.
22478 * malloc/tst-malloc-too-large.c: New test.
22479 * malloc/Makefile: Add tst-malloc-too-large.
22480
22481 2018-01-18 Rafał Lużyński <digitalfreak@lingonborough.com>
22482
22483 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
22484 in date: "2017-24-07" should be "2017-07-24".
22485 * localedata/locales/mai_IN: Likewise.
22486 * localedata/locales/mai_NP: Likewise.
22487
22488 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
22489
22490 * po/ru.po: Update translations.
22491
22492 2018-01-17 Joseph Myers <joseph@codesourcery.com>
22493
22494 [BZ #22719]
22495 * sysdeps/hppa/backtrace.c: New file.
22496
22497 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
22498
22499 [BZ #22715]
22500 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
22501 align La_x86_64_retval to VEC_SIZE.
22502
22503 2018-01-16 Joseph Myers <joseph@codesourcery.com>
22504
22505 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
22506 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
22507
22508 2018-01-16 Florian Weimer <fweimer@redhat.com>
22509
22510 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
22511 Move tst-thread-exit-clobber ...
22512 [$(CXX)] (tests-unsupported): ... to here.
22513
22514 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
22515
22516 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
22517 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
22518 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
22519 (_dl_aarch64_cap_flags): Update.
22520 (_DL_HWCAP_COUNT): Update.
22521
22522 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
22523
22524 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
22525 (_DL_HWCAP_LAST): Remove.
22526 (_DL_HWCAP_COUNT): Move to ...
22527 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
22528 (_DL_HWCAP_COUNT): ... here.
22529
22530 2018-01-16 Florian Weimer <fweimer@redhat.com>
22531
22532 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
22533 mode with GNU extensions.
22534
22535 2018-01-15 Alan Hayward <alan.hayward@arm.com>
22536
22537 * elf/elf.h (NT_ARM_SVE): Define.
22538
22539 2018-01-15 Florian Weimer <fweimer@redhat.com>
22540
22541 [BZ #22636]
22542 * nptl/tst-minstack-throw.cc: New file.
22543 * nptl/Makefile (tests): Add tst-minstack-throw.
22544 (LDLIBS-tst-minstack-throw): Link with libstdc++.
22545 [!CXX] (tests-unsupported): Add tst-minstack-throw.
22546
22547 2018-01-15 Joseph Myers <joseph@codesourcery.com>
22548
22549 * scripts/build-many-glibcs.py (Context.checkout): Default
22550 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
22551 version to 1.1.0.
22552
22553 2018-01-13 Carlos O'Donell <carlos@redhat.com>
22554
22555 [BZ #22707]
22556 * elf/elf.h (DF_1_STUB): Define.
22557 (DF_1_PIE): Define.
22558
22559 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22560
22561 [BZ #22697]
22562 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
22563 Do not add 0.5 to integer or out-of-range arguments.
22564
22565 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
22566
22567 * po/bg.po: Update translations.
22568 * po/cs.po: Likewise.
22569 * po/de.po: Likewise.
22570 * po/ko.po: Likewise.
22571 * po/pl.po: Likewise.
22572 * po/sv.po: Likewise.
22573 * po/uk.po: Likewise.
22574 * po/vi.po: Likewise.
22575
22576 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
22577
22578 * aarch64/start.S (_start): Use __wrap_main.
22579 (__wrap_main): New local symbol.
22580
22581 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
22582
22583 [BZ #22679]
22584 CVE-2018-1000001
22585 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
22586 generic_getcwd if the path returned by getcwd syscall is not absolute.
22587 * io/tst-getcwd-abspath.c: New test.
22588 * io/Makefile (tests): Add tst-getcwd-abspath.
22589
22590 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
22591
22592 * malloc/malloc.c (malloc_consolidate): Add size check.
22593
22594 2018-01-12 Florian Weimer <fweimer@redhat.com>
22595
22596 * support/write_message.c (write_message): Preserve errno.
22597 * support/check.c (print_failure): Likewise.
22598 * support/support_test_verify_impl.c (support_test_verify_impl):
22599 Likewise.
22600 * support/support_test_compare_failure.c
22601 (support_test_compare_failure): Likewise.
22602
22603 2018-01-12 Florian Weimer <fweimer@redhat.com>
22604
22605 [BZ #22701]
22606 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
22607 Prevent installation of libnsl.so.
22608 (libnsl-inhibit-o): Do not build (or install) static libraries.
22609
22610 2018-01-12 Egmont Koblinger <egmont@gmail.com>
22611
22612 [BZ #22657]
22613 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
22614 before the day number which may produce a double space.
22615 (date_fmt): Likewise.
22616
22617 2018-01-12 Joseph Myers <joseph@codesourcery.com>
22618
22619 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
22620 instead of fegetenv.
22621
22622 2018-01-11 Joseph Myers <joseph@codesourcery.com>
22623
22624 [BZ #22702]
22625 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
22626 comment to say exceptions are discarded.
22627 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
22628 __fegetenv.
22629 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
22630 be enabled.
22631
22632 2018-01-11 Florian Weimer <fweimer@redhat.com>
22633
22634 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
22635 and error message.
22636
22637 2018-01-11 Florian Weimer <fweimer@redhat.com>
22638
22639 [BZ #22636]
22640 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
22641 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
22642
22643 2018-01-10 Joseph Myers <joseph@codesourcery.com>
22644
22645 [BZ #22693]
22646 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
22647 negative arguments in test for NaN or infinity argument.
22648
22649 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
22650
22651 * po/libc.pot: Regenerate.
22652
22653 2018-01-10 Florian Weimer <fweimer@redhat.com>
22654
22655 [BZ #22636]
22656 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
22657 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
22658
22659 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
22660
22661 * hurd/hurd/fd.h: Include <fcntl.h>
22662 (__hurd_at_flags): New function.
22663 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
22664 with call to __hurd_at_flags.
22665 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
22666 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
22667 __faccessat
22668 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
22669 (__access_noerrno): Use __faccessat_common instead of access_common.
22670 (__access): Likewise.
22671 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
22672 with a call to __faccessat.
22673 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
22674 (__faccessat_common): ... this. Move implementation of __access into it when
22675 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
22676 reauthenticate_cwdir_at helper to implement AT mechanism.
22677 (__faccessat_noerrno): New function, just calls __faccessat_common.
22678 (__faccessat): New function, just calls __faccessat_common.
22679 (faccessat): Define weak alias.
22680
22681 2018-01-10 Joseph Myers <joseph@codesourcery.com>
22682
22683 [BZ #22691]
22684 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
22685 (CFLAGS-s_fmaxmagl.c): New variable.
22686 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
22687
22688 [BZ #22690]
22689 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
22690 long int for arguments of possibly overflowing addition or
22691 subtraction.
22692 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
22693
22694 2018-01-09 Joseph Myers <joseph@codesourcery.com>
22695
22696 [BZ #22688]
22697 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
22698 (CFLAGS-e_remainderl.c): New variable.
22699
22700 [BZ #22687]
22701 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
22702 variable.
22703 (CFLAGS-s_cacoshl.c): Likewise.
22704 (CFLAGS-s_casinhl.c): Likewise.
22705 (CFLAGS-s_catanl.c): Likewise.
22706 (CFLAGS-s_catanhl.c): Likewise.
22707 (CFLAGS-s_cexpl.c): Likewise.
22708 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
22709 (CFLAGS-s_csinhl.c): Likewise.
22710 (CFLAGS-s_clogl.c): Likewise.
22711 (CFLAGS-s_clog10l.c): Likewise.
22712 (CFLAGS-s_csinl.c): Likewise.
22713 (CFLAGS-s_csqrtl.c): Likewise.
22714
22715 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
22716 2017-01-09 Svante Signell <svante.signell@gmail.com>
22717
22718 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
22719 (_hurd_exec_paths): New function.
22720 * hurd/hurd.h (_hurd_exec): Deprecate function.
22721 (_hurd_exec_paths): Declare function.
22722 * hurd/Versions: Export _hurd_exec_paths.
22723 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
22724 (__execve): Use __getcwd to build absolute path, and use
22725 _hurd_exec_paths instead of _hurd_exec.
22726 * sysdeps/mach/hurd/spawni.c: Likewise.
22727 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
22728 _hurd_exec.
22729
22730 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
22731
22732 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
22733 test instead of failing in case of ENOENT returned by posix_openpt.
22734
22735 2018-01-08 Florian Weimer <fweimer@redhat.com>
22736
22737 resolv: Support binary labels in test framework.
22738 * support/resolv_test.c (struct to_be_freed): Remove.
22739 (struct compressed_name): New.
22740 (allocate_compressed_name, ascii_tolower)
22741 (compare_compressed_name): New functions.
22742 (struct resolv_response_builder): Update type of
22743 compression_offsets for use with tsearch. Rempve to_be_freed.
22744 (response_push_pointer_to_free): Remove function.
22745 (resolv_response_add_name): Rewrite using struct compressed_name
22746 and tsearch instead of hsearch_r.
22747 (response_builder_allocate): Remove initialization of
22748 compression_offsets.
22749 (response_builder_free): Update for removal of to_be_freed. Use
22750 tdestroy instead of hdestroy_r.
22751 * resolv/Makefile (tests): Add tst-resolv-binary.
22752 (tst-resolv-binary): Link with -lresolv -lpthread.
22753
22754 2018-01-08 Florian Weimer <fweimer@redhat.com>
22755
22756 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
22757 time. Pass positive flag instead of negative flag to
22758 support_test_compare_failure.
22759 (support_test_compare_failure): Change negative parameter to
22760 positive.
22761 * support/support_test_compare_failure.c (report)
22762 (support_test_compare_failure): Likewise.
22763 * support/tst-test_compare.c (return_ssize_t, return_int): New.
22764 (do_test): Check int/size_t, ssize_t/size_t comparisons.
22765
22766 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
22767
22768 [BZ #22637]
22769 * nptl/descr.h (stackblock, stackblock_size): Update comments.
22770 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
22771 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
22772 stacksize.
22773 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
22774
22775 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
22776
22777 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
22778 Add s_sincosf-sse2 and s_sincosf-fma.
22779 (CFLAGS-s_sincosf-fma.c): New.
22780 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
22781 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
22782 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
22783 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
22784 __sincosf is defined.
22785
22786 2018-01-08 Florian Weimer <fweimer@redhat.com>
22787
22788 * nptl/tst-thread-exit-clobber.cc: New file.
22789 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
22790 C++11 mode.
22791 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
22792 (tests): Add tst-thread-exit-clobber.
22793 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
22794
22795 2018-01-08 Florian Weimer <fweimer@redhat.com>
22796
22797 * support/check.h (support_static_assert): Define.
22798 (TEST_COMPARE): Use it.
22799
22800 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
22801
22802 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
22803 [!__RLIM_T_MATCHES_RLIM64_T]
22804 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
22805 __getrlimit64. Add libc_hidden_weak.
22806
22807 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
22808
22809 * elf/elf.h (R_RISCV_NONE): New define.
22810 (R_RISCV_32): Likewise.
22811 (R_RISCV_64): Likewise.
22812 (R_RISCV_RELATIVE): Likewise.
22813 (R_RISCV_COPY): Likewise.
22814 (R_RISCV_JUMP_SLOT): Likewise.
22815 (R_RISCV_TLS_DTPMOD32): Likewise.
22816 (R_RISCV_TLS_DTPMOD64): Likewise.
22817 (R_RISCV_TLS_DTPREL32): Likewise.
22818 (R_RISCV_TLS_DTPREL64): Likewise.
22819 (R_RISCV_TLS_TPREL32): Likewise.
22820 (R_RISCV_TLS_TPREL64): Likewise.
22821 * Makerules (make-link-multidir): Make directories before linking into
22822 them.
22823 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
22824 define.
22825 (VDSO_HASH_LINUX_4_15): Likewise.
22826 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
22827 in subdirectories of lib.
22828 * nptl/Makefile (/librt.so): Always depend on
22829 "$(shared-thread-library)".
22830
22831 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
22832
22833 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
22834 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
22835 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
22836 (___tls_get_addr).
22837 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
22838 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
22839 "-O2 -march=i686".
22840 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
22841 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
22842 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
22843 * sysdeps/gnu/glob-lstat-compat.c: New file.
22844 * sysdeps/gnu/glob64-lstat-compat.c: New file.
22845 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
22846
22847 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22848
22849 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
22850 Reserve 16 chars to reloc_addr before calling _itoa_word.
22851
22852 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
22853
22854 [BZ #22678]
22855 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
22856 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
22857
22858 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
22859 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
22860
22861 * resource/tst-getrlimit.c: Add copyright header.
22862
22863 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
22864 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22865
22866 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
22867 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
22868 Define __GI_getrlimit64 as weak alias of __getrlimit64.
22869 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
22870 instead.
22871 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
22872 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
22873 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
22874 RLIM64_INFINITY): Fix values to match the kernel ones.
22875 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
22876 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
22877 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
22878 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
22879 getrlimit64@@GLIBC_2_27.
22880 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
22881 and setrlimit64.
22882 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
22883 getrlimit, setrlimit, getrlimit64 and setrlimit64.
22884 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
22885 setrlimit, getrlimit64 and setrlimit64.
22886
22887 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
22888
22889 [BZ #22648]
22890 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
22891 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
22892
22893 2018-01-04 Joseph Myers <joseph@codesourcery.com>
22894
22895 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
22896 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
22897 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
22898
22899 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22900
22901 [BZ #15479]
22902 [BZ #22666]
22903 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
22904 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
22905
22906 [BZ #15479]
22907 [BZ #22665]
22908 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
22909 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
22910 * sysdeps/alpha/fpu/s_floor.c: Likewise.
22911 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
22912
22913 2018-01-04 Florian Weimer <fweimer@redhat.com>
22914
22915 [BZ #22667]
22916 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
22917 Align the stack before calling exit.
22918 * stdlib/tst-makecontext-align.c: New file.
22919 * stdlib/Makefile (tests): Add tst-makecontext-align.
22920
22921 2018-01-04 Florian Weimer <fweimer@redhat.com>
22922
22923 Add support for calling dlvsym from libc.so.
22924 * include/dlfcn.h (__libc_dlvsym): Declare.
22925 * elf/Makefile (tests-static-internal): Add
22926 tst-libc_dlvsym-static.
22927 (tests-internal): Add tst-libc_dlvsym.
22928 (modules-names): Add tst-libc_dlvsym-dso.
22929 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
22930 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
22931 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
22932 object tst-libc_dlvsym-dso.so needs to be built before running
22933 these tests.
22934 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
22935 * elf/Versions: Export __libc_dlvsym.
22936 * elf/dl-libc.c (struct do_dlvsym_args): New.
22937 (do_dlvsym, __libc_dlvsym): New functions.
22938 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
22939 (_dl_open_hook2): New variable.
22940 (__libc_register_dl_open_hook): Set it.
22941 * elf/tst-libc_dlvsym-dso.c: New file.
22942 * elf/tst-libc_dlvsym-static.c: Likewise.
22943 * elf/tst-libc_dlvsym.c: Likewise.
22944 * elf/tst-libc_dlvsym.h: Likewise.
22945
22946 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
22947
22948 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
22949 include <sys/mount.h>.
22950
22951 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
22952
22953 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
22954 Add __NO_MATH_ERRNO__ check.
22955
22956 2018-01-02 Joseph Myers <joseph@codesourcery.com>
22957
22958 * sysdeps/mips/mips32/libm-test-ulps: Update.
22959 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
22960
22961 2018-01-02 Florian Weimer <fweimer@redhat.com>
22962
22963 * misc/tst-pselect.c: Add copyright header.
22964
22965 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
22966
22967 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
22968 comment.
22969 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
22970 comment.
22971 (settrlimit): Rename into setrlimit.
22972 (__sttrlimit): Rename into __setrlimit.
22973
22974 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
22975 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
22976 never defined in that case.
22977
22978 2018-01-02 Joseph Myers <joseph@codesourcery.com>
22979
22980 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
22981
22982 * sysdeps/arm/libm-test-ulps: Update.
22983
22984 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
22985 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
22986
22987 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
22988
22989 * NEWS: Add cosf and sincosf to list of optimized functions.
22990
22991 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
22992
22993 [BZ #22660]
22994 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
22995 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
22996 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
22997 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
22998
22999 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
23000
23001 [BZ #22433]
23002 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
23003
23004 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
23005 making a copy of it.
23006
23007 2018-01-01 Joseph Myers <joseph@codesourcery.com>
23008
23009 * manual/texinfo.tex: Update to version 2017-12-26.21 with
23010 trailing whitespace removed.
23011 * scripts/config.guess: Update to version 2018-01-01.
23012 * scripts/config.sub: Update to version 2018-01-01.
23013 * scripts/move-if-change: Update from gnulib.
23014
23015 * NEWS: Update copyright dates.
23016 * catgets/gencat.c (print_version): Likewise.
23017 * csu/version.c (banner): Likewise.
23018 * debug/catchsegv.sh: Likewise.
23019 * debug/pcprofiledump.c (print_version): Likewise.
23020 * debug/xtrace.sh (do_version): Likewise.
23021 * elf/ldconfig.c (print_version): Likewise.
23022 * elf/ldd.bash.in: Likewise.
23023 * elf/pldd.c (print_version): Likewise.
23024 * elf/sotruss.sh: Likewise.
23025 * elf/sprof.c (print_version): Likewise.
23026 * iconv/iconv_prog.c (print_version): Likewise.
23027 * iconv/iconvconfig.c (print_version): Likewise.
23028 * locale/programs/locale.c (print_version): Likewise.
23029 * locale/programs/localedef.c (print_version): Likewise.
23030 * login/programs/pt_chown.c (print_version): Likewise.
23031 * malloc/memusage.sh (do_version): Likewise.
23032 * malloc/memusagestat.c (print_version): Likewise.
23033 * malloc/mtrace.pl: Likewise.
23034 * manual/libc.texinfo: Likewise.
23035 * nptl/version.c (banner): Likewise.
23036 * nscd/nscd.c (print_version): Likewise.
23037 * nss/getent.c (print_version): Likewise.
23038 * nss/makedb.c (print_version): Likewise.
23039 * posix/getconf.c (main): Likewise.
23040 * scripts/test-installation.pl: Likewise.
23041 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
23042
23043 * All files with FSF copyright notices: Update copyright dates
23044 using scripts/update-copyrights.
23045 * locale/programs/charmap-kw.h: Regenerated.
23046 * locale/programs/locfile-kw.h: Likewise.
23047
23048 2017-12-31 Zack Weinberg <zackw@panix.com>
23049
23050 * libio/bits/libio-ldbl.h: Correct check for improper
23051 inclusion. Add own multiple include guard.
23052
23053 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
23054 Dmitry V. Levin <ldv@altlinux.org>
23055
23056 [BZ #22625]
23057 CVE-2017-16997
23058 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
23059 string token expansion. Check for NULL pointer or empty string possibly
23060 returned by expand_dynamic_string_token.
23061 (decompose_rpath): Check for empty path after dynamic string
23062 token expansion.
23063
23064 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
23065
23066 [BZ #22433]
23067 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
23068
23069 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
23070 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
23071 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
23072 and PTRACE_SYSCALL.
23073 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
23074 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
23075 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
23076 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
23077 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
23078 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
23079
23080 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
23081 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
23082 __ptrace_peeksiginfo_flags, ptrace): Move to ...
23083 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
23084 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
23085 bits/ptrace-shared.h.
23086 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
23087 <bits/ptrace-shared.h>.
23088 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
23089 __ptrace_peeksiginfo_flags, ptrace): Remove.
23090 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
23091 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
23092 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
23093 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
23094 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
23095
23096 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
23097
23098 [BZ #17804]
23099 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
23100 end of the loop. Improve comments.
23101
23102 2017-12-29 Zack Weinberg <zackw@panix.com>
23103
23104 [BZ #22615]
23105 * manual/errno.texi (Checking for Errors): Explicitly say that errno
23106 might be set on success.
23107
23108 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
23109
23110 [BZ #22611]
23111 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
23112 is unchanged on success.
23113
23114 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
23115
23116 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
23117 updated.
23118 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
23119 expand_dynamic_string_token): Likewise.
23120 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
23121 is_path argument.
23122
23123 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
23124 contains ':'.
23125
23126 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
23127 is set and name contains ':', and all code depending on these checks.
23128
23129 2017-12-24 Zack Weinberg <zackw@panix.com>
23130
23131 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
23132 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
23133 respectively.
23134 * libio/libio.h: Rename the original version of this file to
23135 libio/bits/libio.h. Error out if not included by stdio.h or the
23136 stub libio.h.
23137 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
23138 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
23139 if not included by bits/libio.h or the stub _G_config.h.
23140 * sysdeps/unix/sysv/linux/_G_config.h: Move to
23141 sysdeps/unix/sysv/linux/bits. Error out if not included by
23142 bits/libio.h or the stub _G_config.h.
23143 * libio/stdio.h: Include bits/libio.h, not libio.h.
23144 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
23145 well as libio.h and _G_config.h.
23146
23147 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
23148 * libio/strfile.h, stdio-common/vfscanf.c
23149 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
23150 Include stdio.h, not _G_config.h nor libio.h.
23151 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
23152 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
23153
23154 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
23155
23156 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
23157
23158 [BZ #22347]
23159 * stdlib/getrandom.c (getrandom): Fix comment.
23160 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
23161
23162 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
23163
23164 [BZ #21161]
23165 * manual/arith.texi (strtoul): Fix a typo.
23166
23167 [BZ #22596]
23168 * manual/arith.texi (finite): Fix the description of the return
23169 value.
23170
23171 2017-12-22 Eric Blake <ebb9@byu.net>
23172
23173 Avoid gcc warnings on cygwin
23174 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
23175 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
23176 Avoid unused variable.
23177
23178 2017-12-22 Florian Weimer <fweimer@redhat.com>
23179
23180 * io/Makefile (routines): Add copy_file_range.
23181 (tests): Add tst-copy_file_range.
23182 (tests-static, tests-internal): Add tst-copy_file_range-compat.
23183 * io/Versions (GLIBC_2.27): Export copy_file_range.
23184 * io/copy_file_range-compat.c: New file.
23185 * io/copy_file_range.c: Likewise.
23186 * io/tst-copy_file_range-compat.c: Likewise.
23187 * io/tst-copy_file_range.c: Likewise.
23188 * manual/llio.texi (Copying File Data): New section.
23189 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
23190 * support/Makefile (libsupport-routines): Add support-xfstat,
23191 xftruncate, xlseek.
23192 * support/support-xfstat.c: New file.
23193 * support/xftruncate.c: Likewise.
23194 * support/xlseek.c: Likewise.
23195 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
23196 * sysdeps/unix/sysv/linux/**.abilist: Update.
23197 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
23198
23199 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
23200
23201 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
23202 disable-multi-arch variant to aarch64-linux-gnu.
23203
23204 2017-12-20 Joseph Myers <joseph@codesourcery.com>
23205
23206 * manual/texinfo.tex: Update to version 2017-12-18.20 with
23207 trailing whitespace removed.
23208 * scripts/config.guess: Update to version 2017-12-17.
23209 * scripts/config.sub: Update to version 2017-11-23.
23210 * scripts/install-sh: Update to version 2017-09-23.17.
23211 * scripts/move-if-change: Update to version 2017-09-13 06:45.
23212
23213 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23214
23215 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
23216 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
23217 * sysdeps/tile/_mcount.S (__mcount): Likewise.
23218 * sysdeps/tile/crti.S (_init, _fini): Likewise.
23219 * sysdeps/tile/crtn.S: Likewise.
23220 * sysdeps/tile/dl-start.S (_start): Likewise.
23221 * sysdeps/tile/dl-trampoline.S: Likewise.
23222 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
23223 * sysdeps/tile/start.S (_start): Likewise.
23224 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
23225 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
23226 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
23227 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
23228 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
23229 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
23230 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
23231
23232 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
23233 comment.
23234 * sysdeps/tile/preconfigure: Remove tilegx folder.
23235 * sysdeps/tile/tilegx/Implies: Move definitions to ...
23236 * sysdeps/tile/Implies: ... here.
23237 * sysdeps/tile/tilegx/Makefile: Move rules to ...
23238 * sysdeps/tile/Makefile: ... here.
23239 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
23240 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
23241 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
23242 * sysdeps/tile/bits/wordsize.h: ... here.
23243 * sysdeps/tile/tilegx/*: Move to ...
23244 * sysdeps/tile/*: ... here.
23245 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
23246 * sysdeps/tile/tilegx32/Implies: ... here.
23247 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
23248 * sysdeps/tile/tilegx64/Implies: ... here.
23249 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
23250 to ...
23251 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
23252 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
23253 * sysdeps/unix/sysv/linux/tile/*: ... here.
23254 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
23255 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
23256 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
23257 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
23258
23259 * README: Remove tilepro-*-linux-gnu from supported architecture.
23260 * scripts/build-many-glibcs.py: Likewise.
23261 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
23262 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
23263 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
23264 elf_machine_matches_host, elf_machine_dynamic,
23265 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
23266 howto, elf_machine_rela): Likewise.
23267 * sysdeps/tile/dl-start.S (_start): Likewise.
23268 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
23269 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
23270 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
23271 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
23272 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
23273 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
23274 Likewise.
23275 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
23276 * sysdeps/tile/preconfigure: Likewise.
23277 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
23278 POINTER_CHK_GUARD): Likewise.
23279 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
23280 * sysdeps/tile/start.S (_start): Likewise.
23281 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
23282 Likewise.
23283 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
23284 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
23285 CMOVNEZ): Remove.
23286 * sysdeps/unix/sysv/linux/tile/bits/environments.h
23287 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
23288 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
23289 Likewise.
23290 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
23291 * sysdeps/tile/tilepro/Implies: Remove file.
23292 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
23293 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
23294 * sysdeps/tile/tilepro/memchr.c: Likewise.
23295 * sysdeps/tile/tilepro/memcpy.S: Likewise.
23296 * sysdeps/tile/tilepro/memset.c: Likewise.
23297 * sysdeps/tile/tilepro/memusage.h: Likewise.
23298 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
23299 * sysdeps/tile/tilepro/strchr.c: Likewise.
23300 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
23301 * sysdeps/tile/tilepro/strlen.c: Likewise.
23302 * sysdeps/tile/tilepro/strrchr.c: Likewise.
23303 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
23304 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
23305 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
23306 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
23307 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
23308 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
23309 Likewise.
23310 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
23311 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
23312 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
23313 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
23314 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
23315 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
23316 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
23317 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
23318 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
23319 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
23320 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
23321 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
23322 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
23323 tilepro mention in comment.
23324
23325 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
23326 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
23327 * nptl/pthread_join_common.c: New file: common function used on
23328 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
23329 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
23330 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
23331 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
23332 (cleanup): Move definition to pthread_join_common.c.
23333 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
23334 Remove superflous checks.
23335 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
23336 Likewise.
23337
23338 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
23339
23340 * sysdeps/aarch64/libm-test-ulps: Update.
23341
23342 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23343
23344 * sysdeps/aarch64/memset.S (MEMSET): Define.
23345
23346 2017-12-20 Florian Weimer <fweimer@redhat.com>
23347
23348 [BZ #22635]
23349 nptl: Provide full implementation of pthread_self in libc.so.
23350 * nptl/Makefile (routines): Add pthread_self.
23351 (libpthread-routines): Replace pthread_self with
23352 compat-pthread_self.
23353 * nptl/forward.c (pthread_self): Remove.
23354 * nptl/nptl-init.c (pthread_functions): Do not initialize
23355 ptr_pthread_self.
23356 * nptl/pthread_self.c (pthread_self): Remove weak alias.
23357 * nptl/compat-pthread_self.c: New file.
23358 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
23359 Remove ptr_pthread_self.
23360
23361 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
23362
23363 * posix/regcomp.c: Fix spelling in comments.
23364 * posix/regex.h: Likewise.
23365 * posix/regex_internal.c: Likewise.
23366 * posix/regexec.c: Likewise.
23367
23368 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
23369
23370 [BZ #22377]
23371 * math/Makefile [C++] (tests): Add test for iseqsig.
23372 * math/math.h [C++] (iseqsig): New implementation, which does
23373 not rely on __MATH_TG/__builtin_types_compatible_p.
23374 * math/test-math-iseqsig.cc: New file.
23375 * sysdeps/powerpc/powerpc64le/Makefile
23376 (CFLAGS-test-math-iseqsig.cc): New variable.
23377
23378 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
23379
23380 * elf/dl-load.c (is_trusted_path): Remove.
23381 (fillin_rpath): Remove check_trusted argument and its use,
23382 all callers changed.
23383
23384 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23385
23386 [BZ #22630]
23387 * Makeconfig (link-pie-before-libc): Replace -pie with
23388 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
23389 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
23390 (tst-dlopen-aout-no-pie): New.
23391 (LDFLAGS-tst-prelink): Removed.
23392 (tst-prelink-no-pie): New.
23393 (LDFLAGS-tst-main1): Removed.
23394 (tst-main1-no-pie): New.
23395 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
23396 (tst-gmon-no-pie): New.
23397
23398 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23399
23400 * manual/install.texi: Document that --enable-static-pie
23401 implies PIE.
23402 * INSTALL: Regenerated.
23403
23404 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
23405
23406 [BZ #21309]
23407 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
23408 unsigned.
23409
23410 2017-12-19 Joseph Myers <joseph@codesourcery.com>
23411
23412 Revert:
23413
23414 2017-12-19 Joseph Myers <joseph@codesourcery.com>
23415
23416 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23417
23418 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
23419
23420 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
23421 <errno.h>. Include "eexp.tbl".
23422 (half): New constant.
23423 (one): Likewise.
23424 (__ieee754_exp): Rewrite.
23425 (__slowexp): Remove prototype.
23426 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
23427 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
23428 * sysdeps/i386/fpu/slowexp.c: Likewise.
23429 * sysdeps/ia64/fpu/slowexp.c: Likewise.
23430 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
23431 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
23432 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
23433 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
23434 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
23435 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
23436 comment.
23437 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
23438 (CPPFLAGS-slowexp.c): Remove variable.
23439 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23440 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
23441 (CFLAGS-slowexp-fma.c): Remove variable.
23442 (CFLAGS-slowexp-fma4.c): Likewise.
23443 (CFLAGS-slowexp-avx.c): Likewise.
23444 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
23445 define as macro.
23446 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
23447 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
23448 * math/Makefile (type-double-routines): Remove slowexp.
23449 * manual/probes.texi (slowexp_p6): Remove.
23450 (slowexp_p32): Likewise.
23451
23452 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23453
23454 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
23455 arithmetic.
23456
23457 * lib/glob.c (glob): Do not pass NULL to mempcpy.
23458
23459 2017-12-19 Joseph Myers <joseph@codesourcery.com>
23460
23461 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23462
23463 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
23464
23465 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
23466 <errno.h>. Include "eexp.tbl".
23467 (half): New constant.
23468 (one): Likewise.
23469 (__ieee754_exp): Rewrite.
23470 (__slowexp): Remove prototype.
23471 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
23472 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
23473 * sysdeps/i386/fpu/slowexp.c: Likewise.
23474 * sysdeps/ia64/fpu/slowexp.c: Likewise.
23475 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
23476 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
23477 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
23478 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
23479 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
23480 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
23481 comment.
23482 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
23483 (CPPFLAGS-slowexp.c): Remove variable.
23484 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23485 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
23486 (CFLAGS-slowexp-fma.c): Remove variable.
23487 (CFLAGS-slowexp-fma4.c): Likewise.
23488 (CFLAGS-slowexp-avx.c): Likewise.
23489 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
23490 define as macro.
23491 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
23492 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
23493 * math/Makefile (type-double-routines): Remove slowexp.
23494 * manual/probes.texi (slowexp_p6): Remove.
23495 (slowexp_p32): Likewise.
23496
23497 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23498 James Clarke <jrtc27@jrtc27.com>
23499
23500 [BZ #22603]
23501 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
23502 addition.
23503
23504 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23505
23506 [BZ #22605]
23507 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
23508 code.
23509
23510 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23511
23512 [BZ #22563]
23513 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
23514 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
23515 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
23516 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
23517 to feature_1.
23518
23519 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23520
23521 [BZ #22563]
23522 * bits/types/__cancel_jmp_buf_tag.h: New file.
23523 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
23524 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
23525 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
23526 * nptl/Makefile (headers): Add
23527 bits/types/__cancel_jmp_buf_tag.h.
23528 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
23529 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
23530 * sysdeps/nptl/pthread.h: Include
23531 <bits/types/__cancel_jmp_buf_tag.h>.
23532 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
23533 __cancel_jmp_buf.
23534 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
23535
23536 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
23537
23538 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
23539 --enable-static-pie variants to x86_64, x32 and i686.
23540
23541 2017-12-19 Joseph Myers <joseph@codesourcery.com>
23542
23543 [BZ #22631]
23544 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
23545 argument for attrubutes. All callers changed.
23546 (__inline_mathop1): Likewise. All callers changed.
23547 (__inline_mathop): Likewise. All callers changed.
23548 [__USE_MISC] (scalbn): Use __inline_forward instead of
23549 __inline_forward_c.
23550 [__USE_ISOC99] (scalbln): Likewise.
23551 [__USE_ISOC99] (nearbyint): Likewise.
23552 [__USE_ISOC99] (lrint): Likewise.
23553 [__USE_MISC] (scalbnf): Likewise.
23554 [__USE_ISOC99] (scalblnf): Likewise.
23555 [__USE_ISOC99] (nearbyintf): Likewise.
23556 [__USE_ISOC99] (lrintf): Likewise.
23557 [__USE_MISC] (scalbnl): Likewise.
23558 [__USE_ISOC99] (scalblnl): Likewise.
23559 [__USE_ISOC99] (nearbyintl): Likewise.
23560 [__USE_ISOC99] (lrintl): Likewise.
23561 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
23562 __inline_mathop and __m81_defun changed.
23563
23564 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
23565 CPU or FPU for ARM hard-float configurations.
23566
23567 2017-12-18 Joseph Myers <joseph@codesourcery.com>
23568
23569 * nptl/tst-attr3.c: Include <libc-diag.h>.
23570 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
23571
23572 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
23573
23574 * string/tester.c (test_strncat): Also disable -Warray-bounds
23575 warnings for two tests.
23576
23577 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
23578
23579 [BZ #22614]
23580 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
23581 $(cc-pie-default) == yes.
23582 * config.make.in (cc-pie-default): New.
23583 * configure.ac (libc_cv_pie_default): Renamed to ...
23584 (libc_cv_cc_pie_default): This.
23585 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
23586 * configure: Regenerated.
23587
23588 2017-12-18 Florian Weimer <fweimer@redhat.com>
23589
23590 [BZ #20204]
23591 ld.so: Harden dl-libc/libdl hooks.
23592 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
23593 (rtld_active): New function.
23594 * dlfcn/dladdr.c (__dladdr): Call it.
23595 * dlfcn/dladdr1.c (__dladdr1): Likewise.
23596 * dlfcn/dlclose.c (__dlcose): Likewise.
23597 * dlfcn/dlerror.c (__dlerror): Likewise.
23598 * dlfcn/dlinfo.c (__dlinfo): Likewise.
23599 * dlfcn/dlmopen.c (__dlmopen): Likewise.
23600 * dlfcn/dlopen.c (__dlopen): Likewise.
23601 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
23602 * dlfcn/dlsym.c (__dlsym): Likewise.
23603 * dlfcn/dlvsym.c (__dlvsym): Likewise.
23604 * libio/vtables.c (_IO_vtable_check): Likewise.
23605 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
23606 (__libc_dlclose): Likewise.
23607 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
23608 assignment.
23609
23610 2017-12-18 Joseph Myers <joseph@codesourcery.com>
23611
23612 [BZ #22446]
23613 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
23614 buffers for readlink input and output.
23615
23616 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
23617
23618 [BZ #22624]
23619 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
23620 inhibit_stack_protector.
23621
23622 [BZ #22624]
23623 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
23624 inhibit_stack_protector.
23625
23626 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
23627
23628 [BZ #22627]
23629 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
23630 code and invocation.
23631
23632 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
23633
23634 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
23635
23636 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
23637
23638 [BZ #22505]
23639 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
23640
23641 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23642
23643 * sysdeps/s390/fpu/libm-test-ulps: Update.
23644
23645 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23646
23647 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23648
23649 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23650
23651 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
23652 constants to s_sincosf.h file.
23653 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
23654 * sysdeps/ieee754/flt-32/s_sincosf.c: New
23655 implementation.
23656 * sysdeps/ieee754/flt-32/s_sincosf.h:
23657 New file.
23658
23659 2017-12-12 Carlos O'Donell <carlos@redhat.com>
23660
23661 [BZ #14681]
23662 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
23663 before mtrace.
23664
23665 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
23666
23667 [BZ #19574]
23668 * INSTALL: Regenerated.
23669 * Makeconfig (real-static-start-installed-name): New.
23670 (pic-default): Updated for --enable-static-pie.
23671 (pie-default): New for --enable-static-pie.
23672 (default-pie-ldflag): Likewise.
23673 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
23674 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
23675 Replace $(static-start-installed-name) with
23676 $(real-static-start-installed-name).
23677 (+prectorT): Updated for --enable-static-pie.
23678 (+postctorT): Likewise.
23679 (CFLAGS-.o): Add $(pie-default).
23680 (CFLAGS-.op): Likewise.
23681 * NEWS: Mention --enable-static-pie.
23682 * config.h.in (ENABLE_STATIC_PIE): New.
23683 * configure.ac (--enable-static-pie): New configure option.
23684 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
23685 (have-static-pie): Likewise.
23686 Enable static PIE if linker supports --no-dynamic-linker.
23687 (ENABLE_STATIC_PIE): New AC_DEFINE.
23688 (enable-static-pie): New LIBC_CONFIG_VAR.
23689 * configure: Regenerated.
23690 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
23691 gr$(start-installed-name) for --enable-static-pie.
23692 (extra-objs): Likewise.
23693 (install-lib): Likewise.
23694 (extra-objs): Add static-reloc.o and static-reloc.os
23695 ($(objpfx)$(start-installed-name)): Also depend on
23696 $(objpfx)static-reloc.o.
23697 ($(objpfx)r$(start-installed-name)): New.
23698 ($(objpfx)g$(start-installed-name)): Also depend on
23699 $(objpfx)static-reloc.os.
23700 ($(objpfx)gr$(start-installed-name)): New.
23701 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
23702 in libc.a.
23703 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
23704 initimage.
23705 * csu/static-reloc.c: New file.
23706 * elf/Makefile (routines): Add dl-reloc-static-pie.
23707 (elide-routines.os): Likewise.
23708 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
23709 (tst-tls1-static-non-pie-no-pie): New.
23710 * elf/dl-reloc-static-pie.c: New file.
23711 * elf/dl-support.c (_dl_get_dl_main_map): New function.
23712 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
23713 STATIC_PIE_BOOTSTRAP.
23714 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
23715 * gmon/Makefile (tests): Add tst-gmon-static-pie.
23716 (tests-static): Likewise.
23717 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
23718 (tst-gmon-static-no-pie): New.
23719 (CFLAGS-tst-gmon-static-pie.c): Likewise.
23720 (CRT-tst-gmon-static-pie): Likewise.
23721 (tst-gmon-static-pie-ENV): Likewise.
23722 (tests-special): Likewise.
23723 ($(objpfx)tst-gmon-static-pie.out): Likewise.
23724 (clean-tst-gmon-static-pie-data): Likewise.
23725 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
23726 * gmon/tst-gmon-static-pie.c: New file.
23727 * manual/install.texi: Document --enable-static-pie.
23728 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
23729 (_dl_get_dl_main_map): Likewise.
23730 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
23731 * sysdeps/x86_64/configure.ac: Likewise.
23732 * sysdeps/i386/configure: Regenerated.
23733 * sysdeps/x86_64/configure: Likewise.
23734 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
23735 (ASFLAGS-.op): Likewise.
23736
23737 2017-12-15 Joseph Myers <joseph@codesourcery.com>
23738
23739 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
23740 * posix/tst-mmap-offset.c (fname): Use /tmp.
23741 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
23742
23743 2017-12-15 Steve Ellcey <sellcey@cavium.com>
23744
23745 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
23746
23747 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
23748
23749 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
23750 errno.
23751
23752 2017-12-15 Joseph Myers <joseph@codesourcery.com>
23753
23754 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
23755 --with-float=hard for arm-linux-gnueabihf configurations.
23756
23757 [BZ #14121]
23758 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
23759 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
23760 ($(mo-installed)): Use $(objpfx)%.mo.
23761 (realclean): Remove rule.
23762
23763 * po/Makefile (linguas): Remove rule and dependencies.
23764 (linguas.mo): Likewise.
23765 (.PHONY): Do not depend on linguas and linguas.mo.
23766 (podir): Remove variable.
23767 (pofiles): Likewise.
23768 [$(pofiles)] (%.po): Remove rule.
23769
23770 * sysdeps/sparc/sparc32/Makefile
23771 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
23772 start-of-line whitespace in argument of echo.
23773 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
23774 with whitespace. Generate __wrap_.udiv alias.
23775 * sysdeps/sparc/sparc32/rem.S: Regenerated.
23776 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
23777 * sysdeps/sparc/sparc32/udiv.S: Likewise.
23778 * sysdeps/sparc/sparc32/urem.S: Likewise.
23779
23780 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23781
23782 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
23783 for aligned inputs.
23784
23785 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
23786
23787 * benchtests/bench-strcmp.c: Print output in JSON format.
23788
23789 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
23790
23791 2017-12-14 Florian Weimer <fweimer@redhat.com>
23792
23793 [BZ #22607]
23794 CVE-2017-1000409
23795 * elf/dl-load.c (_dl_init_paths): Compute number of components in
23796 the expanded path string.
23797
23798 2017-12-14 Florian Weimer <fweimer@redhat.com>
23799
23800 [BZ #22606]
23801 CVE-2017-1000408
23802 * elf/dl-load.c (system_dirs): Update comment.
23803 (nsystem_dirs_len): Use array_length.
23804 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
23805
23806 2017-12-14 Florian Weimer <fweimer@redhat.com>
23807
23808 Simplify compiling most of support/ outside of glibc.
23809 * support/check_addrinfo.c: Include <string.h>.
23810 * support/check_dns_packet.c: Likewise.
23811 * support/check_hostent.c: Likewise.
23812 * support/support_can_chroot.c: Include <support/xunistd.h>.
23813 * support/support_format_addrinfo.c: Include <stdlib.h>
23814 * support/support_format_dns_packet.c: Include <stdbool.h>.
23815 * support/support_format_hostent.c: Include <stdlib.h>.
23816 * support/support_format_netent.c: Likewise.
23817 * support/support_write_string.c: Include <support/xunistd.h>.
23818 * support/xdlfcn.c: Include <stddef.h>.
23819
23820 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
23821
23822 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
23823
23824 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
23825 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23826
23827 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
23828 (sysdeps_routines): Add memset-niagara7.
23829 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
23830 Likewise.
23831 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
23832 file.
23833 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
23834 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
23835 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
23836 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
23837 Add niagara7 option.
23838 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
23839 memset.
23840
23841 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
23842 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
23843 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
23844 Likewise.
23845 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
23846 New file.
23847 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
23848 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
23849 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
23850 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
23851 and __memmove_niagara7.
23852 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
23853 Add niagara7 option.
23854 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
23855 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
23856 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
23857 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
23858 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
23859
23860 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
23861
23862 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
23863 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
23864 * sysdeps/sparc/sparc64/memmove.S: Likewise.
23865 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
23866
23867 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
23868 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
23869 _dl_sparc_cap_flags array.
23870 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
23871
23872 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
23873
23874 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
23875 time whenever possible.
23876
23877 2017-12-12 Carlos O'Donell <carlos@redhat.com>
23878
23879 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
23880 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
23881
23882 2017-12-12 Joseph Myers <joseph@codesourcery.com>
23883
23884 * soft-fp/fmadf4.c: Move to ....
23885 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
23886 * soft-fp/fmasf4.c: Move to ....
23887 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
23888 * soft-fp/fmatf4.c: Move to ....
23889 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
23890 * sysdeps/ieee754/soft-fp/Makefile: New file.
23891 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
23892 * sysdeps/arm/preconfigure: Regenerated.
23893 * sysdeps/arm/nofpu/Implies: New file.
23894 * sysdeps/arm/s_fma.c: Remove file.
23895 * sysdeps/arm/s_fmaf.c: Likewise.
23896 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
23897 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
23898 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
23899 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
23900 * sysdeps/microblaze/s_fma.c: Remove file.
23901 * sysdeps/microblaze/s_fmaf.c: Likewise.
23902 * sysdeps/mips/mips32/nofpu/Implies: New file.
23903 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
23904 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
23905 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
23906 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
23907 * sysdeps/mips/ieee754/s_fma.c: Remove file.
23908 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
23909 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
23910 implementation.
23911 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
23912 * sysdeps/nios2/s_fma.c: Remove file.
23913 * sysdeps/nios2/s_fmaf.c: Likewise.
23914 * sysdeps/sh/nofpu/Implies: New file.
23915 * sysdeps/sh/s_fma.c: Remove file.
23916 * sysdeps/sh/s_fmaf.c: Likewise.
23917 * sysdeps/tile/Implies: Add ieee754/soft-fp.
23918 * sysdeps/tile/s_fma.c: Remove file.
23919 * sysdeps/tile/s_fmaf.c: Likewise.
23920
23921 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
23922
23923 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23924 Add s_cosf-sse2 and s_cosf-fma.
23925 (CFLAGS-s_cosf-fma.c): New.
23926 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
23927 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
23928 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
23929
23930 2017-12-12 Steve Ellcey <sellcey@cavium.com>
23931
23932 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
23933
23934 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23935
23936 * libio/Makefile (tests): Add tst-bz22415.
23937 (tst-bz22415-ENV): New rule.
23938 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
23939 (tests-special): Add tst-bz22415-mem.out.
23940 ($(objpfx)tst-bz22415-mem.out): New rule.
23941 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
23942 in case of a successful seek operation.
23943 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
23944 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
23945 buffer is required.
23946 * libio/tst-bz22415.c: New test.
23947
23948 * sysdeps/ia64/fpu/libm-test-ulps: Update.
23949
23950 2017-12-12 James Clarke <jrtc27@jrtc27.com>
23951
23952 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
23953 __IPC_64 to 0 to avoid IPC_64 being set.
23954
23955 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
23956
23957 [BZ #22593]
23958 * math/bits/mathcalls.h (nextafter): Remove const.
23959 (nexttoward): Likewise.
23960
23961 2017-12-12 Joseph Myers <joseph@codesourcery.com>
23962
23963 * configure.ac (--with-fp): Remove configure option.
23964 (with_fp_cond): New variable.
23965 (libc_cv_with_fp): New configure test. Use this variable instead
23966 of with_fp.
23967 * configure: Regenerated.
23968 * config.make.in (with-fp): Use @libc_cv_with_fp@.
23969 * manual/install.texi (Configuring and compiling): Remove
23970 --without-fp.
23971 * INSTALL: Regenerated.
23972 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
23973 * sysdeps/mips/preconfigure (with_fp_cond): Define.
23974 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
23975 * sysdeps/sh/preconfigure (with_fp_cond): Define.
23976 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
23977 use --without-fp to configure glibc.
23978
23979 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
23980
23981 * manual/locale.texi (nl_langinfo): Fix a typo.
23982
23983 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
23984
23985 [BZ #22588]
23986 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
23987
23988 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
23989
23990 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
23991 (CFLAGS-argp-parse.c): Likewise.
23992 (CFLAGS-argp-fmtstream.c): Likewise.
23993 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
23994 (CPPFLAGS-sha512-crypt.c): Likewise.
23995 (CPPFLAGS-md5-crypt.c): Likewise.
23996 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
23997 (CFLAGS-stack_chk_fail_local.c): Likewise.
23998 (CFLAGS-backtrace.c): Likewise.
23999 (CFLAGS-sprintf_chk.c): Likewise.
24000 (CFLAGS-snprintf_chk.c): Likewise.
24001 (CFLAGS-vsprintf_chk.c): Likewise.
24002 (CFLAGS-vsnprintf_chk.c): Likewise.
24003 (CFLAGS-asprintf_chk.c): Likewise.
24004 (CFLAGS-vasprintf_chk.c): Likewise.
24005 (CFLAGS-obprintf_chk.c): Likewise.
24006 (CFLAGS-dprintf_chk.c): Likewise.
24007 (CFLAGS-vdprintf_chk.c): Likewise.
24008 (CFLAGS-printf_chk.c): Likewise.
24009 (CFLAGS-fprintf_chk.c): Likewise.
24010 (CFLAGS-vprintf_chk.c): Likewise.
24011 (CFLAGS-vfprintf_chk.c): Likewise.
24012 (CFLAGS-gets_chk.c): Likewise.
24013 (CFLAGS-fgets_chk.c): Likewise.
24014 (CFLAGS-fgets_u_chk.c): Likewise.
24015 (CFLAGS-fread_chk.c): Likewise.
24016 (CFLAGS-fread_u_chk.c): Likewise.
24017 (CFLAGS-swprintf_chk.c): Likewise.
24018 (CFLAGS-vswprintf_chk.c): Likewise.
24019 (CFLAGS-wprintf_chk.c): Likewise.
24020 (CFLAGS-fwprintf_chk.c): Likewise.
24021 (CFLAGS-vwprintf_chk.c): Likewise.
24022 (CFLAGS-vfwprintf_chk.c): Likewise.
24023 (CFLAGS-fgetws_chk.c): Likewise.
24024 (CFLAGS-fgetws_u_chk.c): Likewise.
24025 (CFLAGS-read_chk.c): Likewise.
24026 (CFLAGS-pread_chk.c): Likewise.
24027 (CFLAGS-pread64_chk.c): Likewise.
24028 (CFLAGS-recv_chk.c): Likewise.
24029 (CFLAGS-recvfrom_chk.c): Likewise.
24030 (CFLAGS-tst-longjmp_chk.c): Likewise.
24031 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
24032 (CFLAGS-tst-longjmp_chk2.c): Likewise.
24033 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
24034 (CFLAGS-tst-longjmp_chk3.c): Likewise.
24035 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
24036 (CFLAGS-tst-chk1.c): Likewise.
24037 (CFLAGS-tst-chk2.c): Likewise.
24038 (CFLAGS-tst-chk3.c): Likewise.
24039 (CFLAGS-tst-chk4.cc): Likewise.
24040 (CFLAGS-tst-chk5.cc): Likewise.
24041 (CFLAGS-tst-chk6.cc): Likewise.
24042 (CFLAGS-tst-lfschk1.c): Likewise.
24043 (CFLAGS-tst-lfschk2.c): Likewise.
24044 (CFLAGS-tst-lfschk3.c): Likewise.
24045 (CFLAGS-tst-lfschk4.cc): Likewise.
24046 (CFLAGS-tst-lfschk5.cc): Likewise.
24047 (CFLAGS-tst-lfschk6.cc): Likewise.
24048 (CFLAGS-tst-ssp-1.c): Likewise.
24049 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
24050 (CFLAGS-scandir64.c): Likewise.
24051 (CFLAGS-scandir-tail.c): Likewise.
24052 (CFLAGS-scandir64-tail.c): Likewise.
24053 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
24054 (CFLAGS-dl-tunables.c): Likewise.
24055 (CFLAGS-dl-runtime.c): Likewise.
24056 (CFLAGS-dl-lookup.c): Likewise.
24057 (CFLAGS-dl-iterate-phdr.c): Likewise.
24058 (CFLAGS-vismain.c): Likewise.
24059 (CFLAGS-tst-linkall-static.c): Likewise.
24060 (CFLAGS-tst-linkall-static.c): Likewise.
24061 (CPPFLAGS-dl-load.c): Likewise.
24062 (CFLAGS-ldconfig.c): Likewise.
24063 (CFLAGS-dl-cache.c): Likewise.
24064 (CFLAGS-cache.c): Likewise.
24065 (CFLAGS-rtld.c): Likewise.
24066 (CFLAGS-multiload.c): Likewise.
24067 (CFLAGS-filtmod1.c): Likewise.
24068 (CFLAGS-tst-align.c): Likewise.
24069 (CFLAGS-tst-align2.c): Likewise.
24070 (CFLAGS-tst-alignmod.c): Likewise.
24071 (CFLAGS-tst-alignmod2.c): Likewise.
24072 (CPPFLAGS-tst-execstack.c): Likewise.
24073 (CFLAGS-tst-ptrguard1-static.c): Likewise.
24074 (CFLAGS-tst-latepthreadmod.c): Likewise.
24075 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
24076 (CFLAGS-getgrnam_r.c): Likewise.
24077 (CFLAGS-getgrent_r.c): Likewise.
24078 (CFLAGS-getgrent.c): Likewise.
24079 (CFLAGS-fgetgrent.c): Likewise.
24080 (CFLAGS-fgetgrent_r.c): Likewise.
24081 (CFLAGS-putgrent.c): Likewise.
24082 (CFLAGS-initgroups.c): Likewise.
24083 (CFLAGS-getgrgid.c): Likewise.
24084 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
24085 (CFLAGS-getsgent.c): Likewise.
24086 (CFLAGS-fgetsgent.c): Likewise.
24087 (CFLAGS-fgetsgent_r.c): Likewise.
24088 (CFLAGS-putsgent.c): Likewise.
24089 (CFLAGS-getsgnam.c): Likewise.
24090 (CFLAGS-getsgnam_r.c): Likewise.
24091 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
24092 (CFLAGS-iconv_charmap.c): Likewise.
24093 (CFLAGS-dummy-repertoire.c): Likewise.
24094 (CFLAGS-charmap.c): Likewise.
24095 (CFLAGS-linereader.c): Likewise.
24096 (CFLAGS-simple-hash.c): Likewise.
24097 (CFLAGS-gconv_conf.c): Likewise.
24098 (CFLAGS-iconvconfig.c): Likewise.
24099 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
24100 (CFLAGS-gethstbyad.c): Likewise.
24101 (CFLAGS-gethstbynm_r.c): Likewise.
24102 (CFLAGS-gethstbynm.c): Likewise.
24103 (CFLAGS-gethstbynm2_r.c): Likewise.
24104 (CFLAGS-gethstbynm2.c): Likewise.
24105 (CFLAGS-gethstent_r.c): Likewise.
24106 (CFLAGS-gethstent.c): Likewise.
24107 (CFLAGS-rcmd.c): Likewise.
24108 (CFLAGS-getnetbynm_r.c): Likewise.
24109 (CFLAGS-getnetbynm.c): Likewise.
24110 (CFLAGS-getnetbyad_r.c): Likewise.
24111 (CFLAGS-getnetbyad.c): Likewise.
24112 (CFLAGS-getnetent_r.c): Likewise.
24113 (CFLAGS-getnetent.c): Likewise.
24114 (CFLAGS-getaliasent_r.c): Likewise.
24115 (CFLAGS-getaliasent.c): Likewise.
24116 (CFLAGS-getrpcent_r.c): Likewise.
24117 (CFLAGS-getrpcent.c): Likewise.
24118 (CFLAGS-getservent_r.c): Likewise.
24119 (CFLAGS-getservent.c): Likewise.
24120 (CFLAGS-getprtent_r.c): Likewise.
24121 (CFLAGS-getprtent.c): Likewise.
24122 (CFLAGS-either_ntoh.c): Likewise.
24123 (CFLAGS-either_hton.c): Likewise.
24124 (CFLAGS-getnetgrent.c): Likewise.
24125 (CFLAGS-getnetgrent_r.c): Likewise.
24126 (CFLAGS-tst-checks-posix.c): Likewise.
24127 (CFLAGS-tst-sockaddr.c): Likewise.
24128 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
24129 (CFLAGS-tst-translit.c): Likewise.
24130 (CFLAGS-tst-gettext2.c): Likewise.
24131 (CFLAGS-tst-codeset.c): Likewise.
24132 (CFLAGS-tst-gettext3.c): Likewise.
24133 (CFLAGS-tst-gettext4.c): Likewise.
24134 (CFLAGS-tst-gettext5.c): Likewise.
24135 (CFLAGS-tst-gettext6.c): Likewise.
24136 * io/Makefile (CFLAGS-open.c): Likewise.
24137 (CFLAGS-open64.c): Likewise.
24138 (CFLAGS-creat.c): Likewise.
24139 (CFLAGS-creat64.c): Likewise.
24140 (CFLAGS-fcntl.c): Likewise.
24141 (CFLAGS-poll.c): Likewise.
24142 (CFLAGS-ppoll.c): Likewise.
24143 (CFLAGS-lockf.c): Likewise.
24144 (CFLAGS-statfs.c): Likewise.
24145 (CFLAGS-fstatfs.c): Likewise.
24146 (CFLAGS-statvfs.c): Likewise.
24147 (CFLAGS-fstatvfs.c): Likewise.
24148 (CFLAGS-fts.c): Likewise.
24149 (CFLAGS-fts64.c): Likewise.
24150 (CFLAGS-ftw.c): Likewise.
24151 (CFLAGS-ftw64.c): Likewise.
24152 (CFLAGS-lockf.c): Likewise.
24153 (CFLAGS-posix_fallocate.c): Likewise.
24154 (CFLAGS-posix_fallocate64.c): Likewise.
24155 (CFLAGS-fallocate.c): Likewise.
24156 (CFLAGS-fallocate64.c): Likewise.
24157 (CFLAGS-read.c): Likewise.
24158 (CFLAGS-write.c): Likewise.
24159 (CFLAGS-test-stat.c): Likewise.
24160 (CFLAGS-test-lfs.c): Likewise.
24161 * libio/Makefile (CFLAGS-fileops.c): Likewise.
24162 (CFLAGS-fputc.c): Likewise.
24163 (CFLAGS-fputwc.c): Likewise.
24164 (CFLAGS-freopen64.c): Likewise.
24165 (CFLAGS-freopen.c): Likewise.
24166 (CFLAGS-fseek.c): Likewise.
24167 (CFLAGS-fseeko64.c): Likewise.
24168 (CFLAGS-fseeko.c): Likewise.
24169 (CFLAGS-ftello64.c): Likewise.
24170 (CFLAGS-ftello.c): Likewise.
24171 (CFLAGS-fwide.c): Likewise.
24172 (CFLAGS-genops.c): Likewise.
24173 (CFLAGS-getc.c): Likewise.
24174 (CFLAGS-getchar.c): Likewise.
24175 (CFLAGS-getwc.c): Likewise.
24176 (CFLAGS-getwchar.c): Likewise.
24177 (CFLAGS-iofclose.c): Likewise.
24178 (CFLAGS-iofflush.c): Likewise.
24179 (CFLAGS-iofgetpos64.c): Likewise.
24180 (CFLAGS-iofgetpos.c): Likewise.
24181 (CFLAGS-iofgets.c): Likewise.
24182 (CFLAGS-iofgetws.c): Likewise.
24183 (CFLAGS-iofputs.c): Likewise.
24184 (CFLAGS-iofputws.c): Likewise.
24185 (CFLAGS-iofread.c): Likewise.
24186 (CFLAGS-iofsetpos64.c): Likewise.
24187 (CFLAGS-iofsetpos.c): Likewise.
24188 (CFLAGS-ioftell.c): Likewise.
24189 (CFLAGS-iofwrite.c): Likewise.
24190 (CFLAGS-iogetdelim.c): Likewise.
24191 (CFLAGS-iogetline.c): Likewise.
24192 (CFLAGS-iogets.c): Likewise.
24193 (CFLAGS-iogetwline.c): Likewise.
24194 (CFLAGS-ioputs.c): Likewise.
24195 (CFLAGS-ioseekoff.c): Likewise.
24196 (CFLAGS-ioseekpos.c): Likewise.
24197 (CFLAGS-iosetbuffer.c): Likewise.
24198 (CFLAGS-iosetvbuf.c): Likewise.
24199 (CFLAGS-ioungetc.c): Likewise.
24200 (CFLAGS-ioungetwc.c): Likewise.
24201 (CFLAGS-oldfileops.c): Likewise.
24202 (CFLAGS-oldiofclose.c): Likewise.
24203 (CFLAGS-oldiofgetpos64.c): Likewise.
24204 (CFLAGS-oldiofgetpos.c): Likewise.
24205 (CFLAGS-oldiofsetpos64.c): Likewise.
24206 (CFLAGS-oldiofsetpos.c): Likewise.
24207 (CFLAGS-peekc.c): Likewise.
24208 (CFLAGS-putc.c): Likewise.
24209 (CFLAGS-putchar.c): Likewise.
24210 (CFLAGS-putwc.c): Likewise.
24211 (CFLAGS-putwchar.c): Likewise.
24212 (CFLAGS-rewind.c): Likewise.
24213 (CFLAGS-wfileops.c): Likewise.
24214 (CFLAGS-wgenops.c): Likewise.
24215 (CFLAGS-oldiofopen.c): Likewise.
24216 (CFLAGS-iofopen.c): Likewise.
24217 (CFLAGS-iofopen64.c): Likewise.
24218 (CFLAGS-oldtmpfile.c): Likewise.
24219 (CFLAGS-tst_putwc.c): Likewise.
24220 * locale/Makefile (CFLAGS-md5.c): Likewise.
24221 (CFLAGS-charmap.c): Likewise.
24222 (CFLAGS-locfile.c): Likewise.
24223 (CFLAGS-charmap-dir.c): Likewise.
24224 * login/Makefile (CFLAGS-grantpt.c): Likewise.
24225 (CFLAGS-getpt.c): Likewise.
24226 (CFLAGS-pt_chown.c): Likewise.
24227 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
24228 (CFLAGS-obstack.c): Likewise.
24229 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
24230 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
24231 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
24232 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
24233 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
24234 (CFLAGS-test-tgmath.c): Likewise.
24235 (CFLAGS-test-tgmath2.c): Likewise.
24236 (CFLAGS-test-tgmath-ret.c): Likewise.
24237 (CFLAGS-test-powl.c): Likewise.
24238 (CFLAGS-test-snan.c): Likewise.
24239 (CFLAGS-test-signgam-finite.c): Likewise.
24240 (CFLAGS-test-signgam-finite-c99.c): Likewise.
24241 (CFLAGS-test-signgam-finite-c11.c): Likewise.
24242 (CFLAGS-test-signgam-uchar.c): Likewise.
24243 (CFLAGS-test-signgam-uchar-init.c): Likewise.
24244 (CFLAGS-test-signgam-uchar-static.c): Likewise.
24245 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
24246 (CFLAGS-test-signgam-uint.c): Likewise.
24247 (CFLAGS-test-signgam-uint-init.c): Likewise.
24248 (CFLAGS-test-signgam-uint-static.c): Likewise.
24249 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
24250 (CFLAGS-test-signgam-ullong.c): Likewise.
24251 (CFLAGS-test-signgam-ullong-init.c): Likewise.
24252 (CFLAGS-test-signgam-ullong-static.c): Likewise.
24253 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
24254 (CFLAGS-test-math-cxx11.cc): Likewise.
24255 (CFLAGS-test-math-isinff.cc): Likewise.
24256 (CFLAGS-test-math-iszero.cc): Likewise.
24257 (CFLAGS-test-math-issignaling.cc): Likewise.
24258 (CFLAGS-test-math-iscanonical.cc): Likewise.
24259 (CFLAGS-test-iszero-excess-precision.c): Likewise.
24260 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
24261 (CFLAGS-test-flt-eval-method.c): Likewise.
24262 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
24263 (CFLAGS-test-finite-macros.c): Likewise.
24264 * misc/Makefile (CFLAGS-select.c): Likewise.
24265 (CFLAGS-tsearch.c): Likewise.
24266 (CFLAGS-lsearch.c): Likewise.
24267 (CFLAGS-pselect.c): Likewise.
24268 (CFLAGS-readv.c): Likewise.
24269 (CFLAGS-writev.c): Likewise.
24270 (CFLAGS-preadv.c): Likewise.
24271 (CFLAGS-preadv64.c): Likewise.
24272 (CFLAGS-pwritev.c): Likewise.
24273 (CFLAGS-pwritev64.c): Likewise.
24274 (CFLAGS-preadv2.c): Likewise.
24275 (CFLAGS-preadv64v2.c): Likewise.
24276 (CFLAGS-pwritev2.c): Likewise.
24277 (CFLAGS-pwritev64v2.c): Likewise.
24278 (CFLAGS-usleep.c): Likewise.
24279 (CFLAGS-syslog.c): Likewise.
24280 (CFLAGS-error.c): Likewise.
24281 (CFLAGS-getpass.c): Likewise.
24282 (CFLAGS-mkstemp.c): Likewise.
24283 (CFLAGS-mkstemp64.c): Likewise.
24284 (CFLAGS-getsysstats.c): Likewise.
24285 (CFLAGS-getusershell.c): Likewise.
24286 (CFLAGS-err.c): Likewise.
24287 (CFLAGS-tst-tsearch.c): Likewise.
24288 (CFLAGS-msync.c): Likewise.
24289 (CFLAGS-fdatasync.c): Likewise.
24290 (CFLAGS-fsync.c): Likewise.
24291 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
24292 (CFLAGS-unwind.c): Likewise.
24293 (CFLAGS-unwind-forcedunwind.c): Likewise.
24294 (CFLAGS-pthread_cancel.c): Likewise.
24295 (CFLAGS-pthread_setcancelstate.c): Likewise.
24296 (CFLAGS-pthread_setcanceltype.c): Likewise.
24297 (CFLAGS-cancellation.c): Likewise.
24298 (CFLAGS-libc-cancellation.c): Likewise.
24299 (CFLAGS-pthread_exit.c): Likewise.
24300 (CFLAGS-forward.c): Likewise.
24301 (CFLAGS-pthread_testcancel.c): Likewise.
24302 (CFLAGS-pthread_join.c): Likewise.
24303 (CFLAGS-pthread_timedjoin.c): Likewise.
24304 (CFLAGS-pthread_once.c): Likewise.
24305 (CFLAGS-pthread_cond_wait.c): Likewise.
24306 (CFLAGS-sem_wait.c): Likewise.
24307 (CFLAGS-sem_timedwait.c): Likewise.
24308 (CFLAGS-fcntl.c): Likewise.
24309 (CFLAGS-lockf.c): Likewise.
24310 (CFLAGS-pread.c): Likewise.
24311 (CFLAGS-pread64.c): Likewise.
24312 (CFLAGS-pwrite.c): Likewise.
24313 (CFLAGS-pwrite64.c): Likewise.
24314 (CFLAGS-wait.c): Likewise.
24315 (CFLAGS-waitpid.c): Likewise.
24316 (CFLAGS-sigwait.c): Likewise.
24317 (CFLAGS-msgrcv.c): Likewise.
24318 (CFLAGS-msgsnd.c): Likewise.
24319 (CFLAGS-tcdrain.c): Likewise.
24320 (CFLAGS-open.c): Likewise.
24321 (CFLAGS-open64.c): Likewise.
24322 (CFLAGS-pause.c): Likewise.
24323 (CFLAGS-recv.c): Likewise.
24324 (CFLAGS-send.c): Likewise.
24325 (CFLAGS-accept.c): Likewise.
24326 (CFLAGS-sendto.c): Likewise.
24327 (CFLAGS-connect.c): Likewise.
24328 (CFLAGS-recvfrom.c): Likewise.
24329 (CFLAGS-recvmsg.c): Likewise.
24330 (CFLAGS-sendmsg.c): Likewise.
24331 (CFLAGS-close.c): Likewise.
24332 (CFLAGS-read.c): Likewise.
24333 (CFLAGS-write.c): Likewise.
24334 (CFLAGS-nanosleep.c): Likewise.
24335 (CFLAGS-sigsuspend.c): Likewise.
24336 (CFLAGS-msync.c): Likewise.
24337 (CFLAGS-fdatasync.c): Likewise.
24338 (CFLAGS-fsync.c): Likewise.
24339 (CFLAGS-pt-system.c): Likewise.
24340 (CFLAGS-tst-cleanup2.c): Likewise.
24341 (CFLAGS-tst-cleanupx2.c): Likewise.
24342 (CFLAGS-flockfile.c): Likewise.
24343 (CFLAGS-ftrylockfile.c): Likewise.
24344 (CFLAGS-funlockfile.c): Likewise.
24345 (CFLAGS-tst-initializers1.c): Likewise.
24346 (CFLAGS-tst-initializers1-c89.c): Likewise.
24347 (CFLAGS-tst-initializers1-c99.c): Likewise.
24348 (CFLAGS-tst-initializers1-c11.c): Likewise.
24349 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
24350 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
24351 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
24352 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
24353 (CFLAGS-nscd_getgr_r.c): Likewise.
24354 (CFLAGS-nscd_gethst_r.c): Likewise.
24355 (CFLAGS-nscd_getai.c): Likewise.
24356 (CFLAGS-nscd_initgroups.c): Likewise.
24357 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
24358 (CFLAGS-pause.c): Likewise.
24359 (CFLAGS-pread.c): Likewise.
24360 (CFLAGS-pread64.c): Likewise.
24361 (CFLAGS-pwrite.c): Likewise.
24362 (CFLAGS-pwrite64.c): Likewise.
24363 (CFLAGS-sleep.c): Likewise.
24364 (CFLAGS-wait.c): Likewise.
24365 (CFLAGS-waitid.c): Likewise.
24366 (CFLAGS-waitpid.c): Likewise.
24367 (CFLAGS-getopt.c): Likewise.
24368 (CFLAGS-wordexp.c): Likewise.
24369 (CFLAGS-sysconf.c): Likewise.
24370 (CFLAGS-pathconf.c): Likewise.
24371 (CFLAGS-fpathconf.c): Likewise.
24372 (CFLAGS-spawn.c): Likewise.
24373 (CFLAGS-spawnp.c): Likewise.
24374 (CFLAGS-spawni.c): Likewise.
24375 (CFLAGS-glob.c): Likewise.
24376 (CFLAGS-glob64.c): Likewise.
24377 (CFLAGS-getconf.c): Likewise.
24378 (CFLAGS-nanosleep.c): Likewise.
24379 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
24380 (CFLAGS-getpwent.c): Likewise.
24381 (CFLAGS-getpw.c): Likewise.
24382 (CFLAGS-fgetpwent_r.c): Likewise.
24383 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
24384 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
24385 (CFLAGS-mq_timedreceive.c): Likewise.
24386 (CFLAGS-mq_timedsend.c): Likewise.
24387 (CFLAGS-clock_nanosleep.c): Likewise.
24388 (CFLAGS-librt-cancellation.c): Likewise.
24389 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
24390 (CFLAGS-getspent.c): Likewise.
24391 (CFLAGS-fgetspent.c): Likewise.
24392 (CFLAGS-fgetspent_r.c): Likewise.
24393 (CFLAGS-putspent.c): Likewise.
24394 (CFLAGS-getspnam.c): Likewise.
24395 (CFLAGS-getspnam_r.c): Likewise.
24396 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
24397 (CFLAGS-sigsuspend.c): Likewise.
24398 (CFLAGS-sigtimedwait.c): Likewise.
24399 (CFLAGS-sigwait.c): Likewise.
24400 (CFLAGS-sigwaitinfo.c): Likewise.
24401 (CFLAGS-sigreturn.c): Likewise.
24402 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
24403 (CFLAGS-vfwprintf.c): Likewise.
24404 (CFLAGS-tmpfile.c): Likewise.
24405 (CFLAGS-tmpfile64.c): Likewise.
24406 (CFLAGS-tempname.c): Likewise.
24407 (CFLAGS-psignal.c): Likewise.
24408 (CFLAGS-vprintf.c): Likewise.
24409 (CFLAGS-cuserid.c): Likewise.
24410 (CFLAGS-errlist.c): Likewise.
24411 (CFLAGS-siglist.c): Likewise.
24412 (CFLAGS-scanf15.c): Likewise.
24413 (CFLAGS-scanf17.c): Likewise.
24414 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
24415 (CFLAGS-msort.c): Likewise.
24416 (CFLAGS-qsort.c): Likewise.
24417 (CFLAGS-system.c): Likewise.
24418 (CFLAGS-fmtmsg.c): Likewise.
24419 (CFLAGS-strfmon.c): Likewise.
24420 (CFLAGS-strfmon_l.c): Likewise.
24421 (CFLAGS-strfromd.c): Likewise.
24422 (CFLAGS-strfromf.c): Likewise.
24423 (CFLAGS-strfroml.c): Likewise.
24424 (CFLAGS-tst-bsearch.c): Likewise.
24425 (CFLAGS-tst-qsort.c): Likewise.
24426 (CFLAGS-tst-makecontext2.c): Likewise.
24427 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
24428 (CFLAGS-xnlm_prot.c): Likewise.
24429 (CFLAGS-xrstat.c): Likewise.
24430 (CFLAGS-xyppasswd.c): Likewise.
24431 (CFLAGS-xklm_prot.c): Likewise.
24432 (CFLAGS-xrex.c): Likewise.
24433 (CFLAGS-xsm_inter.c): Likewise.
24434 (CFLAGS-xmount.c): Likewise.
24435 (CFLAGS-xrusers.c): Likewise.
24436 (CFLAGS-xspray.c): Likewise.
24437 (CFLAGS-xnfs_prot.c): Likewise.
24438 (CFLAGS-xrquota.c): Likewise.
24439 (CFLAGS-xkey_prot.c): Likewise.
24440 (CFLAGS-auth_unix.c): Likewise.
24441 (CFLAGS-key_call.c): Likewise.
24442 (CFLAGS-pmap_rmt.c): Likewise.
24443 (CFLAGS-clnt_perr.c): Likewise.
24444 (CFLAGS-openchild.c): Likewise.
24445 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
24446 (CFLAGS-msgsnd.c): Likewise.
24447 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
24448 * time/Makefile (CFLAGS-tzfile.c): Likewise.
24449 (CFLAGS-tzset.c): Likewise.
24450 (CFLAGS-getdate.c): Likewise.
24451 (CFLAGS-test_time.c): Likewise.
24452 (CPPFLAGS-tst-tzname.c): Likewise.
24453 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
24454 (CFLAGS-zic.c): Likewise.
24455 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
24456 (CFLAGS-wcswidth.c): Likewise.
24457 (CFLAGS-wcstol.c): Likewise.
24458 (CFLAGS-wcstoul.c): Likewise.
24459 (CFLAGS-wcstoll.c): Likewise.
24460 (CFLAGS-wcstoull.c): Likewise.
24461 (CFLAGS-wcstod.c): Likewise.
24462 (CFLAGS-wcstold.c): Likewise.
24463 (CFLAGS-wcstof128.c): Likewise.
24464 (CFLAGS-wcstof.c): Likewise.
24465 (CFLAGS-wcstol_l.c): Likewise.
24466 (CFLAGS-wcstoul_l.c): Likewise.
24467 (CFLAGS-wcstoll_l.c): Likewise.
24468 (CFLAGS-wcstoull_l.c): Likewise.
24469 (CFLAGS-wcstod_l.c): Likewise.
24470 (CFLAGS-wcstold_l.c): Likewise.
24471 (CFLAGS-wcstof128_l.c): Likewise.
24472 (CFLAGS-wcstof_l.c): Likewise.
24473 (CPPFLAGS-tst-wchar-h.c): Likewise.
24474 (CPPFLAGS-wcstold_l.c): Likewise.
24475
24476 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
24477
24478 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
24479
24480 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
24481 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24482
24483 * manual/tunables.texi (Hardware Capability Tunables): Document
24484 glibc.tune.cached_memopt.
24485 * sysdeps/powerpc/cpu-features.c: New file.
24486 * sysdeps/powerpc/cpu-features.h: New file.
24487 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
24488 _dl_powerpc_cpu_features.
24489 * sysdeps/powerpc/dl-tunables.list: New file.
24490 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
24491 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
24492 (INIT_ARCH): Initialize use_aligned_memopt.
24493 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
24494 IS_IN(rtld))]: Restrict dl_platform_init availability and
24495 initialize CPU features used by tunables.
24496 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
24497 Add memcpy-power8-cached.
24498 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
24499 __memcpy_power8_cached.
24500 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
24501 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
24502 New file.
24503
24504 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
24505
24506 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
24507 (CFLAGS-noinl-tester.c): Likewise.
24508 (CFLAGS-tst-strlen.c): Likewise.
24509 (CFLAGS-stratcliff.c): Likewise.
24510 (CFLAGS-test-ffs.c): Likewise.
24511 (CFLAGS-tst-inlcall.c): Likewise.
24512 (CFLAGS-tst-xbzero-opt.c): Likewise.
24513 (CFLAGS-memcpy.c): Likewise.
24514 (CFLAGS-wordcopy.c): Likewise.
24515
24516 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
24517
24518 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
24519 Store r15 on stack and add cfi rule.
24520 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
24521 Likewise.
24522
24523 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
24524
24525 [BZ #22577]
24526 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
24527 call.
24528
24529 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
24530
24531 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24532 Add s_sinf-sse2 and s_sinf-fma.
24533 (CFLAGS-s_sinf-fma.c): New.
24534 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
24535 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
24536 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
24537
24538 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
24539
24540 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
24541
24542 2017-12-07 Joseph Myers <joseph@codesourcery.com>
24543
24544 [BZ #22568]
24545 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
24546 part of result to imaginary part of argument if it is zero and the
24547 real part of the argument is not finite.
24548 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
24549 of result to real part of argument if it is zero and the imaginary
24550 part of the argument is not finite.
24551
24552 2017-12-07 Mike FABIAN <mfabian@redhat.com>
24553
24554 [BZ #22524]
24555 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
24556 and to the list of locales to be built for testing.
24557 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
24558 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
24559 and build the collation rules upon that.
24560
24561 2017-12-07 Joseph Myers <joseph@codesourcery.com>
24562
24563 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
24564 * manual/math.texi (Mathematics): Document support for _Float32.
24565 * math/Makefile (test-types): Add float32.
24566 * math/Versions (GLIBC_2.27): Add _Float32 functions.
24567 * stdlib/Versions (GLIBC_2.27): Likewise.
24568 * wcsmbs/Versions (GLIBC_2.27): Likewise.
24569 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24570 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24571 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24572 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24573 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
24574 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
24575 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
24576 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
24577 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
24578 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
24579 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
24580 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
24581 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
24582 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
24583 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
24584 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
24585 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
24586 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
24587 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
24588 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
24589 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
24590 Likewise.
24591 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24592 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24593 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24594 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
24595 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
24596 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
24597 Likewise.
24598 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
24599 Likewise.
24600 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
24601 Likewise.
24602 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
24603 Likewise.
24604
24605 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
24606 Likewise.
24607 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
24608 Likewise.
24609 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
24610 Likewise.
24611 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
24612 Likewise.
24613 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24614 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24615 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24616 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24617 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
24618 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
24619 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24620 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24621 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24622 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24623 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
24624 Likewise.
24625 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
24626 Likewise.
24627 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
24628 Likewise.
24629 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
24630 Likewise.
24631 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
24632 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
24633 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
24634 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
24635 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
24636 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
24637 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
24638 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24639
24640 2017-12-06 Joseph Myers <joseph@codesourcery.com>
24641
24642 * stdlib/strtof.c: Include <bits/floatn.h>
24643 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
24644 and later undefine as macro. Define as weak alias if
24645 [!USE_WIDE_CHAR].
24646 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
24647 and later undefine as macro. Define as weak alias if
24648 [USE_WIDE_CHAR].
24649 * stdlib/strtof_l.c: Include <bits/floatn.h>
24650 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
24651 and later undefine as macro. Define as weak alias if
24652 [!USE_WIDE_CHAR].
24653 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
24654 and later undefine as macro. Define as weak alias if
24655 [USE_WIDE_CHAR].
24656
24657 * stdlib/strfromf.c: Include <bits/floatn.h>.
24658 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
24659 and later undefine as macro and define as weak alias.
24660
24661 * math/test-float32.h: New file.
24662
24663 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
24664 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
24665 (libm_alias_float_other_r): Create f32 alias.
24666 (libm_alias_float_r): Use semicolon before call to
24667 libm_alias_float_other_r.
24668
24669 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
24670 second argument to libm_alias_float_other.
24671 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
24672 second argument to libm_alias_float_other.
24673 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
24674 argument to libm_alias_float_other.
24675
24676 [BZ #22561]
24677 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
24678 real part of result for argument 0 + i * NaN.
24679 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
24680 results for tests of 0 + i * NaN.
24681
24682 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24683
24684 * sysdeps/alpha/fpu/libm-test-ulps: Update.
24685
24686 2017-12-06 David S. Miller <davem@davemloft.net>
24687
24688 * sysdeps/sparc/fpu/libm-test-ulps: Update
24689 exp_{downward,towardzero,upward} ulps.
24690
24691 2017-12-06 Joseph Myers <joseph@codesourcery.com>
24692
24693 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
24694 variables static.
24695
24696 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
24697 (Y0_2D): Likewise.
24698 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
24699 (Y0_2D): Likewise.
24700 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
24701 (Y0_2D): Likewise.
24702 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
24703 (Y0_2D): Likewise.
24704
24705 2017-12-06 Mike FABIAN <mfabian@redhat.com>
24706
24707 [BZ #22515]
24708 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
24709 and to the list of locales to be built for testing.
24710 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
24711 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
24712 and build the collation rules upon that.
24713
24714 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24715
24716 * NEWS: Add sinf to list of optimized functions.
24717
24718 2017-12-06 Joseph Myers <joseph@codesourcery.com>
24719
24720 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
24721 (__HAVE_FLOAT32X): Likewise.
24722 * manual/math.texi (Mathematics): Document support for _Float64
24723 and _Float32x.
24724 * math/Makefile (test-types): Add float64 and float32x.
24725 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
24726 functions.
24727 * stdlib/Versions (GLIBC_2.27): Likewise.
24728 * wcsmbs/Versions (GLIBC_2.27): Likewise.
24729 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24730 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24731 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24732 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24733 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
24734 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
24735 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
24736 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
24737 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
24738 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
24739 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
24740 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
24741 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
24742 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
24743 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
24744 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
24745 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
24746 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
24747 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
24748 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
24749 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
24750 Likewise.
24751 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24752 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24753 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24754 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
24755 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
24756 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
24757 Likewise.
24758 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
24759 Likewise.
24760 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
24761 Likewise.
24762 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
24763 Likewise.
24764 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
24765 Likewise.
24766 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
24767 Likewise.
24768 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
24769 Likewise.
24770 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
24771 Likewise.
24772 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24773 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24774 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24775 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24776 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
24777 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
24778 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24779 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24780 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24781 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24782 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
24783 Likewise.
24784 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
24785 Likewise.
24786 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
24787 Likewise.
24788 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
24789 Likewise.
24790 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
24791 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
24792 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
24793 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
24794 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
24795 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
24796 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
24797 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24798
24799 2017-12-05 Joseph Myers <joseph@codesourcery.com>
24800
24801 * bits/floatn-common.h: Include <bits/long-double.h>.
24802 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
24803 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
24804 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
24805 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
24806 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
24807 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
24808 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
24809 (__builtin_huge_valf64): Use __builtin_huge_vall.
24810 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
24811 (__builtin_inff64): Use __builtin_infl.
24812 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
24813 (__builtin_nanf64): Use __builtin_nanl.
24814 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
24815 (__builtin_nansf64): Use __builtin_nansl.
24816
24817 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
24818 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
24819 Carlos O'Donell <carlos@redhat.com>
24820
24821 * elf/dl-tunables.list: Add elision parameters.
24822 * manual/tunables.texi: Add entries about elision tunable.
24823 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
24824 Add callback functions to dynamically enable/disable elision.
24825 Add multiple callbacks functions to set elision parameters.
24826 Deleted __libc_enable_secure check.
24827 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
24828 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
24829 * configure: Regenerated.
24830 * configure.ac: Option enable_lock_elision was deleted.
24831 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
24832 * config.make.in: Remove references to enable_lock_elision.
24833 * manual/install.texi: Elision configure option was removed.
24834 * INSTALL: Regenerated to remove enable_lock_elision.
24835 * nptl/Makefile:
24836 Disable elision so it can verify error case for destroying a mutex.
24837 * sysdeps/powerpc/nptl/elide.h:
24838 Cleanup ENABLE_LOCK_ELISION check.
24839 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
24840 * sysdeps/s390/configure: Regenerated.
24841 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
24842 * nptl/tst-mutex8.c:
24843 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
24844 * sysdeps/powerpc/powerpc32/sysdep.h:
24845 Deleted all ENABLE_LOCK_ELISION checks.
24846 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
24847 * sysdeps/powerpc/sysdep.h: Likewise.
24848 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
24849 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
24850 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
24851 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
24852 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
24853 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
24854 enable-lock-elision.
24855
24856 2017-12-05 Joseph Myers <joseph@codesourcery.com>
24857
24858 * stdlib/strtod.c: Include <bits/floatn.h>.
24859 (BUILD_DOUBLE): New macro.
24860 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
24861 (strtof64): Define and later undefine as macro. Define as weak
24862 alias if [!USE_WIDE_CHAR].
24863 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
24864 (wcstof64): Define and later undefine as macro. Define as weak
24865 alias if [USE_WIDE_CHAR].
24866 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
24867 (strtof32x): Define and later undefine as macro. Define as weak
24868 alias if [!USE_WIDE_CHAR].
24869 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
24870 (wcstof32x): Define and later undefine as macro. Define as weak
24871 alias if [USE_WIDE_CHAR].
24872 * stdlib/strtod_l.c: Include <bits/floatn.h>.
24873 (BUILD_DOUBLE): New macro.
24874 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
24875 (strtof64_l): Define and later undefine as macro. Define as weak
24876 alias if [!USE_WIDE_CHAR].
24877 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
24878 (wcstof64_l): Define and later undefine as macro. Define as weak
24879 alias if [USE_WIDE_CHAR].
24880 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
24881 (strtof32x_l): Define and later undefine as macro. Define as weak
24882 alias if [!USE_WIDE_CHAR].
24883 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
24884 (wcstof32x_l): Define and later undefine as macro. Define as weak
24885 alias if [USE_WIDE_CHAR].
24886
24887 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24888
24889 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
24890 (reduced): Use ones as double instead of integer.
24891
24892 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
24893
24894 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
24895
24896 2017-12-05 Joseph Myers <joseph@codesourcery.com>
24897
24898 * stdlib/strfromd.c: Include <bits/floatn.h>.
24899 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
24900 and later undefine as macro and define as weak alias.
24901 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
24902 Likewise.
24903
24904 * math/test-float32x.h: New file.
24905 * math/test-float64.h: Likewise.
24906
24907 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
24908 (libm_alias_double_other_r_f64): New macro.
24909 (libm_alias_double_other_r_f32x): Likewise.
24910 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
24911 libm_alias_double_other_r_f32x.
24912 (libm_alias_double_r): Use semicolon before call to
24913 libm_alias_double_other_r.
24914 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
24915 <bits/floatn.h>.
24916 (libm_alias_double_other_r_f64): New macro.
24917 (libm_alias_double_other_r_f32x): Likewise.
24918 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
24919 libm_alias_double_other_r_f32x.
24920
24921 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
24922
24923 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
24924 int.
24925 (SINF_FUNC): Likewise. Replace floor with simple casts.
24926
24927 2017-12-05 Mike FABIAN <mfabian@redhat.com>
24928
24929 [BZ #22517]
24930 * localedata/Makefile: Add et_EE.UTF-8 to test-input
24931 and to the list of locales to be built for testing.
24932 * localedata/et_EE.UTF-8.in: New file for testing the collation.
24933 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
24934 and build the collation rules upon that.
24935
24936 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
24937
24938 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
24939 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
24940 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
24941 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
24942 instead of __insn__xxx.
24943 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
24944 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
24945 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
24946 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
24947 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
24948 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
24949
24950 2017-12-05 Florian Weimer <fweimer@redhat.com>
24951
24952 Linux: Implement interfaces for memory protection keys
24953 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
24954 xsignal, xsysconf.
24955 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
24956 * support/xunistd.h (xsysconf): Declare.
24957 * support/xraise.c: New file.
24958 * support/xsigaction.c: Likewise.
24959 * support/xsignal.c: Likewise.
24960 * support/xsysconf.c: Likewise.
24961 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
24962 pkey_set, pkey_get, pkey_mprotect.
24963 [misc] (tests): Add tst-pkey.
24964 (tst-pkey): Link with -lpthread.
24965 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
24966 pkey_free, pkey_set, pkey_get, pkey_mprotect.
24967 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
24968 (PKEY_DISABLE_WRITE): Define.
24969 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
24970 Declare.
24971 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
24972 (SEGV_PKUERR): Add.
24973 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
24974 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
24975 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
24976 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
24977 Add.
24978 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
24979 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
24980 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
24981 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
24982 * sysdeps/unix/sysv/linux/**.abilist: Update.
24983
24984 2017-12-05 Florian Weimer <fweimer@redhat.com>
24985
24986 * support/tst-test_compare.c (subprocess): Use long long instead
24987 of long argument for consistent type width across 32-bit and
24988 64-bit architectures.
24989 (do_test): Adjust expected output.
24990
24991 2017-12-05 Joseph Myers <joseph@codesourcery.com>
24992
24993 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
24994 (cosf): Define using libm_alias_float.
24995 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
24996 (fabsf): Define using libm_alias_float.
24997 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
24998 (fmaf): Define using libm_alias_float.
24999 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
25000 (rintf): Define using libm_alias_float.
25001 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
25002 (sinf): Define using libm_alias_float.
25003 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
25004 <libm-alias-float.h>.
25005 (modff): Define using libm_alias_float.
25006 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
25007 <libm-alias-float.h>.
25008 (logbf): Define using libm_alias_float.
25009 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
25010 <libm-alias-float.h>.
25011 (ceilf): Define using libm_alias_float.
25012 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
25013 <libm-alias-float.h>.
25014 (copysignf): Define using libm_alias_float.
25015 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
25016 <libm-alias-float.h>.
25017 (floorf): Define using libm_alias_float.
25018 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
25019 <libm-alias-float.h>.
25020 (llrintf): Define using libm_alias_float.
25021 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
25022 <libm-alias-float.h>.
25023 (llroundf): Define using libm_alias_float.
25024 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
25025 <libm-alias-float.h>.
25026 (lrintf): Define using libm_alias_float.
25027 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
25028 <libm-alias-float.h>.
25029 (lroundf): Define using libm_alias_float.
25030 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
25031 <libm-alias-float.h>.
25032 (nearbyintf): Define using libm_alias_float.
25033 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
25034 <libm-alias-float.h>.
25035 (rintf): Define using libm_alias_float.
25036 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
25037 <libm-alias-float.h>.
25038 (roundf): Define using libm_alias_float.
25039 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
25040 <libm-alias-float.h>.
25041 (truncf): Define using libm_alias_float.
25042 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
25043 Include <libm-alias-float.h>.
25044 (ceilf): Define using libm_alias_float.
25045 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
25046 Include <libm-alias-float.h>.
25047 (copysignf): Define using libm_alias_float.
25048 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
25049 Include <libm-alias-float.h>.
25050 (floorf): Define using libm_alias_float.
25051 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
25052 Include <libm-alias-float.h>.
25053 (llrintf): Define using libm_alias_float.
25054 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
25055 Include <libm-alias-float.h>.
25056 (llroundf): Define using libm_alias_float.
25057 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
25058 Include <libm-alias-float.h>.
25059 (logbf): Define using libm_alias_float.
25060 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
25061 Include <libm-alias-float.h>.
25062 (lrintf): Define using libm_alias_float.
25063 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
25064 Include <libm-alias-float.h>.
25065 (lroundf): Define using libm_alias_float.
25066 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
25067 Include <libm-alias-float.h>.
25068 (modff): Define using libm_alias_float.
25069 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
25070 Include <libm-alias-float.h>.
25071 (roundf): Define using libm_alias_float.
25072 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
25073 Include <libm-alias-float.h>.
25074 (truncf): Define using libm_alias_float.
25075 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
25076 <libm-alias-float.h>.
25077 (llrintf): Define using libm_alias_float.
25078 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
25079 <libm-alias-float.h>.
25080 (llroundf): Define using libm_alias_float.
25081 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
25082 <libm-alias-float.h>.
25083 (ceilf): Define using libm_alias_float.
25084 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
25085 <libm-alias-float.h>.
25086 (floorf): Define using libm_alias_float.
25087 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
25088 <libm-alias-float.h>.
25089 (llroundf): Define using libm_alias_float.
25090 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
25091 <libm-alias-float.h>.
25092 (lroundf): Define using libm_alias_float.
25093 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
25094 <libm-alias-float.h>.
25095 (roundf): Define using libm_alias_float.
25096 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
25097 <libm-alias-float.h>.
25098 (truncf): Define using libm_alias_float.
25099 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
25100 <libm-alias-float.h>.
25101 (copysignf): Define using libm_alias_float.
25102 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
25103 <libm-alias-float.h>.
25104 (llrintf): Define using libm_alias_float.
25105 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
25106 <libm-alias-float.h>.
25107 (llroundf): Define using libm_alias_float.
25108 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
25109 <libm-alias-float.h>.
25110 (lrintf): Define using libm_alias_float.
25111 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
25112 <libm-alias-float.h>.
25113 (lroundf): Define using libm_alias_float.
25114 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
25115 <libm-alias-float.h>.
25116 (ceilf): Define using libm_alias_float.
25117 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
25118 <libm-alias-float.h>.
25119 (copysignf): Define using libm_alias_float.
25120 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
25121 <libm-alias-float.h>.
25122 (cosf): Define using libm_alias_float.
25123 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
25124 <libm-alias-float.h>.
25125 (floorf): Define using libm_alias_float.
25126 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
25127 <libm-alias-float.h>.
25128 (llrintf): Define using libm_alias_float.
25129 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
25130 <libm-alias-float.h>.
25131 (llroundf): Define using libm_alias_float.
25132 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
25133 <libm-alias-float.h>.
25134 (logbf): Define using libm_alias_float.
25135 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
25136 <libm-alias-float.h>.
25137 (modff): Define using libm_alias_float.
25138 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
25139 <libm-alias-float.h>.
25140 (roundf): Define using libm_alias_float.
25141 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
25142 <libm-alias-float.h>.
25143 (sinf): Define using libm_alias_float.
25144 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
25145 <libm-alias-float.h>.
25146 (truncf): Define using libm_alias_float.
25147 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
25148 <libm-alias-float.h>.
25149 (ceilf): Define using libm_alias_float.
25150 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
25151 <libm-alias-float.h>.
25152 (copysignf): Define using libm_alias_float.
25153 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
25154 <libm-alias-float.h>.
25155 (floorf): Define using libm_alias_float.
25156 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
25157 <libm-alias-float.h>.
25158 (llrintf): Define using libm_alias_float.
25159 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
25160 <libm-alias-float.h>.
25161 (llroundf): Define using libm_alias_float.
25162 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
25163 <libm-alias-float.h>.
25164 (nearbyintf): Define using libm_alias_float.
25165 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
25166 <libm-alias-float.h>.
25167 (rintf): Define using libm_alias_float.
25168 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
25169 <libm-alias-float.h>.
25170 (roundf): Define using libm_alias_float.
25171 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
25172 <libm-alias-float.h>.
25173 (truncf): Define using libm_alias_float.
25174 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
25175 <libm-alias-float.h>.
25176 (ceilf): Define using libm_alias_float.
25177 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
25178 <libm-alias-float.h>.
25179 (floorf): Define using libm_alias_float.
25180 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
25181 <libm-alias-float.h>.
25182 (llroundf): Define using libm_alias_float.
25183 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
25184 <libm-alias-float.h>.
25185 (roundf): Define using libm_alias_float.
25186 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
25187 <libm-alias-float.h>.
25188 (truncf): Define using libm_alias_float.
25189 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
25190 <libm-alias-float.h>.
25191 (copysignf): Define using libm_alias_float.
25192 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
25193 <libm-alias-float.h>.
25194 (llrintf): Define using libm_alias_float.
25195 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
25196 <libm-alias-float.h>.
25197 (llroundf): Define using libm_alias_float.
25198 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
25199 <libm-alias-float.h>.
25200 (cosf): Define using libm_alias_float.
25201 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
25202 <libm-alias-float.h>.
25203 (llrintf): Define using libm_alias_float.
25204 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
25205 <libm-alias-float.h>.
25206 (llroundf): Define using libm_alias_float.
25207 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
25208 <libm-alias-float.h>.
25209 (sinf): Define using libm_alias_float.
25210
25211 2017-12-04 Florian Weimer <fweimer@redhat.com>
25212
25213 * support/check.h (TEST_COMPARE): Define.
25214 (support_test_compare_failure): Declare.
25215 * support/Makefile (libsupport-routines): Add
25216 support_test_compare_failure.
25217 (tests): Add tst-test_compare.
25218 * support /support_test_compare_failure.c: New file.
25219 * support/tst-test_compare.c: Likewise.
25220
25221 2017-12-04 Mike FABIAN <mfabian@redhat.com>
25222
25223 [BZ #22527]
25224 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
25225 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
25226 available, this rewrite of the collation rules does reproduce
25227 the test file in the same order.
25228
25229 2017-12-04 Mike FABIAN <mfabian@redhat.com>
25230
25231 [BZ #10580]
25232 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
25233 digraphs in the month and day names. Using single code points for
25234 digraphs is deprecated. While there are dedicated Unicode
25235 codepoints, for the digraphs, these are included for backwards
25236 compatibility and modern texts use a sequence of Basic Latin
25237 characters. See: https://www.unicode.org/faq/ligature_digraph.html
25238 This makes the month and day names agree exactly with CLDR now,
25239 CLDR does not use the single code points for the digraphs either.
25240
25241 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
25242
25243 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
25244
25245 2017-12-04 Joseph Myers <joseph@codesourcery.com>
25246
25247 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
25248 of floor.
25249
25250 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
25251
25252 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
25253 Define only for libc.so.
25254
25255 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
25256
25257 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
25258 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
25259 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
25260 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
25261 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
25262
25263 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25264
25265 [BZ #5997]
25266 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
25267
25268 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
25269
25270 [BZ libc/19170]
25271 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
25272 PREINIT_FUNCTION_WEAK is nonzero.
25273 (gmon_initializer): New function. Put procedure label for it in
25274 .init_array section.
25275 (_init): Don't call PREINIT_FUNCTION.
25276 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
25277 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
25278 value when map argument is null.
25279
25280 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
25281 depi instruction from PIC pc-relative sequence.
25282 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
25283 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
25284 (elf_machine_load_address): Likewise.
25285 (elf_machine_runtime_setup): Likewise.
25286
25287 2017-12-02 Joseph Myers <joseph@codesourcery.com>
25288
25289 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
25290 <libm-alias-double.h>.
25291 (logb): Define using libm_alias_double.
25292 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
25293 <libm-alias-double.h>.
25294 (copysign): Define using libm_alias_double.
25295 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
25296 <libm-alias-double.h>.
25297 (llrint): Define using libm_alias_double.
25298 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
25299 <libm-alias-double.h>.
25300 (llround): Define using libm_alias_double.
25301 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
25302 <libm-alias-double.h>.
25303 (lrint): Define using libm_alias_double.
25304 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
25305 <libm-alias-double.h>.
25306 (lround): Define using libm_alias_double.
25307 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
25308 Include <libm-alias-double.h>.
25309 (copysign): Define using libm_alias_double.
25310 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
25311 Include <libm-alias-double.h>.
25312 (llrint): Define using libm_alias_double.
25313 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
25314 Include <libm-alias-double.h>.
25315 (llround): Define using libm_alias_double.
25316 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
25317 <libm-alias-double.h>.
25318 (logb): Define using libm_alias_double.
25319 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
25320 Include <libm-alias-double.h>.
25321 (lrint): Define using libm_alias_double.
25322 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
25323 Include <libm-alias-double.h>.
25324 (lround): Define using libm_alias_double.
25325 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
25326 <libm-alias-double.h>.
25327 (llrint): Define using libm_alias_double.
25328 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
25329 <libm-alias-double.h>.
25330 (llround): Define using libm_alias_double.
25331 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
25332 <libm-alias-double.h>.
25333 (llround): Define using libm_alias_double.
25334 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
25335 <libm-alias-double.h>.
25336 (lround): Define using libm_alias_double.
25337 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
25338 <libm-alias-double.h>.
25339 (copysign): Define using libm_alias_double.
25340 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
25341 <libm-alias-double.h>.
25342 (llrint): Define using libm_alias_double.
25343 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
25344 <libm-alias-double.h>.
25345 (llround): Define using libm_alias_double.
25346 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
25347 <libm-alias-double.h>.
25348 (lrint): Define using libm_alias_double.
25349 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
25350 <libm-alias-double.h>.
25351 (lround): Define using libm_alias_double.
25352 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
25353 <libm-alias-double.h>.
25354 (copysign): Define using libm_alias_double.
25355 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
25356 <libm-alias-double.h>.
25357 (llrint): Define using libm_alias_double.
25358 (lrint): Likewise.
25359 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
25360 <libm-alias-double.h>.
25361 (llround): Define using libm_alias_double.
25362 (lround): Likewise.
25363 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
25364 <libm-alias-double.h>.
25365 (logb): Define using libm_alias_double.
25366 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
25367 <libm-alias-double.h>.
25368 (copysign): Define using libm_alias_double.
25369 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
25370 <libm-alias-double.h>.
25371 (llrint): Define using libm_alias_double.
25372 (lrint): Likewise.
25373 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
25374 <libm-alias-double.h>.
25375 (llround): Define using libm_alias_double.
25376 (lround): Likewise.
25377 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
25378 <libm-alias-double.h>.
25379 (llround): Define using libm_alias_double.
25380 (lround): Likewise.
25381 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
25382 <libm-alias-double.h>.
25383 (copysign): Define using libm_alias_double.
25384 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
25385 <libm-alias-double.h>.
25386 (llrint): Define using libm_alias_double.
25387 (lrint): Likewise.
25388 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
25389 <libm-alias-double.h>.
25390 (llround): Define using libm_alias_double.
25391 (lround): Likewise.
25392 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
25393 <libm-alias-double.h>.
25394 (llrint): Define using libm_alias_double.
25395 (lrint): Likewise.
25396 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
25397 <libm-alias-double.h>.
25398 (llround): Define using libm_alias_double.
25399 (lround): Likewise.
25400
25401 2017-12-01 Joseph Myers <joseph@codesourcery.com>
25402
25403 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
25404 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
25405 compat symbol based on llround.
25406
25407 * sysdeps/powerpc/power7/fpu/s_logb.c
25408 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
25409 symbol based on __logb, not on logb.
25410 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
25411 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
25412 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
25413 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
25414
25415 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
25416 (rint): Define using libm_alias_double.
25417 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
25418 <libm-alias-double.h>.
25419 (modf): Define using libm_alias_double.
25420 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
25421 <libm-alias-double.h>.
25422 (ceil): Define using libm_alias_double.
25423 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
25424 <libm-alias-double.h>.
25425 (floor): Define using libm_alias_double.
25426 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
25427 <libm-alias-double.h>.
25428 (nearbyint): Define using libm_alias_double.
25429 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
25430 <libm-alias-double.h>.
25431 (rint): Define using libm_alias_double.
25432 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
25433 <libm-alias-double.h>.
25434 (round): Define using libm_alias_double.
25435 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
25436 <libm-alias-double.h>.
25437 (trunc): Define using libm_alias_double.
25438 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
25439 <libm-alias-double.h>.
25440 (ceil): Define using libm_alias_double.
25441 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
25442 Include <libm-alias-double.h>.
25443 (floor): Define using libm_alias_double.
25444 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
25445 <libm-alias-double.h>.
25446 (modf): Define using libm_alias_double.
25447 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
25448 Include <libm-alias-double.h>.
25449 (round): Define using libm_alias_double.
25450 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
25451 Include <libm-alias-double.h>.
25452 (trunc): Define using libm_alias_double.
25453 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
25454 <libm-alias-double.h>.
25455 (ceil): Define using libm_alias_double.
25456 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
25457 <libm-alias-double.h>.
25458 (floor): Define using libm_alias_double.
25459 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
25460 <libm-alias-double.h>.
25461 (round): Define using libm_alias_double.
25462 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
25463 <libm-alias-double.h>.
25464 (trunc): Define using libm_alias_double.
25465 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
25466 <libm-alias-double.h>.
25467 (ceil): Define using libm_alias_double.
25468 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
25469 <libm-alias-double.h>.
25470 (floor): Define using libm_alias_double.
25471 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
25472 <libm-alias-double.h>.
25473 (modf): Define using libm_alias_double.
25474 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
25475 <libm-alias-double.h>.
25476 (round): Define using libm_alias_double.
25477 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
25478 <libm-alias-double.h>.
25479 (trunc): Define using libm_alias_double.
25480 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
25481 <libm-alias-double.h>.
25482 (ceil): Define using libm_alias_double.
25483 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
25484 <libm-alias-double.h>.
25485 (floor): Define using libm_alias_double.
25486 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
25487 <libm-alias-double.h>.
25488 (nearbyint): Define using libm_alias_double.
25489 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
25490 <libm-alias-double.h>.
25491 (rint): Define using libm_alias_double.
25492 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
25493 <libm-alias-double.h>.
25494 (round): Define using libm_alias_double.
25495 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
25496 <libm-alias-double.h>.
25497 (trunc): Define using libm_alias_double.
25498 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
25499 <libm-alias-double.h>.
25500 (ceil): Define using libm_alias_double.
25501 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
25502 <libm-alias-double.h>.
25503 (floor): Define using libm_alias_double.
25504 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
25505 <libm-alias-double.h>.
25506 (round): Define using libm_alias_double.
25507 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
25508 <libm-alias-double.h>.
25509 (trunc): Define using libm_alias_double.
25510
25511 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
25512 (fabs): Define using libm_alias_double.
25513 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
25514 (fma): Define using libm_alias_double.
25515 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
25516 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
25517 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
25518 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
25519
25520 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25521
25522 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
25523
25524 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
25525 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
25526 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
25527
25528 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
25529 due redirect macro.
25530
25531 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
25532
25533 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
25534
25535 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25536
25537 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
25538 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
25539 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
25540 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
25541
25542 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
25543 (libm-sysdep_routines): Add s_nearbyintf-generic and
25544 s_nearbyint-generic.
25545 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
25546 New file.
25547 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
25548 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
25549 Likewise.
25550 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
25551 Likewise.
25552 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
25553 file.
25554 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
25555 Likewise.
25556
25557 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
25558 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
25559 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
25560 file.
25561 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
25562 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
25563 Likewise.
25564 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
25565 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
25566 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
25567
25568 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
25569 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
25570 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
25571 file.
25572 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
25573 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
25574 Likewise.
25575 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
25576 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
25577 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
25578
25579 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
25580 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
25581 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
25582 file.
25583 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
25584 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
25585 Likewise.
25586 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
25587 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
25588 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
25589
25590 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
25591 (sysdep_calls): New rule.
25592 (sysdep_routines): Use sysdep_calls as base.
25593 (libm-sysdep_routines): Add generic rule for symbols shared with
25594 libc. Add s_copysign-generic and s_copysign-generic objects.
25595 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
25596 New file.
25597 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
25598 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
25599 Likewise.
25600 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
25601 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
25602 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
25603
25604 2017-12-01 Mike FABIAN <mfabian@redhat.com>
25605
25606 [BZ #22519]
25607 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
25608 the list of locales to be built for testing.
25609 * localedata/is_IS.UTF-8.in: New file.
25610 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
25611 on iso14651_t1.
25612
25613 2017-12-01 Joseph Myers <joseph@codesourcery.com>
25614
25615 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
25616 <libm-alias-float.h>.
25617 (fabsf): Define using libm_alias_float.
25618
25619 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
25620
25621 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
25622
25623 2017-11-30 Joseph Myers <joseph@codesourcery.com>
25624
25625 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
25626 <libm-alias-float.h>.
25627 (fabsf): Define using libm_alias_float.
25628 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
25629 <libm-alias-float.h>.
25630 (lrintf): Define using libm_alias_float.
25631 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
25632 <libm-alias-float.h>.
25633 (rintf): Define using libm_alias_float.
25634
25635 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
25636 <libm-alias-double.h>.
25637 (fabs): Define using libm_alias_double.
25638 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
25639 <libm-alias-double.h>.
25640 (lrint): Define using libm_alias_double.
25641 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
25642 <libm-alias-double.h>.
25643 (rint): Define using libm_alias_double.
25644
25645 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
25646 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
25647 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
25648 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
25649 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
25650 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
25651 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
25652 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
25653 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
25654 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
25655 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
25656 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
25657 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
25658 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
25659 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
25660 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
25661 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
25662 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
25663 s_atan_template.c.
25664 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
25665 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
25666 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
25667 s_ceil_template.c.
25668 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
25669 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
25670 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
25671 s_cos_template.c.
25672 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
25673 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
25674 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
25675 s_expm1_template.c.
25676 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
25677 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
25678 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
25679 s_fabs_template.c.
25680 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
25681 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
25682 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
25683 s_floor_template.c.
25684 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
25685 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
25686 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
25687 s_frexp_template.c.
25688 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
25689 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
25690 s_lrint_template.c.
25691 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
25692 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
25693 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
25694 s_modf_template.c.
25695 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
25696 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
25697 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
25698 s_nearbyint_template.c.
25699 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
25700 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
25701 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
25702 s_remquo_template.c.
25703 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
25704 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
25705 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
25706 s_rint_template.c.
25707 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
25708 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
25709 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
25710 s_sin_template.c.
25711 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
25712 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
25713 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
25714 s_sincos_template.c.
25715 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
25716 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
25717 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
25718 s_tan_template.c.
25719 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
25720 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
25721 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
25722 s_tanh_template.c.
25723 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
25724 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
25725 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
25726 s_trunc_template.c.
25727 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
25728 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
25729 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
25730 s_atan.c instead of including s_atan.c.
25731 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
25732 s_atanf.c instead of including s_atanf.c.
25733 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
25734 s_atanl.c instead of including s_atanl.c.
25735 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
25736 instead of s_atan.c.
25737 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
25738 instead of s_atanf.c.
25739 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
25740 instead of s_atanl.c.
25741
25742 * scripts/update-copyrights: Do not handle intl/plural.c
25743 specially.
25744
25745 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
25746
25747 [BZ #22432]
25748 * configure.ac (BISON): Require to be present.
25749 * configure: Regenerated.
25750 * intl/Makefile (generated): Add plural.c.
25751 [$(BISON) != no]: Make code unconditional.
25752 (plural.c): Change rule to $(objpfx)plural.c.
25753 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
25754 * intl/plural.c: Remove.
25755 * manual/install.texi (Tools for Compilation): Document bison as
25756 required.
25757 * INSTALL: Regenerated.
25758
25759 2017-11-30 Joseph Myers <joseph@codesourcery.com>
25760
25761 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
25762 <libm-alias-double.h>.
25763 (llrint): Define using libm_alias_double.
25764 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
25765 <libm-alias-float.h>.
25766 (llrintf): Define using libm_alias_float.
25767 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
25768 <libm-alias-ldouble.h>.
25769 (llrintl): Define using libm_alias_ldouble.
25770
25771 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
25772 declare_mgen_alias instead of weak_alias.
25773 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
25774 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
25775 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
25776
25777 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25778
25779 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
25780 Add add_n-generic.
25781 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
25782 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
25783 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
25784
25785 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
25786 Add submul_1-generic.
25787 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
25788 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
25789 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
25790
25791 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
25792 Add addmul_1-generic.
25793 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
25794 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
25795 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
25796
25797 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
25798 Add sub_n-generic.
25799 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
25800 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
25801 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
25802
25803 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
25804 Add mul_1-generic.
25805 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
25806 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
25807 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
25808
25809 2017-11-30 Mike FABIAN <mfabian@redhat.com>
25810
25811 According to CLDR, collation rules for Serbian and Bosnian
25812 should be the same as for Croatian.
25813
25814 [BZ #22534]
25815 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
25816 and to the list of locales to be built for testing.
25817 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
25818 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
25819 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
25820 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
25821
25822 2017-11-30 Mike FABIAN <mfabian@redhat.com>
25823
25824 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
25825 to make test case pass.
25826 * localedata/hr_HR.UTF-8.in: Add more test strings.
25827
25828 2017-11-30 Mike FABIAN <mfabian@redhat.com>
25829
25830 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
25831
25832 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
25833
25834 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
25835 the list of locales to built for testing.
25836 * localedata/hr_HR.UTF-8.in: New file.
25837
25838 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
25839
25840 [BZ #10580]
25841 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
25842 iso14651_t1.
25843 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
25844 CLDR (except use ligatures for the digraphs, CLDR does not use
25845 the ligatures), add first_workday, some fixes in the date and time
25846 formats.
25847 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
25848 for Đ and đ.
25849 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
25850 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
25851 Add int_p_cs_precedes and int_n_cs_precedes.
25852 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
25853 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
25854 LC_MONETARY now).
25855 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
25856 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
25857 name_miss.
25858 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
25859 and lang_lib. Change postal_fmt.
25860
25861 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
25862
25863 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
25864 <setjmp.h>.
25865 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
25866 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
25867 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
25868 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
25869 * sysdeps/generic/setjmpP.h: New file.
25870 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
25871 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
25872 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
25873 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
25874 Add jmp_buf-ssp.sym.
25875 (tests): Add tst-saved_mask-1.
25876
25877 2017-11-30 Arjun Shankar <arjun@redhat.com>
25878
25879 [BZ #22375]
25880 CVE-2017-17426
25881 * malloc/malloc.c (__libc_malloc): Use checked_request2size
25882 instead of request2size.
25883
25884 2017-11-30 Joseph Myers <joseph@codesourcery.com>
25885
25886 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
25887 (__lllrint): Remove alias.
25888 (lllrint): Likewise.
25889 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
25890 (__lllrintf): Likewise.
25891 (lllrintf): Likewise.
25892
25893 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
25894 <libm-alias-float.h>.
25895 (copysignf): Define using libm_alias_float.
25896 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
25897 <libm-alias-float.h>.
25898 (fabsf): Define using libm_alias_float.
25899 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
25900 Include <libm-alias-float.h>.
25901 (copysignf): Define using libm_alias_float.
25902 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
25903 <libm-alias-float.h>.
25904 (fabsf): Define using libm_alias_float.
25905 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
25906 <libm-alias-float.h>.
25907 (fdimf): Define using libm_alias_float.
25908 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
25909 <libm-alias-float.h>.
25910 (fmaf): Define using libm_alias_float.
25911 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
25912 <libm-alias-float.h>.
25913 (llrintf): Define using libm_alias_float.
25914 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
25915 Include <libm-alias-float.h>.
25916 (nearbyintf): Define using libm_alias_float.
25917 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
25918 <libm-alias-float.h>.
25919 (rintf): Define using libm_alias_float.
25920 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
25921 <libm-alias-float.h>.
25922 (llrintf): Define using libm_alias_float.
25923 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
25924 <libm-alias-float.h>.
25925 (lrintf): Define using libm_alias_float.
25926 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
25927 <libm-alias-float.h>.
25928 (nearbyintf): Define using libm_alias_float.
25929 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
25930 <libm-alias-float.h>.
25931 (rintf): Define using libm_alias_float.
25932 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
25933 <libm-alias-float.h>.
25934 (ceilf): Define using libm_alias_float.
25935 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
25936 <libm-alias-float.h>.
25937 (floorf): Define using libm_alias_float.
25938 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
25939 <libm-alias-float.h>.
25940 (fmaf): Define using libm_alias_float.
25941 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
25942 <libm-alias-float.h>.
25943 (lrintf): Define using libm_alias_float.
25944 (llrintf): Likewise.
25945 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
25946 <libm-alias-float.h>.
25947 (nearbyintf): Define using libm_alias_float.
25948 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
25949 <libm-alias-float.h>.
25950 (rintf): Define using libm_alias_float.
25951 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
25952 <libm-alias-float.h>.
25953 (truncf): Define using libm_alias_float.
25954 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
25955 <libm-alias-float.h>.
25956 (copysignf): Define using libm_alias_float.
25957 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
25958 <libm-alias-float.h>.
25959 (fabsf): Define using libm_alias_float.
25960 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
25961 <libm-alias-float.h>.
25962 (lrintf): Define using libm_alias_float.
25963 (llrintf): Likewise.
25964 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
25965 <libm-alias-float.h>.
25966 (nearbyintf): Define using libm_alias_float.
25967 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
25968 <libm-alias-float.h>.
25969 (rintf): Define using libm_alias_float.
25970
25971 2017-11-29 Joseph Myers <joseph@codesourcery.com>
25972
25973 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
25974 <libm-alias-double.h>.
25975 (copysign): Define using libm_alias_double.
25976 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
25977 <libm-alias-double.h>.
25978 (fabs): Define using libm_alias_double.
25979 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
25980 Include <libm-alias-double.h>.
25981 (copysign): Define using libm_alias_double.
25982 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
25983 <libm-alias-double.h>.
25984 (fabs): Define using libm_alias_double.
25985 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
25986 <libm-alias-double.h>.
25987 (fdim): Define using libm_alias_double.
25988 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
25989 <libm-alias-double.h>.
25990 (fma): Define using libm_alias_double.
25991 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
25992 <libm-alias-double.h>.
25993 (llrint): Define using libm_alias_double.
25994 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
25995 Include <libm-alias-double.h>.
25996 (nearbyint): Define using libm_alias_double.
25997 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
25998 <libm-alias-double.h>.
25999 (rint): Define using libm_alias_double.
26000 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
26001 <libm-alias-double.h>.
26002 (fabs): Define using libm_alias_double.
26003 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
26004 <libm-alias-double.h>.
26005 (llrint): Define using libm_alias_double.
26006 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
26007 <libm-alias-double.h>.
26008 (nearbyint): Define using libm_alias_double.
26009 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
26010 <libm-alias-double.h>.
26011 (rint): Define using libm_alias_double.
26012 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
26013 <libm-alias-double.h>.
26014 (ceil): Define using libm_alias_double.
26015 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
26016 <libm-alias-double.h>.
26017 (floor): Define using libm_alias_double.
26018 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
26019 <libm-alias-double.h>.
26020 (fma): Define using libm_alias_double.
26021 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
26022 <libm-alias-double.h>.
26023 (lrint): Define using libm_alias_double.
26024 (llrint): Likewise.
26025 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
26026 <libm-alias-double.h>.
26027 (nearbyint): Define using libm_alias_double.
26028 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
26029 <libm-alias-double.h>.
26030 (rint): Define using libm_alias_double.
26031 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
26032 <libm-alias-double.h>.
26033 (trunc): Define using libm_alias_double.
26034 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
26035 <libm-alias-double.h>.
26036 (copysign): Define using libm_alias_double.
26037 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
26038 <libm-alias-double.h>.
26039 (fabs): Define using libm_alias_double.
26040 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
26041 <libm-alias-double.h>.
26042 (lrint): Define using libm_alias_double.
26043 (llrint): Likewise.
26044 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
26045 <libm-alias-double.h>.
26046 (nearbyint): Define using libm_alias_double.
26047 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
26048 <libm-alias-double.h>.
26049 (rint): Define using libm_alias_double.
26050
26051 [BZ #22229]
26052 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
26053 <math_ldbl_opt.h>.
26054 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
26055
26056 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
26057 SPARC --disable-multi-arch glibc variants.
26058
26059 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
26060 <libm-alias-float.h>.
26061 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26062 if [SHARED].
26063 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
26064 <libm-alias-float.h>.
26065 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26066 if [SHARED].
26067 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
26068 <libm-alias-float.h>.
26069 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26070 if [SHARED].
26071 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
26072 <libm-alias-float.h>.
26073 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26074 if [SHARED].
26075 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
26076 <libm-alias-float.h>.
26077 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26078 if [SHARED].
26079 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
26080 <libm-alias-float.h>.
26081 (ceilf): Define using libm_alias_float.
26082 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
26083 <libm-alias-float.h>.
26084 (floorf): Define using libm_alias_float.
26085 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
26086 <libm-alias-float.h>.
26087 (fmaf): Define using libm_alias_float.
26088 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
26089 <libm-alias-float.h>.
26090 (nearbyintf): Define using libm_alias_float.
26091 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
26092 <libm-alias-float.h>.
26093 (rintf): Define using libm_alias_float.
26094 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
26095 <libm-alias-float.h>.
26096 (truncf): Define using libm_alias_float.
26097 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
26098 (copysignf): Define using libm_alias_float.
26099 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
26100 (cosf): Define using libm_alias_float.
26101 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
26102 (fabsf): Define using libm_alias_float.
26103 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
26104 (fmaxf): Define using libm_alias_float.
26105 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
26106 (fminf): Define using libm_alias_float.
26107 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
26108 (llrintf): Define using libm_alias_float.
26109 [!__ILP32__] (lrintf): Likewise.
26110 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
26111 (sincosf): Define using libm_alias_float.
26112 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
26113 (sinf): Define using libm_alias_float.
26114 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
26115 (lrintf): Define using libm_alias_float.
26116
26117 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
26118 <libm-alias-double.h>.
26119 (atan): Define using libm_alias_double.
26120 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
26121 <libm-alias-double.h>.
26122 (ceil): Define using libm_alias_double.
26123 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
26124 <libm-alias-double.h>.
26125 (floor): Define using libm_alias_double.
26126 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
26127 <libm-alias-double.h>.
26128 (fma): Define using libm_alias_double.
26129 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
26130 <libm-alias-double.h>.
26131 (nearbyint): Define using libm_alias_double.
26132 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
26133 <libm-alias-double.h>.
26134 (rint): Define using libm_alias_double.
26135 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
26136 <libm-alias-double.h>.
26137 (sin): Define using libm_alias_double.
26138 (cos): Likewise.
26139 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
26140 <libm-alias-double.h>.
26141 (tan): Define using libm_alias_double.
26142 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
26143 <libm-alias-double.h>.
26144 (trunc): Define using libm_alias_double.
26145 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
26146 (copysign): Define using libm_alias_double.
26147 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
26148 (fabs): Define using libm_alias_double.
26149 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
26150 (fmax): Define using libm_alias_double.
26151 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
26152 (fmin): Define using libm_alias_double.
26153 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
26154 (llrint): Define using libm_alias_double.
26155 [!__ILP32__] (lrint): Likewise.
26156 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
26157 (lrint): Define using libm_alias_double.
26158
26159 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26160
26161 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
26162 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
26163 objects.
26164 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
26165 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
26166 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
26167 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
26168 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
26169 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
26170
26171 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
26172 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
26173 objects.
26174 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
26175 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
26176 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
26177 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
26178 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
26179 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
26180
26181 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
26182 (libm-sysdep_routines): Add s_nearbyint-generic and
26183 s_nearbyintf-generic objects.
26184 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
26185 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
26186 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
26187 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
26188 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
26189 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
26190
26191 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
26192 Add s_finitef-generic and s_finite-generic objects.
26193 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
26194 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
26195 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
26196 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
26197 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
26198 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
26199
26200 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
26201 Add s_isinff-generic and s_isinf-generic objects.
26202 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
26203 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
26204 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
26205 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
26206 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
26207 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
26208
26209 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
26210 Add s_isnanf-generic and s_isnan-generic objects.
26211 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
26212 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
26213 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
26214 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
26215 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
26216 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
26217
26218 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
26219 macro.
26220 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
26221 rule.
26222 (sysdep_routines): Use sysdep_calls as base.
26223 (libm-sysdep_routines): Add generic rule for symbols shared with
26224 libc. Add s_signbit-generic and s_signbitf-generic objects.
26225 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
26226 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
26227 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
26228 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
26229 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
26230 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
26231
26232 2017-11-29 Joseph Myers <joseph@codesourcery.com>
26233
26234 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
26235 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
26236 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
26237 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
26238 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
26239 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
26240 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
26241 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
26242 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
26243 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
26244 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
26245 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
26246 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
26247 libm_alias_float_r.
26248 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
26249 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
26250 (logf): Likewise.
26251 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
26252 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
26253 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
26254 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
26255 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
26256 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
26257 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
26258 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
26259 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
26260 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
26261 libm_alias_float.
26262 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
26263 (cosf): Likewise.
26264 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
26265 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
26266 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
26267 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
26268 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
26269 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
26270 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
26271 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
26272 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
26273 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
26274 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
26275 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
26276 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
26277 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
26278 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
26279 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
26280 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
26281 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
26282 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
26283 libm_alias_float.
26284 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
26285 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
26286 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
26287 * sysdeps/ia64/fpu/w_lgammaf_main.c
26288 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
26289 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
26290
26291 2017-11-28 Mike FABIAN <mfabian@redhat.com>
26292 Alexandre Oliva <aoliva@redhat.com>
26293
26294 [BZ #17750]
26295 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
26296 * localedata/fr_CA.UTF-8.in: New file with test data for backward
26297 accents sorting.
26298 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
26299 sorting.
26300 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
26301 * localedata/locales/de_DE (LC_COLLATE): Likewise.
26302 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
26303 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
26304 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
26305 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
26306 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
26307 instead of “ifdef DIACRIT_BACKWARD”.
26308
26309 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26310
26311 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
26312 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
26313 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
26314 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
26315 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
26316 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
26317 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
26318 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
26319 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
26320 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
26321 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
26322 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
26323 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
26324 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
26325 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
26326 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
26327 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
26328 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
26329 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26330 ($(have-as-vis3) == yes): Remove conditional.
26331 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
26332 Likewise.
26333 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
26334 file.
26335 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
26336 file.
26337 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
26338 file.
26339 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
26340 file.
26341 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
26342 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
26343 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
26344 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
26345 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
26346 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
26347 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
26348 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
26349
26350 2017-11-29 Joseph Myers <joseph@codesourcery.com>
26351
26352 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
26353 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
26354 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
26355 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
26356 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
26357 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
26358 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
26359 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
26360 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
26361 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
26362 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
26363 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
26364 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
26365 libm_alias_double_r.
26366 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
26367 (log): Likewise.
26368 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
26369 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
26370 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
26371 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
26372 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
26373 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
26374 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
26375 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
26376 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
26377 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
26378 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
26379 libm_alias_double.
26380 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
26381 (cos): Likewise.
26382 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
26383 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
26384 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
26385 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
26386 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
26387 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
26388 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
26389 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
26390 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
26391 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
26392 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
26393 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
26394 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
26395 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
26396 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
26397 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
26398 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
26399 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
26400 libm_alias_double.
26401 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
26402 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
26403 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
26404 * sysdeps/ia64/fpu/w_lgamma_main.c
26405 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
26406 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
26407
26408 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
26409
26410 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
26411 address of $global$ into %dp register earlier. Use pc-relative
26412 instruction sequence for PIC case.
26413
26414 2017-11-28 Joseph Myers <joseph@codesourcery.com>
26415
26416 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
26417 (asinhf): Define using libm_alias_float.
26418 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
26419 (atanf): Define using libm_alias_float.
26420 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
26421 (cbrtf): Define using libm_alias_float.
26422 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
26423 (ceilf): Define using libm_alias_float.
26424 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
26425 (copysignf): Define using libm_alias_float.
26426 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
26427 (expm1f): Define using libm_alias_float.
26428 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
26429 (fabsf): Define using libm_alias_float.
26430 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
26431 (floorf): Define using libm_alias_float.
26432 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
26433 (fmaxf): Define using libm_alias_float.
26434 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
26435 (fminf): Define using libm_alias_float.
26436 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
26437 (frexpf): Define using libm_alias_float.
26438 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
26439 (llrintf): Define using libm_alias_float.
26440 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
26441 (logbf): Define using libm_alias_float.
26442 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
26443 (lrintf): Define using libm_alias_float.
26444 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
26445 (nearbyintf): Define using libm_alias_float.
26446 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
26447 (remquof): Define using libm_alias_float.
26448 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
26449 (rintf): Define using libm_alias_float.
26450 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
26451 (truncf): Define using libm_alias_float.
26452 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
26453 <libm-alias-float.h>.
26454 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26455 if [SHARED].
26456 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
26457 <libm-alias-float.h>.
26458 (expf): Define using libm_alias_float, or libm_alias_float_other
26459 if [SHARED].
26460 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
26461 <libm-alias-float.h>.
26462 (log2f): Define using libm_alias_float, or libm_alias_float_other
26463 if [SHARED].
26464 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
26465 <libm-alias-float.h>.
26466 (logf): Define using libm_alias_float, or libm_alias_float_other
26467 if [SHARED].
26468 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
26469 <libm-alias-float.h>.
26470 (powf): Define using libm_alias_float, or libm_alias_float_other
26471 if [SHARED].
26472 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
26473 <libm-alias-float.h>.
26474 (cosf): Define using libm_alias_float.
26475 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
26476 <libm-alias-float.h>.
26477 (sincosf): Define using libm_alias_float.
26478 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
26479 <libm-alias-float.h>.
26480 (sinf): Define using libm_alias_float.
26481 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
26482 (fmaxf): Define using libm_alias_float.
26483 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
26484 (fminf): Define using libm_alias_float.
26485 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
26486 <libm-alias-float.h>.
26487 (fmaf): Define using libm_alias_float.
26488
26489 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
26490 (asinh): Define using libm_alias_double.
26491 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
26492 (atan): Define using libm_alias_double.
26493 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
26494 (cbrt): Define using libm_alias_double.
26495 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
26496 (ceil): Define using libm_alias_double.
26497 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
26498 (copysign): Define using libm_alias_double.
26499 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
26500 (expm1): Define using libm_alias_double.
26501 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
26502 (fabs): Define using libm_alias_double.
26503 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
26504 (fdim): Define using libm_alias_double.
26505 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
26506 (floor): Define using libm_alias_double.
26507 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
26508 (fmax): Define using libm_alias_double.
26509 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
26510 (fmin): Define using libm_alias_double.
26511 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
26512 (frexp): Define using libm_alias_double.
26513 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
26514 (llrint): Define using libm_alias_double.
26515 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
26516 (logb): Define using libm_alias_double.
26517 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
26518 (lrint): Define using libm_alias_double.
26519 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
26520 (nearbyint): Define using libm_alias_double.
26521 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
26522 (remquo): Define using libm_alias_double.
26523 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
26524 (rint): Define using libm_alias_double.
26525 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
26526 (trunc): Define using libm_alias_double.
26527 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
26528 (fmax): Define using libm_alias_double.
26529 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
26530 (fmin): Define using libm_alias_double.
26531 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
26532 (fma): Define using libm_alias_double.
26533
26534 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
26535
26536 [BZ #22370]
26537 * elf/dl-hwcaps.c (ROUND): Removed.
26538 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
26539 and ELF_NOTE_NEXT_OFFSET.
26540 * elf/dl-load.c (ROUND): Removed.
26541 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
26542 * elf/readelflib.c (ROUND): Removed.
26543 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
26544 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
26545 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
26546 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
26547
26548 2017-11-28 Joseph Myers <joseph@codesourcery.com>
26549
26550 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
26551 [!__fmaf] (fmaf): Define using libm_alias_float.
26552
26553 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
26554 [!__fma] (fma): Define using libm_alias_double.
26555 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
26556
26557 2017-11-28 Mike FABIAN <mfabian@redhat.com>
26558
26559 [BZ #22336]
26560 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
26561 and implement the collation rules for cs from CLDR on top of that.
26562 * Makefile: Add cs_CZ.UTF-8 to test-input.
26563 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
26564
26565 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
26566
26567 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
26568
26569 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
26570 Icarus Sparry <icarus.w.sparry@intel.com>
26571
26572 * benchtests/Makefile:Add BENCHSET to allow subsets of
26573 benchmarks to be run.
26574 * benchtests/README: Add documentation for: Running subsets of
26575 benchmarks.
26576
26577 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
26578
26579 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
26580 range of tests names.
26581
26582 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
26583 result from property and remove "max", min" and "mean" from
26584 required properties based on benchtests/bench-skeleton.c.
26585
26586 2017-11-28 Florian Weimer <fweimer@redhat.com>
26587
26588 [BZ #20826]
26589 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
26590 due to Internet requirement.
26591 * posix/Makefile (tests): Remove tst-getaddrinfo4,
26592 tst-getaddrinfo5.
26593 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
26594
26595 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26596
26597 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
26598 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
26599 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
26600 (sysdep_routines): Add memset-ultra1.
26601 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
26602 file.
26603 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
26604 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
26605 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
26606 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
26607 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
26608 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
26609 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
26610 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
26611
26612 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
26613 file.
26614 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
26615 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
26616 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
26617 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
26618 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
26619 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
26620 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
26621 macro.
26622 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
26623 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
26624 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
26625 (sysdep_routines): Add memcpy-ultra1.
26626 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
26627 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
26628
26629 2017-11-28 Joseph Myers <joseph@codesourcery.com>
26630
26631 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
26632 (cfloat_versions): Take function argument without trailing 'f'.
26633 Call libm_alias_float_other.
26634 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
26635 * sysdeps/alpha/fpu/cargf.c: Likewise.
26636 * sysdeps/alpha/fpu/cimagf.c: Likewise.
26637 * sysdeps/alpha/fpu/conjf.c: Likewise.
26638 * sysdeps/alpha/fpu/crealf.c: Likewise.
26639 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
26640 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
26641 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
26642 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
26643 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
26644 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
26645 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
26646 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
26647 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
26648 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
26649 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
26650 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
26651 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
26652 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
26653 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
26654 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
26655 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
26656 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
26657 (clog10f): Use libm_alias_float_other.
26658 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
26659 (ceilf): Define using libm_alias_float.
26660 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
26661 (copysignf): Define using libm_alias_float.
26662 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
26663 (fabsf): Define using libm_alias_float.
26664 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
26665 (floorf): Define using libm_alias_float.
26666 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
26667 (fmaxf): Define using libm_alias_float.
26668 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
26669 (fminf): Define using libm_alias_float.
26670 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
26671 (lrintf): Define using libm_alias_float.
26672 (llrintf): Likewise.
26673 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
26674 (lroundf): Define using libm_alias_float.
26675 (llroundf): Likewise.
26676 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
26677 (rintf): Define using libm_alias_float.
26678 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
26679 (truncf): Define using libm_alias_float.
26680
26681 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
26682 (ceilf): Define using libm_alias_float.
26683 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
26684 (floorf): Define using libm_alias_float.
26685 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
26686 (fmaf): Define using libm_alias_float.
26687 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
26688 (fmaxf): Define using libm_alias_float.
26689 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
26690 (fminf): Define using libm_alias_float.
26691 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
26692 (llrintf): Define using libm_alias_float.
26693 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
26694 (llroundf): Define using libm_alias_float.
26695 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
26696 (lrintf): Define using libm_alias_float.
26697 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
26698 (lroundf): Define using libm_alias_float.
26699 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
26700 <libm-alias-float.h>.
26701 (nearbyintf): Define using libm_alias_float.
26702 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
26703 (rintf): Define using libm_alias_float.
26704 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
26705 (roundf): Define using libm_alias_float.
26706 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
26707 (truncf): Define using libm_alias_float.
26708
26709 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
26710 (ceil): Define using libm_alias_double.
26711 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
26712 (copysign): Define using libm_alias_double.
26713 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
26714 (fabs): Define using libm_alias_double.
26715 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
26716 (floor): Define using libm_alias_double.
26717 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
26718 (fmax): Define using libm_alias_double.
26719 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
26720 (fmin): Define using libm_alias_double.
26721 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
26722 (lrint): Define using libm_alias_double.
26723 (llrint): Likewise.
26724 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
26725 (lround): Define using libm_alias_double.
26726 (llround): Likewise.
26727 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
26728 (rint): Define using libm_alias_double.
26729 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
26730 (trunc): Define using libm_alias_double.
26731
26732 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
26733 (libm_alias_double_r): Add semicolon after weak_alias call.
26734
26735 2017-11-27 Joseph Myers <joseph@codesourcery.com>
26736
26737 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
26738 (ceil): Define using libm_alias_double.
26739 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
26740 (floor): Define using libm_alias_double.
26741 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
26742 (fma): Define using libm_alias_double.
26743 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
26744 (fmax): Define using libm_alias_double.
26745 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
26746 (fmin): Define using libm_alias_double.
26747 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
26748 (llrint): Define using libm_alias_double.
26749 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
26750 (llround): Define using libm_alias_double.
26751 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
26752 (lrint): Define using libm_alias_double.
26753 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
26754 (lround): Define using libm_alias_double.
26755 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
26756 (nearbyint): Define using libm_alias_double.
26757 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
26758 (rint): Define using libm_alias_double.
26759 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
26760 (round): Define using libm_alias_double.
26761 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
26762 (trunc): Define using libm_alias_double.
26763
26764 2017-11-27 Florian Weimer <fweimer@redhat.com>
26765
26766 * sysdeps/unix/sysv/linux/mlock2.c: New file.
26767 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
26768 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
26769 (tests): Add tst-mlock2.
26770 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
26771 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
26772 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
26773 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
26774 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
26775 for mlock. Document mlock2.
26776
26777 2017-11-27 Joseph Myers <joseph@codesourcery.com>
26778
26779 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
26780 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
26781 Likewise.
26782 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
26783 Likewise.
26784 * sysdeps/x86/Makeconfig: New file.
26785 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
26786 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
26787 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
26788 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
26789 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
26790 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
26791 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
26792 Likewise.
26793 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
26794 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
26795 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
26796 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
26797 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
26798 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
26799 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
26800 * manual/math.texi (Mathematics): Document support for _Float64x.
26801 * math/Versions (GLIBC_2.27): Add _Float64x functions.
26802 * stdlib/Versions (GLIBC_2.27): Likewise.
26803 * wcsmbs/Versions (GLIBC_2.27): Likewise.
26804 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
26805 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
26806 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
26807 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26808 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
26809 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
26810 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
26811 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
26812 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26813 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
26814 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
26815 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
26816 Likewise.
26817 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
26818 Likewise.
26819 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
26820 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26821 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
26822 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26823 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
26824 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26825 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
26826 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26827 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
26828 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
26829 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
26830 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
26831 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
26832 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26833
26834 2017-11-27 Andreas Schwab <schwab@suse.de>
26835
26836 * elf/Makefile (dl-routines): Add dl-sort-maps.
26837 * elf/dl-sort-maps.c: New file.
26838 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
26839 (_dl_sort_maps): Declare.
26840 * elf/dl-fini.c (_dl_sort_fini): Remove.
26841 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
26842 * elf/dl-close.c (_dl_close_worker): Likewise.
26843 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
26844 open-coding it.
26845 * elf/dl-open.c (dl_open_worker): Likewise.
26846
26847 2017-11-24 Joseph Myers <joseph@codesourcery.com>
26848
26849 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
26850 using libm_alias_float128.
26851 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
26852 Likewise.
26853 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
26854 Likewise.
26855 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
26856 (setpayloadsigf128): Likewise.
26857 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
26858 Likewise.
26859 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
26860 Likewise.
26861
26862 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
26863 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
26864 -mfloat128 to CFLAGS.
26865 ($(foreach
26866 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
26867 Likewise.
26868 (CFLAGS-libm-test-support-float64x.c): New variable.
26869 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
26870 $(f128-loader-link) to gnulib-tests.
26871
26872 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
26873 (libm_alias_float128_other_r): If
26874 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
26875 alias.
26876 (libm_alias_float128_r): Add semicolon after weak_alias call.
26877 * sysdeps/generic/libm-alias-ldouble.h
26878 (libm_alias_ldouble_other_r_f128): New macro.
26879 (libm_alias_ldouble_other_r_f64x): Likewise.
26880 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
26881 and libm_alias_ldouble_other_r_f64x.
26882 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
26883 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
26884 (libm_alias_ldouble_other_r_f128): New macro.
26885 (libm_alias_ldouble_other_r_f64x): Likewise.
26886 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
26887 and libm_alias_ldouble_other_r_f64x.
26888
26889 * stdlib/strfroml.c: Always include <stdlib.h>.
26890 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
26891 undefine as macro and define as weak alias.
26892 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
26893 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
26894 <stdlib.h>.
26895 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
26896 Define and later undefine as macro and define as weak alias.
26897
26898 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
26899 Define and later undefine as macro. Define as weak alias if
26900 [!USE_WIDE_CHAR].
26901 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
26902 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
26903 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
26904 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
26905 Define and later undefine as macro. Define as weak alias if
26906 [!USE_WIDE_CHAR].
26907 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
26908 Define and later undefine as macro. Define as weak alias if
26909 [USE_WIDE_CHAR].
26910 * sysdeps/ieee754/float128/strtof128_l.c
26911 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
26912 Define and later undefine as macro. Define as weak alias if
26913 [!USE_WIDE_CHAR].
26914 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
26915 Define and later undefine as macro. Define as weak alias if
26916 [USE_WIDE_CHAR].
26917 * sysdeps/ieee754/ldbl-128/strtold_l.c
26918 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
26919 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
26920 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
26921 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
26922 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
26923 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
26924 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
26925 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
26926 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
26927 * sysdeps/ieee754/ldbl-96/strtold_l.c
26928 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
26929 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
26930 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
26931 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
26932
26933 * math/test-float64x.h: New file.
26934 * math/Makefile (type-float64x-yes): New variable.
26935 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
26936
26937 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
26938 function-like macro.
26939 (min_of_type_): Likewise.
26940 (min_of_type_l): Likewise.
26941 (min_of_type_f128): Likewise.
26942 (min_of_type): Pass () as last argument of __MATH_TG.
26943
26944 * stdlib/tst-strtod-round-skeleton.c
26945 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
26946 headers.
26947
26948 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
26949 for combinations of long double with _Float64 and _Float64x.
26950
26951 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
26952 (__DECL_SIMD_cosf32): Likewise.
26953 (__DECL_SIMD_cosf64): Likewise.
26954 (__DECL_SIMD_cosf32x): Likewise.
26955 (__DECL_SIMD_cosf64x): Likewise.
26956 (__DECL_SIMD_cosf128x): Likewise.
26957 (__DECL_SIMD_sinf16): Likewise.
26958 (__DECL_SIMD_sinf32): Likewise.
26959 (__DECL_SIMD_sinf64): Likewise.
26960 (__DECL_SIMD_sinf32x): Likewise.
26961 (__DECL_SIMD_sinf64x): Likewise.
26962 (__DECL_SIMD_sinf128x): Likewise.
26963 (__DECL_SIMD_sincosf16): Likewise.
26964 (__DECL_SIMD_sincosf32): Likewise.
26965 (__DECL_SIMD_sincosf64): Likewise.
26966 (__DECL_SIMD_sincosf32x): Likewise.
26967 (__DECL_SIMD_sincosf64x): Likewise.
26968 (__DECL_SIMD_sincosf128x): Likewise.
26969 (__DECL_SIMD_logf16): Likewise.
26970 (__DECL_SIMD_logf32): Likewise.
26971 (__DECL_SIMD_logf64): Likewise.
26972 (__DECL_SIMD_logf32x): Likewise.
26973 (__DECL_SIMD_logf64x): Likewise.
26974 (__DECL_SIMD_logf128x): Likewise.
26975 (__DECL_SIMD_expf16): Likewise.
26976 (__DECL_SIMD_expf32): Likewise.
26977 (__DECL_SIMD_expf64): Likewise.
26978 (__DECL_SIMD_expf32x): Likewise.
26979 (__DECL_SIMD_expf64x): Likewise.
26980 (__DECL_SIMD_expf128x): Likewise.
26981 (__DECL_SIMD_powf16): Likewise.
26982 (__DECL_SIMD_powf32): Likewise.
26983 (__DECL_SIMD_powf64): Likewise.
26984 (__DECL_SIMD_powf32x): Likewise.
26985 (__DECL_SIMD_powf64x): Likewise.
26986 (__DECL_SIMD_powf128x): Likewise.
26987
26988 * stdlib/Versions (libc): Move entries for wcstof128 and
26989 wcstof128_l to ....
26990 * wcsmbs/Versions (libc): ... here.
26991 Include <float128-abi.h>.
26992
26993 2017-11-24 Florian Weimer <fweimer@redhat.com>
26994
26995 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
26996 bits/mman-shared.h.
26997 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
26998 <bits/mman-shared.h>.
26999 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
27000 to ...
27001 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
27002 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
27003 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
27004 <bits/mman-shared.h>.
27005
27006 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27007
27008 [BZ #22457]
27009 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
27010 posix_memalign/free.
27011 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
27012
27013 2017-11-22 Mike FABIAN <mfabian@redhat.com>
27014
27015 [BZ #22469]
27016 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
27017 and implement the collation rules for pl from CLDR on top of that.
27018 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
27019 of locales to be built for testing.
27020 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
27021
27022 2017-11-23 Joseph Myers <joseph@codesourcery.com>
27023
27024 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
27025 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
27026 libm_alias_ldouble_other.
27027 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
27028 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
27029 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
27030 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
27031 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
27032 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
27033 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
27034 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
27035 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
27036 libm_alias_ldouble_r.
27037 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
27038 libm_alias_ldouble_other.
27039 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
27040 (log10l): Likewise.
27041 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
27042 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
27043 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
27044 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
27045 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
27046 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
27047 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
27048 (atan2l): Likewise.
27049 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
27050 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
27051 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
27052 libm_alias_ldouble.
27053 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
27054 (cosl): Likewise.
27055 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
27056 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
27057 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
27058 (expl): Likewise.
27059 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
27060 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
27061 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
27062 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
27063 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
27064 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
27065 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
27066 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
27067 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
27068 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
27069 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
27070 libm_alias_ldouble.
27071 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
27072 libm_alias_ldouble_other.
27073 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
27074 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
27075 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
27076 libm_alias_ldouble.
27077 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
27078 libm_alias_ldouble_other.
27079 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
27080 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
27081 * sysdeps/ia64/fpu/w_lgammal_main.c
27082 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
27083 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
27084
27085 2017-11-23 Florian Weimer <fweimer@redhat.com>
27086
27087 * malloc/malloc.c (tcache_thread_shutdown): Rename from
27088 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
27089 alike. Remove freeres marker.
27090 * malloc/arena.c (arena_thread_freeres): Call
27091 tcache_thread_shutdown.
27092
27093 2017-11-23 Florian Weimer <fweimer@redhat.com>
27094
27095 [BZ #22459]
27096 Export nscd hash function as __nss_hash.
27097 * include/nss.h (__nss_hash): Declare.
27098 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
27099 symbol.
27100 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
27101 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
27102 of __nscd_hash.
27103 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
27104 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
27105 * nss/Makefiles (routines): Add nss_hash.
27106 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
27107 * nss/nss_hash.c: Rename from nis/nis_hash.c.
27108 (__nss_hash): Rename from __nis_hash. Define hidden alias.
27109 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
27110
27111 2017-11-23 Florian Weimer <fweimer@redhat.com>
27112
27113 [BZ #22478]
27114 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
27115 Return error code, not -1.
27116 * signal/tst-sigwait-eintr.c: New file.
27117 * signal/Makefile (tests): Add tst-sigwait-eintr.
27118
27119 2017-11-23 Florian Weimer <fweimer@redhat.com>
27120
27121 Linux: Add memfd_create system call wrapper
27122 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
27123 tst-memfd_create.
27124 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
27125 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
27126 [__USE_GNU] (memfd_create): Declare.
27127 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
27128 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
27129 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
27130 * sysdeps/unix/sysv/linux/**.abilist: Update.
27131 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
27132
27133 2017-11-22 Joseph Myers <joseph@codesourcery.com>
27134
27135 * localedata/gen-locale.sh: Fix typo in variable name.
27136
27137 * resolv/res_debug.c (p_secstodate): Condition definition on
27138 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
27139 directly as __p_secstodate, and as a compat symbol. Do not use
27140 libresolv_hidden_def.
27141 * resolv/resolv.h (p_secstodate): Remove macro and function
27142 declaration.
27143 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
27144 using p_secstodate.
27145 * include/resolv.h (__p_secstodate): Do not use
27146 libresolv_hidden_proto.
27147 * resolv/Makefile (tests): Move tst-p_secstodate to ....
27148 (tests-internal): ... here.
27149 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
27150 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
27151 and declare and use __p_secstodate and use compat_symbol_reference
27152 in that case.
27153 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
27154 implementation returning 77.
27155
27156 [BZ #22463]
27157 * resolv/res_debug.c: Include <libc-diag.h>.
27158 (p_secstodate): Assert time_t at least as wide as u_long. On
27159 overflow, use integer seconds since the epoch as output, or use
27160 "<overflow>" as output and set errno to EOVERFLOW if integer
27161 seconds since the epoch would be 14 or more characters.
27162 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
27163 for sprintf call.
27164 * resolv/tst-p_secstodate.c: New file.
27165 * resolv/Makefile (tests): Add tst-p_secstodate.
27166 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
27167
27168 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
27169 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
27170 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
27171
27172 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
27173
27174 * posix/regcomp.c (init_word_char): Add comments.
27175
27176 2017-11-22 Joseph Myers <joseph@codesourcery.com>
27177
27178 [BZ #22447]
27179 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
27180 strlen to compute length of ut_user and set trailing NUL byte of
27181 result explicitly.
27182
27183 2017-11-21 Mike FABIAN <mfabian@redhat.com>
27184
27185 [BZ #15537]
27186 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
27187 using “copy "iso14651_t1"” and then implementing the
27188 collation rules for lv from CLDR on top of that.
27189 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
27190 of locales to be built for testing.
27191 * lv_LV.UTF-8.in: New file with test data to test the Latvian
27192 sorting.
27193
27194 2017-11-21 Joseph Myers <joseph@codesourcery.com>
27195
27196 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
27197 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
27198 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
27199 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
27200 [__USE_MISC] (MADV_HWPOISON): New macro.
27201 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
27202
27203 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27204
27205 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
27206 -Wmissing-braces on GCC 4.9.
27207
27208 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
27209
27210 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
27211 * sysdeps/s390/s390-32/start.S (_start): Likewise
27212 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
27213 (thread_start): Likewise.
27214 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
27215 (thread_start): Likewise.
27216 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
27217 (__makecontext_ret): Likewise.
27218 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
27219 (__makecontext_ret): Likewise.
27220
27221 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
27222
27223 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
27224 __wcschrnul): Remove attribute_hidden.
27225
27226 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
27227
27228 regex: don't assume uint64_t or uint32_t
27229 This avoids -Werror=overflow errors for 32-bit systems in
27230 the 64-bit case. Problem reported by Joseph Myers in:
27231 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
27232 Also, when this code is used in Gnulib it ports to platforms
27233 that lack uint64_t and uint32_t. The C standard doesn't guarantee
27234 them, and on some 32-bit compilers there is no uint64_t.
27235 Problem reported by Gianluigi Tiesi in:
27236 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
27237 * posix/regcomp.c (init_word_char): Don't assume that the types
27238 uint64_t and uint32_t exist. Adapted from Gnulib patch
27239 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
27240 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
27241
27242 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
27243
27244 * sysdeps/aarch64/memset-reg.h: New file.
27245 * sysdeps/aarch64/memset.S: Use it.
27246 (__memset): Rename to MEMSET macro.
27247 [ZVA_MACRO]: Use zva_macro.
27248 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
27249 Add memset_generic and memset_falkor.
27250 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
27251 (__libc_ifunc_impl_list): Add memset ifuncs.
27252 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
27253 local variable zva_size.
27254 * sysdeps/aarch64/multiarch/memset.c: New file.
27255 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
27256 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
27257 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
27258 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
27259 (DCZID_DZP_MASK): New macro.
27260 (DCZID_BS_MASK): Likewise.
27261 (init_cpu_features): Read and set zva_size.
27262 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
27263 (struct cpu_features): New member zva_size.
27264
27265 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
27266 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
27267 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
27268
27269 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
27270 backwards. Fix timing computation.
27271 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
27272 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
27273 on memset by N at a time. Fix timing computation.
27274
27275 2017-11-20 Florian Weimer <fweimer@redhat.com>
27276
27277 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
27278 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
27279
27280 2017-11-19 Florian Weimer <fweimer@redhat.com>
27281
27282 manual: Document mprotect
27283 * manual/memory.texi (Memory Protection): New section.
27284 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
27285 documentation of PROT_* flags and reference the Memory Protection
27286 section instead.
27287
27288 2017-11-19 Florian Weimer <fweimer@redhat.com>
27289
27290 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
27291 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
27292 (Scatter-Gather): ... to here. Remove misleading comment.
27293
27294 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
27295
27296 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
27297 style.
27298
27299 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
27300 when /proc/<pid>/setgroups does not exist.
27301
27302 2017-11-18 Florian Weimer <fweimer@redhat.com>
27303
27304 * sysdeps/unix/sysv/linux/tst-ttyname.c
27305 (become_root_in_mount_ns): Remove.
27306 (do_in_chroot_1): Call support_enter_mount_namespace.
27307 (do_in_chroot_2): Likewise.
27308 (do_test): Call support_become_root early.
27309
27310 2017-11-18 Florian Weimer <fweimer@redhat.com>
27311
27312 * support/namespace.h (support_enter_mount_namespace): Declare.
27313 * support/support_enter_mount_namespace.c: New file.
27314 * support/Makefile (libsupport-routines): Add
27315 support_enter_mount_namespace.
27316
27317 2017-11-18 Florian Weimer <fweimer@redhat.com>
27318
27319 * support/temp_file.c (support_create_temp_directory): Use
27320 test_dir and do not rely on the presence of the XXXXXX suffix.
27321 * support/temp_file.h (support_create_temp_directory): Update
27322 comment.
27323 * support/tst-xreadlink.c (do_test): Adjust.
27324 * support/support_chroot.c (support_chroot_create): Likewise.
27325
27326 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27327
27328 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
27329 macro.
27330 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
27331 htm-no-suspend.
27332
27333 2017-11-17 Joseph Myers <joseph@codesourcery.com>
27334
27335 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
27336 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
27337 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
27338 (ceill): Define using libm_alias_ldouble.
27339 * sysdeps/x86_64/fpu/s_copysignl.S: Include
27340 <libm-alias-ldouble.h>.
27341 (copysignl): Define using libm_alias_ldouble.
27342 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
27343 (fabsl): Define using libm_alias_ldouble.
27344 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
27345 (floorl): Define using libm_alias_ldouble.
27346 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
27347 (fmaxl): Define using libm_alias_ldouble.
27348 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
27349 (fminl): Define using libm_alias_ldouble.
27350 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
27351 (llrintl): Define using libm_alias_ldouble.
27352 (lrintl): Likewise.
27353 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
27354 <libm-alias-ldouble.h>.
27355 (nearbyintl): Define using libm_alias_ldouble.
27356 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
27357 (truncl): Define using libm_alias_ldouble.
27358 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
27359 <libm-alias-ldouble.h>.
27360 (lrintl): Define using libm_alias_ldouble.
27361
27362 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
27363 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
27364 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
27365 (asinhl): Define using libm_alias_ldouble.
27366 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
27367 (atanl): Define using libm_alias_ldouble.
27368 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
27369 (cbrtl): Define using libm_alias_ldouble.
27370 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
27371 (ceill): Define using libm_alias_ldouble.
27372 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
27373 (copysignl): Define using libm_alias_ldouble.
27374 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
27375 (fabsl): Define using libm_alias_ldouble.
27376 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
27377 (floorl): Define using libm_alias_ldouble.
27378 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
27379 (fmaxl): Define using libm_alias_ldouble.
27380 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
27381 (fminl): Define using libm_alias_ldouble.
27382 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
27383 (frexpl): Define using libm_alias_ldouble.
27384 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
27385 (llrintl): Define using libm_alias_ldouble.
27386 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
27387 (logbl): Define using libm_alias_ldouble.
27388 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
27389 (lrintl): Define using libm_alias_ldouble.
27390 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
27391 (nearbyintl): Define using libm_alias_ldouble.
27392 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
27393 (nextafterl): Define using libm_alias_ldouble.
27394 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
27395 (remquol): Define using libm_alias_ldouble.
27396 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
27397 (rintl): Define using libm_alias_ldouble.
27398 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
27399 (truncl): Define using libm_alias_ldouble.
27400 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
27401 (fmaxl): Define using libm_alias_ldouble.
27402 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
27403 (fminl): Define using libm_alias_ldouble.
27404
27405 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
27406 to C syntax instead of availability and properties of types.
27407 * bits/floatn.h [!__ASSEMBLER]: Likewise.
27408 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
27409 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
27410 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
27411 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
27412 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
27413
27414 2017-11-17 Florian Weimer <fweimer@redhat.com>
27415
27416 support_become_root: Enable file creation in namespaces.
27417 * support/support_become_root.c (setup_mapping): New function.
27418 (support_become_root): Call it.
27419
27420 2017-11-17 Joseph Myers <joseph@codesourcery.com>
27421
27422 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
27423 macro.
27424
27425 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27426
27427 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
27428 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
27429
27430 2017-11-16 Joseph Myers <joseph@codesourcery.com>
27431
27432 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
27433
27434 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
27435 version to 4.14.
27436
27437 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
27438
27439 * INSTALL: Fix botched up regeneration.
27440
27441 * NEWS: Update sourceare link to https.
27442 * configure.ac: Likewise.
27443 * crypt/md5test-giant.c: Likewise.
27444 * dlfcn/bug-atexit1.c: Likewise.
27445 * dlfcn/bug-atexit2.c: Likewise.
27446 * localedata/README: Likewise.
27447 * malloc/tst-mallocfork.c: Likewise.
27448 * manual/install.texi: Likewise.
27449 * nptl/tst-pthread-getattr.c: Likewise.
27450 * stdio-common/tst-fgets.c: Likewise.
27451 * stdio-common/tst-fwrite.c: Likewise.
27452 * sunrpc/Makefile: Likewise.
27453 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
27454 * wcsmbs/tst-mbrtowc2.c: Likewise.
27455 * configure: Regenerate.
27456 * INSTALL: Regenerate.
27457
27458 2017-11-15 Martin Sebor <msebor@redhat.com>
27459
27460 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
27461 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
27462 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
27463
27464 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
27465
27466 [BZ #22145]
27467 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
27468 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
27469
27470 [BZ #22145]
27471 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
27472 Defer is_pty check until end of the function.
27473 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
27474
27475 [BZ #22145]
27476 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
27477 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
27478 (ttyname): Likewise.
27479 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
27480 (__ttyname_r): Likewise.
27481
27482 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
27483 int to bool.
27484
27485 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
27486
27487 * manual/terminal.texi (Is It a Terminal):
27488 Mention ENODEV for ttyname and ttyname_r.
27489
27490 2017-11-15 Joseph Myers <joseph@codesourcery.com>
27491
27492 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
27493 constant and macro.
27494
27495 * sysdeps/unix/sysv/linux/bits/mman-linux.h
27496 [__USE_MISC] (MADV_WIPEONFORK): New macro.
27497 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
27498 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
27499 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
27500 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
27501
27502 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27503
27504 * signal/sigrelse.c (sigrelse): Optimize implementation.
27505
27506 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
27507 (__sigpause): Rely on __sigsuspend to implement single thread
27508 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
27509
27510 2017-11-15 Joseph Myers <joseph@codesourcery.com>
27511
27512 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
27513 kernel version to 4.14.
27514
27515 2017-11-15 Steve Ellcey <sellcey@cavium.com>
27516
27517 [BZ #22442]
27518 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
27519 Check if ifname is too long.
27520
27521 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
27522
27523 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
27524
27525 2017-11-15 Mike FABIAN <mfabian@redhat.com>
27526
27527 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
27528 was accidentally lost.
27529
27530 2017-11-15 Mike FABIAN <mfabian@redhat.com>
27531
27532 * localedata/locales/az_IR: Add standard copyright header.
27533
27534 2017-11-15 Florian Weimer <fweimer@redhat.com>
27535
27536 [BZ #22439]
27537 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
27538 not just the top one. Output a new "subheaps" statistic.
27539
27540 2017-11-15 Florian Weimer <fweimer@redhat.com>
27541
27542 [BZ #22408]
27543 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
27544 under the per-arena lock.
27545 * malloc/Makefile (tests): Add tst-malloc_info.
27546 (tst-malloc_info): Link with libpthread.
27547 * malloc/tst-malloc_info.c: New file.
27548
27549 2017-11-15 Joseph Myers <joseph@codesourcery.com>
27550
27551 [BZ #21660]
27552 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
27553 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
27554 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
27555 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
27556 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
27557 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
27558 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
27559 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
27560 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
27561 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
27562 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
27563 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
27564 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
27565 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
27566 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
27567 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
27568 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
27569 (__floating_type): Likewise.
27570 (__real_integer_type): Likewise.
27571 (__complex_integer_type): Likewise.
27572 (__expr_is_real): Likewise.
27573 (__tgmath_real_type_sub): Likewise.
27574 (__tgmath_real_type): Likewise.
27575 (__tgmath_complex_type_sub): Likewise.
27576 (__tgmath_complex_type): Likewise.
27577 (__TGMATH_F128): Likewise.
27578 (__TGMATH_CF128): Likewise.
27579 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
27580 new macros.
27581 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
27582 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
27583 Likewise.
27584 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
27585 Likewise.
27586 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
27587 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
27588 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
27589 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
27590 Likewise.
27591 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
27592 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
27593 Likewise.
27594 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
27595 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
27596 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
27597 Likewise.
27598 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
27599 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
27600 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
27601 (cimag): Likewise.
27602 (creal): Likewise.
27603
27604 2017-11-14 Joseph Myers <joseph@codesourcery.com>
27605
27606 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
27607 for stpncpy calls for GCC 8.
27608 (test_strncat): Disable -Wstringop-truncation warning for strncat
27609 calls for GCC 8. Disable -Wstringop-overflow= warning for one
27610 strncat call for GCC 7.
27611 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
27612 calls for GCC 8.
27613 (test_memcmp): Use memcpy instead of strncpy for calls not copying
27614 trailing NUL.
27615
27616 * string/bug-strncat1.c: Include <libc-diag.h>.
27617 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
27618
27619 2017-11-13 Claude Paroz <claude@2xlibre.net>
27620
27621 [BZ #22387]
27622 * localedata/locales/aa_DJ: Improved readibility by replacing
27623 <Uxxxx> sequences in the ASCII printable range by their ASCII
27624 character equivalents.
27625 * localedata/locales/aa_ER: Likewise.
27626 * localedata/locales/aa_ER@saaho: Likewise.
27627 * localedata/locales/aa_ET: Likewise.
27628 * localedata/locales/af_ZA: Likewise.
27629 * localedata/locales/agr_PE: Likewise.
27630 * localedata/locales/ak_GH: Likewise.
27631 * localedata/locales/am_ET: Likewise.
27632 * localedata/locales/anp_IN: Likewise.
27633 * localedata/locales/ar_AE: Likewise.
27634 * localedata/locales/ar_BH: Likewise.
27635 * localedata/locales/ar_DZ: Likewise.
27636 * localedata/locales/ar_EG: Likewise.
27637 * localedata/locales/ar_IN: Likewise.
27638 * localedata/locales/ar_IQ: Likewise.
27639 * localedata/locales/ar_JO: Likewise.
27640 * localedata/locales/ar_KW: Likewise.
27641 * localedata/locales/ar_LB: Likewise.
27642 * localedata/locales/ar_LY: Likewise.
27643 * localedata/locales/ar_MA: Likewise.
27644 * localedata/locales/ar_OM: Likewise.
27645 * localedata/locales/ar_QA: Likewise.
27646 * localedata/locales/ar_SA: Likewise.
27647 * localedata/locales/ar_SD: Likewise.
27648 * localedata/locales/ar_SS: Likewise.
27649 * localedata/locales/ar_SY: Likewise.
27650 * localedata/locales/ar_TN: Likewise.
27651 * localedata/locales/ar_YE: Likewise.
27652 * localedata/locales/as_IN: Likewise.
27653 * localedata/locales/ast_ES: Likewise.
27654 * localedata/locales/ayc_PE: Likewise.
27655 * localedata/locales/az_AZ: Likewise.
27656 * localedata/locales/az_IR: Likewise.
27657 * localedata/locales/be_BY: Likewise.
27658 * localedata/locales/be_BY@latin: Likewise.
27659 * localedata/locales/bem_ZM: Likewise.
27660 * localedata/locales/ber_DZ: Likewise.
27661 * localedata/locales/ber_MA: Likewise.
27662 * localedata/locales/bg_BG: Likewise.
27663 * localedata/locales/bhb_IN: Likewise.
27664 * localedata/locales/bho_IN: Likewise.
27665 * localedata/locales/bi_VU: Likewise.
27666 * localedata/locales/bn_BD: Likewise.
27667 * localedata/locales/bn_IN: Likewise.
27668 * localedata/locales/bo_CN: Likewise.
27669 * localedata/locales/bo_IN: Likewise.
27670 * localedata/locales/br_FR: Likewise.
27671 * localedata/locales/brx_IN: Likewise.
27672 * localedata/locales/bs_BA: Likewise.
27673 * localedata/locales/byn_ER: Likewise.
27674 * localedata/locales/ca_AD: Likewise.
27675 * localedata/locales/ca_ES: Likewise.
27676 * localedata/locales/ca_FR: Likewise.
27677 * localedata/locales/ca_IT: Likewise.
27678 * localedata/locales/ce_RU: Likewise.
27679 * localedata/locales/chr_US: Likewise.
27680 * localedata/locales/cmn_TW: Likewise.
27681 * localedata/locales/crh_UA: Likewise.
27682 * localedata/locales/cs_CZ: Likewise.
27683 * localedata/locales/csb_PL: Likewise.
27684 * localedata/locales/cv_RU: Likewise.
27685 * localedata/locales/cy_GB: Likewise.
27686 * localedata/locales/da_DK: Likewise.
27687 * localedata/locales/de_AT: Likewise.
27688 * localedata/locales/de_BE: Likewise.
27689 * localedata/locales/de_CH: Likewise.
27690 * localedata/locales/de_DE: Likewise.
27691 * localedata/locales/de_IT: Likewise.
27692 * localedata/locales/de_LI: Likewise.
27693 * localedata/locales/de_LU: Likewise.
27694 * localedata/locales/doi_IN: Likewise.
27695 * localedata/locales/dv_MV: Likewise.
27696 * localedata/locales/dz_BT: Likewise.
27697 * localedata/locales/el_CY: Likewise.
27698 * localedata/locales/el_GR: Likewise.
27699 * localedata/locales/en_AG: Likewise.
27700 * localedata/locales/en_AU: Likewise.
27701 * localedata/locales/en_BW: Likewise.
27702 * localedata/locales/en_CA: Likewise.
27703 * localedata/locales/en_DK: Likewise.
27704 * localedata/locales/en_GB: Likewise.
27705 * localedata/locales/en_HK: Likewise.
27706 * localedata/locales/en_IE: Likewise.
27707 * localedata/locales/en_IL: Likewise.
27708 * localedata/locales/en_IN: Likewise.
27709 * localedata/locales/en_NG: Likewise.
27710 * localedata/locales/en_NZ: Likewise.
27711 * localedata/locales/en_PH: Likewise.
27712 * localedata/locales/en_SG: Likewise.
27713 * localedata/locales/en_US: Likewise.
27714 * localedata/locales/en_ZA: Likewise.
27715 * localedata/locales/en_ZM: Likewise.
27716 * localedata/locales/en_ZW: Likewise.
27717 * localedata/locales/eo: Likewise.
27718 * localedata/locales/es_AR: Likewise.
27719 * localedata/locales/es_BO: Likewise.
27720 * localedata/locales/es_CL: Likewise.
27721 * localedata/locales/es_CO: Likewise.
27722 * localedata/locales/es_CR: Likewise.
27723 * localedata/locales/es_CU: Likewise.
27724 * localedata/locales/es_DO: Likewise.
27725 * localedata/locales/es_EC: Likewise.
27726 * localedata/locales/es_ES: Likewise.
27727 * localedata/locales/es_GT: Likewise.
27728 * localedata/locales/es_HN: Likewise.
27729 * localedata/locales/es_MX: Likewise.
27730 * localedata/locales/es_NI: Likewise.
27731 * localedata/locales/es_PA: Likewise.
27732 * localedata/locales/es_PE: Likewise.
27733 * localedata/locales/es_PR: Likewise.
27734 * localedata/locales/es_PY: Likewise.
27735 * localedata/locales/es_SV: Likewise.
27736 * localedata/locales/es_US: Likewise.
27737 * localedata/locales/es_UY: Likewise.
27738 * localedata/locales/es_VE: Likewise.
27739 * localedata/locales/et_EE: Likewise.
27740 * localedata/locales/eu_ES: Likewise.
27741 * localedata/locales/eu_ES@euro: Likewise.
27742 * localedata/locales/fa_IR: Likewise.
27743 * localedata/locales/ff_SN: Likewise.
27744 * localedata/locales/fi_FI: Likewise.
27745 * localedata/locales/fil_PH: Likewise.
27746 * localedata/locales/fo_FO: Likewise.
27747 * localedata/locales/fr_BE: Likewise.
27748 * localedata/locales/fr_CA: Likewise.
27749 * localedata/locales/fr_CH: Likewise.
27750 * localedata/locales/fr_FR: Likewise.
27751 * localedata/locales/fr_LU: Likewise.
27752 * localedata/locales/fur_IT: Likewise.
27753 * localedata/locales/fy_DE: Likewise.
27754 * localedata/locales/fy_NL: Likewise.
27755 * localedata/locales/ga_IE: Likewise.
27756 * localedata/locales/gd_GB: Likewise.
27757 * localedata/locales/gez_ER: Likewise.
27758 * localedata/locales/gez_ET: Likewise.
27759 * localedata/locales/gl_ES: Likewise.
27760 * localedata/locales/gu_IN: Likewise.
27761 * localedata/locales/gv_GB: Likewise.
27762 * localedata/locales/ha_NG: Likewise.
27763 * localedata/locales/hak_TW: Likewise.
27764 * localedata/locales/he_IL: Likewise.
27765 * localedata/locales/hi_IN: Likewise.
27766 * localedata/locales/hif_FJ: Likewise.
27767 * localedata/locales/hne_IN: Likewise.
27768 * localedata/locales/hr_HR: Likewise.
27769 * localedata/locales/hsb_DE: Likewise.
27770 * localedata/locales/ht_HT: Likewise.
27771 * localedata/locales/hu_HU: Likewise.
27772 * localedata/locales/hy_AM: Likewise.
27773 * localedata/locales/i18n: Likewise.
27774 * localedata/locales/ia_FR: Likewise.
27775 * localedata/locales/id_ID: Likewise.
27776 * localedata/locales/ig_NG: Likewise.
27777 * localedata/locales/ik_CA: Likewise.
27778 * localedata/locales/is_IS: Likewise.
27779 * localedata/locales/it_CH: Likewise.
27780 * localedata/locales/it_IT: Likewise.
27781 * localedata/locales/iu_CA: Likewise.
27782 * localedata/locales/ja_JP: Likewise.
27783 * localedata/locales/ka_GE: Likewise.
27784 * localedata/locales/kk_KZ: Likewise.
27785 * localedata/locales/kl_GL: Likewise.
27786 * localedata/locales/kn_IN: Likewise.
27787 * localedata/locales/ko_KR: Likewise.
27788 * localedata/locales/kok_IN: Likewise.
27789 * localedata/locales/ks_IN: Likewise.
27790 * localedata/locales/ks_IN@devanagari: Likewise.
27791 * localedata/locales/ku_TR: Likewise.
27792 * localedata/locales/kw_GB: Likewise.
27793 * localedata/locales/ky_KG: Likewise.
27794 * localedata/locales/lb_LU: Likewise.
27795 * localedata/locales/lg_UG: Likewise.
27796 * localedata/locales/li_BE: Likewise.
27797 * localedata/locales/li_NL: Likewise.
27798 * localedata/locales/lij_IT: Likewise.
27799 * localedata/locales/ln_CD: Likewise.
27800 * localedata/locales/lo_LA: Likewise.
27801 * localedata/locales/lt_LT: Likewise.
27802 * localedata/locales/lv_LV: Likewise.
27803 * localedata/locales/lzh_TW: Likewise.
27804 * localedata/locales/mag_IN: Likewise.
27805 * localedata/locales/mai_IN: Likewise.
27806 * localedata/locales/mg_MG: Likewise.
27807 * localedata/locales/mhr_RU: Likewise.
27808 * localedata/locales/mi_NZ: Likewise.
27809 * localedata/locales/mk_MK: Likewise.
27810 * localedata/locales/ml_IN: Likewise.
27811 * localedata/locales/mn_MN: Likewise.
27812 * localedata/locales/mni_IN: Likewise.
27813 * localedata/locales/mr_IN: Likewise.
27814 * localedata/locales/ms_MY: Likewise.
27815 * localedata/locales/mt_MT: Likewise.
27816 * localedata/locales/my_MM: Likewise.
27817 * localedata/locales/nan_TW: Likewise.
27818 * localedata/locales/nan_TW@latin: Likewise.
27819 * localedata/locales/nb_NO: Likewise.
27820 * localedata/locales/nds_DE: Likewise.
27821 * localedata/locales/nds_NL: Likewise.
27822 * localedata/locales/ne_NP: Likewise.
27823 * localedata/locales/nhn_MX: Likewise.
27824 * localedata/locales/niu_NU: Likewise.
27825 * localedata/locales/niu_NZ: Likewise.
27826 * localedata/locales/nl_AW: Likewise.
27827 * localedata/locales/nl_BE: Likewise.
27828 * localedata/locales/nl_NL: Likewise.
27829 * localedata/locales/nn_NO: Likewise.
27830 * localedata/locales/nr_ZA: Likewise.
27831 * localedata/locales/nso_ZA: Likewise.
27832 * localedata/locales/oc_FR: Likewise.
27833 * localedata/locales/om_ET: Likewise.
27834 * localedata/locales/om_KE: Likewise.
27835 * localedata/locales/or_IN: Likewise.
27836 * localedata/locales/os_RU: Likewise.
27837 * localedata/locales/pa_IN: Likewise.
27838 * localedata/locales/pa_PK: Likewise.
27839 * localedata/locales/pap_AW: Likewise.
27840 * localedata/locales/pap_CW: Likewise.
27841 * localedata/locales/pl_PL: Likewise.
27842 * localedata/locales/ps_AF: Likewise.
27843 * localedata/locales/pt_BR: Likewise.
27844 * localedata/locales/pt_PT: Likewise.
27845 * localedata/locales/quz_PE: Likewise.
27846 * localedata/locales/raj_IN: Likewise.
27847 * localedata/locales/ro_RO: Likewise.
27848 * localedata/locales/ru_RU: Likewise.
27849 * localedata/locales/ru_UA: Likewise.
27850 * localedata/locales/rw_RW: Likewise.
27851 * localedata/locales/sa_IN: Likewise.
27852 * localedata/locales/sat_IN: Likewise.
27853 * localedata/locales/sc_IT: Likewise.
27854 * localedata/locales/sd_IN: Likewise.
27855 * localedata/locales/sd_IN@devanagari: Likewise.
27856 * localedata/locales/se_NO: Likewise.
27857 * localedata/locales/sgs_LT: Likewise.
27858 * localedata/locales/shs_CA: Likewise.
27859 * localedata/locales/si_LK: Likewise.
27860 * localedata/locales/sid_ET: Likewise.
27861 * localedata/locales/sk_SK: Likewise.
27862 * localedata/locales/sl_SI: Likewise.
27863 * localedata/locales/sm_WS: Likewise.
27864 * localedata/locales/so_DJ: Likewise.
27865 * localedata/locales/so_ET: Likewise.
27866 * localedata/locales/so_KE: Likewise.
27867 * localedata/locales/so_SO: Likewise.
27868 * localedata/locales/sq_AL: Likewise.
27869 * localedata/locales/sq_MK: Likewise.
27870 * localedata/locales/sr_ME: Likewise.
27871 * localedata/locales/sr_RS: Likewise.
27872 * localedata/locales/sr_RS@latin: Likewise.
27873 * localedata/locales/ss_ZA: Likewise.
27874 * localedata/locales/st_ZA: Likewise.
27875 * localedata/locales/sv_FI: Likewise.
27876 * localedata/locales/sv_SE: Likewise.
27877 * localedata/locales/sw_KE: Likewise.
27878 * localedata/locales/sw_TZ: Likewise.
27879 * localedata/locales/szl_PL: Likewise.
27880 * localedata/locales/ta_IN: Likewise.
27881 * localedata/locales/ta_LK: Likewise.
27882 * localedata/locales/tcy_IN: Likewise.
27883 * localedata/locales/te_IN: Likewise.
27884 * localedata/locales/tg_TJ: Likewise.
27885 * localedata/locales/th_TH: Likewise.
27886 * localedata/locales/the_NP: Likewise.
27887 * localedata/locales/ti_ER: Likewise.
27888 * localedata/locales/ti_ET: Likewise.
27889 * localedata/locales/tig_ER: Likewise.
27890 * localedata/locales/tk_TM: Likewise.
27891 * localedata/locales/tl_PH: Likewise.
27892 * localedata/locales/tn_ZA: Likewise.
27893 * localedata/locales/to_TO: Likewise.
27894 * localedata/locales/tpi_PG: Likewise.
27895 * localedata/locales/tr_CY: Likewise.
27896 * localedata/locales/tr_TR: Likewise.
27897 * localedata/locales/ts_ZA: Likewise.
27898 * localedata/locales/tt_RU: Likewise.
27899 * localedata/locales/tt_RU@iqtelif: Likewise.
27900 * localedata/locales/ug_CN: Likewise.
27901 * localedata/locales/uk_UA: Likewise.
27902 * localedata/locales/unm_US: Likewise.
27903 * localedata/locales/ur_IN: Likewise.
27904 * localedata/locales/ur_PK: Likewise.
27905 * localedata/locales/uz_UZ: Likewise.
27906 * localedata/locales/uz_UZ@cyrillic: Likewise.
27907 * localedata/locales/ve_ZA: Likewise.
27908 * localedata/locales/vi_VN: Likewise.
27909 * localedata/locales/wa_BE: Likewise.
27910 * localedata/locales/wae_CH: Likewise.
27911 * localedata/locales/wal_ET: Likewise.
27912 * localedata/locales/wo_SN: Likewise.
27913 * localedata/locales/xh_ZA: Likewise.
27914 * localedata/locales/yi_US: Likewise.
27915 * localedata/locales/yo_NG: Likewise.
27916 * localedata/locales/yue_HK: Likewise.
27917 * localedata/locales/yuw_PG: Likewise.
27918 * localedata/locales/zh_CN: Likewise.
27919 * localedata/locales/zh_HK: Likewise.
27920 * localedata/locales/zh_SG: Likewise.
27921 * localedata/locales/zh_TW: Likewise.
27922 * localedata/locales/zu_ZA: Likewise.
27923
27924 2017-11-13 Florian Weimer <fweimer@redhat.com>
27925
27926 * support/next_to_fault.h, support/next_to_fault.c: New files.
27927 * support/Makefile (libsupport-routines): Add next_to_fault.
27928 * resolv/tst-inet_pton.c (struct next_to_fault)
27929 (next_to_fault_allocate, next_to_fault_free): Remove.
27930 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
27931
27932 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
27933
27934 * elf/dl-support.c: Include <dl-procruntime.c>.
27935 * include/link.h: Include <link_map.h>.
27936 * sysdeps/generic/dl-procruntime.c: New file.
27937 * sysdeps/generic/link_map.h: Likewise.
27938 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
27939 the writable ld.so namespace.
27940
27941 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
27942
27943 timezone: pacify GCC -Wstringop-truncation
27944 Problem reported by Martin Sebor in:
27945 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
27946 * timezone/zic.c (writezone): Use memcpy, not strncpy.
27947
27948 2017-11-12 Florian Weimer <fweimer@redhat.com>
27949
27950 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
27951 tst-xreadlink.
27952 (tests): Add tst-xreadlink.
27953 * support/support.h (xstrndup): Declare.
27954 * support/xunistd.h (xunlink, xreadlink): Declare.
27955 * support/temp_file.h (support_create_temp_directory): Declare.
27956 * support/temp_file.c (support_create_temp_directory): New function.
27957 * support/support_chroot.c (support_chroot_create): Use it.
27958 * support/xreadlink.c: New file.
27959 * support/xstrndup.c: Likewise.
27960 * support/xunlink.c: Likewise.
27961 * support/tst-xreadlink.c: Likewise.
27962
27963 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
27964
27965 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
27966
27967 2017-11-11 Florian Weimer <fweimer@redhat.com>
27968
27969 [BZ #22409]
27970 [BZ #22412]
27971 * resolv/res_comp.c (printable_string, binary_hnok)
27972 (binary_leading_dash): New functions.
27973 (res_hnok): Reimplement using these functions and ns_name_pton.
27974 (res_ownok): Likewise.
27975 (res_mailok): Reimplement using printable_string, ns_name_pton and
27976 binary_hnok.
27977 (res_dnok): Reimplement using printable_string and ns_name_pton.
27978 * resolv/tst-res_hnok.c (tests): Add additional tests.
27979 (LETTERDIGITS, PRINTABLE): Define.
27980 (do_test): Adjust one_char results.
27981
27982 2017-11-11 Florian Weimer <fweimer@redhat.com>
27983
27984 [BZ #22413]
27985 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
27986 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
27987
27988 2017-11-11 Florian Weimer <fweimer@redhat.com>
27989
27990 * resolv/tst-ns_name_pton.c: New file.
27991 * resolv/Makefile (tests): Add tst-ns_name_pton.
27992 (tst-ns_name_pton): Link against libresolv.
27993
27994 2017-11-11 Florian Weimer <fweimer@redhat.com>
27995
27996 * resolv/tst-res_hnok.c: New file.
27997 * resolv/Makefile (tests): Add tst-res_hnok.
27998 (tst-res_hnok): Link against libresolv.
27999
28000 2017-11-11 Florian Weimer <fweimer@redhat.com>
28001
28002 * resolv/tst-resolv-network.c: Use test framework instead explicit
28003 main function.
28004
28005 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
28006
28007 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
28008 <jmp_buf-macros.h>.
28009 [!_ISOMAC] (STR_HELPER): New.
28010 [!_ISOMAC] (STR): Likewise.
28011 [!_ISOMAC] (TEST_SIZE): Likewise.
28012 [!_ISOMAC] (TEST_ALIGN): Likewise.
28013 [!_ISOMAC] (TEST_OFFSET): Likewise.
28014 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
28015 field offsets of jmp_buf as well as sigjmp_buf.
28016 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
28017 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
28018 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
28019 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
28020 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
28021 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
28022 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
28023 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
28024 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
28025 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
28026 Likewise.
28027 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
28028 Likewise.
28029 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
28030 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
28031 Likewise.
28032 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
28033 Likewise.
28034 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
28035 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
28036 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
28037 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
28038 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
28039 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
28040 Likewise.
28041 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
28042 Likewise.
28043 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
28044 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
28045 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
28046
28047 2017-11-07 Joseph Myers <joseph@codesourcery.com>
28048
28049 * include/float.h
28050 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28051 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
28052 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28053 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
28054 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28055 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
28056 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28057 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
28058 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28059 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
28060 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28061 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
28062 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28063 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
28064 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28065 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
28066 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28067 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
28068 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28069 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
28070 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28071 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
28072 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28073 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
28074 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28075 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
28076 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28077 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
28078 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28079 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
28080 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28081 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
28082 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28083 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
28084 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28085 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
28086 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28087 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
28088 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28089 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
28090 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28091 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
28092 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28093 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
28094 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28095 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
28096 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28097 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
28098 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28099 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
28100 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28101 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
28102 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28103 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
28104 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28105 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
28106 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28107 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
28108 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28109 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
28110 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28111 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
28112 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28113 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
28114 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28115 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
28116 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28117 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
28118 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28119 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
28120 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28121 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
28122 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28123 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
28124 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28125 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
28126 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28127 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
28128 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28129 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
28130 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28131 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
28132 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28133 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
28134 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28135 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
28136 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28137 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
28138
28139 * stdlib/tst-strtod.h (F16): New macro.
28140 (F32): Likewise.
28141 (F64): Likewise.
28142 (F32X): Likewise.
28143 (F64X): Likewise.
28144 (F128X): Likewise.
28145 (IF_FLOAT16): Likewise.
28146 (IF_FLOAT32): Likewise.
28147 (IF_FLOAT64): Likewise.
28148 (IF_FLOAT32X): Likewise.
28149 (IF_FLOAT64X): Likewise.
28150 (IF_FLOAT128X): Likewise.
28151 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
28152 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
28153 (STRTOD_TEST_FOREACH): Likewise.
28154 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
28155 (CHOOSE_f64): Likewise.
28156 (CHOOSE_f32x): Likewise.
28157 (CHOOSE_f64x): Likewise.
28158
28159 2017-11-07 Andreas Schwab <schwab@suse.de>
28160
28161 * nptl/Makefile (tests-internal): Remove tst-typesizes.
28162
28163 2017-11-07 Mike FABIAN <mfabian@redhat.com>
28164
28165 [BZ #22403]
28166 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
28167 to be escaped.
28168 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
28169 to be escaped.
28170
28171 2017-11-07 Claude Paroz <claude@2xlibre.net>
28172
28173 [BZ #22403]
28174 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
28175 to be escaped.
28176 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
28177 to be escaped.
28178 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
28179 to be escaped.
28180
28181 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28182
28183 [BZ #22298]
28184 * nptl/allocatestack.c (allocate_stack): Check if
28185 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
28186 __PTHREAD_MUTEX_HAVE_PREV is defined.
28187 * nptl/descr.h (pthread): Likewise.
28188 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
28189 Likewise.
28190 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
28191 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
28192 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
28193 * sysdeps/nptl/bits/thread-shared-types.h
28194 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
28195 defines.
28196 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
28197 of __WORDSIZE for internal layout.
28198 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
28199 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
28200 instead of __WORDSIZE whether to use an union for __spins and __list
28201 fields.
28202 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
28203 case.
28204 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
28205 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
28206 defines.
28207 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
28208 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28209 Likewise.
28210 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
28211 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28212 Likewise.
28213 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
28214 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28215 Likewise.
28216 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
28217 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28218 Likewise.
28219 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
28220 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28221 Likewise.
28222 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
28223 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28224 Likewise.
28225 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
28226 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28227 Likewise.
28228 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
28229 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28230 Likewise.
28231 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
28232 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28233 Likewise.
28234 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
28235 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28236 Likewise.
28237 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
28238 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28239 Likewise.
28240 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
28241 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28242 Likewise.
28243 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
28244 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28245 Likewise.
28246 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
28247 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28248 Likewise.
28249
28250 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
28251 New macros.
28252 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
28253 checks for expected input type size.
28254 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
28255 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
28256 Likewise.
28257 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
28258 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
28259 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
28260 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
28261 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
28262 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
28263 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
28264 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
28265 superflous runtime assert check.
28266 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
28267 Likewise.
28268 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
28269 Likewise.
28270 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
28271 Likewise.
28272 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
28273 Likewise.
28274 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
28275 Likewise.
28276 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
28277 Likewise.
28278 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
28279 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
28280 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
28281 Likewise.
28282 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
28283 Likewise.
28284 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
28285 Likewise.
28286 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
28287 Likewise.
28288 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
28289 Likewise.
28290 * nptl/pthread_attr_setinheritsched.c
28291 (__pthread_attr_setinheritsched): Likewise.
28292 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
28293 Likewise.
28294 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
28295 Likewise.
28296 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
28297 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
28298 __old_pthread_attr_setstack): Likewise.
28299 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
28300 Likewise.
28301 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
28302 Likewise.
28303 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
28304 Likewise.
28305 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
28306 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
28307 Likewise.
28308 * nptl/tst-typesizes.c: Remove file.
28309
28310 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
28311 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
28312 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
28313 checks for internal pthread_mutex_t offsets.
28314 * sysdeps/aarch64/nptl/pthread-offsets.h
28315 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
28316 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
28317 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
28318 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
28319 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
28320 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
28321 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
28322 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
28323 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
28324 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
28325 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
28326 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
28327 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
28328 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
28329 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
28330 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
28331 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
28332 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
28333
28334 2017-11-07 Florian Weimer <fweimer@redhat.com>
28335
28336 * bits/mman-linux.h: Move ...
28337 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
28338 comment.
28339 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
28340 outdated comment.
28341
28342 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
28343
28344 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
28345 Redefine STRNLEN as __strnlen_power8.
28346
28347 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28348
28349 * signal/sighold.c (sighold): Optimize implementation.
28350
28351 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
28352 __NR_rt_sigqueueinfo.
28353
28354 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
28355 __sigtimedwait.
28356 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
28357 assume __NR_rt_sigtimedwait.
28358 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
28359 and add LIBC_CANCEL_HANDLED for cancellation marking.
28360 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
28361
28362 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
28363 (sysdeps_routines): Add memchr_noneon.
28364 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
28365 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
28366 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
28367 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
28368 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
28369 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
28370 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
28371
28372 * sysdeps/arm/arm-ifunc.h: New file.
28373 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
28374 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
28375 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
28376 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
28377 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
28378 (__memcpy_neon): Avoid create hidden alias.
28379 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
28380 (__memcpy_vfp): Likewise.
28381 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
28382 (sysdep_routines): Add memcpy_arm.
28383 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
28384
28385 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
28386
28387 [BZ #22362]
28388 * Makerules (make-link-multidir): New.
28389 * config.make.in (multidir): New.
28390 * configure.ac (libc_cv_multidir): New. AC_SUBST.
28391 * configure: Regenerated.
28392 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
28393 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
28394 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
28395 New target.
28396
28397 2017-11-06 Joseph Myers <joseph@codesourcery.com>
28398
28399 [BZ #22402]
28400 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
28401 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
28402
28403 2017-11-04 Mike FABIAN <mfabian@redhat.com>
28404
28405 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
28406 to be escaped.
28407
28408 2017-11-04 Florian Weimer <fweimer@redhat.com>
28409
28410 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
28411
28412 2017-11-03 Joseph Myers <joseph@codesourcery.com>
28413
28414 * math/math.h [__HAVE_DISTINCT_FLOAT16
28415 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
28416 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
28417 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
28418 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
28419 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
28420 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
28421 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
28422 (__MATH_TG_F32): New macro.
28423 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
28424 (__MATH_TG_F64X): Likewise.
28425 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
28426 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
28427
28428 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
28429
28430 * po/de.po: Update translations.
28431 * po/ru.po: Likewise.
28432
28433 2017-11-03 Florian Weimer <fweimer@redhat.com>
28434
28435 * manual/filesys.texi (Hard Links): Document linkat.
28436
28437 2017-11-03 Joseph Myers <joseph@codesourcery.com>
28438
28439 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
28440 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
28441 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
28442 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
28443 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
28444 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
28445 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
28446 the same as _Float128.
28447 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
28448 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
28449 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
28450
28451 * stdlib/stdlib.h
28452 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
28453 Declare.
28454 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
28455 Likewise.
28456 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
28457 Likewise.
28458 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28459 (strtof32x): Likewise.
28460 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28461 (strtof64x): Likewise.
28462 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28463 (strtof128x): Likewise.
28464 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28465 (strfromf16): Likewise.
28466 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28467 (strfromf32): Likewise.
28468 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28469 (strfromf64): Likewise.
28470 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28471 (strfromf32x): Likewise.
28472 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28473 (strfromf64x): Likewise.
28474 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28475 (strfromf128x): Likewise.
28476 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
28477 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
28478 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
28479 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
28480 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
28481 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
28482
28483 2017-11-03 Richard Henderson <rth@twiddle.net>
28484
28485 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
28486
28487 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28488
28489 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
28490
28491 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28492
28493 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
28494 DT_TLSDESC_GOT initialization.
28495 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
28496 (_dl_tlsdesc_resolve_hold): Likewise.
28497 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
28498 (_dl_tlsdesc_resolve_hold): Likewise.
28499 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
28500 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
28501
28502 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28503
28504 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
28505
28506 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28507
28508 [BZ #18572]
28509 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
28510 non-lazily for R_ARM_TLS_DESC.
28511
28512 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28513
28514 [BZ #17078]
28515 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
28516 R_ARM_TLS_DESC case.
28517 (elf_machine_lazy_rel): Remove the prelink check.
28518
28519 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28520
28521 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
28522 DT_TLSDESC_GOT initialization.
28523 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
28524 (_dl_tlsdesc_resolve_rela): Likewise.
28525 (_dl_tlsdesc_resolve_hold): Likewise.
28526 (_dl_tlsdesc_undefweak): Remove ldar.
28527 (_dl_tlsdesc_dynamic): Likewise.
28528 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
28529 (_dl_tlsdesc_resolve_rela): Likewise.
28530 (_dl_tlsdesc_resolve_hold): Likewise.
28531 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
28532 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
28533 (_dl_tlsdesc_resolve_rela): Likewise.
28534 (_dl_tlsdesc_resolve_hold): Likewise.
28535
28536 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28537
28538 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
28539 binding and initialization non-lazily for R_AARCH64_TLSDESC.
28540
28541 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28542
28543 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
28544 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
28545
28546 2017-11-02 Joseph Myers <joseph@codesourcery.com>
28547
28548 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
28549 Declare.
28550 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
28551 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
28552 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
28553 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
28554 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
28555 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
28556 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
28557 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
28558 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
28559 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
28560 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
28561
28562 2017-11-02 Mike FABIAN <mfabian@redhat.com>
28563
28564 [BZ #22382]
28565 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
28566 * localedata/locales/tpi_PG: Add standard header.
28567
28568 2017-11-02 Florian Weimer <fweimer@redhat.com>
28569
28570 test-errno-linux: quotactl can fail with EPERM in containers.
28571 * sysdeps/unix/sysv/linux/test-errno-linux.c
28572 (LIST, LIST_FORWARD): New macros.
28573 (check_error_in_list): New function.
28574 (test_wrp_rv): Accept list of permitted error codes.
28575 (test_wrp_rv2): Remove.
28576 (test_wrp): Call test_wrp_rv with list of error codes.
28577 (test_wrp2): Accept list of error codes.
28578 (do_test): Adjust. Allow EPERM for quotactl.
28579
28580 2017-11-02 Florian Weimer <fweimer@redhat.com>
28581
28582 * stdio-common/bug16.c (do_test): Use array_length.
28583 * stdio-common/errlist.c (_sys_nerr): Likewise.
28584 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
28585 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
28586 * stdio-common/psiginfo.c (psiginfo): Use array_length.
28587 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
28588 (do_test): Use array_length.
28589 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
28590 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
28591 * stdio-common/tst-printf-round.c (do_test): Likewise.
28592 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
28593 (CHECK): Use array_length.
28594 * stdio-common/tstdiomisc.c (t3, F): Likewise.
28595 * stdio-common/tstscanf.c (main): Likewise.
28596 * stdio-common/vfprintf.c (process_string_arg): Likewise.
28597
28598 2017-11-02 Florian Weimer <fweimer@redhat.com>
28599
28600 Add array_length and array_end macros.
28601 * include/array_length.h: New file.
28602
28603 2017-11-02 Florian Weimer <fweimer@redhat.com>
28604
28605 [BZ #22332]
28606 * posix/tst-glob-tilde.c (do_noescape): New variable.
28607 (one_test): Process it.
28608 (do_test): Set do_noescape. Add unescaping test case.
28609
28610 2017-11-01 Joseph Myers <joseph@codesourcery.com>
28611
28612 * math/complex.h
28613 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
28614 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
28615 with appropriate macros defined and undefined.
28616 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
28617 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
28618 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
28619 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
28620 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
28621 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
28622 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
28623 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
28624 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
28625 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
28626
28627 * math/complex.h
28628 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
28629 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
28630 that for long double. Do not condition define and undefine of
28631 _Mdouble_complex_ on [__CFLOAT128].
28632
28633 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
28634
28635 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
28636 of <sysdeps/generic/sysdep.h>.
28637 (ALIGNARG): Removed.
28638 (ASM_SIZE_DIRECTIVE): Likewise.
28639 (ENTRY): Likewise.
28640 (END): Likewise.
28641 (ENTRY_CHK): Likewise.
28642 (END_CHK): Likewise.
28643 (syscall_error): Likewise.
28644 (mcount): Likewise.
28645 (PSEUDO_END): Likewise.
28646 (L): Likewise.
28647 (atom_text_section): Likewise.
28648 * sysdeps/x86/sysdep.h: New file.
28649 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
28650 of <sysdeps/generic/sysdep.h>.
28651 (ALIGNARG): Removed.
28652 (ASM_SIZE_DIRECTIVE): Likewise.
28653 (ENTRY): Likewise.
28654 (END): Likewise.
28655 (ENTRY_CHK): Likewise.
28656 (END_CHK): Likewise.
28657 (syscall_error): Likewise.
28658 (mcount): Likewise.
28659 (PSEUDO_END): Likewise.
28660 (L): Likewise.
28661 (atom_text_section): Likewise.
28662
28663 2017-10-31 Rafał Lużyński <digitalfreak@lingonborough.com>
28664
28665 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
28666 category of LC_CTYPE set to "i18n:2012".
28667 * localedata/locales/i18n_ctype: Regenerate.
28668
28669 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
28670
28671 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
28672 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
28673 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
28674 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
28675
28676 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
28677 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
28678 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
28679 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
28680
28681 2017-10-31 Joseph Myers <joseph@codesourcery.com>
28682
28683 * math/complex.h
28684 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
28685 New macro.
28686 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
28687 Likewise.
28688 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
28689 Likewise.
28690 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28691 (CMPLXF32X): Likewise.
28692 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28693 (CMPLXF64X): Likewise.
28694 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28695 (CMPLXF128X): Likewise.
28696
28697 * math/math.h
28698 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
28699 (__MATH_EVAL_FMT2): Define to add 0.0f.
28700
28701 2017-10-31 Alan Modra <amodra@gmail.com>
28702
28703 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
28704 include sysdep.h.
28705 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
28706 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
28707 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
28708 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
28709 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
28710 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
28711 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
28712 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
28713 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
28714 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
28715 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
28716 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
28717 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
28718 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
28719 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
28720 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
28721 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
28722 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
28723 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
28724 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
28725 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
28726 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
28727 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
28728 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
28729 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
28730 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
28731 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
28732 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
28733 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
28734 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
28735 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
28736 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
28737 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
28738 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
28739 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
28740 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
28741 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
28742 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
28743 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
28744 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
28745 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
28746 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
28747 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
28748 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
28749 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
28750 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
28751 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
28752 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
28753 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
28754 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
28755 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
28756 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
28757 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
28758 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
28759 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
28760 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
28761 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
28762 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
28763 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
28764 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
28765 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
28766 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
28767 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
28768 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
28769 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
28770 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
28771 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
28772 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
28773 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
28774
28775 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
28776 include sysdep.h and math_ldbl_opt.h.
28777
28778 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
28779 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
28780 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
28781 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
28782 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
28783 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
28784 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
28785 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
28786 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
28787 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
28788 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
28789 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
28790 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
28791 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
28792 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
28793 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
28794 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
28795 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
28796 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
28797 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
28798 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
28799 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
28800 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
28801 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
28802 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
28803 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
28804
28805 2017-10-31 Alan Modra <amodra@gmail.com>
28806
28807 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
28808 string/strncase_l.c, not string/strncase.c.
28809 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
28810 (libc_hidden_def): Redefine.
28811
28812 2017-10-31 Alan Modra <amodra@gmail.com>
28813
28814 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
28815 (__STRCMP, STRCMP, __strcasecmp_l): Define.
28816 (__strcasecmp): Don't define.
28817
28818 2017-10-31 Alan Modra <amodra@gmail.com>
28819
28820 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
28821 IS_IN (libc).
28822 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
28823 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
28824 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
28825
28826 2017-10-31 Alan Modra <amodra@gmail.com>
28827
28828 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
28829 USE_AS_STPNCPY.
28830
28831 2017-10-31 Alan Modra <amodra@gmail.com>
28832
28833 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
28834 Redefine only when SHARED.
28835
28836 2017-10-30 Joseph Myers <joseph@codesourcery.com>
28837
28838 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
28839 Include <bits/math-finite.h> with appropriate macros defined and
28840 undefined.
28841 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
28842 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
28843 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
28844 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
28845 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
28846
28847 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
28848 [!_Mlong_double_] (_Mlong_double_): Likewise.
28849 [!_Mfloat16_] (_Mfloat16_): Likewise.
28850 [!_Mfloat32_] (_Mfloat32_): Likewise.
28851 [!_Mfloat64_] (_Mfloat64_): Likewise.
28852 [!_Mfloat128_] (_Mfloat128_): Likewise.
28853 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
28854 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
28855 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
28856 (_Mdouble_): Define without indirection through those macros.
28857 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
28858 [!_Mfloat128_] (_Mfloat128_): Likewise.
28859 [_Mlong_double_] (_Mlong_double_): Likewise.
28860 (_Mdouble_): Define without indirection through those macros.
28861 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
28862 not add -D_Mlong_double_=double.
28863 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
28864 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
28865
28866 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
28867
28868 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
28869
28870 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
28871
28872 * sysdeps/x86/libc-start.c: Reformat.
28873
28874 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
28875
28876 [BZ #22353]
28877 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
28878 (1): Renamed to ...
28879 (L(Src0)): This.
28880 (L(Src1)): New.
28881 (L(Src2)): Likewise.
28882 (L(1)): Renamed to ...
28883 (L(Src3)): This.
28884
28885 2017-10-30 Joseph Myers <joseph@codesourcery.com>
28886
28887 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
28888 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
28889 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
28890 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
28891 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
28892 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
28893 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
28894 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
28895 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
28896 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
28897 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
28898 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
28899 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
28900 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
28901 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
28902 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
28903 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
28904 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
28905 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
28906 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
28907 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
28908 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
28909 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
28910 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
28911 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
28912 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
28913 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
28914 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
28915 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
28916 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
28917 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
28918 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
28919 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
28920 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
28921 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
28922 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
28923 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
28924 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
28925 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
28926 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
28927 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
28928 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
28929 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
28930 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
28931 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
28932 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
28933 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
28934 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
28935 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
28936 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
28937 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
28938 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
28939 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
28940 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
28941 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
28942 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
28943 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
28944 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
28945 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
28946 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
28947 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
28948 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
28949 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
28950 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
28951 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
28952 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
28953
28954 2017-10-30 Florian Weimer <fweimer@redhat.com>
28955
28956 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
28957 always defined.
28958 * io/tst-mkdirat.c (do_test): Likewise.
28959 * io/tst-mkfifoat.c (do_test): Likewise.
28960 * io/tst-mknodat.c (do_test): Likewise.
28961 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
28962 * locale/programs/locale.c (select_dirs): Likewise.
28963 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
28964 * posix/bug-glob2.c (my_readdir): Likewise.
28965 * posix/tst-dir.c (main): Likewise.
28966 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
28967 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
28968
28969 2017-10-30 Florian Weimer <fweimer@redhat.com>
28970
28971 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
28972 just __USE_GNU.
28973
28974 2017-10-30 Florian Weimer <fweimer@redhat.com>
28975
28976 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
28977 Convert to support/test-driver.c.
28978 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
28979 New macro parameters.
28980 (PRINTF): Remove macro. Use test_verbose conditionals instead.
28981 * posix/tst-gnuglob.c: New file.
28982 * posix/tst-gnuglob64.c: Likewise.
28983 * posix/Makefile (tests): Add tst-gnuglob64.
28984
28985 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
28986
28987 [BZ #19485]
28988 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
28989 and use a better translation for March in “mon”.
28990 * localedata/locales/csb_PL: Use more ASCII to improve the
28991 readability of the source.
28992
28993 2017-10-30 Mike FABIAN <mfabian@redhat.com>
28994
28995 [BZ #13953]
28996 * localedata/locales/km_KH: Use ASCII as much
28997 as possible for better readability of the source and
28998 remove useless comments.
28999 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
29000 was commented out and apparently wrong anyway because it was
29001 using Lao characters. If Buddhist era should be used
29002 for km_KH, a native speaker should write the correct formaat
29003 for Khmer.
29004 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
29005 (According to CLDR, the first weekday for Cambodia is Sunday).
29006 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
29007 (These were using Lao characters which must be wrong. If we get
29008 the correct data from a native speaker, we could add it back, until
29009 then it is better not to have name_mr and name_mrs at all than
29010 having it wrong).
29011
29012 2017-10-27 Rafał Lużyński <digitalfreak@lingonborough.com>
29013
29014 * locale/loadlocale.c: Correct size of
29015 _nl_value_type_LC_<category> arrays.
29016
29017 2017-10-27 Joseph Myers <joseph@codesourcery.com>
29018
29019 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
29020 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
29021 with appropriate macros defined and undefined.
29022 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
29023 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
29024 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
29025 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
29026 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
29027
29028 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
29029
29030 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
29031 "-O2 -march=i586".
29032
29033 2017-10-27 Mike FABIAN <mfabian@redhat.com>
29034
29035 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
29036 with lowercase letters to make it agree with CLDR.
29037
29038 2017-10-27 Mike FABIAN <mfabian@redhat.com>
29039
29040 [BZ #15260]
29041 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
29042 first letters of yesstr and nostr in yesexpr and noexpr,
29043 not for the full words.
29044 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
29045 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
29046 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
29047 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
29048 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
29049 first letters of yesstr and nostr in yesexpr and noexpr,
29050 until now only English was matched in yesexpr and noexpr.
29051 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
29052 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
29053 fil but not for tl. As tl and fil are very similar, using fil
29054 is probably better than using English.
29055
29056 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
29057
29058 [BZ #21706]
29059 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
29060 in yesstr and nostr.
29061
29062 2017-10-26 Joseph Myers <joseph@codesourcery.com>
29063
29064 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
29065 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
29066 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
29067 Likewise.
29068 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
29069 Likewise.
29070 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
29071 Likewise.
29072 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
29073 Likewise.
29074 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29075 (SNANF128X): Likewise.
29076
29077 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
29078 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
29079 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29080 (HUGE_VAL_F32): Likewise.
29081 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29082 (HUGE_VAL_F64): Likewise.
29083 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29084 (HUGE_VAL_F32X): Likewise.
29085 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29086 (HUGE_VAL_F64X): Likewise.
29087 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29088 (HUGE_VAL_F128X): Likewise.
29089
29090 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
29091
29092 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
29093 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
29094 for the br_FR locale.
29095
29096 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
29097
29098 [BZ #21706]
29099 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
29100
29101 2017-10-25 Carlos O'Donell <carlos@redhat.com>
29102
29103 * locale/programs/record-status.h: Define globals, and function
29104 prototypes. Move function bodies...
29105 * locale/programs/record-status.c: ... to here. New file.
29106 * iconv/Makefile (iconv_prog-modules): Add record-status.
29107 * locale/Makefile (lib-modules): Likewise.
29108 * iconv/iconv_prog.c: Remove verbose.
29109 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
29110 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
29111 record a warning about ASCII compatibility.
29112 * locale/programs/ld-monetary.c (monetary_finish): If
29113 warn_int_curr_symbol is true then record a warning about the symbol
29114 not being in our ISO 4217 list.
29115 * locale/programs/locale.c: Include record-status.h. Remove verbose.
29116 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
29117 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
29118 (OPT_NO_WARN): Define.
29119 (OPT_WARN): Define.
29120 (options): Add entry for --no-warnings, and --warnings.
29121 (set_warnings): New function to enable/disable warnings.
29122 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
29123 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
29124 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
29125 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
29126 Pass flags to generate_locale.
29127 (generate_locale): Accept new flag argument and pass it to localedef
29128 invocation.
29129 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
29130 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
29131
29132 * localedata/Makefile (test-input-data): Use full file name.
29133 * localedata/da_DK.in: Rename to...
29134 * localedata/da_DK.ISO-8859-1.in: ...this.
29135 * localedata/de_DE.in: Rename to...
29136 * localedata/de_DE.ISO-8859-1.in: ...this.
29137 * localedata/en_US.in: Rename to...
29138 * localedata/en_US.ISO-8859-1.in: ...this.
29139 * localedata/fr_FR.in: Rename to...
29140 * localedata/fr_FR.UTF-8.in: ... this.
29141 * localedata/hr_HR.in: Rename to...
29142 * localedata/hr_HR.ISO-8859-2.in: ...this.
29143 * localedata/hu_HU.in: Rename to...
29144 * localedata/hu_HU.UTF-8.in: ...this.
29145 * localedata/si_LK.in: Rename to...
29146 * localedata/si_LK.UTF-8.in: ...this.
29147 * localedata/sv_SE.in: Rename to...
29148 * localedata/sv_SE.ISO-8859-1.in: ...this.
29149 * localedata/tr_TR.in: Rename to...
29150 * localedata/tr_TR.UTF-8.in: ...this.
29151 * localedata/uk_UA.in: Rename to...
29152 * localedata/uk_UA.UTF-8.in: ...this.
29153 * localedata/sort-test.sh: Test file is locale name with the
29154 suffix.
29155
29156 * localedata/unicode-gen/Makefile (check_i18n): Rename to
29157 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
29158 file.
29159 * localedata/locales/i18n_ctype: Regenerate.
29160 * localedata/locales/tr_TR: Likewise.
29161 * localedata/locales/translit_circle: Likewise.
29162 * localedata/locales/translit_cjk_compat: Likewise.
29163 * localedata/locales/translit_combining: Likewise.
29164 * localedata/locales/translit_compat: Likewise.
29165 * localedata/locales/translit_font: Likewise.
29166 * localedata/locales/translit_fraction: Likewise.
29167
29168 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
29169
29170 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
29171 lxvd2x/stxvd2x with lvx/stvx.
29172 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
29173
29174 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
29175
29176 * include/alloc_buffer.h: Replace "if if " with "if " in
29177 comments.
29178 * sysdeps/mips/memcpy.S: Likkewise.
29179 * sysdeps/mips/memset.S: Likewise.
29180 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
29181 Likewise.
29182 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
29183 Likewise.
29184 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
29185 Likewise.
29186
29187 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29188
29189 [BZ #15261]
29190 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
29191 yesexpr and noexpr.
29192 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
29193 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
29194 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
29195 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
29196 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
29197 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
29198 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
29199
29200 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29201
29202 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
29203 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
29204 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
29205 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
29206 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
29207 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
29208 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
29209 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
29210 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
29211 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
29212 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
29213 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
29214
29215 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29216
29217 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
29218 as possible for better readability of the source.
29219 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
29220 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
29221 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
29222 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
29223 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
29224 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
29225 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
29226 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
29227 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
29228 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
29229 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
29230 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
29231 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
29232 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
29233 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
29234 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
29235 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
29236 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
29237 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
29238 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
29239 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
29240 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
29241 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
29242 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
29243 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
29244 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
29245 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
29246 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
29247 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
29248 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
29249 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
29250 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
29251 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
29252 * localedata/locales/en_US (LC_MESSAGES): Likewise.
29253 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
29254 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
29255 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
29256 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
29257 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
29258 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
29259 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
29260 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
29261 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
29262 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
29263 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
29264 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
29265 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
29266 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
29267 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
29268 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
29269 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
29270 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
29271 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
29272 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
29273 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
29274 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
29275 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
29276 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
29277 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
29278 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
29279 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
29280 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
29281 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
29282 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
29283 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
29284 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
29285 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
29286 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
29287 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
29288 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
29289 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
29290 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
29291 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
29292 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
29293 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
29294 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
29295 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
29296 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
29297 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
29298 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
29299 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
29300 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
29301 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
29302 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
29303 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
29304 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
29305 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
29306 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
29307 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
29308 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
29309 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
29310 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
29311 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
29312 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
29313 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
29314 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
29315 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
29316 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
29317 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
29318 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
29319 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
29320 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
29321 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
29322 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
29323 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
29324 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
29325 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
29326 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
29327 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
29328 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
29329 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
29330 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
29331 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
29332 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
29333 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
29334 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
29335 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
29336 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
29337 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
29338 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
29339 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
29340 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
29341 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
29342 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
29343 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
29344 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
29345 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
29346 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
29347 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
29348 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
29349 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
29350 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
29351 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
29352 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
29353 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
29354 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
29355 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
29356 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
29357 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
29358 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
29359 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
29360 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
29361 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
29362 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
29363 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
29364 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
29365 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
29366 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
29367 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
29368 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
29369 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
29370 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
29371 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
29372 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
29373 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
29374 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
29375 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
29376 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
29377 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
29378 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
29379 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
29380 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
29381 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
29382 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
29383 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
29384 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
29385 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
29386 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
29387 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
29388 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
29389 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
29390 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
29391 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
29392 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
29393
29394 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29395
29396 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
29397 (Use first letters of yesstr and nostr correctly instead of using
29398 full words).
29399
29400 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29401
29402 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
29403 (Use first letters of yesstr and nostr correctly).
29404
29405 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29406
29407 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
29408 also check for the first characters of yesstr and nostr.
29409 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
29410 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
29411
29412 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29413
29414 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
29415 also check for Chinese characters.
29416
29417 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29418
29419 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
29420 match also for the contents of yesstr and nostr. As the first letter
29421 of yesstr and nostr is equal, checking only for the first letter
29422 is not enough.
29423
29424 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29425
29426 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
29427 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
29428
29429 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29430
29431 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
29432 of main contributor.
29433
29434 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29435
29436 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
29437 instead of using English.
29438
29439 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29440
29441 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
29442 by including the first letters of nostr and yesexpr in the regexp.
29443 Also make it more readable by using ASCII where possible.
29444
29445 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29446
29447 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
29448 the first letter of nostr in the regexp. It agrees with CLDR now.
29449 Also make it more readable by using ASCII where possible.
29450
29451 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29452
29453 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
29454 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
29455 these strings contain a U+17D6 (which somewhat looks like a colon)
29456 instead of a real colon to separate the full words for “yes”
29457 and “no” from the single letter responses.
29458
29459 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29460
29461 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
29462 it agree with CLDR (include the first letter of yesstr).
29463 Also make it more readable by using ASCII where possible.
29464
29465 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29466
29467 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
29468 and improve yesexpr and noexpr. The yesstr and nostr apparently
29469 came from CLDR. And CLDR has a bug there: these strings contain
29470 a U+0903 (which looks like a colon) instead of a real colon
29471 to separate the full words for “yes” and “no” from the single
29472 letter responses.
29473
29474 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29475
29476 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
29477 letters of the full yesstr and nostr in yesexpr and noexpr.
29478
29479 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29480
29481 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
29482 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
29483 * localedata/locales/an_ES: Make source more readable by using ASCII
29484 where possible.
29485
29486 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29487
29488 [BZ #20952]
29489 * localedata/locales/yuw_PG: New file.
29490 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
29491 * locale/iso-639.def: Add Yau (Uruwa).
29492
29493 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
29494
29495 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
29496
29497 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
29498
29499 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
29500 (__libc_realloc): Likewise.
29501 (_mid_memalign): Likewise.
29502 (__libc_calloc): Likewise.
29503
29504 2017-10-23 Mike FABIAN <mfabian@redhat.com>
29505
29506 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
29507 by adding the generic +1 and -0 as in all other locales.
29508 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
29509 day names and make it more readable by using ASCII where possible.
29510
29511 2017-10-24 Joseph Myers <joseph@codesourcery.com>
29512
29513 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
29514 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
29515
29516 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29517
29518 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
29519 WNOHANG in waitpid call.
29520
29521 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
29522
29523 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
29524 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
29525
29526 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
29527 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
29528 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
29529 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
29530 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
29531 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
29532 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
29533 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
29534 variables.
29535
29536 2017-10-23 Michael Collison <michael.collison@arm.com>
29537
29538 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
29539 with __builtin_sqrt.
29540 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
29541 with __builtin_sqrtf.
29542 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
29543 with __builtin_ceil.
29544 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
29545 with __builtin_ceilf.
29546 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
29547 with __builtin_floor.
29548 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
29549 with __builtin_floorf.
29550 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
29551 with __builtin_fma.
29552 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
29553 with __builtin_fmaf.
29554 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
29555 with __builtin_fmax.
29556 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
29557 with __builtin_fmaxf.
29558 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
29559 with __builtin_fmin.
29560 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
29561 with __builtin_fminf.
29562 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
29563 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
29564 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
29565 with builtin_rint and conversion to int.
29566 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
29567 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
29568 with builtin_llround.
29569 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
29570 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
29571 with builtin_rint and conversion to long int.
29572 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
29573 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
29574 with builtin_lround.
29575 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
29576 with builtin_lroundf.
29577 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
29578 statements with __builtin_nearbyint.
29579 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
29580 statements with __builtin_nearbyintf.
29581 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
29582 with __builtin_rint.
29583 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
29584 with __builtin_rintf.
29585 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
29586 with __builtin_round.
29587 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
29588 with __builtin_roundf.
29589 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
29590 with __builtin_trunc.
29591 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
29592 with __builtin_truncf.
29593 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
29594 and s_l[l]round[f].c too.
29595
29596 2017-10-23 Alan Modra <amodra@gmail.com>
29597
29598 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
29599 Adjust stack after restoring regs. Add missing LR cfi_restore.
29600
29601 2017-10-23 Alan Modra <amodra@gmail.com>
29602
29603 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
29604 Move LR save and frame setup/teardown and LR restore to
29605 immediately around memset call. Provide cfi.
29606
29607 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29608
29609 * sysdeps/i386/fpu/e_powf.S: Removed.
29610 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
29611 * sysdeps/i386/fpu/w_powf.c: Likewise.
29612 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
29613 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29614 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
29615 Add e_powf-sse2.
29616 (CFLAGS-e_powf-sse2.c): New.
29617 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
29618 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
29619
29620 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29621
29622 * sysdeps/i386/fpu/e_log2f.S: Removed.
29623 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
29624 * sysdeps/i386/fpu/w_log2f.c: Likewise.
29625 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
29626 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29627 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
29628 Add e_log2f-sse2.
29629 (CFLAGS-e_log2f-sse2.c): New.
29630 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
29631 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
29632
29633 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29634
29635 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
29636 Add e_powf-fma.
29637 (CFLAGS-e_powf-fma.c): New.
29638 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
29639 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
29640
29641 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29642
29643 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
29644 Add e_log2f-fma.
29645 (CFLAGS-e_log2f-fma.c): New.
29646 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
29647 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
29648
29649 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29650
29651 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
29652 Add e_logf-fma.
29653 (CFLAGS-e_logf-fma.c): New.
29654 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
29655 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
29656
29657 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29658
29659 * sysdeps/i386/fpu/e_logf.S: Removed.
29660 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
29661 * sysdeps/i386/fpu/w_logf.c: Likewise.
29662 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
29663 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
29664 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29665 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
29666 Add e_logf-sse2.
29667 (CFLAGS-e_logf-sse2.c): New.
29668 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
29669 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
29670
29671 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29672
29673 * sysdeps/i386/fpu/e_exp2f.S: Removed.
29674 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
29675 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
29676 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29677 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
29678 Add e_exp2f-sse2.
29679 (CFLAGS-e_exp2f-sse2.c): New.
29680 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
29681 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
29682
29683 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29684
29685 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
29686 Add e_exp2f-fma.
29687 (CFLAGS-e_exp2f-fma.c): New.
29688 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
29689 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
29690
29691 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29692
29693 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
29694 * sysdeps/i386/fpu/e_expf.S: Likewise.
29695 * sysdeps/i386/fpu/math_errf.c: Likewise.
29696 * sysdeps/i386/fpu/w_expf.c: Likewise.
29697 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
29698 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
29699 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
29700 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
29701 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29702 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
29703 Remove e_expf-ia32.
29704 (CFLAGS-e_expf-sse2.c): New.
29705 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
29706 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
29707
29708 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29709
29710 * sysdeps/x86_64/fpu/e_expf.S: Removed.
29711 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
29712 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
29713 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
29714 e_expf.c.
29715 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
29716 New.
29717 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
29718 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
29719 Renamed to ...
29720 (__redirect_expf): This.
29721 (SYMBOL_NAME): Changed to expf.
29722 (__ieee754_expf): Renamed to ...
29723 (__expf): This.
29724 (__GI___expf): This.
29725 (__ieee754_expf): Add strong_alias.
29726 (__expf_finite): Likewise.
29727 (__expf): New.
29728 Include <sysdeps/ieee754/flt-32/e_expf.c>.
29729
29730 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
29731
29732 [BZ #22332]
29733 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
29734 unescaping.
29735
29736 2017-10-21 Florian Weimer <fweimer@redhat.com>
29737
29738 * posix/Makefile (tests): Add tst-glob-tilde.
29739 (tests-special): Add tst-glob-tilde-mem.out
29740 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
29741 (tst-glob-tilde-mem.out): Add mtrace check.
29742 * posix/tst-glob-tilde.c: New file.
29743
29744 2017-10-20 Joseph Myers <joseph@codesourcery.com>
29745
29746 * bits/floatn-common.h: New file.
29747 * math/Makefile (headers): Add bits/floatn-common.h.
29748 * bits/floatn.h: Include <bits/floatn-common.h>.
29749 * sysdeps/ia64/bits/floatn.h: Likewise.
29750 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
29751 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
29752 * sysdeps/powerpc/bits/floatn.h: Likewise.
29753 * sysdeps/x86/bits/floatn.h: Likewise.
29754
29755 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29756
29757 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
29758 indicates whether compiler emits an warning for alias for
29759 functions with incompatible types.
29760
29761 [BZ #22273]
29762 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
29763 the auxiliary process is terminated by a signal before calling _exit
29764 or execve.
29765
29766 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
29767
29768 [BZ #21265]
29769 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
29770 New.
29771 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
29772 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
29773 and bit_arch_XSAVEC_Usable if needed.
29774 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
29775 and bit_arch_Use_dl_runtime_resolve_opt.
29776 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
29777 Removed.
29778 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
29779 (bit_arch_Prefer_No_AVX512): Updated.
29780 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
29781 (bit_arch_XSAVEC_Usable): New.
29782 (STATE_SAVE_OFFSET): Likewise.
29783 (STATE_SAVE_MASK): Likewise.
29784 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
29785 (cpu_features): Add xsave_state_size and xsave_state_full_size.
29786 (index_arch_Use_dl_runtime_resolve_opt): Removed.
29787 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
29788 (index_arch_XSAVEC_Usable): New.
29789 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
29790 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
29791 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
29792 is enabled.
29793 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
29794 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
29795 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
29796 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
29797 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
29798 _dl_runtime_resolve_xsavec.
29799 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
29800 Removed.
29801 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
29802 instead of VEC_SIZE.
29803 (REGISTER_SAVE_BND0): Removed.
29804 (REGISTER_SAVE_BND1): Likewise.
29805 (REGISTER_SAVE_BND3): Likewise.
29806 (REGISTER_SAVE_RAX): Always defined to 0.
29807 (VMOV): Removed.
29808 (_dl_runtime_resolve_avx): Likewise.
29809 (_dl_runtime_resolve_avx_slow): Likewise.
29810 (_dl_runtime_resolve_avx_opt): Likewise.
29811 (_dl_runtime_resolve_avx512): Likewise.
29812 (_dl_runtime_resolve_avx512_opt): Likewise.
29813 (_dl_runtime_resolve_sse): Likewise.
29814 (_dl_runtime_resolve_sse_vex): Likewise.
29815 (USE_FXSAVE): New.
29816 (_dl_runtime_resolve_fxsave): Likewise.
29817 (USE_XSAVE): Likewise.
29818 (_dl_runtime_resolve_xsave): Likewise.
29819 (USE_XSAVEC): Likewise.
29820 (_dl_runtime_resolve_xsavec): Likewise.
29821 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
29822 Removed.
29823 (_dl_runtime_resolve_avx512_opt): Likewise.
29824 (_dl_runtime_resolve_avx): Likewise.
29825 (_dl_runtime_resolve_avx_opt): Likewise.
29826 (_dl_runtime_resolve_sse): Likewise.
29827 (_dl_runtime_resolve_sse_vex): Likewise.
29828 (_dl_runtime_resolve_fxsave): New.
29829 (_dl_runtime_resolve_xsave): Likewise.
29830 (_dl_runtime_resolve_xsavec): Likewise.
29831
29832 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
29833
29834 [BZ #22320]
29835 CVE-2017-15670
29836 * posix/glob.c (__glob): Fix one-byte overflow.
29837
29838 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
29839
29840 * malloc/malloc.c (sysdep-cancel.h): Add include.
29841
29842 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
29843
29844 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
29845
29846 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
29847
29848 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
29849 (tests): Remove $(objpfx)ga_test depdendency.
29850 * resolv/ga_test.c: Remove file.
29851
29852 2017-10-20 Mike FABIAN <mfabian@redhat.com>
29853
29854 [BZ #18812]
29855 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
29856 * localedata/locales/kab_DZ: New file.
29857
29858 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
29859
29860 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
29861 _dl_relocate_static_pie instead of _dl_start to compute load
29862 address in static PIE.
29863
29864 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
29865
29866 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
29867
29868 2017-10-20 Mike FABIAN <mfabian@redhat.com>
29869
29870 [BZ #13605]
29871 * localedata/SUPPORTED: Add shn_MM/UTF-8.
29872 * localedata/locales/shn_MM: New file.
29873
29874 2017-10-20 Florian Weimer <fweimer@redhat.com>
29875
29876 [BZ #22321]
29877 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
29878 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
29879 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
29880 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
29881 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
29882 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
29883
29884 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
29885
29886 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
29887
29888 2017-10-19 Joseph Myers <joseph@codesourcery.com>
29889
29890 * sysdeps/mips/ieee754/bits/floatn.h: New file.
29891
29892 [BZ #22322]
29893 * sysdeps/mips/bits/long-double.h: Move to ....
29894 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
29895
29896 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
29897
29898 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
29899
29900 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
29901 H.J. Lu <hongjiu.lu@intel.com>
29902
29903 [BZ #22299]
29904 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
29905 GLRO(dl_platform) to NULL.
29906 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
29907 (modules-names): Add tst-platformmod-1 and
29908 x86_64/tst-platformmod-2.
29909 (CFLAGS-tst-platform-1.c): New.
29910 (CFLAGS-tst-platformmod-1.c): Likewise.
29911 (CFLAGS-tst-platformmod-2.c): Likewise.
29912 (LDFLAGS-tst-platformmod-2.so): Likewise.
29913 ($(objpfx)tst-platform-1): Likewise.
29914 ($(objpfx)tst-platform-1.out): Likewise.
29915 (tst-platform-1-ENV): Likewise.
29916 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
29917 * sysdeps/x86_64/tst-platform-1.c: New file.
29918 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
29919 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
29920
29921 2017-10-19 Mike FABIAN <mfabian@redhat.com>
29922
29923 [BZ #13994]
29924 * locale/iso-639.def: Add Karbi.
29925 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
29926 * localedata/locales/mjw_IN: New file.
29927
29928 2017-10-18 Joseph Myers <joseph@codesourcery.com>
29929
29930 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
29931 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
29932 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
29933 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
29934 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
29935 (libm_alias_ldouble_other_r): Also create _Float128 alias.
29936 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
29937 <bits/floatn.h>.
29938 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
29939 (libm_alias_ldouble_other_r): Also create _Float128 alias.
29940 * manual/math.texi (Mathematics): Document additional architecture
29941 support for _Float128.
29942 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
29943 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
29944 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
29945 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
29946 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
29947 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
29948 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
29949 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
29950 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
29951 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
29952 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
29953 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
29954 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
29955 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
29956 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
29957
29958 2017-10-18 Renlin Li <renlin.li@arm.com>
29959
29960 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
29961 _DYNAMIC symbol to calculate load address.
29962
29963 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
29964
29965 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
29966 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
29967 summary bits.
29968 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
29969 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
29970
29971 2017-10-18 Mike FABIAN <mfabian@redhat.com>
29972
29973 [BZ #16777]
29974 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
29975 and improve readability by using more ASCII.
29976 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
29977 and improve readability by using more ASCII.
29978
29979 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
29980
29981 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
29982 not all targets support atomics on bool.
29983
29984 2017-10-17 Joseph Myers <joseph@codesourcery.com>
29985
29986 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
29987 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
29988 __f128.
29989 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
29990 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
29991 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
29992 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
29993 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
29994 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
29995
29996 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29997
29998 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
29999 defines.
30000
30001 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
30002
30003 [BZ #22159]
30004 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
30005 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
30006 (do_check_remalloced_chunk): Fix build bug.
30007 (do_check_malloc_state): Add assert that checks arena->top.
30008 (malloc_consolidate): Remove initialization.
30009 (int_mallinfo): Remove call to malloc_consolidate.
30010 (__libc_mallopt): Clarify why malloc_consolidate is needed.
30011
30012 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
30013
30014 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
30015 (have_fastchunks): Remove.
30016 (clear_fastchunks): Remove.
30017 (set_fastchunks): Remove.
30018 (malloc_state): Add have_fastchunks.
30019 (malloc_init_state): Use have_fastchunks.
30020 (do_check_malloc_state): Remove incorrect invariant checks.
30021 (_int_malloc): Use have_fastchunks.
30022 (_int_free): Likewise.
30023 (malloc_consolidate): Likewise.
30024
30025 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
30026
30027 * malloc/malloc.c (tcache_put): Inline.
30028 (tcache_get): Inline.
30029
30030 2017-10-17 Jordi Mallach <jordi@gnu.org>
30031
30032 Aurelien Jarno <aurelien@aurel32.net>
30033 [BZ #2522]
30034 * localedata/locales/ca_ES@valencia: New file.
30035 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
30036
30037 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
30038
30039 [BZ #22296]
30040 * math/math.h: Let signbit use the builtin in C++ mode with gcc
30041 < 6.x
30042
30043 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30044
30045 * scripts/build-many-glibcs.py (Context.add_all_configs):
30046 Add arm-linux-gnueabihf multiarch extra_glibcs.
30047
30048 * sysdeps/generic/ifunc-init.h: New file.
30049 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
30050
30051 2017-10-17 Mike FABIAN <mfabian@redhat.com>
30052
30053 [BZ #22019]
30054 * localedata/locales/el_GR: Set n_cs_precedes to 0.
30055 * localedata/locales/el_CY: copy "el_GR" because it is identical.
30056 * stdlib/tst-strfmon_l.c: adapt test case.
30057
30058 2017-10-16 Joseph Myers <joseph@codesourcery.com>
30059
30060 * sysdeps/generic/float128-abi.h: New file.
30061 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
30062 non-__prefixed symbols to ....
30063 * math/Versions: ... here. Include <float128-abi.h>.
30064 * stdlib/Versions ... and here. Include <float128-abi.h>
30065
30066 2017-10-16 Florian Weimer <fweimer@redhat.com>
30067
30068 * version.h (VERSION): Switch to ".9000" as the development
30069 version suffix.
30070
30071 2017-10-16 Florian Weimer <fweimer@redhat.com>
30072
30073 [BZ #22050]
30074 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
30075 compat_symbol_reference to access non-default version.
30076
30077 2017-10-16 Florian Weimer <fweimer@redhat.com>
30078
30079 * malloc/Makefile (others-extras): Set to mcheck-init.o.
30080
30081 2017-10-16 Carlos O'Donell <carlos@redhat.com>
30082
30083 * include/shlib-compat.h (compat_symbol_reference): Update
30084 comment.
30085
30086 2017-10-16 Joseph Myers <joseph@codesourcery.com>
30087
30088 * math/Makefile (test-types): Add
30089 $(type-float128-$(float128-alias-fcts)).
30090 * math/test-float128.h (TYPE_STR): Define conditional on
30091 [FLT128_MANT_DIG == LDBL_MANT_DIG].
30092 (ULP_IDX): Likewise.
30093 (ULP_I_IDX): Likewise.
30094
30095 * stdlib/strtold.c: Include <bits/floatn.h>
30096 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
30097 and later undefine as macro. Define as weak alias if
30098 [!USE_WIDE_CHAR].
30099 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
30100 and later undefine as macro. Define as weak alias if
30101 [USE_WIDE_CHAR].
30102 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
30103 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
30104 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
30105 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
30106 Define and later undefine as macro. Define as weak alias if
30107 [USE_WIDE_CHAR].
30108 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
30109 <bits/floatn.h>.
30110 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
30111 Define and later undefine as macro. Define as weak alias if
30112 [!USE_WIDE_CHAR].
30113 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
30114 Define and later undefine as macro. Define as weak alias if
30115 [USE_WIDE_CHAR].
30116
30117 2017-10-15 Carlos O'Donell <carlos@redhat.com>
30118
30119 * localedata/collate-test.c (allocate_arrays): Don't use \n in
30120 record_verbose messages.
30121
30122 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
30123
30124 [BZ #22052]
30125 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
30126 to silence -O3 -Wall warning with GCC 7.
30127
30128 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
30129
30130 * Makeconfig (+link-static-before-libc): Use the first of
30131 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
30132 * gmon/Makefile (tests): Add tst-gmon-static.
30133 (tests-static): Likewise.
30134 (CFLAGS-tst-gmon-static.c): New.
30135 (CRT-tst-gmon-static): Likewise.
30136 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
30137 (tst-gmon-static-ENV): Likewise.
30138 (tests-special): Likewise.
30139 ($(objpfx)tst-gmon-static.out): Likewise.
30140 (clean-tst-gmon-static-data): Likewise.
30141 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
30142 * gmon/tst-gmon-static-gprof.sh: New file.
30143 * gmon/tst-gmon-static.c: Likewise.
30144
30145 2017-10-13 Carlos O'Donell <carlos@redhat.com>
30146
30147 [BZ #22295]
30148 * locale/programs/linereader.c (get_string): Don't warn on
30149 non-symbolic character.
30150
30151 [BZ #22294]
30152 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
30153 int_curr_symbol.
30154
30155 [BZ #22292]
30156 * locale/programs/record-status.h: New file
30157 * locale/programs/locale.c: Add comment.
30158 * locale/programs/charmap-dir.c: Don't include error.h.
30159 (charmap_opendir): Use record_error.
30160 * locale/programs/charmap.c: Don't include error.h.
30161 (charmap_read): Use record_error, and record_warning.
30162 (parse_charmap): Likewise.
30163 * locale/programs/ld-address.c: Don't include error.h.
30164 (address_finish): Use record_error, and record_warning.
30165 * locale/programs/ld-collate.c: Don't include error.h.
30166 (collate_finish): Use record_error, and record_error_at_line.
30167 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
30168 (ctype_class_new): Likewise.
30169 (ctype_map_new): Likewise.
30170 (set_one_default): Likewise.
30171 (set_class_defaults): Likewise.
30172 (translit_flatten): Likewise.
30173 (allocate_arrays): Use record_error, and record_verbose.
30174 * locale/programs/ld-identification.c: Don't include error.h.
30175 (indentation_finish): Use record_error and record_warning.
30176 * locale/programs/ld-measurement.c: Don't include error.h.
30177 (measurement_finish): Use record_error.
30178 * locale/programs/ld-messages.c
30179 (message_finish): Likewise.
30180 * locale/programs/ld-monetary.c
30181 (monetary_finish): Likewise.
30182 * locale/programs/ld-name.c (name_finish): Use record_error
30183 and record_warning.
30184 * locale/programs/ld-numeric.c
30185 (numeric_finish): Use record_error.
30186 * locale/programs/ld-paper.c: Don't include error.h.
30187 (paper_finish): Use record_error.
30188 * locale/programs/ld-telephone.c: Don't include error.h.
30189 (telephone_finish): Use record_error.
30190 * locale/programs/ld-time.c (time_finish): Likewise.
30191 * locale/programs/linereader.h (lr_error): Make inline func.
30192 * locale/programs/localedef.c: Define recorded_warning_count,
30193 and recorded_error_count.
30194 (main): Use record_error. Use recorded_error_count and
30195 recorded_warning_count to issue correct error returns.
30196 (add_to_readlist): Use record_error.
30197 (find_locale): Likewise.
30198 (load_locale): Likewise.
30199 * locale/programs/localedef.h: Remove be_quiet
30200 and WITH_CUR_LOCALE.
30201 * locale/programs/locarchive.c (compare_from_file): Use
30202 record_error.
30203 * locale/programs/locfile.c (write_locale_data): Use
30204 record_error.
30205 * locale/programs/repertoire.c: Dont include error.h.
30206 (repertoire_complain): Use record_error.
30207 * localedata/tst-fmon.sh: Expect failures from localedef.
30208 * localedata/tst-locale.sh: Likewise.
30209 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
30210
30211 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
30212 (REPORTS): Likewise.
30213 (check): Likewise.
30214 (i18n): Rename to...
30215 (i18n_ctype): ...this.
30216 (i18n-report): Rename to...
30217 (i18n_ctype-report): ...this.
30218 * localedata/locales/i18n_ctype: Regenerate.
30219 * localedata/locales/i18n: copy i18n_ctype.
30220
30221 2017-10-13 Joseph Myers <joseph@codesourcery.com>
30222
30223 * stdlib/strfroml.c: Include <bits/floatn.h>.
30224 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
30225 Define before include of <stdlib.h> and undefine afterwards, then
30226 define as weak alias.
30227
30228 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
30229 Undefine and restore default definition. Use
30230 libm_alias_ldouble_other.
30231
30232 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
30233
30234 [BZ #22153]
30235 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
30236 in coredumps.
30237
30238 2017-10-13 James Clarke <jrtc27@jrtc27.com>
30239
30240 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
30241 Assign sym_map to be map for local symbols, as TLS relocations
30242 use sym_map to determine whether the symbol is defined and to
30243 extract the TLS information.
30244 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
30245 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
30246
30247 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
30248
30249 [BZ #22189]
30250 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
30251 (math_force_eval): Add powerpc version.
30252
30253 [BZ #22142]
30254 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
30255 -DBL_MAX.
30256 (do_test): Likewise.
30257 * stdio-common/tst-printf.sh: Likewise.
30258 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
30259 ifdef clause in order to set the carry bit right. Replace r0 by
30260 0 without changing the behavior.
30261
30262 2017-10-13 Joseph Myers <joseph@codesourcery.com>
30263
30264 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
30265 <libm-alias-ldouble.h>.
30266 (fabsl): Define using libm_alias_ldouble.
30267 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
30268 <libm-alias-ldouble.h>.
30269 (fabsl): Define using libm_alias_ldouble.
30270
30271 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
30272 Remove conditional code.
30273
30274 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
30275 Rename to __clog10_internal_l.
30276 (__clog10_internal_l): Define aliases using
30277 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
30278 with __clog10.
30279
30280 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
30281
30282 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
30283 * benchtests/sincosf-inputs: New file.
30284 * benchtests/cosf-inputs: New file.
30285 * benchtests/sinf-inputs: New file.
30286
30287 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
30288
30289 * posix/tst-spawn.c (do_test): Wait for both children.
30290
30291 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
30292
30293 [BZ #22284]
30294 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
30295 tests-pie): Add tst-gmon-pie.
30296 (CFLAGS-tst-gmon-pie.c): New.
30297 (CRT-tst-gmon-pie): Likewise.
30298 (tst-gmon-pie-ENV): Likewise.
30299 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
30300 ($(objpfx)tst-gmon-pie.out): Likewise.
30301 (clean-tst-gmon-pie-data): Likewise.
30302 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
30303 * gmon/gmon.c [PIC]: Include <link.h>.
30304 [PIC] (callback): New function.
30305 (write_hist): Add an argument for load address. Subtract load
30306 address from PCs.
30307 (write_call_graph): Likewise.
30308 (write_gmon): Call __dl_iterate_phdr to get load address, pass
30309 it to write_hist and write_call_graph.
30310 * gmon/tst-gmon-pie.c: New file.
30311
30312 2017-10-11 Joseph Myers <joseph@codesourcery.com>
30313
30314 * math/Makefile (test-types-basic): New variable.
30315 (test-types): Likewise.
30316 (libm-test-support): Use $(test-types) instead of $(types).
30317 (libm-tests-base-normal): Likewise.
30318 (libm-tests-base-finite): Likewise.
30319 (libm-tests-base-inline): Likewise.
30320 (generated): Likewise.
30321 ($(objpfx)libm-test-support-$(t).c): Likewise.
30322 (libm-tests-for-type iterator): Likewise.
30323 (libm-test-support iterator): Likewise.
30324 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
30325 (ulp_idx): Use ULP_IDX.
30326 * math/test-ldouble.h: Include <float.h>.
30327 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
30328 (ULP_IDX): New macro.
30329 (ULP_I_IDX): Likewise.
30330 * math/test-double.h (ULP_IDX): Likewise.
30331 (ULP_I_IDX): Likewise.
30332 * math/test-float.h (ULP_IDX): Likewise.
30333 (ULP_I_IDX): Likewise.
30334 * math/test-float128.h (ULP_IDX): Likewise.
30335 (ULP_I_IDX): Likewise.
30336
30337 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30338
30339 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
30340 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
30341 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
30342 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
30343 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
30344 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
30345 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
30346 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
30347 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
30348 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
30349 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
30350 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
30351 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
30352 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
30353 (SINGLE_THREAD_BY_GLOBAL): Define.
30354 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30355 Likewise.
30356 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30357 Likewise.
30358 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30359 Likewise.
30360 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30361 Likewise.
30362 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
30363 (SINGLE_THREAD_BY_GLOBAL): Likewise.
30364 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30365 Likewise.
30366
30367 2017-10-11 Andreas Schwab <schwab@suse.de>
30368
30369 * nis/Makefile (aux): Remove.
30370 * nscd/Makefile (aux): Add nscd_hash.
30371 (nscd-modules): Likewise.
30372 ($(objpfx)nscd): Don't depend on libnsl.
30373 * nscd/nscd_hash.c: New file.
30374 * nscd/nscd_hash.h: Likewise.
30375 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
30376 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
30377 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
30378 instead of <nis/rpcsvc/nis.h>.
30379 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
30380
30381 2017-10-11 Florian Weimer <fweimer@redhat.com>
30382
30383 [BZ #22078]
30384 Avoid large NSS buffers with many addresses, aliases.
30385 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
30386 using dynarrays and struct alloc_buffer.
30387 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
30388 (tst-nss-files-hosts-multi): Link with -ldl.
30389 * nss/tst-nss-files-hosts-multi.c: New file.
30390
30391 2017-10-11 Florian Weimer <fweimer@redhat.com>
30392
30393 [BZ #18023]
30394 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
30395 scratch_buffer. Eliminate gotos.
30396
30397 2017-10-11 Joseph Myers <joseph@codesourcery.com>
30398
30399 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
30400 libm_alias_ldouble_other.
30401 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
30402 undefine and redefine.
30403 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
30404 (exp10l): Do not define here.
30405 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
30406 (weak_alias): Undefine and redefine.
30407 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
30408 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
30409 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
30410 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
30411
30412 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
30413 [!__fma] (fma): Define using libm_alias_double.
30414 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
30415 [!__fmaf] (fmaf): Define using libm_alias_float.
30416 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
30417 (fmal): Define using libm_alias_ldouble.
30418
30419 2017-10-10 Joseph Myers <joseph@codesourcery.com>
30420
30421 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
30422 New macro.
30423 (libm_alias_double_other): Likewise.
30424 (libm_alias_double_r): Use libm_alias_double_other_r.
30425 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
30426 New macro.
30427 (libm_alias_float_other): Likewise.
30428 (libm_alias_float_r): Use libm_alias_float_other_r.
30429 * sysdeps/generic/libm-alias-float128.h
30430 (libm_alias_float128_other_r): New macro.
30431 (libm_alias_float128_other): Likewise.
30432 (libm_alias_float128_r): Use libm_alias_float128_other_r.
30433 * sysdeps/generic/libm-alias-ldouble.h
30434 (libm_alias_ldouble_other_r): New macro.
30435 (libm_alias_ldouble_other): Likewise.
30436 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
30437 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
30438 (libm_alias_double_other_r): New macro.
30439 (libm_alias_double_other): Likewise.
30440 (libm_alias_double_r): Use libm_alias_double_other_r.
30441 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
30442 (libm_alias_ldouble_other_r): New macro.
30443 (libm_alias_ldouble_other): Likewise.
30444 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
30445 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
30446 [!USE_AS_COMPAT]: Use libm_alias_double_other.
30447 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
30448 [!USE_AS_COMPAT]: Use libm_alias_float_other.
30449 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
30450 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
30451 * math/w_exp2f.c: Use libm_alias_float_other.
30452 * math/w_expf.c: Likewise.
30453 * math/w_log2f.c: Likewise.
30454 * math/w_logf.c: Likewise.
30455 * math/w_powf.c: Likewise.
30456 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
30457 [!__exp2f]: Use libm_alias_float_other.
30458 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
30459 [!__expf]: Use libm_alias_float_other.
30460 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
30461 [!__log2f]: Use libm_alias_float_other.
30462 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
30463 [!__logf]: Use libm_alias_float_other.
30464 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
30465 [!__powf]: Use libm_alias_float_other.
30466
30467 2017-10-10 Florian Weimer <fweimer@redhat.com>
30468
30469 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
30470 function.
30471 (_nss_files_gethostbyname3_r): Call it.
30472
30473 2017-10-09 Joseph Myers <joseph@codesourcery.com>
30474
30475 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
30476 error. Remove default definition of declare_mgen_alias.
30477 [!declare_mgen_alias_r]: Likewise.
30478 * sysdeps/generic/math-type-macros-double.h
30479 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
30480 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
30481 (declare_mgen_alias_r): Likewise.
30482 * sysdeps/generic/math-type-macros-float128.h
30483 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
30484 * sysdeps/generic/math-type-macros-ldouble.h
30485 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
30486 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
30487 macro.
30488 (declare_mgen_alias_r_s): Likewise.
30489 (declare_mgen_alias_r): Likewise.
30490 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
30491 (lgamma_r): Define using libm_alias_double_r.
30492 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
30493 (lgammaf_r): Define using libm_alias_float_r.
30494 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
30495 (lgammal_r): Define using libm_alias_ldouble_r.
30496 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
30497 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
30498
30499 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30500
30501 * lib/glob.c (__glob_pattern_type): Remove now-spurious
30502 extern declaration.
30503
30504 2017-10-09 Joseph Myers <joseph@codesourcery.com>
30505
30506 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
30507
30508 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
30509
30510 [BZ #21326]
30511 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
30512 [__cplusplus >= 201103] (__USE_ISOC99): Define.
30513 * math/Makefile (test-math-cxx11): New test.
30514 * math/test-math-cxx11.cc: New file.
30515
30516 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
30517
30518 * login/openpty.c (openpty): Close slave pty file descriptor on error.
30519
30520 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
30521 call to allocate the slave pty file descriptor.
30522
30523 2017-10-06 Joseph Myers <joseph@codesourcery.com>
30524
30525 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
30526 [!__fma] (fma): Define using libm_alias_double.
30527 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
30528 [!__fma] (fma): Define using libm_alias_double.
30529
30530 * sysdeps/ieee754/float128/float128_private.h: Include
30531 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
30532 (libm_alias_ldouble_r): Undefine and redefine.
30533 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
30534 <libm-alias-ldouble.h>.
30535 (asinhl): Define using libm_alias_ldouble.
30536 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
30537 <libm-alias-ldouble.h>.
30538 (atanl): Define using libm_alias_ldouble.
30539 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
30540 <libm-alias-ldouble.h>.
30541 (cbrtl): Define using libm_alias_ldouble.
30542 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
30543 <libm-alias-ldouble.h>.
30544 (ceill): Define using libm_alias_ldouble.
30545 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
30546 <libm-alias-ldouble.h>.
30547 (copysignl): Define using libm_alias_ldouble.
30548 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
30549 <libm-alias-ldouble.h>.
30550 (cosl): Define using libm_alias_ldouble.
30551 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
30552 <libm-alias-ldouble.h>.
30553 (erfl): Define using libm_alias_ldouble.
30554 (erfcl): Likewise.
30555 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
30556 <libm-alias-ldouble.h>.
30557 (expm1l): Define using libm_alias_ldouble.
30558 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
30559 <libm-alias-ldouble.h>.
30560 (fabsl): Define using libm_alias_ldouble.
30561 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
30562 <libm-alias-ldouble.h>.
30563 (floorl): Define using libm_alias_ldouble.
30564 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
30565 <libm-alias-ldouble.h>.
30566 (fmal): Define using libm_alias_ldouble.
30567 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
30568 <libm-alias-ldouble.h>.
30569 (frexpl): Define using libm_alias_ldouble.
30570 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
30571 libm_alias_ldouble.
30572 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
30573 <libm-alias-ldouble.h>.
30574 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
30575 libm_alias_ldouble.
30576 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
30577 <libm-alias-ldouble.h>.
30578 (getpayloadl): Define using libm_alias_ldouble.
30579 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
30580 <libm-alias-ldouble.h>.
30581 (llrintl): Define using libm_alias_ldouble.
30582 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
30583 <libm-alias-ldouble.h>.
30584 (llroundl): Define using libm_alias_ldouble.
30585 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
30586 <libm-alias-ldouble.h>.
30587 (logbl): Define using libm_alias_ldouble.
30588 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
30589 <libm-alias-ldouble.h>.
30590 (lrintl): Define using libm_alias_ldouble.
30591 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
30592 <libm-alias-ldouble.h>.
30593 (lroundl): Define using libm_alias_ldouble.
30594 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
30595 <libm-alias-ldouble.h>.
30596 (modfl): Define using libm_alias_ldouble.
30597 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
30598 <libm-alias-ldouble.h>.
30599 (nearbyintl): Define using libm_alias_ldouble.
30600 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
30601 <libm-alias-ldouble.h>.
30602 (nextafterl): Define using libm_alias_ldouble.
30603 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
30604 <libm-alias-ldouble.h>.
30605 (nextupl): Define using libm_alias_ldouble.
30606 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
30607 <libm-alias-ldouble.h>.
30608 (remquol): Define using libm_alias_ldouble.
30609 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
30610 <libm-alias-ldouble.h>.
30611 (rintl): Define using libm_alias_ldouble.
30612 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
30613 <libm-alias-ldouble.h>.
30614 (roundevenl): Define using libm_alias_ldouble.
30615 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
30616 <libm-alias-ldouble.h>.
30617 (roundl): Define using libm_alias_ldouble.
30618 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
30619 using libm_alias_ldouble.
30620 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
30621 <libm-alias-ldouble.h>.
30622 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
30623 Define using libm_alias_ldouble.
30624 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
30625 <libm-alias-ldouble.h>.
30626 (sincosl): Define using libm_alias_ldouble.
30627 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
30628 <libm-alias-ldouble.h>.
30629 (sinl): Define using libm_alias_ldouble.
30630 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
30631 <libm-alias-ldouble.h>.
30632 (tanhl): Define using libm_alias_ldouble.
30633 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
30634 <libm-alias-ldouble.h>.
30635 (tanl): Define using libm_alias_ldouble.
30636 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
30637 <libm-alias-ldouble.h>.
30638 (totalorderl): Define using libm_alias_ldouble.
30639 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
30640 <libm-alias-ldouble.h>.
30641 (totalordermagl): Define using libm_alias_ldouble.
30642 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
30643 <libm-alias-ldouble.h>.
30644 (truncl): Define using libm_alias_ldouble.
30645 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
30646 libm_alias_ldouble.
30647 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
30648 libm_alias_ldouble.
30649 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
30650 <libm-alias-ldouble.h>.
30651 (weak_alias): Do not undefine and redefine.
30652 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
30653 (copysignl): Define with long_double_symbol only if [IS_IN
30654 (libc)].
30655 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
30656 <libm-alias-ldouble.h>.
30657 (weak_alias): Do not undefine and redefine.
30658 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
30659 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
30660 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
30661 <libm-alias-ldouble.h>.
30662 (weak_alias): Do not undefine and redefine.
30663 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
30664 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
30665 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
30666 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
30667 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
30668 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
30669 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
30670 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
30671 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
30672 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
30673 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
30674 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
30675 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
30676 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
30677 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
30678 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
30679 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
30680 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
30681 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
30682 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
30683 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
30684 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
30685 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
30686 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
30687 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
30688 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
30689
30690 2017-10-06 Carlos O'Donell <carlos@redhat.com>
30691
30692 [BZ #22111]
30693 * malloc/malloc.c (tcache_shutting_down): Use bool type.
30694 (tcache_thread_freeres): Set tcache_shutting_down before
30695 freeing the tcache.
30696 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
30697 * malloc/tst-malloc-tcache-leak.c: New file.
30698
30699 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
30700
30701 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
30702 back to powerpc32 file.
30703 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
30704 (memrchr): Add __memrchr_power8 to ifunc list.
30705 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
30706 extra bytes for unaligned inputs.
30707
30708 2017-10-06 Joseph Myers <joseph@codesourcery.com>
30709
30710 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
30711 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
30712 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
30713 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
30714 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
30715
30716 2017-10-05 Joseph Myers <joseph@codesourcery.com>
30717
30718 * sysdeps/arm/libm-test-ulps: Update.
30719
30720 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
30721 <libm-alias-ldouble.h>.
30722 (asinhl): Define using libm_alias_ldouble.
30723 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
30724 <libm-alias-ldouble.h>.
30725 (cbrtl): Define using libm_alias_ldouble.
30726 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
30727 <libm-alias-ldouble.h>.
30728 (copysignl): Define using libm_alias_ldouble.
30729 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
30730 <libm-alias-ldouble.h>.
30731 (cosl): Define using libm_alias_ldouble.
30732 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
30733 <libm-alias-ldouble.h>.
30734 (erfl): Define using libm_alias_ldouble.
30735 (erfcl): Likewise.
30736 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
30737 <libm-alias-ldouble.h>.
30738 (fmal): Define using libm_alias_ldouble.
30739 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
30740 <libm-alias-ldouble.h>.
30741 (frexpl): Define using libm_alias_ldouble.
30742 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
30743 libm_alias_ldouble.
30744 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
30745 <libm-alias-ldouble.h>.
30746 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
30747 libm_alias_ldouble.
30748 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
30749 <libm-alias-ldouble.h>.
30750 (getpayloadl): Define using libm_alias_ldouble.
30751 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
30752 <libm-alias-ldouble.h>.
30753 (llrintl): Define using libm_alias_ldouble.
30754 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
30755 <libm-alias-ldouble.h>.
30756 (llroundl): Define using libm_alias_ldouble.
30757 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
30758 <libm-alias-ldouble.h>.
30759 (lrintl): Define using libm_alias_ldouble.
30760 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
30761 <libm-alias-ldouble.h>.
30762 (lroundl): Define using libm_alias_ldouble.
30763 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
30764 <libm-alias-ldouble.h>.
30765 (modfl): Define using libm_alias_ldouble.
30766 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
30767 <libm-alias-ldouble.h>.
30768 (nextupl): Define using libm_alias_ldouble.
30769 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
30770 <libm-alias-ldouble.h>.
30771 (remquol): Define using libm_alias_ldouble.
30772 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
30773 <libm-alias-ldouble.h>.
30774 (roundevenl): Define using libm_alias_ldouble.
30775 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
30776 <libm-alias-ldouble.h>.
30777 (roundl): Define using libm_alias_ldouble.
30778 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
30779 using libm_alias_ldouble.
30780 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
30781 <libm-alias-ldouble.h>.
30782 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
30783 <libm-alias-ldouble.h>.
30784 (setpayloadsigl): Define using libm_alias_ldouble.
30785 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
30786 <libm-alias-ldouble.h>.
30787 (sincosl): Define using libm_alias_ldouble.
30788 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
30789 <libm-alias-ldouble.h>.
30790 (sinl): Define using libm_alias_ldouble.
30791 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
30792 <libm-alias-ldouble.h>.
30793 (tanhl): Define using libm_alias_ldouble.
30794 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
30795 <libm-alias-ldouble.h>.
30796 (tanl): Define using libm_alias_ldouble.
30797 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
30798 <libm-alias-ldouble.h>.
30799 (totalorderl): Define using libm_alias_ldouble.
30800 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
30801 <libm-alias-ldouble.h>.
30802 (totalordermagl): Define using libm_alias_ldouble.
30803 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
30804 libm_alias_ldouble.
30805 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
30806 libm_alias_ldouble.
30807
30808 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
30809
30810 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
30811 memmove_falkor.
30812 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
30813 (__libc_ifunc_impl_list): Likewise.
30814 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
30815 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
30816
30817 * benchtests/bench-memmove-walk.c: New file.
30818 * benchtests/Makefile (string-benchset): Add it.
30819
30820 * benchtests/bench-memset-walk.c: New file.
30821 * benchtests/Makefile (string-benchset): Add it.
30822
30823 * benchtests/bench-memcpy-walk.c: New file.
30824 * benchtests/Makefile (string-benchset): Add it.
30825
30826 2017-10-05 Florian Weimer <fweimer@redhat.com>
30827
30828 nscd: Eliminate compilation time dependency in the build output.
30829 * nscd/nscd_stat.c (STATDATA_VERSION)
30830 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
30831 (STATDATA_VERSION_FULL): New macro definitions.
30832 (compilation): Remove.
30833 (struct statdata): Adjust version member.
30834 (send_stats): Set version from STATDATA_VERSION_FULL.
30835 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
30836
30837 2017-10-05 Joseph Myers <joseph@codesourcery.com>
30838
30839 * configure.ac (--enable-add-ons): Remove option.
30840 (machine): Do not mention add-ons in comment.
30841 (LIBC_PRECONFIGURE): Likewise.
30842 (add_ons): Remove variable and sanity checks and logic to locate
30843 add-ons.
30844 (add_ons_automatic): Remove variable.
30845 (configured_add_ons): Likewise.
30846 (add_ons_sfx): Likewise.
30847 (add_ons_pfx): Likewise.
30848 (add_on_subdirs): Likewise.
30849 (sysnames_add_ons): Likewise. Remove loop over add-ons and
30850 consideration of add-ons in Implies handling.
30851 (sysdeps_add_ons): Likewise.
30852 * configure: Regenerated.
30853 * libidn/configure.ac: Remove.
30854 * libidn/configure: Likewise.
30855 * sysdeps/unix/inet/configure.ac: New file.
30856 * sysdeps/unix/inet/configure: New generated file.
30857 * sysdeps/unix/inet/Subdirs: Add libidn.
30858 * Makeconfig (sysdeps-srcdirs): Remove variable.
30859 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
30860 ($(common-objpfx)config.status): Do not depend on add-on files.
30861 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
30862 comment.
30863 (all-subdirs): Do not include $(add-on-subdirs).
30864 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
30865 * config.make.in (add-ons): Remove variable.
30866 (add-on-subdirs): Likewise.
30867 (sysdeps-add-ons): Likewise.
30868 * manual/Makefile (add-chapters): Remove.
30869 ($(objpfx)texis): Do not depend on $(add-chapters).
30870 (nonexamples): Do not handle $(add-chapters).
30871 (examples): Do not handle $(add-ons).
30872 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
30873 libc-texinfo.sh.
30874 * manual/install.texi (Installation): Do not mention add-ons.
30875 (--enable-add-ons): Do not document configure option.
30876 * INSTALL: Regenerated.
30877 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
30878 * manual/maint.texi (Hierarchy Conventions): Do not mention
30879 add-ons.
30880 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
30881 --enable-add-ons.
30882 * scripts/gen-sorted.awk: Do not handle Subdirs files from
30883 add-ons.
30884 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
30885 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
30886
30887 2017-10-05 Andreas Schwab <schwab@suse.de>
30888
30889 [BZ #15142]
30890 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
30891 (_IO_flush_all_lockp): Always lock list_all_lock.
30892 (_IO_flush_all_linebuffered): Likewise.
30893 (_IO_unbuffer_all): Likewise.
30894
30895 2017-10-05 Florian Weimer <fweimer@redhat.com>
30896
30897 [BZ #15436]
30898 Do not flush stdio streams on abort.
30899 * stdlib/abort.c (fflush): Remove macro definition.
30900 (abort): Remove stages related to stdio flushing.
30901
30902 2017-10-05 Florian Weimer <fweimer@redhat.com>
30903
30904 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
30905
30906 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
30907
30908 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
30909
30910 2017-10-05 Florian Weimer <fweimer@redhat.com>
30911
30912 * support/support_format_hostent.c (support_format_hostent): Add
30913 more error information for NETDB_INTERNAL.
30914
30915 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
30916
30917 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
30918 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
30919 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
30920 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
30921 AC_DEFINE if multi-arch is enabled.
30922 * sysdeps/i386/configure: Regenerated.
30923
30924 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
30925
30926 * Makeconfig (+link-static-before-libc): Use
30927 $(DEFAULT-LDFLAGS-$(@F)).
30928 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
30929 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
30930 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
30931
30932 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
30933
30934 * elf/Makefile (tests): Add tst-main1.
30935 (modules-names): Add tst-main1mod.
30936 ($(objpfx)tst-main1): New.
30937 (CRT-tst-main1): Likewise.
30938 (LDFLAGS-tst-main1): Likewise.
30939 (LDLIBS-tst-main1): Likewise.
30940 (tst-main1mod.so-no-z-defs): Likewise.
30941 * elf/tst-main1.c: New file.
30942 * elf/tst-main1mod.c: Likewise.
30943
30944 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
30945
30946 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
30947
30948 2017-10-04 Joseph Myers <joseph@codesourcery.com>
30949
30950 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
30951 (fma): Define using libm_alias_double.
30952 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
30953 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
30954 <math_ldbl_opt.h>.
30955 (fmal): Do not define as compat symbol here.
30956 * sysdeps/alpha/fpu/s_fma.c: New file.
30957
30958 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
30959
30960 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
30961
30962 2017-10-04 Joseph Myers <joseph@codesourcery.com>
30963
30964 [BZ #22229]
30965 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
30966 <math_ldbl_opt.h>
30967 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
30968 and libc.
30969 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
30970 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
30971 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
30972 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
30973 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
30974 Include <math_ldbl_opt.h>
30975 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
30976 and libc.
30977 (compat_symbol): Undefine and redefine.
30978 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
30979 <math_ldbl_opt.h>
30980 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
30981 (compat_symbol): Undefine and redefine.
30982 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
30983 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
30984 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
30985 GLIBC_2_1 for libm.
30986 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
30987 GLIBC_2.0 copysignl symbol.
30988 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
30989 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
30990
30991 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
30992
30993 2017-10-04 Florian Weimer <fweimer@redhat.com>
30994
30995 * scripts/check-local-headers.sh: Ignore nspr4 header file
30996 directory in addition to nspr.
30997
30998 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
30999
31000 [BZ #17956]
31001 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
31002 * configure: Regenerate.
31003 * crypt/Makefile (nss-cpp-flags): New variable.
31004 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
31005 (CPPFLAGS-md5-crypt.c): Use it.
31006 * scripts/check-local-headers.sh: Ignore nspr header file
31007 directory.
31008
31009 2017-10-04 Andreas Schwab <schwab@suse.de>
31010
31011 * nis/Makefile (services): Remove compat.
31012 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
31013 ($(objpfx)libnss_compat.so): Remove rule.
31014 * nis/Versions (libnss_compat): Remove.
31015 * nss/Makefile (services): Add compat.
31016 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
31017 * nss/Versions (libnss_compat): Define.
31018 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
31019 Don't include <rpc/types.h>. Replace bool_t by bool.
31020 * nss/nss_compat/compat-initgroups.c: Likewise.
31021 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
31022 instead of <rpcsrv/ypclnt.h>.
31023 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
31024 yp_get_default_domain.
31025 * nss/nss_compat/compat-pwd.c: Likewise.
31026 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
31027 yp_get_default_domain.
31028 * nss/nss_compat/nisdomain.c: New file.
31029 * nss/nss_compat/nisdomain.h: Likewise.
31030
31031 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
31032
31033 [BZ #22244]
31034 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
31035 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
31036
31037 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
31038
31039 [BZ #22243]
31040 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
31041 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
31042
31043 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31044
31045 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
31046 "movl main@GOTOFF(%ebx), %eax".
31047
31048 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31049
31050 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
31051 allow undefined _DYNAMIC in PIE libc.a.
31052 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
31053 Likewse.
31054
31055 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31056
31057 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
31058 check _DYNAMIC.
31059
31060 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31061
31062 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
31063 check _DYNAMIC.
31064
31065 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31066
31067 * math/test-math-iscanonical.cc (error): Replace bool with int.
31068
31069 2017-10-03 Joseph Myers <joseph@codesourcery.com>
31070
31071 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
31072 (modf): Define using libm_alias_double, only if [!__modf].
31073 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
31074 <libm-alias-double.h>.
31075 (modf): Define using libm_alias_double, only if [!__modf].
31076 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
31077 compat symbol here.
31078 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
31079 (weak_alias): Do not undefine and redefine.
31080 (strong_alias): Likewise.
31081 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
31082 (weak_alias): Likewise.
31083 (strong_alias): Likewise.
31084
31085 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
31086 (logb): Define using libm_alias_double, only if [!__logb].
31087 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
31088 <libm-alias-double.h>.
31089 (logb): Define using libm_alias_double, only if [!__logb].
31090 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
31091 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
31092 (weak_alias): Do not undefine and redefine.
31093 (strong_alias): Likewise.
31094 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
31095 (weak_alias): Likewise.
31096 (strong_alias): Likewise.
31097
31098 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31099
31100 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
31101 Check SHARED instead PIC.
31102
31103 2017-10-03 Joseph Myers <joseph@codesourcery.com>
31104
31105 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
31106 [!__fmaf] (fmaf): Define using libm_alias_float.
31107
31108 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
31109 (frexp): Define using libm_alias_double.
31110 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
31111 <libm-alias-double.h>.
31112 (frexp): Define using libm_alias_double.
31113 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
31114 compat symbol here.
31115
31116 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
31117
31118 [BZ #22235]
31119 * math/math.h: Trivial fix for unbalanced parentheses in comment.
31120 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
31121 (CFLAGS-test-math-iscanonical.cc): New variable.
31122 * math/test-math-iscanonical.cc: New file.
31123 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
31124 Provide a C++ implementation based on function overloading,
31125 rather than using __MATH_TG, which uses C-only builtins.
31126 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
31127 Likewise.
31128 * sysdeps/powerpc/powerpc64le/Makefile
31129 (CFLAGS-test-math-iscanonical.cc): New variable.
31130
31131 2017-10-03 Joseph Myers <joseph@codesourcery.com>
31132
31133 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
31134 (ceil): Define using libm_alias_double.
31135 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
31136 (floor): Define using libm_alias_double.
31137 * sysdeps/ieee754/dbl-64/s_llround.c: Include
31138 <libm-alias-double.h>.
31139 (llround): Define using libm_alias_double.
31140 * sysdeps/ieee754/dbl-64/s_lround.c: Include
31141 <libm-alias-double.h>.
31142 (lround): Define using libm_alias_double.
31143 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
31144 <libm-alias-double.h>.
31145 (nearbyint): Define using libm_alias_double.
31146 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
31147 <libm-alias-double.h>.
31148 (remquo): Define using libm_alias_double.
31149 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
31150 (rint): Define using libm_alias_double.
31151 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
31152 (round): Define using libm_alias_double.
31153 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
31154 (trunc): Define using libm_alias_double.
31155 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
31156 <libm-alias-double.h>.
31157 (ceil): Define using libm_alias_double.
31158 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
31159 <libm-alias-double.h>.
31160 (floor): Define using libm_alias_double.
31161 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
31162 <libm-alias-double.h>.
31163 (llround): Define using libm_alias_double.
31164 [_LP64] (lround): Likewise.
31165 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
31166 <libm-alias-double.h>.
31167 [!_LP64] (lround): Define using libm_alias_double.
31168 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
31169 <libm-alias-double.h>.
31170 (nearbyint): Define using libm_alias_double.
31171 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
31172 <libm-alias-double.h>.
31173 (remquo): Define using libm_alias_double.
31174 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
31175 <libm-alias-double.h>.
31176 (rint): Define using libm_alias_double.
31177 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
31178 <libm-alias-double.h>.
31179 (round): Define using libm_alias_double.
31180 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
31181 <libm-alias-double.h>.
31182 (trunc): Define using libm_alias_double.
31183 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
31184 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
31185 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
31186 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
31187 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
31188 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
31189 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
31190 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
31191 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
31192
31193 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
31194
31195 * math/w_remainder.c: New file.
31196 * math/w_remainderf.c: New file.
31197 * math/w_remainderl.c: New file.
31198
31199 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31200
31201 * elf/rtld.c (BOOTSTRAP_MAP): New.
31202 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
31203 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
31204 Likewise.
31205 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
31206 Likewise.
31207 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
31208 Likewise.
31209
31210 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
31211
31212 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
31213 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
31214 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
31215 rtld_hidden_data_ver): Define to empty.
31216 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
31217 __assert_perror_fail): Likewise.
31218 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
31219 (__rewinddir): Likewise.
31220 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
31221 (__profile_frequency): Likewise.
31222 * include/setjmp.h (__sigsetjmp): Likewise.
31223 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
31224 __libc_sigaction): Likewise.
31225 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
31226 not set hidden attribute.
31227 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
31228 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
31229 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
31230 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
31231 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
31232 __fxstatat64): Likewise.
31233 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
31234 (__uname): Likewise.
31235 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
31236 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
31237 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
31238 (NO_RTLD_HIDDEN): Set.
31239 * sysdeps/mach/hurd/configure: Refresh.
31240 * config.h.in: Refresh.
31241
31242 2017-10-02 Joseph Myers <joseph@codesourcery.com>
31243
31244 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
31245 (atan): Define using libm_alias_double.
31246 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
31247 (tan): Define using libm_alias_double.
31248 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
31249 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
31250
31251 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
31252 define as weak alias of __atan. Do not define any aliases if
31253 [__atan].
31254 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
31255 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
31256 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
31257 as weak alias of __tan. Do not define any aliases if [__tan].
31258 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
31259 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
31260 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
31261 __atan.
31262 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
31263 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
31264 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
31265 and define as weak alias of __atan.
31266 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
31267 __atan.
31268 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
31269 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
31270 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
31271 define as weak alias of __tan.
31272
31273 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
31274
31275 * math/w_lgamma.c: New file.
31276 * math/w_lgammaf.c: New file.
31277 * math/w_lgammal.c: New file.
31278
31279 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
31280
31281 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
31282 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
31283 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
31284 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
31285 * sysdeps/ieee754/flt-32/w_logf.c: New file.
31286 * sysdeps/ieee754/flt-32/w_powf.c: New file.
31287 * sysdeps/i386/fpu/w_log2f.c: New file.
31288 * sysdeps/i386/fpu/w_logf.c: New file.
31289 * sysdeps/i386/fpu/w_powf.c: New file.
31290 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
31291 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
31292 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
31293
31294 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
31295 H.J. Lu <hongjiu.lu@intel.com>
31296
31297 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
31298 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
31299 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
31300 * sysdeps/ieee754/flt-32/w_expf.c: New file.
31301 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
31302 the new expf code.
31303 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
31304 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
31305 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
31306 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
31307 * sysdeps/i386/fpu/w_exp2f.c: New file.
31308 * sysdeps/i386/fpu/w_expf.c: New file.
31309 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
31310 * sysdeps/x86_64/fpu/w_expf.c: New file.
31311
31312 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
31313
31314 * math/Versions (logf): New libm symbol at GLIBC_2.27.
31315 (log2f): Likewise.
31316 (powf): Likewise.
31317 * math/w_log2f.c: New file.
31318 * math/w_logf.c: New file.
31319 * math/w_powf.c: New file.
31320 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
31321 * math/w_logf_compat.c (__logf_compat): Likewise.
31322 * math/w_powf_compat.c (__powf_compat): Likewise.
31323 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
31324 * sysdeps/ia64/fpu/e_logf.S: Likewise.
31325 * sysdeps/ia64/fpu/e_powf.S: Likewise.
31326 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
31327 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
31328 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
31329 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
31330 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
31331 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
31332 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
31333 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
31334 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
31335 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
31336 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
31337 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
31338 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
31339 Likewise.
31340 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
31341 Likewise.
31342 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
31343 Likewise.
31344 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
31345 Likewise.
31346 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
31347 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
31348 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
31349 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
31350 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
31351 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
31352 Likewise.
31353 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
31354 Likewise.
31355 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
31356 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
31357 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
31358
31359 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
31360
31361 * sysdeps/powerpc/powerpc64/multiarch/Makefile
31362 (sysdep_routines): Add memrchr_power8.
31363 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
31364 (memrchr): Add __memrchr_power8 to list of memrchr functions.
31365 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
31366 New file.
31367 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
31368 (memrchr): Add __memrchr_power8 to ifunc list.
31369 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
31370
31371 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31372
31373 [BZ #18822]
31374 * sysdeps/unix/sysv/linux/posix_fadvise64.c
31375 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
31376 libc_hidden_def.
31377 * sysdeps/unix/sysv/linux/posix_fallocate64.c
31378 (__posix_fallocate64_l64): Likewise.
31379
31380 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31381
31382 [BZ #18822]
31383 * sysdeps/unix/sysv/linux/sched_setaffinity.c
31384 (__sched_setaffinity_new): Add libc_hidden_proto and
31385 libc_hidden_def.
31386
31387 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31388
31389 [BZ #18822]
31390 * include/glob.h (__glob64): Add libc_hidden_proto.
31391 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
31392 libc_hidden_def.
31393
31394 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31395
31396 [BZ #18822]
31397 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
31398 attribute_hidden.
31399
31400 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31401
31402 [BZ #18822]
31403 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
31404
31405 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31406
31407 [BZ #18822]
31408 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
31409 libc_hidden_def.
31410
31411 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31412
31413 [BZ #18822]
31414 * csu/version.c (__libc_print_version): Add attribute_hidden.
31415
31416 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31417
31418 [BZ #18822]
31419 * include/libc-internal.h (__init_misc): Add attribute_hidden.
31420
31421 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31422
31423 [BZ #18822]
31424 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
31425
31426 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31427
31428 [BZ #18822]
31429 * nscd/nscd_helper.c (__nis_hash): New prototype.
31430
31431 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31432
31433 [BZ #18822]
31434 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
31435 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
31436 libc_hidden_def.
31437 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
31438 * termios/tcgetattr.c (__tcgetattr): Likewise.
31439
31440 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31441
31442 [BZ #18822]
31443 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
31444 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
31445 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
31446 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
31447 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
31448
31449 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31450
31451 [BZ #18822]
31452 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
31453
31454 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31455
31456 [BZ #18822]
31457 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
31458 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
31459
31460 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31461
31462 [BZ #18822]
31463 * intl/hash-string.h (__hash_string): Add attribute_hidden.
31464
31465 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31466
31467 [BZ #18822]
31468 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
31469 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
31470
31471 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31472
31473 [BZ #18822]
31474 * include/ifreq.h: New file.
31475 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
31476 (__ifreq): Likewise.
31477 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
31478 (__ifreq): Likewise.
31479
31480 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31481
31482 [BZ #18822]
31483 * include/idna.h: New file.
31484 * inet/getnameinfo.c: Include <idna.h> instead of
31485 <libidn/idna.h>.
31486 (__idna_to_unicode_lzlz): Removed.
31487 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
31488 <libidn/idna.h>.
31489 (__idna_to_ascii_lz): Removed.
31490 (__idna_to_unicode_lzlz): Likewise.
31491
31492 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31493
31494 [BZ #18822]
31495 * include/plural-exp.h: New file.
31496 * intl/plural-exp.c: Include <plural-exp.h> instead of
31497 "plural-exp.h".
31498
31499 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31500
31501 [BZ #18822]
31502 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
31503 "getsourcefilter.h".
31504 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
31505 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
31506 "getsourcefilter.h".
31507 (__get_sol): Removed.
31508
31509 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31510
31511 [BZ #18822]
31512 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
31513 to ...
31514 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
31515
31516 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31517
31518 [BZ #18822]
31519 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
31520 attribute_hidden.
31521
31522 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31523
31524 [BZ #18822]
31525 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
31526
31527 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31528
31529 [BZ #18822]
31530 * include/search.h (__tdestroy): Add libc_hidden_proto.
31531 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
31532
31533 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31534
31535 [BZ #18822]
31536 * include/assert.h (__assert_fail_base): Add attribute_hidden.
31537
31538 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31539
31540 [BZ #18822]
31541 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
31542 attribute_hidden.
31543
31544 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31545
31546 [BZ #18822]
31547 * include/signal.h (__kill): Add libc_hidden_proto.
31548 (__sigblock): Likewise.
31549 (__sigprocmask): Likewise.
31550 (__sigaltstack): Likewise.
31551 * signal/kill.c (__kill): Add libc_hidden_def.
31552 * signal/sigblock.c (__sigblock): Likewise.
31553 * signal/sigprocmask.c (__sigprocmask): Likewise.
31554 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
31555 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
31556 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
31557 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
31558 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
31559 Likewise.
31560 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
31561 Likewise.
31562 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
31563 (__sigprocmask): Likewise.
31564 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
31565 Likewise.
31566 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
31567 (__sigprocmask): Likewise.
31568 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
31569 Likewise.
31570
31571 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31572
31573 [BZ #18822]
31574 * include/string.h (__strsep): Add libc_hidden_proto.
31575 * string/strsep.c (__strsep): Add libc_hidden_def.
31576
31577 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31578
31579 [BZ #18822]
31580 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
31581 attribute_hidden.
31582 (__spawni): Likewise.
31583
31584 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31585
31586 [BZ #18822]
31587 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
31588 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
31589 libc_hidden_def.
31590
31591 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31592
31593 [BZ #18822]
31594 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
31595
31596 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31597
31598 [BZ #18822]
31599 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
31600 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
31601 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
31602 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
31603 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
31604 Likewise.
31605 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
31606 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
31607
31608 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31609
31610 [BZ #18822]
31611 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
31612 (__dcigettext): Likewise.
31613
31614 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31615
31616 [BZ #18822]
31617 * include/sys/sysinfo.h (__get_nprocs_conf): Add
31618 libc_hidden_proto.
31619 (__get_nprocs): Likewise.
31620 (__get_phys_pages): Likewise.
31621 (__get_avphys_pages): Likewise.
31622 (__get_child_max): Add attribute_hidden.
31623 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
31624 (__get_nprocs): Likewise.
31625 (__get_phys_pages): Likewise.
31626 (__get_avphys_pages): Likewise.
31627 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
31628 libc_hidden_def.
31629 (__get_nprocs): Likewise.
31630 (__get_phys_pages): Likewise.
31631 (__get_avphys_pages): Likewise.
31632 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
31633 libc_hidden_def.
31634 (__get_nprocs_conf): Likewise.
31635 (__get_phys_pages): Likewise.
31636 (__get_avphys_pages): Likewise.
31637
31638 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31639
31640 [BZ #18822]
31641 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
31642 attribute_hidden.
31643 (__netlink_close): Likewise.
31644 (__netlink_free_handle): Likewise.
31645 (__netlink_request): Likewise.
31646
31647 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31648
31649 [BZ #18822]
31650 * include/rpc/rpc.h (__rpc_thread_variables): Add
31651 attribute_hidden.
31652 (__rpc_thread_svc_cleanup): Likewise.
31653 (__rpc_thread_clnt_cleanup): Likewise.
31654 (__rpc_thread_key_cleanup): Likewise.
31655
31656 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31657
31658 [BZ #18822]
31659 * include/sys/uio.h (__readv): Add libc_hidden_proto.
31660 (__writev): Likewise.
31661 * misc/readv.c (__readv): Add libc_hidden_def.
31662 * misc/writev.c (__writev): Likewise.
31663 * sysdeps/posix/readv.c (__readv): Likewise.
31664 * sysdeps/posix/writev.c (__writev): Likewise.
31665 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
31666 (__readv): Likewise.
31667 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
31668 (__writev): Likewise.
31669
31670 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31671
31672 [BZ #18822]
31673 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
31674 (__regcomp): Add libc_hidden_proto.
31675 (__regexec): Likewise.
31676 (__regfree): Likewise.
31677 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
31678 (__regfree): Likewise.
31679 * posix/regexec.c (__regexec): Likewise.
31680
31681 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31682
31683 [BZ #18822]
31684 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
31685 (__getutent): Likewise.
31686 (__getutid): Likewise.
31687 (__getutline): Likewise.
31688 (__pututline): Likewise.
31689 (__getutent_r): Likewise.
31690 (__getutid_r): Likewise.
31691 (__getutline_r): Likewise.
31692 (__utmpname): Add attribute_hidden.
31693 (__setutent): Likewise.
31694 (__endutent): Likewise.
31695 * login/getutent.c (__getutent): Add libc_hidden_def.
31696 * login/getutent_r.c (__getutent_r): Likewise.
31697 (__pututline): Likewise.
31698 * login/getutid.c (__getutid): Likewise.
31699 * login/getutid_r.c (__getutid_r): Likewise.
31700 * login/getutline.c (__getutline): Likewise.
31701 * login/getutline_r.c (__getutline_r): Likewise.
31702 * login/updwtmp.c (__updwtmp): Likewise.
31703
31704 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31705
31706 [BZ #18822]
31707 * include/dirent.h (__opendir): Always add attribute_hidden.
31708 (__fdopendir): Likewise.
31709 (__closedir): Likewise.
31710 (__readdir): Likewise.
31711 (__readdir64): Add libc_hidden_proto.
31712 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
31713 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
31714 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
31715 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
31716 New alias.
31717
31718 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31719
31720 [BZ #18822]
31721 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
31722 * include/netdb.h (__gethostbyaddr_r): Likewise.
31723 (__gethostbyname_r): Likewise.
31724 (__gethostbyname2_r): Likewise.
31725 (__getnetbyaddr_r): Likewise.
31726 (__getnetbyname_r): Likewise.
31727 (__getservbyname_r): Likewise.
31728 (__getservbyport_r): Likewise.
31729 (__getprotobyname_r): Likewise.
31730 (__getprotobynumber_r): Likewise.
31731 (__getnetgrent_r): Likewise.
31732 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
31733 (__getrpcbynumber_r): Likewise.
31734 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
31735
31736 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31737
31738 [BZ #18822]
31739 * include/stdio.h (__fcloseall): Add attribute_hidden.
31740 (__getline): Likewise.
31741 (__path_search): Likewise.
31742 (__gen_tempname): Likewise.
31743 (__libc_message): Likewise.
31744 (__flockfile): Likewise.
31745 (__funlockfile): Likewise.
31746 (__fxprintf): Likewise.
31747 (__fxprintf_nocancel): Likewise.
31748
31749 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31750
31751 [BZ #18822]
31752 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
31753 (__sgetsgent_r): Likewise.
31754
31755 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31756
31757 [BZ #18822]
31758 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
31759 (__statfs64): Likewise.
31760 (__fstatfs64): Likewise.
31761 * include/sys/statvfs.h (__statvfs64): Likewise.
31762 (__fstatvfs64): Likewise.
31763 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
31764 (__statfs_filesize_max): Likewise.
31765 (__statfs_symlinks): Likewise.
31766 (__statfs_chown_restricted): Likewise.
31767
31768 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31769
31770 [BZ #18822]
31771 * include/time.h (__tzstring): Add attribute_hidden.
31772 (__tzfile_read): Likewise.
31773 (__tzfile_compute): Likewise.
31774 (__tzfile_default): Likewise.
31775 (__tzset_parse_tz): Likewise.
31776 (__offtime): Likewise.
31777 (__asctime_r): Likewise.
31778 (__tzset): Likewise.
31779 (__tz_convert): Likewise.
31780 (__getdate_r): Likewise.
31781 (__getclktck): Likewise.
31782
31783 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31784
31785 [BZ #18822]
31786 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
31787 (__nscd_unmap): Likewise.
31788 (__nscd_cache_search): Likewise.
31789 (__nscd_get_nl_timestamp): Likewise.
31790 (__nscd_getpwnam_r): Likewise.
31791 (__nscd_getpwuid_r): Likewise.
31792 (__nscd_getgrnam_r): Likewise.
31793 (__nscd_getgrgid_r): Likewise.
31794 (__nscd_gethostbyname_r): Likewise.
31795 (__nscd_gethostbyname2_r): Likewise.
31796 (__nscd_gethostbyaddr_r): Likewise.
31797 (__nscd_getai): Likewise.
31798 (__nscd_getgrouplist): Likewise.
31799 (__nscd_getservbyname_r): Likewise.
31800 (__nscd_getservbyport_r): Likewise.
31801 (__nscd_innetgr): Likewise.
31802 (__nscd_setnetgrent): Likewise.
31803
31804 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31805
31806 [BZ #18822]
31807 * include/gmp.h: Declare internal functions only if _ISOMAC is
31808 undefined.
31809 (__mpn_extract_double): Add attribute_hidden.
31810 (__mpn_extract_long_double): Likewise.
31811 (__mpn_extract_float128): Likewise.
31812 (__mpn_construct_float): Likewise.
31813 (__mpn_construct_double): Likewise.
31814 (__mpn_construct_long_double): Likewise.
31815 (__mpn_construct_float128): Likewise.
31816 (mpn_add_1): Likewise.
31817 (mpn_addmul_1): Likewise.
31818 (mpn_add_n): Likewise.
31819 (mpn_cmp): Likewise.
31820 (mpn_divrem): Likewise.
31821 (mpn_lshift): Likewise.
31822 (mpn_mul): Likewise.
31823 (mpn_mul_1): Likewise.
31824 (mpn_rshift): Likewise.
31825 (mpn_sub_1): Likewise.
31826 (mpn_submul_1): Likewise.
31827 (mpn_sub_n): Likewise.
31828
31829 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31830
31831 [BZ #18822]
31832 * include/wchar.h (__wcsnlen): Add attribute_hidden.
31833 (__wcscat): Likewise.
31834 (__btowc): Likewise.
31835 (__wcrtomb): Likewise.
31836 (__mbsrtowcs): Likewise.
31837 (__wcsrtombs): Likewise.
31838 (__mbsnrtowcs): Likewise.
31839 (__wcsnrtombs): Likewise.
31840 (__wcsncpy): Likewise.
31841 (__wcpncpy): Likewise.
31842 (__wmemcpy): Likewise.
31843 (__wmempcpy): Likewise.
31844 (__wmemmove): Likewise.
31845 (__wcschrnul): Likewise.
31846 (__vfwscanf): Likewise.
31847 (__vswprintf): Likewise.
31848 (__fwprintf): Likewise.
31849 (__vfwprintf): Likewise.
31850
31851 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31852
31853 [BZ #18822]
31854 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
31855 (__getgrgid_r): Likewise.
31856 (__getgrnam_r): Likewise.
31857 * include/pwd.h (__getpwuid_r): Likewise.
31858 (__getpwnam_r): Likewise.
31859 (__fgetpwent_r): Likewise.
31860 * include/shadow.h (__getspnam_r): Likewise.
31861 (__sgetspent_r): Likewise.
31862 (__fgetspent_r): Likewise.
31863
31864 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31865
31866 [BZ #18822]
31867 * include/unistd.h (__access): Add attribute_hidden.
31868 (__lseek64): Likewise.
31869 (__libc_pread64): Likewise.
31870 (__pipe2): Likewise.
31871 (__sleep): Likewise.
31872 (__chdir): Likewise.
31873 (__fchdir): Likewise.
31874 (__getcwd): Likewise.
31875 (__rmdir): Likewise.
31876 (__execvpe): Likewise.
31877 (__execve): Likewise.
31878 (__setsid): Likewise.
31879 (__getuid): Likewise.
31880 (__geteuid): Likewise.
31881 (__getgid): Likewise.
31882 (__getegid): Likewise.
31883 (__getgroups): Likewise.
31884 (__group_member): Likewise.
31885 (__ttyname_r): Likewise.
31886 (__isatty): Likewise.
31887 (__readlink): Likewise.
31888 (__unlink): Likewise.
31889 (__gethostname): Likewise.
31890 (__profil): Likewise.
31891 (__getdtablesize): Likewise.
31892 (__brk): Likewise.
31893 (__ftruncate): Likewise.
31894 (__ftruncate64): Likewise.
31895
31896 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31897
31898 [BZ #18822]
31899 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
31900 * argp/argp-fs-xinl.c: Likewise.
31901 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
31902 * argp/argp-parse.c: Include <argp.h>.
31903 * argp/argp-xinl.c: Likewise.
31904 * include/argp-fmtstream.h: New file.
31905 * include/argp.h (__argp_error): Add attribute_hidden.
31906 (__argp_failure): Likewise.
31907 (__argp_input): Likewise.
31908 (__argp_state_help): Likewise.
31909
31910 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31911
31912 [BZ #18822]
31913 * include/wchar.h (____wcstof_l_internal): New prototype.
31914 (____wcstod_l_internal): Likewise.
31915 (____wcstold_l_internal): Likewise.
31916 (____wcstol_l_internal): Likewise.
31917 (____wcstoul_l_internal): Likewise.
31918 (____wcstoll_l_internal): Likewise.
31919 (____wcstoull_l_internal): Likewise.
31920 (____wcstof128_l_internal): Likewise.
31921 * sysdeps/ieee754/float128/wcstof128.c
31922 (____wcstof128_l_internal): Removed.
31923 * sysdeps/ieee754/float128/wcstof128_l.c
31924 (____wcstof128_l_internal): Likewise.
31925 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
31926 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
31927 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
31928 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
31929 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
31930 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
31931 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
31932 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
31933 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
31934 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
31935
31936 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31937
31938 [BZ #18822]
31939 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
31940 instead of <sys/statvfs.h>.
31941 (__internal_statvfs): Removed.
31942 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
31943 instead of <sys/statvfs.h>.
31944 (__internal_statvfs64): Removed.
31945 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
31946 "internal_statvfs.h" instead of <sys/statvfs.h>.
31947 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
31948 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
31949 instead of <sys/statvfs.h>.
31950 (__internal_statvfs): Removed.
31951 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
31952 instead of <sys/statvfs.h>.
31953 (__internal_statvfs64): Removed.
31954
31955 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31956
31957 [BZ #18822]
31958 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
31959 (__gconv_close): Likewise.
31960 (__gconv): Likewise.
31961 (__gconv_find_transform): Likewise.
31962 (__gconv_lookup_cache): Likewise.
31963 (__gconv_compare_alias_cache): Likewise.
31964 (__gconv_load_cache): Likewise.
31965 (__gconv_get_path): Likewise.
31966 (__gconv_close_transform): Likewise.
31967 (__gconv_release_cache): Likewise.
31968 (__gconv_find_shlib): Likewise.
31969 (__gconv_release_shlib): Likewise.
31970 (__gconv_get_builtin_trans): Likewise.
31971 (__gconv_compare_alias): Likewise.
31972 * include/dlfcn.h (_dlerror_run): Likewise.
31973 * include/stdio.h (__fortify_fail_abort): Likewise.
31974 * include/time.h (__tz_compute): Likewise.
31975 (__strptime_internal): Likewise.
31976 * intl/gettextP.h (_nl_find_domain): Likewise.
31977 (_nl_load_domain): Likewise.
31978 (_nl_find_msg): Likewise.
31979 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
31980 (EXTRACT_PLURAL_EXPRESSION): Likewise.
31981 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
31982 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
31983 (__gai_find_request): Likewise.
31984 (__gai_remove_request): Likewise.
31985 (__gai_notify): Likewise.
31986 (__gai_notify_only): Likewise.
31987 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
31988 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
31989 (_dl_non_dynamic_init): Likewise.
31990 (_dl_aux_init): Likewise.
31991 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
31992 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
31993 Likewise.
31994 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
31995 (__wcsmbs_clone_conv): Likewise.
31996 (__wcsmbs_named_conv): Likewise.
31997
31998 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31999
32000 [BZ #18822]
32001 * include/stdlib.h (__random): Add attribute_hidden.
32002 (__random_r): Likewise.
32003 (__srandom_r): Likewise.
32004 (__initstate_r): Likewise.
32005 (__setstate_r): Likewise.
32006 (__erand48_r): Likewise.
32007 (__nrand48_r): Likewise.
32008 (__jrand48_r): Likewise.
32009 (__srand48_r): Likewise.
32010 (__seed48_r): Likewise.
32011 (__lcong48_r): Likewise.
32012 (__drand48_iterate): Likewise.
32013 (__setenv): Likewise.
32014 (__unsetenv): Likewise.
32015 (__clearenv): Likewise.
32016 (__ptsname_r): Likewise.
32017 (__posix_openpt): Likewise.
32018 (__add_to_environ): Likewise.
32019 (__realpath): Add libc_hidden_proto.
32020 (__ecvt_r): Likewise.
32021 (__fcvt_r): Likewise.
32022 (__qecvt_r): Likewise.
32023 (__qfcvt_r): Likewise.
32024 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
32025 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
32026
32027 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32028
32029 [BZ #18822]
32030 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
32031 * include/time.h (__mktime_internal): Likewise.
32032 * libio/iolibio.h (__fopen_internal): Likewise.
32033
32034 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
32035
32036 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
32037 pointer in frame.
32038 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
32039 Correct offset used to restore PIC register.
32040
32041 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
32042
32043 [BZ libc/22165]
32044 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
32045 code to load address of __getcontext_ret when generating PIC code.
32046
32047 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
32048
32049 * elf/Makefile (tests-static-internal): Add
32050 tst-tls1-static-non-pie.
32051 (LDFLAGS-tst-tls1-static-non-pie): New.
32052 * elf/tst-tls1-static-non-pie.c: New file.
32053
32054 2017-09-29 Joseph Myers <joseph@codesourcery.com>
32055
32056 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
32057 (asinh): Define using libm_alias_double.
32058 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
32059 (cbrt): Define using libm_alias_double.
32060 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
32061 <libm-alias-double.h>.
32062 (copysign): Define using libm_alias_double.
32063 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
32064 (erf): Define using libm_alias_double.
32065 (erfc): Likewise.
32066 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
32067 (expm1): Define using libm_alias_double.
32068 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
32069 (fabs): Define using libm_alias_double.
32070 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
32071 libm_alias_double.
32072 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
32073 <libm-alias-double.h>.
32074 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
32075 libm_alias_double.
32076 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
32077 <libm-alias-double.h>.
32078 (getpayload): Define using libm_alias_double.
32079 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
32080 <libm-alias-double.h>.
32081 (llrint): Define using libm_alias_double.
32082 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
32083 (lrint): Define using libm_alias_double.
32084 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
32085 <libm-alias-double.h>.
32086 (nextup): Define using libm_alias_double.
32087 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
32088 <libm-alias-double.h>.
32089 (roundeven): Define using libm_alias_double.
32090 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
32091 libm_alias_double.
32092 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
32093 <libm-alias-double.h>.
32094 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
32095 using libm_alias_double.
32096 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
32097 (cos): Define using libm_alias_double.
32098 (sin): Likewise.
32099 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
32100 <libm-alias-double.h>.
32101 (sincos): Define using libm_alias_double.
32102 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
32103 (tanh): Define using libm_alias_double.
32104 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
32105 <libm-alias-double.h>.
32106 (totalorder): Define using libm_alias_double.
32107 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
32108 <libm-alias-double.h>.
32109 (totalordermag): Define using libm_alias_double.
32110 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
32111 libm_alias_double.
32112 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
32113 libm_alias_double.
32114 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
32115 <libm-alias-double.h>.
32116 (getpayload): Define using libm_alias_double.
32117 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
32118 <libm-alias-double.h>.
32119 (roundeven): Define using libm_alias_double.
32120 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
32121 <libm-alias-double.h>.
32122 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
32123 <libm-alias-double.h>.
32124 (totalorder): Define using libm_alias_double.
32125 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
32126 <libm-alias-double.h>.
32127 (totalordermag): Define using libm_alias_double.
32128 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
32129 libc compat symbol here.
32130 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
32131 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
32132 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
32133 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
32134 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
32135 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
32136 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
32137 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
32138 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
32139 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
32140
32141 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
32142
32143 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
32144 _dl_relocate_static_pie instead of _dl_start to compute load
32145 address in static PIE. Return 0 if _DYNAMIC is undefined for
32146 static executable.
32147
32148 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
32149
32150 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
32151 _DYNAMIC is undefined for static executable.
32152
32153 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
32154
32155 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
32156
32157 2017-09-29 Joseph Myers <joseph@codesourcery.com>
32158
32159 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
32160
32161 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
32162
32163 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
32164 (__ieee754_lgamma_r): Use fabs rather than __fabs.
32165 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
32166 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
32167 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
32168 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
32169 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
32170 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
32171 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
32172 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
32173 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
32174 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
32175 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
32176 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
32177 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
32178 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
32179 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
32180
32181 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
32182
32183 * math/bits/cmathcalls.h (cimag): Remove inline.
32184 (creal): Remove inline.
32185 (conj): Remove inline.
32186
32187 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
32188
32189 * math/Makefile (type-float-routines): Add e_powf_log2_data.
32190 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
32191 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
32192 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
32193 (issignalingf_inline): Likewise.
32194 (POWF_LOG2_TABLE_BITS): Likewise.
32195 (POWF_LOG2_POLY_ORDER): Likewise.
32196 (POWF_SCALE_BITS): Likewise.
32197 (POWF_SCALE): Likewise.
32198 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
32199 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
32200 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
32201
32202 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
32203
32204 * math/Makefile (type-float-routines): Add e_log2f_data.
32205 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
32206 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
32207 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
32208 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
32209 * sysdeps/i386/fpu/e_log2f_data.c: New file.
32210 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
32211 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
32212
32213 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
32214
32215 * math/Makefile (type-float-routines): Add e_logf_data.
32216 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
32217 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
32218 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
32219 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
32220 * sysdeps/i386/fpu/e_logf_data.c: New file.
32221 * sysdeps/ia64/fpu/e_logf_data.c: New file.
32222 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
32223
32224 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
32225
32226 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
32227 undefined _DYNAMIC in PIE libc.a.
32228 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
32229 Likewse.
32230
32231 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
32232
32233 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
32234 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
32235 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
32236 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
32237 (__signbit): Remove.
32238 (__signbitl): Remove.
32239 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
32240 (__signbit): Remove.
32241 (__signbitl): Remove.
32242 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
32243 (__signbit): Remove.
32244 (__signbitl): Remove.
32245 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
32246 (__signbit): Remove.
32247 (__signbitl): Remove.
32248 * sysdeps/tile/bits/mathinline.h: Delete file.
32249 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
32250 (__signbit): Remove.
32251 (__signbitl): Remove.
32252
32253 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
32254
32255 * math/math.h: Improve handling of C99 isgreater macros.
32256 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
32257 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
32258 * sysdeps/powerpc/bits/mathinline.h: Likewise.
32259 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
32260 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
32261
32262 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
32263
32264 * sysdeps/aarch64/libm-test-ulps: Update.
32265
32266 2017-09-28 Joseph Myers <joseph@codesourcery.com>
32267
32268 [BZ #22225]
32269 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
32270 math_opt_barrier on argument when doing arithmetic on it.
32271 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
32272 Likewise. Use math_force_eval not math_opt_barrier after
32273 arithmetic.
32274 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
32275 math_opt_barrier on argument when doing arithmetic on it.
32276 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
32277 Likewise.
32278
32279 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
32280
32281 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
32282 libc_hidden_def.
32283 (__freeifaddrs): Likewise.
32284
32285 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
32286
32287 * include/dirent.h (__dirfd): New declaration.
32288 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
32289 alias.
32290 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
32291 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
32292 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
32293 * include/unistd.h (__revoke): New declaration.
32294 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
32295 alias.
32296 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
32297 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
32298 revoke.
32299 * include/dirent.h (__seekdir): New declaration.
32300 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
32301 redefine as weak alias.
32302 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
32303 of seekdir.
32304 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
32305 and use libc_hidden_def on them.
32306 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
32307 them.
32308 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
32309 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
32310 instead of getifaddrs and freeifaddrs.
32311
32312 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
32313
32314 [BZ #18822]
32315 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
32316 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
32317 (__dso_handle): Remove declaration.
32318 * dlfcn/tstatexit.c (__dso_handle): Removed.
32319 (main): Don't check __dso_handle.
32320 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
32321 (main): Don't check __dso_handle.
32322 * include/dso_handle.h: New file.
32323 * malloc/mtrace.c: Include <dso_handle.h>.
32324 (mtrace): Pass __dso_handle directly.
32325 * nptl/pthread_atfork.c: Include <dso_handle.h>.
32326 (__dso_handle): Remove declaration.
32327 (__pthread_atfork): Pass __dso_handle directly.
32328 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
32329 (__dso_handle): Removed.
32330 * posix/wordexp-test.c: Include <dso_handle.h>.
32331 (__dso_handle): Remove declaration.
32332 (__app_register_atfork): Pass __dso_handle directly.
32333 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
32334 (__dso_handle): Remove declaration.
32335 (at_quick_exit): Pass __dso_handle directly.
32336 * stdlib/atexit.c: Include <dso_handle.h>.
32337 (__dso_handle): Remove declaration.
32338 (atexit): Pass __dso_handle directly.
32339 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
32340 (__dso_handle): Removed.
32341
32342 2017-09-26 Joseph Myers <joseph@codesourcery.com>
32343
32344 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
32345 using VDSO.
32346
32347 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
32348
32349 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
32350 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
32351 values to correct default value for given type.
32352
32353 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
32354
32355 [BZ #22101]
32356 * elf/Makefile (tests): Add tst-debug1.
32357 ($(objpfx)tst-debug1): New.
32358 ($(objpfx)tst-debug1.out): Likewise.
32359 ($(objpfx)tst-debug1mod1.so): Likewise.
32360 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
32361 with p_filesz == 0.
32362 * elf/tst-debug1.c: New file.
32363
32364 2017-09-26 Joseph Myers <joseph@codesourcery.com>
32365
32366 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
32367 Define using __ifunc.
32368
32369 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
32370
32371 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
32372 exp2f() values.
32373
32374 2017-09-26 Joseph Myers <joseph@codesourcery.com>
32375
32376 [BZ #22156]
32377 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
32378
32379 2017-09-26 Florian Weimer <fweimer@redhat.com>
32380
32381 * resolv/Makefile (tests-internal): Fix typo in comment.
32382
32383 2017-09-26 Florian Weimer <fweimer@redhat.com>
32384
32385 * resolv/nss_dns/dns-host.c: Fix typo in comment.
32386
32387 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32388
32389 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
32390 Use an union instead of a max_align_t array for __space,
32391 so that __space is the same size on all platforms.
32392 * malloc/scratch_buffer_grow_preserve.c
32393 (__libc_scratch_buffer_grow_preserve): Likewise.
32394
32395 [BZ #22183]
32396 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
32397 version to 2.
32398 * posix/Makefile (routines): Add glob-lstat-compat and
32399 glob64-lstat-compat.
32400 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
32401 * posix/glob-lstat-compat.c: New file.
32402 * posix/glob64-lstat-compat.c: Likewise.
32403 * posix/tst-glob_lstat_compat.c: Likewise.
32404 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
32405 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
32406 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
32407 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
32408 Likewise.
32409 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
32410 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
32411 * posix/glob.c (glob_lstat): New function.
32412 (glob): Rename to __glob and add versioned symbol to 2.27.
32413 (glob_in_dir): Use glob_lstat.
32414 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
32415 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
32416 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
32417 2.27.
32418 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
32419 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
32420 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
32421 gl_lstat on glob call.
32422 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
32423 and glob64 symbols.
32424 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
32425 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
32426 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
32427 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
32428 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
32429 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
32430 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
32431 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
32432 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
32433 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
32434 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
32435 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
32436 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
32437 Likewise.
32438 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
32439 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
32440 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
32441 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
32442 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
32443 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
32444 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
32445 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
32446 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
32447 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
32448 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
32449 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
32450
32451 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
32452
32453 * configure.ac (AS): Require binutils 2.25 or later.
32454 * configure: Regenerated.
32455
32456 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
32457
32458 [BZ #22207]
32459 * stdlib/test-atexit-race-common.c (do_test): Minimize required
32460 VM size.
32461
32462 2017-09-25 DJ Delorie <dj@redhat.com>
32463
32464 [BZ #22161]
32465 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
32466 resetting timeout.
32467
32468 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
32469
32470 * sysdeps/ieee754/dbl-64/sincos32.h
32471 [SINCCOS32_H]: Remove define.
32472 [SINCOS32_H]: Define.
32473
32474 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
32475
32476 * math/Versions (expf): New libm symbol at GLIBC_2.27.
32477 (exp2f): Likewise.
32478 * math/w_exp2f.c: New file.
32479 * math/w_expf.c: New file.
32480 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
32481 * math/w_expf_compat.c (__expf_compat): Likewise.
32482 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
32483 * sysdeps/ia64/fpu/e_expf.S: Likewise.
32484 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
32485 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
32486 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
32487 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
32488 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
32489 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
32490 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
32491 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
32492 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
32493 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
32494 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
32495 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
32496 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
32497 Likewise.
32498 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
32499 Likewise.
32500 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
32501 Likewise.
32502 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
32503 Likewise.
32504 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
32505 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
32506 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
32507 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
32508 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
32509 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
32510 Likewise.
32511 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
32512 Likewise.
32513 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
32514 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
32515 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
32516
32517 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
32518
32519 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
32520 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
32521 (roundtoint, converttoint): Likewise.
32522 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
32523 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
32524 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
32525 * sysdeps/ieee754/flt-32/math_config.h: New file.
32526 * sysdeps/ieee754/flt-32/math_errf.c: New file.
32527 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
32528 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
32529 * sysdeps/i386/fpu/math_errf.c: New file.
32530 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
32531 * sysdeps/ia64/fpu/math_errf.c: New file.
32532 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
32533 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
32534
32535 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
32536
32537 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
32538 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
32539 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
32540 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
32541 to make sure that these symbols are defined.
32542 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
32543 of <limits.h>
32544 (__need_NULL): Do not define.
32545 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
32546 alignment.
32547 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
32548 CMGROUP_MAX, cmsgcred): Do not define.
32549 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
32550 NULL.
32551 * bits/socket.h: Likewise.
32552 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
32553 __gettimeofday instead of gettimeofday.
32554 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
32555 instead of settimeofday.
32556
32557 2017-09-22 Joseph Myers <joseph@codesourcery.com>
32558
32559 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
32560 (asinhf): Define using libm_alias_float.
32561 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
32562 (atanf): Define using libm_alias_float.
32563 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
32564 (cbrtf): Define using libm_alias_float.
32565 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
32566 (ceilf): Define using libm_alias_float.
32567 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
32568 <libm-alias-float.h>.
32569 (copysignf): Define using libm_alias_float.
32570 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
32571 (cosf): Define using libm_alias_float.
32572 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
32573 (erff): Define using libm_alias_float.
32574 (erfcf): Likewise.
32575 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
32576 (expm1f): Define using libm_alias_float.
32577 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
32578 (fabsf): Define using libm_alias_float.
32579 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
32580 (floorf): Define using libm_alias_float.
32581 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
32582 (frexpf): Define using libm_alias_float.
32583 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
32584 libm_alias_float.
32585 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
32586 <libm-alias-float.h>.
32587 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
32588 libm_alias_float.
32589 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
32590 <libm-alias-float.h>.
32591 (getpayloadf): Define using libm_alias_float.
32592 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
32593 <libm-alias-float.h>.
32594 (llrintf): Define using libm_alias_float.
32595 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
32596 <libm-alias-float.h>.
32597 (llroundf): Define using libm_alias_float.
32598 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
32599 (logbf): Define using libm_alias_float.
32600 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
32601 (lrintf): Define using libm_alias_float.
32602 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
32603 (lroundf): Define using libm_alias_float.
32604 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
32605 (modff): Define using libm_alias_float.
32606 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
32607 <libm-alias-float.h>.
32608 (nearbyintf): Define using libm_alias_float.
32609 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
32610 <libm-alias-float.h>.
32611 (nextafterf): Define using libm_alias_float.
32612 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
32613 <libm-alias-float.h>.
32614 (nextupf): Define using libm_alias_float.
32615 * sysdeps/ieee754/flt-32/s_remquof.c: Include
32616 <libm-alias-float.h>.
32617 (remquof): Define using libm_alias_float.
32618 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
32619 (rintf): Define using libm_alias_float.
32620 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
32621 <libm-alias-float.h>.
32622 (roundevenf): Define using libm_alias_float.
32623 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
32624 (roundf): Define using libm_alias_float.
32625 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
32626 using libm_alias_float.
32627 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
32628 <libm-alias-float.h>.
32629 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
32630 Define using libm_alias_float.
32631 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
32632 <libm-alias-float.h>.
32633 (sincosf): Define using libm_alias_float.
32634 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
32635 (sinf): Define using libm_alias_float.
32636 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
32637 (tanf): Define using libm_alias_float.
32638 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
32639 (tanhf): Define using libm_alias_float.
32640 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
32641 <libm-alias-float.h>.
32642 (totalorderf): Define using libm_alias_float.
32643 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
32644 <libm-alias-float.h>.
32645 (totalordermagf): Define using libm_alias_float.
32646 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
32647 (truncf): Define using libm_alias_float.
32648 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
32649 libm_alias_float.
32650 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
32651 libm_alias_float.
32652
32653 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
32654
32655 [BZ #22146]
32656 math/math.h: Let fpclassify use the builtin in C++ mode, even
32657 when optimazing for size.
32658
32659 2017-09-22 Joseph Myers <joseph@codesourcery.com>
32660
32661 * csu/Makefile (generated): Do not add version-info.h.
32662 (before-compile): Likewise.
32663 (all-Banner-files): Remove variable.
32664 ($(objpfx)version-info.h): Remove rule.
32665 * csu/version.c (banner): Do not include "version-info.h".
32666 * libidn/Banner: Remove.
32667 * manual/contrib.texi (Simon Josefsson): New entry.
32668
32669 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
32670
32671 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
32672 Remove conditionals on LDBL_MANT_DIG.
32673 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
32674 (__ieee754_lgammal_r): Likewise.
32675
32676 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
32677
32678 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
32679 _Float128 and L().
32680 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
32681 _Float128 and L(). Replace _Float128 with long double and L(x)
32682 with xL, throughout the file.
32683 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
32684 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
32685 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
32686 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
32687
32688 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
32689
32690 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
32691 sysdeps/ieee754/ldbl-128ibm.
32692 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
32693 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
32694 of including it. Keep _Float128 and L() intact. These will be
32695 reviewed by a separate patch.
32696 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
32697 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
32698 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
32699 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
32700
32701 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
32702
32703 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
32704 (__finitef128): Define to __redirect___finitef128.
32705 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
32706 (__isinff128): Define to __redirect___isinff128.
32707 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
32708 (__isnanf128): Define to __redirect___isnanf128.
32709
32710 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
32711
32712 * sysdeps/powerpc/powerpc64le/Makefile
32713 (CFLAGS-tst-strtod-nan-locale.c): New variable.
32714 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
32715
32716 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
32717 Carlos O'Donell <carlos@redhat.com>
32718
32719 [BZ #22180]
32720 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
32721 * stdlib/test-dlclose-exit-race.c: New file.
32722 * stdlib/test-dlclose-exit-race-helper.c: New file.
32723 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
32724
32725 2017-09-21 Joseph Myers <joseph@codesourcery.com>
32726
32727 * crypt/Banner: Remove file.
32728 * nptl/Banner: Likewise.
32729 * resolv/Banner: Likewise.
32730 * soft-fp/Banner: Likewise.
32731 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
32732 ($(objpfx)version.d): Remove dependency on banner.h.
32733 ($(objpfx)version.os): Likewise.
32734 * nptl/version.c (banner): Do not include banner.h.
32735 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
32736 Jelinek and BIND code.
32737
32738 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
32739 Carlos O'Donell <carlos@redhat.com>
32740
32741 * support/xdlfcn.h: New file.
32742 * support/xdlfcn.c: New file.
32743 * support/Makefile (libsupport-routines): Add xdlfcn.
32744 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
32745
32746 2017-09-20 Joseph Myers <joseph@codesourcery.com>
32747
32748 [BZ #20142]
32749 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32750 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
32751 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
32752 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
32753 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
32754 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
32755 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
32756 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
32757
32758 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
32759 Ricky Zhou <rickyz@google.com>
32760 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
32761
32762 [BZ #14333]
32763 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
32764 Remove atomics.
32765 (__new_exitfn): Fail registration when we finished at_exit processing.
32766 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
32767 * stdlib/on_exit.c (__on_exit): Likewise.
32768 * stdlib/exit.c (__exit_funcs_done): New variable.
32769 (__run_exit_handlers): Use __exit_funcs_lock.
32770 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
32771 declarations.
32772 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
32773 (test-cxa_atexit-race, test-on_exit-race): New tests.
32774 * stdlib/test-atexit-race-common.c: New file.
32775 * stdlib/test-atexit-race.c: New file.
32776 * stdlib/test-at_quick_exit-race.c: New file.
32777 * stdlib/test-cxa_atexit-race.c: New file.
32778 * stdlib/test-on_exit-race.c: New file.
32779
32780 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
32781
32782 * benchtests/Makefile: Add exp2f and log2f benchmarks.
32783 * benchtests/exp2f-inputs: Copy of expf-inputs.
32784 * benchtests/log2f-inputs: Copy of logf-inputs.
32785
32786 2017-09-19 Joseph Myers <joseph@codesourcery.com>
32787
32788 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
32789 Explicitly take address of first element of array arguments in
32790 call to INLINE_SYSCALL.
32791
32792 2017-09-19 Andreas Schwab <schwab@suse.de>
32793
32794 [BZ #22134]
32795 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
32796 execveat first.
32797 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
32798 unimplemented.
32799 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
32800 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
32801 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
32802 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
32803 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
32804 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
32805 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
32806 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
32807 * posix/Makefile (tests): Add tst-fexecve.
32808 * posix/tst-fexecve.c: New file.
32809
32810 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
32811
32812 * benchtests/Makefile: Add logf benchmark.
32813 * benchtests/logf-inputs: Add reduced trace from wrf_r.
32814
32815 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
32816
32817 * benchtests/Makefile: Add expf benchmark.
32818 * benchtests/expf-inputs: Add reduced trace from wrf_r.
32819
32820 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
32821
32822 * csu/Makefile: Add -funwind-tables to libc-start.c.
32823 * debug/Makefile: Add -funwind-tables to backtrace.c.
32824 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
32825 * sysdeps/arm/Makefile: Likewise.
32826 * sysdeps/i386/Makefile: Likewise.
32827 * sysdeps/m68k/Makefile: Likewise.
32828 * sysdeps/mips/Makefile: Likewise.
32829 * sysdeps/nios2/Makefile: Likewise.
32830 * sysdeps/sh/Makefile: Likewise.
32831 * sysdeps/sparc/Makefile: Likewise.
32832
32833 2017-09-19 Joseph Myers <joseph@codesourcery.com>
32834
32835 * benchtests/Makefile (bench-math): Add trunc and truncf.
32836 (CFLAGS-bench-trunc.c): New variable.
32837 (CFLAGS-bench-truncf.c): Likewise.
32838 * benchtests/trunc-inputs: New file.
32839 * benchtests/truncf-inputs: Likewise.
32840
32841 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
32842
32843 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
32844
32845 2017-09-18 Joseph Myers <joseph@codesourcery.com>
32846
32847 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
32848 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
32849 redefine.
32850 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
32851 (exp10l): Define as weak alias.
32852 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
32853 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
32854 and redefine.
32855 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
32856 (remainderl): Define as weak alias.
32857
32858 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
32859 (fmal): Define using libm_alias_ldouble.
32860 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
32861 (acoshl): Define using libm_alias_ldouble.
32862 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
32863 (acosl): Define using libm_alias_ldouble.
32864 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
32865 (asinl): Define using libm_alias_ldouble.
32866 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
32867 (atan2l): Define using libm_alias_ldouble.
32868 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
32869 (atanhl): Define using libm_alias_ldouble.
32870 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
32871 (coshl): Define using libm_alias_ldouble.
32872 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
32873 (exp10l): Define using libm_alias_ldouble.
32874 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
32875 (exp2l): Define using libm_alias_ldouble.
32876 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
32877 (expl): Define using libm_alias_ldouble.
32878 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
32879 (fmodl): Define using libm_alias_ldouble.
32880 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
32881 (hypotl): Define using libm_alias_ldouble.
32882 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
32883 (j0l): Define using libm_alias_ldouble.
32884 (y0l): Likewise.
32885 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
32886 (j1l): Define using libm_alias_ldouble.
32887 (y1l): Likewise.
32888 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
32889 (jnl): Define using libm_alias_ldouble.
32890 (ynl): Likewise.
32891 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
32892 (log10l): Define using libm_alias_ldouble.
32893 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
32894 (log2l): Define using libm_alias_ldouble.
32895 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
32896 (logl): Define using libm_alias_ldouble.
32897 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
32898 (powl): Define using libm_alias_ldouble.
32899 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
32900 (remainderl): Define using libm_alias_ldouble.
32901 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
32902 (sinhl): Define using libm_alias_ldouble.
32903 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
32904 (sqrtl): Define using libm_alias_ldouble.
32905 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
32906 (tgammal): Define using libm_alias_ldouble.
32907 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
32908 (exp10l): Do not use long_double_symbol here.
32909 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
32910 [LIBM_SVID_COMPAT] (remainderl): Likewise.
32911 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
32912 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
32913 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
32914 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
32915 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
32916 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
32917 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
32918 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
32919 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
32920 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
32921 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
32922 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
32923 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
32924 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
32925 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
32926 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
32927 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
32928 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
32929 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
32930 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
32931
32932 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
32933
32934 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
32935 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
32936
32937 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
32938
32939 * io/read.c (read): Add libc_hidden_weak.
32940 * sysdeps/mach/hurd/read.c (read): Likewise.
32941 * io/write.c (write): Likewise.
32942 * sysdeps/mach/hurd/write.c (write): Likewise.
32943 * io/pread64.c (__pread64): Likewise.
32944 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
32945 * posix/pread64.c (__pread64): Add libc_hidden_def.
32946
32947 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
32948
32949 * benchtests/scripts/compare_strings.py: New option -g.
32950 (draw_graph): Print a message that a graph is being generated.
32951 (process_results): Generate graph only if -g is passed.
32952 (main): Process option -g.
32953
32954 * benchtests/scripts/compare_strings.py (process_results):
32955 Better spacing for output.
32956
32957 * benchtests/scripts/compare_strings.py: Use argparse.
32958 * benchtests/README: Document existence of compare_strings.py.
32959
32960 2017-09-15 Joseph Myers <joseph@codesourcery.com>
32961
32962 * math/s_fma.c: Include <libm-alias-double.h>.
32963 (fma): Define using libm_alias_double.
32964 * math/s_nextafter.c: Include <libm-alias-double.h>.
32965 (nextafter): Define using libm_alias_double.
32966 * math/w_acos_compat.c: Include <libm-alias-double.h>.
32967 (acos): Define using libm_alias_double.
32968 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
32969 (aocsh): Define using libm_alias_double.
32970 * math/w_asin_compat.c: Include <libm-alias-double.h>.
32971 (asin): Define using libm_alias_double.
32972 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
32973 (atan2): Define using libm_alias_double.
32974 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
32975 (atanh): Define using libm_alias_double.
32976 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
32977 (cosh): Define using libm_alias_double.
32978 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
32979 (exp10): Define using libm_alias_double.
32980 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
32981 (exp2): Define using libm_alias_double.
32982 * math/w_exp_compat.c: Include <libm-alias-double.h>.
32983 (exp): Define using libm_alias_double.
32984 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
32985 (fmod): Define using libm_alias_double.
32986 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
32987 (hypot): Define using libm_alias_double.
32988 * math/w_j0_compat.c: Include <libm-alias-double.h>.
32989 (j0): Define using libm_alias_double.
32990 (y0): Likewise.
32991 * math/w_j1_compat.c: Include <libm-alias-double.h>.
32992 (j1): Define using libm_alias_double.
32993 (y1): Likewise.
32994 * math/w_jn_compat.c: Include <libm-alias-double.h>.
32995 (jn): Define using libm_alias_double.
32996 (yn): Likewise.
32997 * math/w_log10_compat.c: Include <libm-alias-double.h>.
32998 (log10): Define using libm_alias_double.
32999 * math/w_log2_compat.c: Include <libm-alias-double.h>.
33000 (log2): Define using libm_alias_double.
33001 * math/w_log_compat.c: Include <libm-alias-double.h>.
33002 (log): Define using libm_alias_double.
33003 * math/w_pow_compat.c: Include <libm-alias-double.h>.
33004 (pow): Define using libm_alias_double.
33005 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
33006 (remainder): Define using libm_alias_double.
33007 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
33008 (sinh): Define using libm_alias_double.
33009 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
33010 (sqrt): Define using libm_alias_double.
33011 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
33012 (tgamma): Define using libm_alias_double.
33013 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
33014 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
33015 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
33016 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
33017 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
33018 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
33019 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
33020 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
33021 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
33022 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
33023 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
33024 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
33025 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
33026 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
33027 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
33028 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
33029 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
33030 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
33031 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
33032 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
33033 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
33034 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
33035 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
33036 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
33037 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
33038
33039 * math/e_acoshl.c: Remove.
33040 * math/e_acosl.c: Likewise.
33041 * math/e_asinl.c: Likewise.
33042 * math/e_atan2l.c: Likewise.
33043 * math/e_atanhl.c: Likewise.
33044 * math/e_coshl.c: Likewise.
33045 * math/e_expl.c: Likewise.
33046 * math/e_fmodl.c: Likewise.
33047 * math/e_gammal_r.c: Likewise.
33048 * math/e_hypotl.c: Likewise.
33049 * math/e_j0l.c: Likewise.
33050 * math/e_j1l.c: Likewise.
33051 * math/e_jnl.c: Likewise.
33052 * math/e_lgammal_r.c: Likewise.
33053 * math/e_log10l.c: Likewise.
33054 * math/e_log2l.c: Likewise.
33055 * math/e_logl.c: Likewise.
33056 * math/e_powl.c: Likewise.
33057 * math/e_rem_pio2l.c: Likewise.
33058 * math/e_sinhl.c: Likewise.
33059 * math/e_sqrtf128.c: Likewise.
33060 * math/e_sqrtl.c: Likewise.
33061 * math/k_cosl.c: Likewise.
33062 * math/k_sinl.c: Likewise.
33063 * math/k_tanl.c: Likewise.
33064 * math/s_asinhl.c: Likewise.
33065 * math/s_atanl.c: Likewise.
33066 * math/s_cbrtl.c: Likewise.
33067 * math/s_erfl.c: Likewise.
33068 * math/s_expm1l.c: Likewise.
33069 * math/s_log1pl.c: Likewise.
33070 * math/s_tanhl.c: Likewise.
33071
33072 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
33073
33074 [BZ #21745]
33075 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
33076 [$(subdir) = math] (sysdep_calls): New variable. Has the
33077 previous contents of sysdep_routines, but re-sorted..
33078 [$(subdir) = math] (sysdep_routines): Re-use the contents from
33079 sysdep_calls.
33080 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
33081 defined in sysdep_calls and replace by the respective m_* names.
33082 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
33083 (compat_symbol): Undefine to avoid duplicated compat symbols in
33084 libc.
33085
33086 2017-09-15 Joseph Myers <joseph@codesourcery.com>
33087
33088 * math/s_fmaf.c: Include <libm-alias-float.h>.
33089 (fmaf): Define using libm_alias_float.
33090 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
33091 (acosf): Define using libm_alias_float.
33092 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
33093 (acoshf): Define using libm_alias_float.
33094 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
33095 (asinf): Define using libm_alias_float.
33096 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
33097 (atan2f): Define using libm_alias_float.
33098 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
33099 (atanhf): Define using libm_alias_float.
33100 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
33101 (coshf): Define using libm_alias_float.
33102 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
33103 (exp10f): Define using libm_alias_float.
33104 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
33105 (fmodf): Define using libm_alias_float.
33106 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
33107 (hypotf): Define using libm_alias_float.
33108 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
33109 (j0f): Define using libm_alias_float.
33110 (y0f): Likewise.
33111 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
33112 (j1f): Define using libm_alias_float.
33113 (y1f): Likewise.
33114 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
33115 (jnf): Define using libm_alias_float.
33116 (ynf): Likewise.
33117 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
33118 (log10f): Define using libm_alias_float.
33119 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
33120 (log2f): Define using libm_alias_float.
33121 * math/w_logf_compat.c: Include <libm-alias-float.h>.
33122 (logf): Define using libm_alias_float.
33123 * math/w_powf_compat.c: Include <libm-alias-float.h>.
33124 (powf): Define using libm_alias_float.
33125 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
33126 (remainderf): Define using libm_alias_float.
33127 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
33128 (sinhf): Define using libm_alias_float.
33129 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
33130 (sqrtf): Define using libm_alias_float.
33131 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
33132 (tgammaf): Define using libm_alias_float.
33133
33134 2017-09-14 Joseph Myers <joseph@codesourcery.com>
33135
33136 * include/math.h (roundeven): Change hidden_proto call to
33137 __roundeven.
33138 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
33139 alias.
33140 [NO_LONG_DOUBLE] (__j0l): New strong alias.
33141 (y0): Rename to __y0 and define as weak alias.
33142 [NO_LONG_DOUBLE] (__y0l): New strong alias.
33143 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
33144 alias.
33145 (y0f): Rename to __y0f and define as weak alias.
33146 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
33147 alias.
33148 [NO_LONG_DOUBLE] (__j1l): New strong alias.
33149 (y1): Rename to __y1 and define as weak alias.
33150 [NO_LONG_DOUBLE] (__y1l): New strong alias.
33151 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
33152 alias.
33153 (y1f): Rename to __y1f and define as weak alias.
33154 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
33155 alias.
33156 [NO_LONG_DOUBLE] (__jnl): New strong alias.
33157 (yn): Rename to __yn and define as weak alias.
33158 [NO_LONG_DOUBLE] (__ynl): New strong alias.
33159 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
33160 alias.
33161 (ynf): Rename to __ynf and define as weak alias.
33162 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
33163 (fromfp): Define as weak alias.
33164 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
33165 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
33166 (fromfpx): Define as weak alias.
33167 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
33168 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
33169 __getpayload and define as weak alias.
33170 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
33171 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
33172 __roundeven and define as weak alias.
33173 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
33174 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
33175 __setpayload.
33176 (setpayload): Define as weak alias.
33177 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
33178 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
33179 __setpayloadsig.
33180 (setpayloadsig): Define as weak alias.
33181 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
33182 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
33183 __totalorder and define as weak alias.
33184 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
33185 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
33186 to __totalordermag and define as weak alias.
33187 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
33188 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
33189 (ufromfp): Define as weak alias.
33190 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
33191 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
33192 __ufromfpx.
33193 (ufromfpx): Define as weak alias.
33194 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
33195 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
33196 Rename to __getpayload and define as weak alias.
33197 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
33198 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
33199 Rename to __roundeven and define as weak alias.
33200 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
33201 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
33202 Rename to __totalorder and define as weak alias.
33203 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
33204 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
33205 (totalordermag): Rename to __totalordermag and define as weak
33206 alias.
33207 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
33208 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
33209 macro.
33210 (__roundevenl): Likewise.
33211 (__totalorderl): Likewise.
33212 (__totalordermagl): Likewise
33213 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
33214 __fromfpf128.
33215 (fromfpf128): Define as weak alias.
33216 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
33217 __fromfpxf128.
33218 (fromfpxf128): Define as weak alias.
33219 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
33220 __setpayloadf128.
33221 (setpayloadf128): Define as weak alias.
33222 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
33223 __setpayloadsigf128.
33224 (setpayloadsigf128): Define as weak alias.
33225 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
33226 __ufromfpf128.
33227 (ufromfpf128): Define as weak alias.
33228 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
33229 __ufromfpxf128.
33230 (ufromfpxf128): Define as weak alias.
33231 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
33232 (fromfpf): Define as weak alias.
33233 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
33234 __fromfpxf.
33235 (fromfpxf): Define as weak alias.
33236 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
33237 __getpayloadf and define as weak alias.
33238 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
33239 __roundevenf and define as weak alias.
33240 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
33241 __setpayloadf.
33242 (setpayloadf): Define as weak alias.
33243 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
33244 __setpayloadsigf.
33245 (setpayloadsigf): Define as weak alias.
33246 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
33247 __totalorderf and define as weak alias.
33248 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
33249 Rename to __totalordermagf and define as weak alias.
33250 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
33251 __ufromfpf.
33252 (ufromfpf): Define as weak alias.
33253 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
33254 __ufromfpxf.
33255 (ufromfpxf): Define as weak alias.
33256 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
33257 __fromfpl.
33258 (fromfpl): Define as weak alias.
33259 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
33260 __fromfpxl.
33261 (fromfpxl): Define as weak alias.
33262 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
33263 to __getpayloadl and define as weak alias.
33264 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
33265 __roundevenl and define as weak alias.
33266 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
33267 __setpayloadl.
33268 (setpayloadl): Define as weak alias.
33269 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
33270 __setpayloadsigl.
33271 (setpayloadsigl): Define as weak alias.
33272 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
33273 to __totalorderl and define as weak alias.
33274 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
33275 Rename to __totalordermagl and define as weak alias.
33276 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
33277 __ufromfpl.
33278 (ufromfpl): Define as weak alias.
33279 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
33280 __ufromfpxl.
33281 (ufromfpxl): Define as weak alias.
33282 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
33283 __fromfpl.
33284 (fromfpl): Define as weak alias.
33285 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
33286 __fromfpxl.
33287 (fromfpxl): Define as weak alias.
33288 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
33289 Rename to __getpayloadl and define as weak alias.
33290 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
33291 to __roundevenl and define as weak alias. Call __roundeven
33292 instead of roundeven.
33293 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
33294 __setpayloadl.
33295 (setpayloadl): Define as weak alias.
33296 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
33297 __setpayloadsigl.
33298 (setpayloadsigl): Define as weak alias.
33299 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
33300 Rename to __totalorderl and define as weak alias.
33301 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
33302 Rename to __totalordermagl and define as weak alias.
33303 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
33304 __ufromfpl.
33305 (ufromfpl): Define as weak alias.
33306 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
33307 __ufromfpxl.
33308 (ufromfpxl): Define as weak alias.
33309 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
33310 __fromfpl.
33311 (fromfpl): Define as weak alias.
33312 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
33313 __fromfpxl.
33314 (fromfpxl): Define as weak alias.
33315 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
33316 __getpayloadl and define as weak alias.
33317 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
33318 __roundevenl and define as weak alias.
33319 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
33320 __setpayloadl.
33321 (setpayloadl): Define as weak alias.
33322 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
33323 __setpayloadsigl.
33324 (setpayloadsigl): Define as weak alias.
33325 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
33326 __totalorderl and define as weak alias.
33327 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
33328 Rename to __totalordermagl and define as weak alias.
33329 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
33330 __ufromfpl.
33331 (ufromfpl): Define as weak alias.
33332 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
33333 __ufromfpxl.
33334 (ufromfpxl): Define as weak alias.
33335
33336 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
33337
33338 * benchtests/bench-string.h (realloc_bufs): New function.
33339 (test_init): Call it.
33340 * benchtests/bench-memset-large.c (do_test): Likewise.
33341 * benchtests/bench-memset.c (do_test): Likewise.
33342
33343 * benchtests/bench-memset-large.c: Print output in JSON
33344 format.
33345 * benchtests/bench-memset.c: Likewise.
33346
33347 2017-09-14 Mike FABIAN <mfabian@redhat.com>
33348
33349 [BZ #21084]
33350 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
33351 * iconvdata/Makefile: Add IBM858.
33352 * iconvdata/gconv-modules: Likewise.
33353 * iconvdata/tst-tables.sh: Likewise.
33354 * iconvdata/ibm858.c: New file.
33355 * localedata/charmaps/IBM858: Likewise.
33356
33357 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
33358
33359 [BZ #22023]
33360 * locales/niu_NZ (LC_TIME): copy "niu_NU".
33361 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
33362
33363 2017-09-14 Mike FABIAN <mfabian@redhat.com>
33364
33365 [BZ #22112]
33366 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
33367 and add tel_int_fmt.
33368
33369 2017-09-14 Joseph Myers <joseph@codesourcery.com>
33370
33371 * sysdeps/generic/libm-alias-float128.h: New file.
33372 * sysdeps/generic/math-type-macros-float128.h: Include
33373 <libm-alias-float128.h>.
33374 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
33375
33376 2017-09-13 Joseph Myers <joseph@codesourcery.com>
33377
33378 * sysdeps/generic/libm-alias-ldouble.h: New file.
33379 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
33380 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
33381 * sysdeps/generic/math-type-macros-ldouble.h: Include
33382 <libm-alias-ldouble.h>.
33383 [!declare_mgen_alias] (declare_mgen_alias): Define to use
33384 libm_alias_ldouble.
33385
33386 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
33387
33388 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
33389 * math/w_exp_compat.c: ... here.
33390 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
33391 * math/w_expf_compat.c: ... here.
33392 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
33393 * math/w_expl_compat.c: ... here.
33394 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
33395 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
33396 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
33397 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
33398
33399 2017-09-13 Joseph Myers <joseph@codesourcery.com>
33400
33401 * math/w_scalbln_template.c (strong_alias): Do not undefine and
33402 redefine.
33403 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
33404 macro.
33405 (ldexpl): Only define as compat symbol for libc, not libm.
33406 (scalbnl): Define as compat symbol for libc here.
33407 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
33408 define for [IS_IN (libc)].
33409 (__ldexpl_2): Remove alias.
33410 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
33411 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
33412 name in long_double_symbol call.
33413 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
33414 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
33415 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
33416 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
33417 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
33418 Remove macro.
33419 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
33420 Define as compat symbol.
33421
33422 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33423
33424 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
33425 * sysdeps/unix/sysv/linux/alpha/Makefile
33426 [$(subdir) = csu] (sysdep_routines): Remove rule.
33427
33428 2017-09-13 Joseph Myers <joseph@codesourcery.com>
33429
33430 * sysdeps/generic/libm-alias-double.h: New file.
33431 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
33432 * sysdeps/generic/math-type-macros-double.h: Include
33433 <libm-alias-double.h>.
33434 [declare_mgen_alias] (declare_mgen_alias): Define to use
33435 libm_alias_double.
33436 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
33437 (M_LIBM_NEED_COMPAT): Remove macro.
33438 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
33439 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
33440 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
33441 code.
33442 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33443 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33444 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33445 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33446 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33447 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33448 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33449 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33450 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33451 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33452 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33453 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33454 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33455 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33456 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33457 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33458 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33459 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33460 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33461 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33462 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33463 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33464 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33465 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33466 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33467 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33468 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33469 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
33470 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
33471 macro.
33472 (declare_mgen_alias): New macro.
33473 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
33474 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
33475 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
33476 (M_LIBM_NEED_COMPAT): Remove macro.
33477 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
33478 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
33479 <first-versions.h>.
33480 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
33481 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
33482
33483 2017-09-12 Joseph Myers <joseph@codesourcery.com>
33484
33485 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
33486 (declare_mgen_alias_2): Remove.
33487 * sysdeps/generic/math-type-macros-double.h
33488 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
33489 Likewise.
33490 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
33491 alias.
33492 (ldexp): Define with declare_mgen_alias.
33493 (scalbn): Likewise.
33494
33495 2017-09-12 Steve Ellcey <sellcey@cavium.com>
33496
33497 * grp/initgroups.c: Include config.h.
33498 (DEFAULT_CONFIG): New macro.
33499 (internal_getgrouplist): Use DEFAULT_CONFIG.
33500 * nscd/initgrcache.c (addinitgroupsX): Likewise.
33501 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
33502 (DEFAULT_DEFCONFIG): New macro.
33503 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
33504 * nss/grp-lookup.c: Include config.h
33505 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
33506 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
33507 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
33508 * manual/nss.texi: Update default values section.
33509
33510 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
33511
33512 [BZ #21967]
33513 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
33514 New.
33515 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
33516 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
33517 Handle MathVec_Prefer_No_AVX512.
33518 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
33519 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
33520 is set.
33521
33522 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
33523
33524 * posix/sched_primax.c (__sched_get_priority_max): Add
33525 libc_hidden_def.
33526 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
33527 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
33528 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
33529 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
33530 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
33531 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
33532 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
33533 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
33534 Add aliases.
33535
33536 2017-09-11 Joseph Myers <joseph@codesourcery.com>
33537
33538 * sysdeps/generic/libm-alias-float.h: New file.
33539 * sysdeps/generic/math-type-macros-float.h: Include
33540 <libm-alias-float.h>.
33541 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
33542
33543 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
33544
33545 [BZ #22093]
33546 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
33547 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
33548 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
33549 (HWCAP_IMPORTANT): Likewise.
33550 (HWCAP_X86_64): New enum.
33551 (HWCAP_X86_AVX512_1): Updated.
33552 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
33553 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
33554 (modules-names): Add x86_64/tst-x86_64mod-1.
33555 (LDFLAGS-tst-x86_64mod-1.so): New.
33556 ($(objpfx)tst-x86_64-1): Likewise.
33557 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
33558 (tst-x86_64-1-clean): Likewise.
33559 * sysdeps/x86_64/tst-x86_64-1.c: New file.
33560 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
33561
33562 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
33563
33564 * po/sv.po: Update translations.
33565 * po/fr.po: Likewise.
33566
33567 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
33568
33569 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
33570 seconds.
33571 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
33572 seconds.
33573 * elf/rtld-Rules: Fix $(error) use.
33574
33575 2017-09-09 Mike FABIAN <mfabian@redhat.com>
33576
33577 [BZ #14925]
33578 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
33579 * locale/iso-639.def: Change “Bengali” to “Bangla”.
33580 * localedata/locales/bn_BD: “Bengali” was still used in some
33581 comments. Change it to “Bangla”.
33582
33583 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
33584
33585 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
33586
33587 2017-09-08 Steve Ellcey <sellcey@cavium.com>
33588
33589 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
33590 thunderx2t99p1 to list of cpu names.
33591 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
33592 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
33593
33594 2017-09-08 Steve Ellcey <sellcey@cavium.com>
33595
33596 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
33597 Use strcmp instead of tunable_is_name.
33598
33599 2017-09-08 Joseph Myers <joseph@codesourcery.com>
33600
33601 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
33602 (F_GET_RW_HINT): New macro.
33603 [__USE_GNU] (F_SET_RW_HINT): Likewise.
33604 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
33605 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
33606 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
33607 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
33608 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
33609 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
33610 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
33611 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
33612
33613 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
33614 (F_ADD_SEALS): New macro.
33615 [__USE_GNU] (F_GET_SEALS): Likewise.
33616 [__USE_GNU] (F_SEAL_SEAL): Likewise.
33617 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
33618 [__USE_GNU] (F_SEAL_GROW): Likewise.
33619 [__USE_GNU] (F_SEAL_WRITE): Likewise.
33620
33621 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33622
33623 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
33624 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
33625 * posix/glob_internal.h (__glob_pattern_type):
33626 * posix/glob.c (glob):
33627 * posix/glob_pattern_p.c (__glob_pattern_p):
33628 Use them.
33629
33630 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
33631 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
33632 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
33633 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
33634 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
33635 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
33636 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
33637 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
33638 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
33639 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
33640 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
33641 * sysdeps/wordsize-64/glob.c: Likewise.
33642 * sysdeps/wordsize-64/glob64.c: Likewise.
33643 * sysdeps/wordsize-64/globfree.c: Likewise.
33644 * sysdeps/wordsize-64/globfree64.c: Likewise.
33645 * sysdeps/unix/sysv/linux/glob.c: New file.
33646 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
33647 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
33648 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
33649 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
33650 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
33651 adds !GLOB_NO_OLD_VERSION as an extra condition.
33652 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
33653 using relative path instead of absolute one.
33654 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
33655 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
33656 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
33657 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
33658 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
33659 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
33660
33661 [BZ #1062]
33662 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
33663 (glob): Use the same scratch buffer for both getlogin_r and
33664 getpwnam_r. Don’t require preallocation of the login name. This
33665 simplifies storage allocation, and corrects the handling of
33666 long login names.
33667
33668 [BZ #1062]
33669 * posix/glob.c (glob): Port recent patches to platforms
33670 lacking getpwnam_r.
33671 (glob): Fix longstanding misuse of errno after getpwnam_r, which
33672 returns an error number rather than setting errno.
33673
33674 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
33675 instead of GCC extension.
33676 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
33677 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
33678 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
33679
33680 [BZ #866]
33681 [BZ #1062]
33682 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
33683 * posix/bug-glob1.c: Remove file.
33684 * posix/tst-glob_symlinks.c: New file.
33685 * posix/glob.c (__lstat64): New macro.
33686 (is_dir): New function.
33687 (glob, glob_in_dir): Match symlinks even if they are dangling.
33688 (link_stat, link_exists_p): Remove. All uses removed.
33689
33690 [BZ #1062]
33691 [BZ #19971]
33692 * posix/glob.c (struct readdir_result): Remove skip_entry member.
33693 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
33694 All uses removed.
33695
33696 [BZ #1062]
33697 CVE-2017-15671
33698 * posix/Makefile (routines): Add globfree, globfree64, and
33699 glob_pattern_p.
33700 * posix/flexmember.h: New file.
33701 * posix/glob_internal.h: Likewise.
33702 * posix/glob_pattern_p.c: Likewise.
33703 * posix/globfree.c: Likewise.
33704 * posix/globfree64.c: Likewise.
33705 * sysdeps/gnu/globfree64.c: Likewise.
33706 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
33707 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
33708 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
33709 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
33710 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
33711 * sysdeps/wordsize-64/globfree.c: Likewise.
33712 * sysdeps/wordsize-64/globfree64.c: Likewise.
33713 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
33714 [NDEBUG): Remove comments.
33715 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
33716 (dirent_type): New type. Use uint_fast8_t not
33717 uint8_t, as C99 does not require uint8_t.
33718 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
33719 (struct readdir_result): Use dirent_type. Do not define skip_entry
33720 unless it is needed; this saves a byte on platforms lacking d_ino.
33721 (readdir_result_type, readdir_result_skip_entry):
33722 New functions, replacing ...
33723 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
33724 these functions, which were removed. This makes the callers
33725 easier to read. All callers changed.
33726 (D_INO_TO_RESULT): Now empty if there is no d_ino.
33727 (size_add_wrapv, glob_use_alloca): New static functions.
33728 (glob, glob_in_dir): Check for size_t overflow in several places,
33729 and fix some size_t checks that were not quite right.
33730 Remove old code using SHELL since Bash no longer
33731 uses this.
33732 (glob, prefix_array): Separate MS code better.
33733 (glob_in_dir): Remove old Amiga and VMS code.
33734 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
33735 separate files.
33736 (glob_in_dir): Do not rely on undefined behavior in accessing
33737 struct members beyond their bounds. Use a flexible array member
33738 instead
33739 (link_stat): Rename from link_exists2_p and return -1/0 instead of
33740 0/1. Caller changed.
33741 (glob): Fix memory leaks.
33742 * posix/glob64 (globfree64): Move to separate file.
33743 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
33744 (globfree64): Remove hidden alias.
33745 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
33746 oldglob.
33747 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
33748 separate file.
33749 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
33750 define.
33751 Move compat code to separate file.
33752 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
33753 separate file.
33754
33755 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
33756
33757 * resolv/tst-resolv-qtypes.c (domain): Changed to
33758 "const char domain[] =".
33759
33760 2017-09-07 Joseph Myers <joseph@codesourcery.com>
33761
33762 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
33763 version to 3.1.6.
33764
33765 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
33766 (TCP_MD5SIG_EXT): Likewise.
33767 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
33768 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
33769 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
33770
33771 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
33772
33773 2017-09-07 Mike FABIAN <mfabian@redhat.com>
33774
33775 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
33776
33777 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
33778
33779 [BZ #22100]
33780 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
33781
33782 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
33783
33784 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
33785 before assuming that the file is empty. Avoid testing buffer content
33786 when nread == 0.
33787
33788 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33789
33790 [BZ #18858]
33791 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
33792 Remove define.
33793 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
33794 Likewise.
33795 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
33796 Likewise.
33797 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
33798 Likewise.
33799 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
33800 Likewise.
33801 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
33802 Likewise.
33803 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
33804 Likewise.
33805
33806 2017-09-06 Florian Weimer <fweimer@redhat.com>
33807
33808 * malloc/dynarray_emplace_enlarge.c
33809 (__libc_dynarray_emplace_enlarge): Add missing else.
33810
33811 2017-09-06 Florian Weimer <fweimer@redhat.com>
33812
33813 [BZ #22096]
33814 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
33815 case of failure to obtain the global conf object.
33816
33817 2017-09-06 Florian Weimer <fweimer@redhat.com>
33818
33819 [BZ #22095]
33820 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
33821 dynarray allocation failure.
33822
33823 2017-09-06 Florian Weimer <fweimer@redhat.com>
33824
33825 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
33826 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
33827 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
33828 New functions.
33829 (response): Call them. Add 'p', '6' flag processing.
33830 (test_reverse): New function.
33831 (test_get2_any): Call it.
33832 (test_no_inet6): Add 'p' test.
33833 (test_inet6): Likewise.
33834
33835 2017-09-06 Florian Weimer <fweimer@redhat.com>
33836
33837 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
33838 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
33839 the QNAME.
33840 (test_gai): Adjust query names. Add additional tests.
33841 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
33842 test_get2. Adjust query names. Add additional tests.
33843 (test_no_inet6): New function, extracted from threadfunc.
33844 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
33845 Add additional tests.
33846
33847 2017-09-06 Mike FABIAN <mfabian@redhat.com>
33848
33849 [BZ #22070]
33850 * localedata/unicode-gen/utf8_gen.py: Set the width for
33851 characters with Prepended_Concatenation_Mark property to 1
33852 * localedata/charmaps/UTF-8: Updated using the improved script.
33853
33854 2017-09-06 Mike FABIAN <mfabian@redhat.com>
33855
33856 [BZ #21750]
33857 * localedata/unicode-gen/utf8_gen.py: Improve the script to
33858 use the range notation for all ranges of neighbouring characters
33859 with the same width.
33860
33861 2017-09-05 Joseph Myers <joseph@codesourcery.com>
33862
33863 * sysdeps/generic/math-type-macros-double.h: Include
33864 <math-svid-compat.h>.
33865 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
33866 * sysdeps/generic/math-type-macros-float.h: Include
33867 <math-svid-compat.h>.
33868 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
33869 * sysdeps/generic/math-type-macros-ldouble.h: Include
33870 <math-svid-compat.h>.
33871 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
33872 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
33873 condition.
33874 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
33875 * math/w_acosf_compat.c: Likewise.
33876 * math/w_acosh_compat.c: Likewise.
33877 * math/w_acoshf_compat.c: Likewise.
33878 * math/w_acoshl_compat.c: Likewise.
33879 * math/w_acosl_compat.c: Likewise.
33880 * math/w_asin_compat.c: Likewise.
33881 * math/w_asinf_compat.c: Likewise.
33882 * math/w_asinl_compat.c: Likewise.
33883 * math/w_atan2_compat.c: Likewise.
33884 * math/w_atan2f_compat.c: Likewise.
33885 * math/w_atan2l_compat.c: Likewise.
33886 * math/w_atanh_compat.c: Likewise.
33887 * math/w_atanhf_compat.c: Likewise.
33888 * math/w_atanhl_compat.c: Likewise.
33889 * math/w_cosh_compat.c: Likewise.
33890 * math/w_coshf_compat.c: Likewise.
33891 * math/w_coshl_compat.c: Likewise.
33892 * math/w_exp10_compat.c: Likewise.
33893 * math/w_exp10f_compat.c: Likewise.
33894 * math/w_exp10l_compat.c: Likewise.
33895 * math/w_exp2_compat.c: Likewise.
33896 * math/w_exp2f_compat.c: Likewise.
33897 * math/w_exp2l_compat.c: Likewise.
33898 * math/w_fmod_compat.c: Likewise.
33899 * math/w_fmodf_compat.c: Likewise.
33900 * math/w_fmodl_compat.c: Likewise.
33901 * math/w_hypot_compat.c: Likewise.
33902 * math/w_hypotf_compat.c: Likewise.
33903 * math/w_hypotl_compat.c: Likewise.
33904 * math/w_j0_compat.c: Likewise.
33905 * math/w_j0f_compat.c: Likewise.
33906 * math/w_j0l_compat.c: Likewise.
33907 * math/w_j1_compat.c: Likewise.
33908 * math/w_j1f_compat.c: Likewise.
33909 * math/w_j1l_compat.c: Likewise.
33910 * math/w_jn_compat.c: Likewise.
33911 * math/w_jnf_compat.c: Likewise.
33912 * math/w_jnl_compat.c: Likewise.
33913 * math/w_lgamma_r_compat.c: Likewise.
33914 * math/w_lgammaf_r_compat.c: Likewise.
33915 * math/w_lgammal_r_compat.c: Likewise.
33916 * math/w_log10_compat.c: Likewise.
33917 * math/w_log10f_compat.c: Likewise.
33918 * math/w_log10l_compat.c: Likewise.
33919 * math/w_log2_compat.c: Likewise.
33920 * math/w_log2f_compat.c: Likewise.
33921 * math/w_log2l_compat.c: Likewise.
33922 * math/w_log_compat.c: Likewise.
33923 * math/w_logf_compat.c: Likewise.
33924 * math/w_logl_compat.c: Likewise.
33925 * math/w_pow_compat.c: Likewise.
33926 * math/w_powf_compat.c: Likewise.
33927 * math/w_powl_compat.c: Likewise.
33928 * math/w_remainder_compat.c: Likewise.
33929 * math/w_remainderf_compat.c: Likewise.
33930 * math/w_remainderl_compat.c: Likewise.
33931 * math/w_sinh_compat.c: Likewise.
33932 * math/w_sinhf_compat.c: Likewise.
33933 * math/w_sinhl_compat.c: Likewise.
33934 * math/w_sqrt_compat.c: Likewise.
33935 * math/w_sqrtf_compat.c: Likewise.
33936 * math/w_sqrtl_compat.c: Likewise.
33937 * math/w_tgamma_compat.c: Likewise.
33938 * math/w_tgammaf_compat.c: Likewise.
33939 * math/w_tgammal_compat.c: Likewise.
33940 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
33941 [LIBM_SVID_COMPAT].
33942 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
33943 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
33944 [LIBM_SVID_COMPAT].
33945 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
33946 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
33947 [LIBM_SVID_COMPAT].
33948 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
33949 * sysdeps/i386/fpu/w_sqrt.c: New file.
33950 * sysdeps/ia64/fpu/w_acos.c: Likewise.
33951 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
33952 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
33953 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
33954 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
33955 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
33956 * sysdeps/ia64/fpu/w_asin.c: Likewise.
33957 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
33958 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
33959 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
33960 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
33961 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
33962 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
33963 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
33964 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
33965 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
33966 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
33967 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
33968 * sysdeps/ia64/fpu/w_exp.c: Likewise.
33969 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
33970 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
33971 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
33972 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
33973 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
33974 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
33975 * sysdeps/ia64/fpu/w_expf.c: Likewise.
33976 * sysdeps/ia64/fpu/w_expl.c: Likewise.
33977 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
33978 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
33979 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
33980 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
33981 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
33982 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
33983 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
33984 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
33985 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
33986 * sysdeps/ia64/fpu/w_log.c: Likewise.
33987 * sysdeps/ia64/fpu/w_log10.c: Likewise.
33988 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
33989 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
33990 * sysdeps/ia64/fpu/w_log2.c: Likewise.
33991 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
33992 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
33993 * sysdeps/ia64/fpu/w_logf.c: Likewise.
33994 * sysdeps/ia64/fpu/w_logl.c: Likewise.
33995 * sysdeps/ia64/fpu/w_pow.c: Likewise.
33996 * sysdeps/ia64/fpu/w_powf.c: Likewise.
33997 * sysdeps/ia64/fpu/w_powl.c: Likewise.
33998 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
33999 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
34000 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
34001 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
34002 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
34003 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
34004 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
34005 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
34006 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
34007 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
34008 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
34009 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
34010 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
34011 [LIBM_SVID_COMPAT].
34012 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
34013 * sysdeps/ieee754/k_standard.c: Likewise.
34014 * sysdeps/ieee754/k_standardf.c: Likewise.
34015 * sysdeps/ieee754/k_standardl.c: Likewise.
34016 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
34017 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
34018 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
34019 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
34020 long_double_symbol call on [LIBM_SVID_COMPAT].
34021 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
34022 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
34023 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
34024 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
34025 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
34026 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
34027 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
34028 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
34029 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
34030 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
34031 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
34032 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
34033 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
34034 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
34035 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
34036 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
34037 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
34038 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
34039 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
34040 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
34041 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
34042 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
34043
34044 2017-09-05 Steve Ellcey <sellcey@cavium.com>
34045
34046 * include/shlib-compat.h (TEST_COMPAT): New Macro.
34047 * malloc/tst-mallocstate.c: Convert from test-skeleton
34048 to test-driver. Ifdef code using TEST_COMPAT macro.
34049 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
34050 * math/test-matherr.c: Likewise.
34051
34052 2017-09-05 Joseph Myers <joseph@codesourcery.com>
34053
34054 [BZ #22086]
34055 * debug/pcprofiledump.c (main): Use byte-swapped mask when
34056 comparing word with byte-swapped constant.
34057
34058 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
34059
34060 [BZ #20498]
34061 * locale/iso-639.def: add Miskito.
34062 * localedata/SUPPORTED: Add miq_NI/UTF-8.
34063 * localedata/locales/miq_NI: New file.
34064
34065 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
34066
34067 [BZ #18822]
34068 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
34069 (__mkdir): Likewise.
34070 * io/chmod.c (__chmod): Add libc_hidden_def.
34071 * io/mkdir.c (__mkdir): Likewise.
34072 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
34073 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
34074 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
34075 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
34076
34077 2017-09-04 Joseph Myers <joseph@codesourcery.com>
34078
34079 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
34080 version to 4.13.
34081
34082 [BZ #22082]
34083 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
34084 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
34085
34086 2017-09-04 Florian Weimer <fweimer@redhat.com>
34087
34088 * math/math.h: Issue warning if log is defined.
34089
34090 2017-09-04 Joseph Myers <joseph@codesourcery.com>
34091
34092 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
34093 kernel version to 4.13.
34094
34095 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
34096
34097 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
34098 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
34099 parameter.
34100 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
34101 just <bits/types.h>.
34102 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
34103 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
34104 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
34105 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
34106 * misc/preadv2.c: Include <errno.h>.
34107 * misc/preadv64v2.c: Include <errno.h>.
34108 * misc/pwritev2.c: Include <errno.h>.
34109 * misc/pwritev64v2.c: Include <errno.h>.
34110 * sysdeps/posix/preadv2.c: Include <errno.h>.
34111 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
34112 Fix <unistd.h> inclusion.
34113 * sysdeps/posix/pwritev2.c: Include <errno.h>.
34114 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
34115 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
34116 __strtoul_internal): New functions.
34117 * sysdeps/posix/pause.c: Include <sigsetops.h>.
34118 * sysdeps/posix/system.c: Include <sigsetops.h>.
34119 * sysdeps/mach/hurd/i386/Makefile
34120 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
34121 [$(subdir) = csu] (sysdep-only-routines): Likewise.
34122 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
34123 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
34124 __feraiseexcept_renamed to feraiseexcept instead of
34125 __GI_feraiseexcept.
34126 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
34127 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
34128 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
34129 RWF_NOWAIT): Define to 0 if undefined already.
34130 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
34131 boils down to 0.
34132 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
34133 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
34134
34135 2017-09-01 Joseph Myers <joseph@codesourcery.com>
34136
34137 * manual/math.texi (pow10): Do not document.
34138 (pow10f): Likewise.
34139 (pow10l): Likewise.
34140 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
34141 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
34142 * math/libm-test-exp10.inc (pow10_test): Remove.
34143 (do_test): Do not call pow10.
34144 * math/w_exp10_compat.c (pow10): Make into compat symbol.
34145 [NO_LONG_DOUBLE] (pow10l): Likewise.
34146 * math/w_exp10f_compat.c (pow10f): Likewise.
34147 * math/w_exp10l_compat.c (pow10l): Likewise.
34148 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
34149 (pow10): Make into compat symbol.
34150 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
34151 (pow10f): Make into compat symbol.
34152 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
34153 (pow10l): Make into compat symbol.
34154 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
34155 pow10.
34156 (CFLAGS-nldbl-pow10.c): Remove variable..
34157 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
34158 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
34159 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
34160 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
34161 Undefine and redefine.
34162 (pow10l): Make into compat symbol.
34163 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
34164 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
34165 * sysdeps/arm/libm-test-ulps: Likewise.
34166 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
34167 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
34168 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
34169 * sysdeps/microblaze/libm-test-ulps: Likewise.
34170 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
34171 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
34172 * sysdeps/nios2/libm-test-ulps: Likewise.
34173 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
34174 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
34175 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
34176 * sysdeps/sh/libm-test-ulps: Likewise.
34177 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
34178 * sysdeps/tile/libm-test-ulps: Likewise.
34179 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34180
34181 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
34182
34183 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
34184
34185 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
34186
34187 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
34188 "../ChangeLog.old/ChangeLog.8".
34189 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
34190 "../ChangeLog.old/ChangeLog.14".
34191
34192 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
34193
34194 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
34195 Threads Library.
34196
34197 2017-09-01 Joseph Myers <joseph@codesourcery.com>
34198
34199 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
34200
34201 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
34202
34203 * csu/version.c (banner): Remove "by Roland McGrath et al.".
34204 * nptl/Banner: Remove "by Ulrich Drepper et al.".
34205
34206 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
34207
34208 * stdlib/tst-atexit-common.c (do_test): Test support for at least
34209 32 atexit handlers.
34210
34211 2017-09-01 Zack Weinberg <zackw@panix.com>
34212
34213 * math/math.h (HUGE_VAL): Improve commentary.
34214
34215 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34216 Andreas Schwab <schwab@suse.de>
34217
34218 [BZ #21530]
34219 * include/stdio.h (__gen_tempfd): New function.
34220 * stdio-common/Makefile (routines): Add gentempfd.
34221 * stdio-common/gentempfd.c: New file.
34222 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
34223 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
34224 unnamed file first.
34225
34226 2017-09-01 Florian Weimer <fweimer@redhat.com>
34227
34228 [BZ #21915]
34229 [BZ #21922]
34230 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
34231 result to determine success or failure, not the errno value.
34232 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
34233 (tst-nss-files-hosts-erange): Link with -ldl.
34234 * nss/tst-nss-files-hosts-erange.c: New file.
34235 * nss/tst-resolv-basic.c (response): Handle nodata.example.
34236 (do_test): Add NO_DATA tests.
34237 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
34238 (do_test): Call it.
34239
34240 2017-09-01 Florian Weimer <fweimer@redhat.com>
34241
34242 [BZ #21922]
34243 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
34244 coming from gethostbyname2_r.
34245
34246 2017-09-01 Florian Weimer <fweimer@redhat.com>
34247
34248 * support/namespace.h (struct support_chroot_configuration): Add
34249 hosts, host_conf.
34250 (struct support_chroot): Add path_hosts, path_host_conf.
34251 * support/support_chroot.c (write_file): New function.
34252 (support_chroot_create): Call it to process /etc/resolv.conf,
34253 /etc/hosts, /etc/host.conf.
34254 (support_chroot_free): Update.
34255
34256 2017-09-01 Florian Weimer <fweimer@redhat.com>
34257
34258 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
34259 status indicates it is set.
34260
34261 2017-09-01 Florian Weimer <fweimer@redhat.com>
34262
34263 [BZ #20532]
34264 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
34265 function lookup failures more reliable.
34266
34267 2017-09-01 Florian Weimer <fweimer@redhat.com>
34268
34269 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
34270 (getcanonname): Likewise.
34271 (gaih_inet): Likewise.
34272
34273 2017-09-01 Florian Weimer <fweimer@redhat.com>
34274
34275 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
34276 (getcanonname): Likewise.
34277 (gaih_inet): Likewise.
34278
34279 2017-08-31 Steve Ellcey <sellcey@cavium.com>
34280 Richard Henderson <rth@twiddle.net>
34281
34282 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
34283 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
34284 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
34285 (IREG_SIZE, OREG_SIZE): New macros.
34286 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
34287 (IREG_SIZE, OREG_SIZE): New macros.
34288 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
34289 (IREG_SIZE): New macro.
34290 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
34291 (IREG_SIZE): New macro.
34292 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
34293 New includes.
34294 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
34295 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
34296 (__CONCATX): Handle exceptions correctly on large values that may
34297 set FE_INVALID.
34298 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
34299 Initialize if not already set.
34300 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
34301
34302 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34303
34304 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
34305 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
34306 Likewise.
34307 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
34308 Likewise.
34309 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
34310 Likewise.
34311 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
34312 Likewise.
34313 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
34314 Likewise.
34315 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
34316 Likewise.
34317 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
34318 Likewise.
34319 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
34320 (NO_CANCELLATION): Likewise.
34321 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
34322 Likewise.
34323 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
34324 Likewise.
34325 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
34326 Likewise.
34327 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
34328 (NO_CANCELLATION): Likewise.
34329 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
34330 (NO_CANCELLATION): Likewise.
34331 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
34332 Likewise
34333 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
34334 Likewise.
34335 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
34336 Likewise.
34337 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
34338 Likewise.
34339 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
34340 hidden prototype.
34341 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
34342 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
34343
34344 2017-08-31 Steve Ellcey <sellcey@cavium.com>
34345
34346 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
34347 in resolver call.
34348
34349 2017-08-31 Florian Weimer <fweimer@redhat.com>
34350
34351 * include/libc-symbols.h (internal_function): Remove.
34352
34353 2017-08-31 Florian Weimer <fweimer@redhat.com>
34354
34355 * stdlib/fmtmsg.c (internal_addseverity): Remove
34356 internal_function.
34357
34358 2017-08-31 Florian Weimer <fweimer@redhat.com>
34359
34360 * stdio-common/printf_fp.c (group_number): Remove
34361 internal_function.
34362 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
34363
34364 2017-08-31 Florian Weimer <fweimer@redhat.com>
34365
34366 * posix/fnmatch.c (internal_function): Remove definition.
34367 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
34368 * posix/regcomp.c (peek_token, init_word_char)
34369 (duplicate_node_closure, fetch_token, peek_token)
34370 (peek_token_bracket, build_range_exp, build_collating_symbol):
34371 Likewise.
34372 * posix/regex_internal.c (re_string_construct_common)
34373 (create_ci_newstate, create_cd_newstate, re_string_allocate)
34374 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
34375 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
34376 (re_string_translate_buffer, re_string_reconstruct)
34377 (re_string_peek_byte_case, re_string_fetch_byte_case)
34378 (re_string_destruct, re_string_context_at, re_node_set_alloc)
34379 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
34380 (re_node_set_add_intersect, re_node_set_init_union)
34381 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
34382 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
34383 (re_dfa_add_node, calc_state_hash, re_acquire_state)
34384 (re_acquire_state_context): Likewise.
34385 * posix/regex_internal.h (internal_function): Remove definition.
34386 (re_string_realloc_buffers, build_wcs_buffer)
34387 (build_wcs_upper_buffer, build_upper_buffer)
34388 (re_string_translate_buffer, re_string_context_at)
34389 (re_string_char_size_at, re_string_wchar_at)
34390 (re_string_elem_size_at): Likewise.
34391 * posix/regexec.c (match_ctx_init, match_ctx_clean)
34392 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
34393 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
34394 (re_search_internal, re_search_2_stub, re_search_stub)
34395 (re_copy_regs, prune_impossible_nodes, check_matching)
34396 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
34397 (free_fail_stack_return, sift_states_iter_mb)
34398 (sift_states_backward, build_sifted_states)
34399 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
34400 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
34401 (check_subexp_limits, sift_states_bkref, merge_state_array)
34402 (find_recover_state, transit_state, merge_state_with_log)
34403 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
34404 (transit_state_mb, transit_state_bkref, get_subexp)
34405 (get_subexp_sub, find_subexp_node, check_arrival)
34406 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
34407 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
34408 (check_node_accept_bytes, find_collation_sequence_value)
34409 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
34410 (acquire_init_state_context, check_halt_node_context)
34411 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
34412 (sub_epsilon_src_nodes): Likewise.
34413 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
34414 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
34415 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
34416 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
34417 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
34418 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
34419 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
34420 * sysdeps/posix/ttyname.c (getttyname): Likewise.
34421 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
34422 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
34423 (PREADV): Likewise.
34424 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
34425 (PREADV): Likewise.
34426 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
34427 (PWRITEV): Likewise.
34428 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
34429 (PWRITEV): Likewise.
34430 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
34431 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
34432
34433 2017-08-31 Florian Weimer <fweimer@redhat.com>
34434
34435 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
34436 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
34437 Remove internal_function.
34438 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
34439 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
34440 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
34441 (__deallocate_stack, __libc_pthread_init)
34442 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
34443 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
34444 (__libc_disable_asynccancel, __librt_disable_asynccancel):
34445 Likewise.
34446 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
34447 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
34448 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
34449 Likewise.
34450 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
34451 (__pthread_mutex_unlock_usercnt): Likewise.
34452
34453 2017-08-31 Florian Weimer <fweimer@redhat.com>
34454
34455 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
34456 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
34457 (fts_safe_changedir): Remove internal_function.
34458 * io/ftw.c (internal_function): Remove definition.
34459 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
34460
34461 2017-08-31 Florian Weimer <fweimer@redhat.com>
34462
34463 * inet/deadline.c (__deadline_current_time)
34464 (__deadline_from_timeval, __deadline_to_ms): Remove
34465 internal_function.
34466 * inet/getnameinfo.c (nrl_domainname): Likewise.
34467 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
34468 * inet/inet6_option.c (add_pad): Likewise.
34469 * inet/net-internal.h (__deadline_current_time)
34470 (__deadline_from_timeval, __deadline_to_ms): Likewise.
34471 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
34472 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
34473 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
34474
34475 2017-08-31 Joseph Myers <joseph@codesourcery.com>
34476
34477 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
34478 include <bits/nan.h>.
34479 * math/Makefile (headers): Remove bits/nan.h.
34480 * bits/nan.h: Remove.
34481 * sysdeps/ieee754/bits/nan.h: Likewise.
34482 * sysdeps/mips/bits/nan.h: Likewise.
34483
34484 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
34485 not include <bits/inf.h>.
34486 * math/Makefile (headers): Remove bits/inf.h.
34487 * bits/inf.h: Remove.
34488 * sysdeps/ieee754/bits/inf.h: Likewise.
34489
34490 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
34491 bits/huge_vall.h or bits/huge_val_flt128.h.
34492 (HUGE_VAL): Define directly here.
34493 [__USE_ISOC99] (HUGE_VALF): Likewise.
34494 [__USE_ISOC99] (HUGE_VALL): Likewise.
34495 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
34496 (HUGE_VAL_F128): Likewise.
34497 * math/Makefile (headers): Remove bits/huge_val.h,
34498 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
34499 * bits/huge_val.h: Remove.
34500 * bits/huge_val_flt128.h: Likewise.
34501 * bits/huge_valf.h: Likewise.
34502 * bits/huge_vall.h: Likewise.
34503 * sysdeps/ia64/bits/huge_vall.h: Likewise.
34504 * sysdeps/ieee754/bits/huge_val.h: Likewise.
34505 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
34506 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
34507 * sysdeps/sh/bits/huge_val.h: Likewise.
34508 * sysdeps/sparc/bits/huge_vall.h: Likewise.
34509 * sysdeps/x86/bits/huge_vall.h: Likewise.
34510
34511 2017-08-31 Florian Weimer <fweimer@redhat.com>
34512
34513 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
34514 internal_function.
34515 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
34516 Likewise.
34517 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
34518 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
34519 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
34520 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
34521 * elf/dl-fini.c (_dl_sort_fini): Likewise.
34522 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
34523 * elf/dl-libc.c (dlerror_run): Likewise.
34524 * elf/dl-load.c (add_name_to_object, decompose_rpath)
34525 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
34526 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
34527 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
34528 Likewise.
34529 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
34530 (_dl_higher_prime_number, _dl_strtoul): Likewise.
34531 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
34532 * elf/dl-profile.c (_dl_start_profile): Likewise.
34533 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
34534 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
34535 Likewise.
34536 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
34537 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
34538 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
34539 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
34540 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
34541 (_dl_allocate_tls_storage): Likewise.
34542 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
34543 (_dl_check_all_versions): Likewise.
34544 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
34545 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
34546 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
34547 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
34548 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
34549 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
34550 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
34551 internal_function from __dl_start.
34552 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
34553 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
34554 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
34555 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
34556 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
34557 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
34558 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
34559 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
34560 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
34561 (_dl_next_ld_env_entry, _dl_important_hwcaps)
34562 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
34563 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
34564 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
34565 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
34566 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
34567 Likewise.
34568 (struct rtld_global_ro): Remove internal_function from the
34569 _dl_lookup_symbol_x member.
34570 (_dl_symbol_value): Remove. No longer defined anywhere.
34571 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
34572 internal_function.
34573 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
34574 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
34575 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
34576 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
34577 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
34578 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
34579 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
34580 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
34581 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
34582 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
34583 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
34584 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
34585
34586 2017-08-31 Florian Weimer <fweimer@redhat.com>
34587
34588 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
34589 Remove internal_function.
34590 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
34591 Likewise.
34592 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
34593 Likewise.
34594
34595 2017-08-31 Florian Weimer <fweimer@redhat.com>
34596
34597 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
34598 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
34599 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
34600
34601 2017-08-31 Florian Weimer <fweimer@redhat.com>
34602
34603 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
34604 (__gai_enqueue_request): Remove internal_function.
34605 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
34606 (__gai_remove_request, __gai_notify, __gai_notify_only)
34607 (__gai_sigqueue): Likewise.
34608 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
34609 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
34610 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
34611 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
34612 Likewise.
34613
34614 2017-08-31 Florian Weimer <fweimer@redhat.com>
34615
34616 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
34617 * include/dirent.h (__opendirat, __getdents, __getdents64)
34618 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
34619 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
34620 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
34621 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
34622 Likewise.
34623 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
34624
34625 2017-08-31 Florian Weimer <fweimer@redhat.com>
34626
34627 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
34628 internal_function.
34629 (GETCWD_RETURN_TYPE): Likewise.
34630
34631 2017-08-31 Florian Weimer <fweimer@redhat.com>
34632
34633 * include/time.h (__tz_compute, __strptime_internal): Remove
34634 internal_function.
34635 * time/strptime_l.c (__strptime_internal): Likewise.
34636 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
34637
34638 2017-08-31 Florian Weimer <fweimer@redhat.com>
34639
34640 * iconv/gconv.c (__gconv): Remove internal_function.
34641 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
34642 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
34643 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
34644 (__gconv_release_cache): Likewise.
34645 * iconv/gconv_close.c (__gconv_close): Likewise.
34646 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
34647 (read_conf_file, __gconv_get_path): Likewise.
34648 * iconv/gconv_db.c (derivation_lookup, add_derivation)
34649 (__gconv_release_step, gen_steps, increment_counter)
34650 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
34651 (__gconv_close_transform, free_modules_db): Likewise.
34652 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
34653 Likewise.
34654 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
34655 (__gconv_find_transform, __gconv_lookup_cache)
34656 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
34657 (__gconv_close_transform, __gconv_release_cache)
34658 (__gconv_loaded_object, __gconv_release_shlib)
34659 (__gconv_compare_alias): Likewise.
34660 * iconv/gconv_open.c (__gconv_open): Likewise.
34661 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
34662 * iconv/iconvconfig.c (add_module): Likewise.
34663 * intl/dcigettext.c (plural_lookup, guess_category_value)
34664 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
34665 * intl/eval-plural.h (plural_eval): Likewise.
34666 * intl/finddomain.c (_nl_find_domain): Likewise.
34667 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
34668 (_nl_load_domain, _nl_find_msg): Likewise.
34669 (internal_function): Remove definition.
34670 * intl/loadinfo.h (internal_function): Likewise.
34671 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
34672 internal_function.
34673 * intl/localealias.c (internal_function): Remove definition.
34674 (read_alias_file): Remove internal_function.
34675 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
34676 * intl/plural-exp.h (internal_function): Remove definition.
34677 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
34678 internal_function.
34679 * intl/plural.c: Regenerate.
34680 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
34681 * locale/coll-lookup.c (__collidx_table_lookup)
34682 (__collseq_table_lookup): Likewise.
34683 * locale/coll-lookup.h (__collidx_table_lookup)
34684 (__collseq_table_lookup): Likewise.
34685 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
34686 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
34687 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
34688 (_nl_unload_locale): Likewise.
34689 * locale/localeinfo.h (struct __locale_data): Remove
34690 internal_function from cleanup member.
34691 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
34692 (_nl_remove_locale, _nl_load_locale_from_archive)
34693 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
34694 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
34695 (_nl_cleanup_time): Remove internal_function.
34696 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
34697 (_nl_parse_alt_digit): Likewise.
34698 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
34699 (_nl_select_era_entry): Likewise.
34700 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
34701 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
34702 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
34703 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
34704 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
34705
34706 2017-08-31 Florian Weimer <fweimer@redhat.com>
34707
34708 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
34709 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
34710 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
34711 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
34712 Likewise.
34713 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
34714 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
34715 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
34716 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
34717 Likewise.
34718 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
34719
34720 2017-08-31 Florian Weimer <fweimer@redhat.com>
34721
34722 * misc/getttyent.c (skip, value): Remove internal_function.
34723 * misc/syslog.c (openlog_internal): Likewise.
34724 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
34725
34726 2017-08-31 Florian Weimer <fweimer@redhat.com>
34727
34728 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
34729 (__nss_rewrite_field): Remove internal_function.
34730 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
34731 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
34732 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
34733 * nss/nsswitch.c (nss_parse_file, nss_getline)
34734 (nss_parse_service_list, nss_new_service): Likewise.
34735 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
34736 * nss/valid_field.c (__nss_valid_field): Likewise.
34737 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
34738
34739 2017-08-31 Florian Weimer <fweimer@redhat.com>
34740
34741 * malloc/arena.c (__malloc_fork_lock_parent)
34742 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
34743 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
34744 internal_function from defintions.
34745 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
34746 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
34747 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
34748 internal_function from declarations.
34749 * malloc/malloc.c (internal_function): Do not define.
34750 (mem2mem_check): Remove internal_function from declaration.
34751 (munmap_chunk, mremap_chunk): Remove internal_function.
34752 * malloc/mtrace.c (tr_where): Likewise.
34753
34754 2017-08-31 Florian Weimer <fweimer@redhat.com>
34755
34756 * include/rpc/pmap_clnt.h (__get_socket): Remove
34757 internal_function.
34758 * sunrpc/auth_des.c (synchronize): Likewise.
34759 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
34760 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
34761 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
34762 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
34763 (key_call): Likewise.
34764 * sunrpc/pm_getport.c (__get_socket): Likewise.
34765 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
34766 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
34767 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
34768 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
34769 (invalidate): Likewise.
34770 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
34771 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
34772 (set_input_fragment, get_input_bytes): Likewise.
34773
34774 2017-08-31 Florian Weimer <fweimer@redhat.com>
34775
34776 * malloc/malloc.c (_int_free): Remove locked variable and related
34777 asserts.
34778
34779 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
34780
34781 [BZ #22051]
34782 * Makerules (build-module-helper-objlist): Filter out
34783 $(elf-objpfx)sofini.os.
34784 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
34785 needed.
34786
34787 2017-08-31 Florian Weimer <fweimer@redhat.com>
34788
34789 * libio/fcloseall.c: Assume weak_alias is defined.
34790 * libio/feof.c: Likewise.
34791 * libio/fileno.c: Likewise.
34792 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
34793 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
34794 definitions.
34795 (_IO_file_open): Call __open directly.
34796 (_IO_new_file_sync): Assume ESPIPE is defined.
34797 (_IO_file_seekoff_maybe_mmap): Call __read directly.
34798 (_IO_new_file_write): Call __write directly.
34799 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
34800 * libio/ftello64.c (__ftello64): Assume EIO is defined.
34801 * libio/genops.c: Assume _LIBC is defined.
34802 (save_for_backup): Remove internal_function.
34803 * libio/getc.c: Assume weak_alias is defined.
34804 * libio/getwc.c: Likewise.
34805 * libio/iofclose.c: Assume _LIBC is defined.
34806 * libio/iofdopen.c: Likewise.
34807 (_IO_fcntl): Remove macro definition.
34808 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
34809 Call __fcntl directly.
34810 * libio/iofflush.c: Assume weak_alias is defined.
34811 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
34812 defined.
34813 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
34814 * libio/iofgets.c: Likewise.
34815 * libio/iofopen.c: Assume _LIBC is defined.
34816 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
34817 * libio/iofputs.c: Assume weak_alias is defined.
34818 * libio/iofread.c: Likewise.
34819 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
34820 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
34821 * libio/ioftell.c: Assume weak_alias is defined.
34822 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
34823 * libio/iofwide.c: Assume _LIBC is defined.
34824 (_IO_fwide): Drop SHARED conditional because it is implied by
34825 SHLIB_COMPAT.
34826 * libio/iofwrite.c: Assume weak_alias is defined.
34827 * libio/iogetdelim.c: Likewise.
34828 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
34829 * libio/iogetwline.c (wmemcpy): Remove macro definition.
34830 (_IO_getwline): Call __wmemcpy directly.
34831 * libio/iopopen.c: Assume _LIBC is defined.
34832 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
34833 (_IO_close): Remove macro definitions.
34834 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
34835 _exit directly.
34836 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
34837 directly.
34838 * libio/ioputs.c: Assume weak_alias is defined.
34839 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
34840 * libio/iosetbuffer.c: Assume weak_alias is defined.
34841 * libio/iosetvbuf.c: Likewise.
34842 * libio/ioungetc.c: Likewise.
34843 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
34844 libc_hidden_def, libc_hidden_weak, NULL are defined.
34845 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
34846 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
34847 defined.
34848 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
34849 definitions.
34850 (_IO_old_file_init_internal): Drop SHARED conditional because it
34851 is implied by SHLIB_COMPAT.
34852 (_IO_old_file_fopen): Call __open directly.
34853 (_IO_old_file_sync): Assume ESPIPE is defined.
34854 (_IO_old_file_write): Call __write directly.
34855 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
34856 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
34857 Call __fcntl directly.
34858 * libio/oldiofgetpos.c: Assume weak_alias is defined.
34859 (_IO_old_fgetpos): Assume EIO is defined.
34860 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
34861 (_IO_old_fgetpos64): Assume EIO is defined.
34862 * libio/oldiofsetpos.c: Assume weak_alias is defined.
34863 (_IO_old_fsetpos): Assume EIO is defined.
34864 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
34865 (_IO_old_fsetpos64): Assume EIO is defined.
34866 * libio/oldiopopen.c: Assume _LIBC is defined.
34867 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
34868 (_IO_close): Remove macro definitions.
34869 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
34870 directly.
34871 (_IO_old_proc_close): Call __close, __waitpid directly.
34872 * libio/put.c: Assume weak_alias is defined.
34873 * libio/stdfiles.c: Assume _LIBC is defined.
34874 * libio/stdio.c: Likewise.
34875 * libio/wfileops.c: Likewise.
34876 (_IO_wfile_sync): Assume ESPIPE is defined.
34877 * libio/wgenops.c: Assume _LIBC is defined.
34878 (save_for_wbackup): Remove internal_function.
34879
34880 2017-08-31 Florian Weimer <fweimer@redhat.com>
34881
34882 * malloc/malloc.c (top_check): Change return type to void. Remove
34883 internal_function.
34884 * malloc/hooks.c (top_check): Likewise.
34885 (malloc_check, realloc_check, memalign_check): Adjust.
34886
34887 2017-08-30 Joseph Myers <joseph@codesourcery.com>
34888
34889 [BZ #21457]
34890 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
34891 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
34892 sigcontext and namespace requirements.
34893 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
34894 * sysdeps/m68k/sys/ucontext.h: Likewise.
34895 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
34896 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
34897 <bits/sigcontext.h>.
34898 (__ctx): Define earlier.
34899 (mcontext_t): Define structure contents rather than using struct
34900 sigcontext.
34901 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
34902 __glibc_reserved1 instead of __reserved.
34903 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
34904 <bits/sigcontext.h>.
34905 (__ctx): Define earlier.
34906 (mcontext_t): Define structure contents rather than using struct
34907 sigcontext.
34908 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
34909 mcontext_t instead of struct sigcontext.
34910 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
34911 <bits/sigcontext.h>.
34912 (__ctx): Define earlier.
34913 (mcontext_t): Define structure contents rather than using struct
34914 sigcontext.
34915 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
34916 <bits/sigcontext.h>.
34917 (__ctx): Define earlier.
34918 (mcontext_t): Define structure contents rather than using struct
34919 sigcontext.
34920 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
34921 mcontext_t instead of struct sigcontext.
34922 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
34923 mcontext_t instead of struct sigcontext.
34924 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
34925 <bits/sigcontext.h>.
34926 (__ctx): New macro.
34927 (struct __ia64_fpreg_mcontext): New type.
34928 (mcontext_t): Define structure contents rather than using struct
34929 sigcontext.
34930 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
34931 (uc_sigmask): Define using __ctx.
34932 (uc_stack): Likewise.
34933 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
34934 <bits/sigcontext.h>.
34935 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
34936 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
34937 <bits/sigcontext.h>.
34938 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
34939 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
34940 <bits/sigcontext.h>.
34941 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
34942 <bits/sigcontext.h>.
34943 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
34944 <bits/sigcontext.h>.
34945 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
34946 <bits/sigcontext.h>.
34947 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
34948 <bits/sigcontext.h>.
34949 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
34950 <bits/sigcontext.h>.
34951 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
34952 <bits/sigcontext.h>.
34953 (__ctx): Define earlier.
34954 (mcontext_t): Define structure contents rather than using struct
34955 sigcontext.
34956 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
34957 <bits/sigcontext.h>. Include <bits/types.h>.
34958 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
34959 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
34960 (test-xfail-XPG42/ucontext.h/conform): Likewise.
34961 (test-xfail-UNIX98/signal.h/conform): Likewise.
34962 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
34963 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
34964 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
34965 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
34966 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
34967 (test-xfail-POSIX2008/signal.h/conform): Likewise.
34968 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
34969 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
34970 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
34971
34972 2017-08-30 Florian Weimer <fweimer@redhat.com>
34973
34974 * malloc/dynarray_emplace_enlarge.c
34975 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
34976 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
34977 * malloc/tst-dynarray.c (test_long_overflow): New function.
34978 (do_test): Call it.
34979
34980 2017-08-30 Florian Weimer <fweimer@redhat.com>
34981
34982 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
34983 (set_arena_corrupt): Remove definitions.
34984 (mtrim): Do not check for corrupt arena.
34985 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
34986 Likewise.
34987
34988 2017-08-30 Florian Weimer <fweimer@redhat.com>
34989
34990 [BZ #21754]
34991 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
34992 check_action.
34993 (ptmalloc_init): Do not set or use check_action.
34994 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
34995 call to malloc_printerr. Remove return statement.
34996 (free_check): Likewise. Remove arena unlock.
34997 (top_check): Update comment. Adjust call to malloc_printerr.
34998 Remove heap repair code.
34999 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
35000 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
35001 (sysmalloc): Adjust call to malloc_printerr.
35002 (munmap_chunk, __libc_realloc): Likewise. Remove return
35003 statement.
35004 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
35005 Remove errout label and corresponding gotos.
35006 (_int_free): Likewise. Remove arena unlock.
35007 (do_set_mallopt_check): Do not set check_action.
35008 (malloc_printerr): Adjust parameter list. Do not mark arena as
35009 corrupt.
35010 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
35011 comment.
35012 * manual/probes.texi (Memory Allocation Probes): Remove
35013 memory_mallopt_check_action.
35014
35015 2017-08-30 Steve Ellcey <sellcey@cavium.com>
35016
35017 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
35018 Use pointer to uint64_t instead of long int for sp.
35019
35020 2017-08-30 Florian Weimer <fweimer@redhat.com>
35021
35022 [BZ #21754]
35023 * malloc/malloc.c (malloc_printerr): Always terminate the process,
35024 without printing a backtrace. Do not leak any information in the
35025 error message.
35026 * manual/memory.texi (Heap Consistency Checking): Update.
35027 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
35028
35029 2017-08-30 Florian Weimer <fweimer@redhat.com>
35030
35031 Do not scale NPTL tests with available number of CPUs.
35032 * nptl/tst-cond16.c (count): Set to constant value of 8.
35033 * nptl/tst-cond18.c (count): Likewise.
35034
35035 2017-08-29 Joseph Myers <joseph@codesourcery.com>
35036
35037 [BZ #22035]
35038 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
35039 Define to take a second argument that is a macro that
35040 concatentates a suffix, not the suffix itself.
35041 (__CONCAT_d): New macro.
35042 (__CONCAT_f): Likewise.
35043 (__CONCAT_l): Likewise.
35044
35045 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
35046
35047 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
35048 by child.
35049
35050 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35051 Aurelien Jarno <aurelien@aurel32.net>
35052 Maciej W. Rozycki <macro@imgtec.com>
35053
35054 [BZ #21956]
35055 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
35056 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
35057 `mips16-syscall6' and `mips16-syscall7'.
35058 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
35059 (CFLAGS-mips16-syscall7.c): Remove.
35060 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
35061 Remove `__mips16_syscall5', `__mips16_syscall6' and
35062 `__mips16_syscall7'.
35063 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
35064 (__mips16_syscall0): Rename `__mips16_syscall_return' to
35065 `__mips_syscall_return'.
35066 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
35067 (__mips16_syscall1): Likewise.
35068 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
35069 (__mips16_syscall2): Likewise.
35070 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
35071 (__mips16_syscall3): Likewise.
35072 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
35073 (__mips16_syscall4): Likewise.
35074 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
35075 Remove.
35076 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
35077 Remove.
35078 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
35079 Remove.
35080 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
35081 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
35082 `__mips16_syscall5'. Remove prototype.
35083 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
35084 `__mips16_syscall6'. Remove prototype.
35085 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
35086 `__mips16_syscall7'. Remove prototype.
35087 (__nomips16, __mips16_syscall_return): Move to...
35088 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
35089 (__nomips16, __mips_syscall_return): ... here.
35090 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
35091 `__mips16_syscall_return' to `__mips_syscall_return'.
35092 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
35093 `internal_syscall##nr'.
35094 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
35095 `internal_syscall##nr'.
35096 (FORCE_FRAME_POINTER): Remove.
35097 (__mips_syscall5): New prototype.
35098 (internal_syscall5): Rewrite to call `__mips_syscall5'.
35099 (__mips_syscall6): New prototype.
35100 (internal_syscall6): Rewrite to call `__mips_syscall6'.
35101 (__mips_syscall7): New prototype.
35102 (internal_syscall7): Rewrite to call `__mips_syscall7'.
35103 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
35104 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
35105 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
35106 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
35107 (sysdep_routines): Add libc-do-syscall.
35108 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
35109 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
35110
35111 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35112
35113 [BZ #21672]
35114 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
35115 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
35116 (advise_stack_range): New function.
35117 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
35118 stack non required to advise_stack_range at allocatestack.c
35119
35120 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
35121
35122 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
35123
35124 2017-08-29 Florian Weimer <fweimer@redhat.com>
35125
35126 [BZ #22026]
35127 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
35128 __end_fct. Mangle __end_fct after setting it to NULL.
35129 * iconv/Makefile (tests): Add tst-gconv-init-failure.
35130 (modules-names, modules-names-tests): Add
35131 tst-gconv-init-failure-mod.
35132 (gconv-modules): New target.
35133 (tst-gconv-init-failure-mod.so): Link against libsupport.
35134 (tst-gconv-init-failure): Depend on gconv-modules,
35135 tst-gconv-init-failure-mod.so.
35136 * iconv/tst-gconv-init-failure-mod.c: New file.
35137 * iconv/tst-gconv-init-failure.c: Likewise.
35138 * iconv/test-gconv-modules: Likewise.
35139
35140 2017-08-29 Florian Weimer <fweimer@redhat.com>
35141
35142 [BZ #22025]
35143 * iconv/gconv_db.c (free_derivation): Remove redundant
35144 parentheses.
35145 (gen_steps): Unconditionally mangle __btowc_fct after
35146 initialization.
35147 (increment_counter): Likewise. Do not call init_fct for internal
35148 modules.
35149
35150 2017-08-29 Joseph Myers <joseph@codesourcery.com>
35151
35152 [BZ #22028]
35153 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
35154 (_MSUF_): Remove macro.
35155 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
35156 Likewise.
35157 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
35158 (__REDIRFROM_X): New macro.
35159 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
35160 Likewise.
35161 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
35162 (__REDIRTO_X): Likewise.
35163 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
35164 arguments.
35165 (__MATH_REDIRCALL_2): Likewise.
35166 (__MATH_REDIRCALL_INTERNAL): Likewise.
35167 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
35168 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
35169 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
35170 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
35171 * math/test-finite-macros.c: New file.
35172 * math/Makefile (tests): Add test-finite-macros.
35173 (CFLAGS-test-finite-macros.c): New variable.
35174
35175 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
35176 Jeff Law <law@redhat.com>
35177
35178 [BZ #22025]
35179 Mangle NULL pointers in iconv/gconv.
35180 * iconv/gconv_cache.c (find_module): Demangle init_fct before
35181 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
35182 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
35183 is non-NULL before demangling the end_fct. Check for NULL
35184 end_fct after demangling.
35185 (__gconv_release_step): Demangle the end_fct before checking
35186 it for NULL. Remove assert on __shlibc_handle != NULL.
35187 (gen_steps): Don't check btowc_fct for NULL before mangling.
35188 Demangle init_fct before checking for NULL.
35189 (increment_counter): Likewise.
35190 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
35191 end_fct for NULL before mangling.
35192 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
35193 for NULL.
35194
35195 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
35196
35197 [BZ #21971]
35198 * locale/iso-639.def: add Morisyen.
35199
35200 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35201
35202 [BZ #21930]
35203 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
35204 (iszero): New C++ implementation that does not use
35205 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
35206 signaling nans are enabled, since __builtin_types_compatible_p
35207 is a C-only feature.
35208 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
35209 defined, include ieee754_float128.h for access to the union and
35210 member ieee854_float128.ieee.
35211 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
35212 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
35213 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
35214 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
35215 options of test-math-zero on powerpc64le.
35216
35217 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
35218
35219 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
35220 Change double to float.
35221
35222 2017-08-28 Joseph Myers <joseph@codesourcery.com>
35223
35224 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
35225 unconditional.
35226 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
35227 conditional code; define contents only for [LIBM_SVID_COMPAT].
35228
35229 2017-08-28 Florian Weimer <fweimer@redhat.com>
35230
35231 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
35232 (abi-lp64_be-options): Remove.
35233 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
35234 (abi-hard-options): Likewise.
35235 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
35236 (abi-o32_hard-options, abi-o32_soft_2008-options)
35237 (abi-o32_hard_2008-options, abi-n32_soft-options)
35238 (abi-n32_hard-options, abi-n32_soft_2008-options)
35239 (abi-n32_hard_2008-options, abi-n64_soft-options)
35240 (abi-n64_hard-options, abi-n64_soft_2008-options)
35241 (abi-n64_hard_2008-options): Likewise.
35242 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
35243 (abi-64-v1-options, abi-64-v2-options): Likewise.
35244 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
35245 (abi-64-options): Likewise.
35246 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
35247 (abi-64-options): Likewise.
35248 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
35249 (abi-64-options): Likewise.
35250 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
35251 (abi-64-options, abi-x32-options): Likewise.
35252
35253 2017-08-28 Florian Weimer <fweimer@redhat.com>
35254
35255 Store supported list of SYS_* system calls in the source tree.
35256 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
35257 (bits/syscall.h): Generate from list file.
35258 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
35259 [$(subdir) = misc] (tests): Add tst-syscall-list.
35260 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
35261 [$(subdir) = misc] (tst-syscall-list-macros.list)
35262 [$(subdir) = misc] (tst-syscall-list-nr.list)
35263 (tst-syscall-list-sys.list): Helper targets for new
35264 tst-syscall-list test.
35265 [$(subdir) = misc] (tst-syscall-list.out): Run test script
35266 tst-syscall-list.sh.
35267 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
35268 target. Do not include bits/syscall.d.
35269 [$(subdir) = misc] (generated): Do not update.
35270 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
35271 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
35272 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
35273 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
35274
35275 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
35276
35277 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
35278 (tst-cxa_atexit, tst-on_exit): Likewise.
35279 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
35280 tst-cxa_atexit, and tst-on_exit.
35281 * stdlib/tst-atexit-common.c: New file.
35282 * stdlib/tst-atexit.c: New file.
35283 * stdlib/tst-at_quick_exit.c: New file.
35284 * stdlib/tst-cxa_atexit.c: New file.
35285 * stdlib/tst-on_exit.c: New file.
35286
35287 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
35288
35289 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
35290 * mach/stack_chk_fail_local.c: New file.
35291 * hurd/stack_chk_fail_local.c: New file.
35292 * mach/Machrules ($(interface-library)-routines): Add
35293 stack_chk_fail_local.
35294 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
35295 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
35296 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
35297 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
35298 * hurd/Makefile (CFLAGS-hurdstartup.o,
35299 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
35300
35301 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
35302
35303 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
35304 (index_cpu_*, index_arch_*): Removed.
35305
35306 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
35307
35308 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
35309 Use uint64_t instead of unsigned long.
35310
35311 2017-08-25 Joseph Myers <joseph@codesourcery.com>
35312
35313 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
35314 [__HAVE_DISTINCT_FLOAT128].
35315
35316 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
35317 of <bits/math-finite.h>.
35318 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
35319 inclusion of <bits/math-finite.h>.
35320 * math/bits/math-finite.h (__REDIRTO_X): Do not define
35321 conditionally on [__MATH_DECLARING_LDOUBLE && defined
35322 __NO_LONG_DOUBLE_MATH].
35323 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
35324 (__MATH_REDIRCALL_2): Likewise.
35325 (__MATH_REDIRCALL_INTERNAL): Likewise.
35326 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
35327 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
35328 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
35329
35330 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
35331 Remove file.
35332 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
35333 Likewise.
35334 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
35335 Likewise.
35336 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
35337 Likewise.
35338 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
35339 Likewise.
35340 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
35341 Likewise.
35342 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
35343 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
35344 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
35345 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
35346 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
35347 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
35348 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
35349 w_sqrtf_compat-ppc32.
35350
35351 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35352
35353 * math/math.h [defined __cplusplus] (issignaling): In the long
35354 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
35355 is not defined. Call __issignaling, otherwise.
35356
35357 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35358
35359 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
35360 syscall definitions and replace __builtin_expect with __glibc_likely.
35361 * sysdeps/unix/syscall-template.S: Update comment about cancellable
35362 syscall.
35363 (SYSCALL_CANCELLABLE): Removedefinition
35364 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
35365 definition.
35366 (PSEUDO_END): Likewise.
35367 [IS_IN (libpthread)] (CENABLE): Likewise.
35368 [IS_IN (libpthread)] (CDISABLE): Likewise.
35369 [IS_IN (libc)] (CENABLE): Likewise.
35370 [IS_IN (libc)] (CENABLE): Likewise.
35371 [IS_IN (librt)] (CDISABLE): Likewise.
35372 [IS_IN (librt)] (CDISABLE): Likewise.
35373 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35374 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
35375 definition.
35376 (PSEUDO_END): Likewise.
35377 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
35378 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
35379 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
35380 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
35381 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
35382 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
35383 (CENABLE): Likewise.
35384 (CDISABLE): Likewise.
35385 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35386 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
35387 defintion.
35388 (PSEUDO_END): Likewise.
35389 [IS_IN (libpthread)] (CENABLE): Likewise.
35390 [IS_IN (libpthread)] (CDISABLE): Likewise.
35391 [IS_IN (libc)] (CENABLE): Likewise.
35392 [IS_IN (libc)] (CENABLE): Likewise.
35393 [IS_IN (librt)] (CDISABLE): Likewise.
35394 [IS_IN (librt)] (CDISABLE): Likewise.
35395 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35396 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
35397 definition.
35398 (PSEUDO_END): Likewise.
35399 [IS_IN (libpthread)] (CENABLE): Likewise.
35400 [IS_IN (libpthread)] (CDISABLE): Likewise.
35401 [IS_IN (libc)] (CENABLE): Likewise.
35402 [IS_IN (libc)] (CENABLE): Likewise.
35403 [IS_IN (librt)] (CDISABLE): Likewise.
35404 [IS_IN (librt)] (CDISABLE): Likewise.
35405 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35406 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
35407 definition.
35408 (PSEUDO_END): Likewise.
35409 [IS_IN (libpthread)] (CENABLE): Likewise.
35410 [IS_IN (libpthread)] (CDISABLE): Likewise.
35411 [IS_IN (libc)] (CENABLE): Likewise.
35412 [IS_IN (libc)] (CENABLE): Likewise.
35413 [IS_IN (librt)] (CDISABLE): Likewise.
35414 [IS_IN (librt)] (CDISABLE): Likewise.
35415 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35416 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
35417 definition.
35418 (PSEUDO_END): Likewise.
35419 [IS_IN (libpthread)] (CENABLE): Likewise.
35420 [IS_IN (libpthread)] (CDISABLE): Likewise.
35421 [IS_IN (libc)] (CENABLE): Likewise.
35422 [IS_IN (libc)] (CENABLE): Likewise.
35423 [IS_IN (librt)] (CDISABLE): Likewise.
35424 [IS_IN (librt)] (CDISABLE): Likewise.
35425 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35426 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
35427 definition.
35428 (PSEUDO_END): Likewise.
35429 [IS_IN (libpthread)] (CENABLE): Likewise.
35430 [IS_IN (libpthread)] (CDISABLE): Likewise.
35431 [IS_IN (libc)] (CENABLE): Likewise.
35432 [IS_IN (libc)] (CENABLE): Likewise.
35433 [IS_IN (librt)] (CDISABLE): Likewise.
35434 [IS_IN (librt)] (CDISABLE): Likewise.
35435 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35436 * sysdeps/unix/sysv/linux/microblaze/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/mips/mips64/sysdep-cancel.h (PSEUDO):
35447 Remove definition.
35448 (PSEUDO_END): Likewise.
35449 [IS_IN (libpthread)] (CENABLE): Likewise.
35450 [IS_IN (libpthread)] (CDISABLE): Likewise.
35451 [IS_IN (libc)] (CENABLE): Likewise.
35452 [IS_IN (libc)] (CENABLE): Likewise.
35453 [IS_IN (librt)] (CDISABLE): Likewise.
35454 [IS_IN (librt)] (CDISABLE): Likewise.
35455 (SINGLE_THREAD_P): Likewise.
35456 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
35457 definition.
35458 (PSEUDO_END): Likewise.
35459 [IS_IN (libpthread)] (CENABLE): Likewise.
35460 [IS_IN (libpthread)] (CDISABLE): Likewise.
35461 [IS_IN (libc)] (CENABLE): Likewise.
35462 [IS_IN (libc)] (CENABLE): Likewise.
35463 [IS_IN (librt)] (CDISABLE): Likewise.
35464 [IS_IN (librt)] (CDISABLE): Likewise.
35465 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35466 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
35467 definition.
35468 (PSEUDO_END): Likewise.
35469 [IS_IN (libpthread)] (CENABLE): Likewise.
35470 [IS_IN (libpthread)] (CDISABLE): Likewise.
35471 [IS_IN (libc)] (CENABLE): Likewise.
35472 [IS_IN (libc)] (CENABLE): Likewise.
35473 [IS_IN (librt)] (CDISABLE): Likewise.
35474 [IS_IN (librt)] (CDISABLE): Likewise.
35475 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35476 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
35477 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
35478 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
35479 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
35480 definition.
35481 (PSEUDO_END): Likewise.
35482 [IS_IN (libpthread)] (CENABLE): Likewise.
35483 [IS_IN (libpthread)] (CDISABLE): Likewise.
35484 [IS_IN (libc)] (CENABLE): Likewise.
35485 [IS_IN (libc)] (CENABLE): Likewise.
35486 [IS_IN (librt)] (CDISABLE): Likewise.
35487 [IS_IN (librt)] (CDISABLE): Likewise.
35488 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35489 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
35490 definition.
35491 (PSEUDO_END): Likewise.
35492 [IS_IN (libpthread)] (CENABLE): Likewise.
35493 [IS_IN (libpthread)] (CDISABLE): Likewise.
35494 [IS_IN (libc)] (CENABLE): Likewise.
35495 [IS_IN (libc)] (CENABLE): Likewise.
35496 [IS_IN (librt)] (CDISABLE): Likewise.
35497 [IS_IN (librt)] (CDISABLE): Likewise.
35498 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35499 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
35500 definition.
35501 (PSEUDO_END): Likewise.
35502 [IS_IN (libpthread)] (CENABLE): Likewise.
35503 [IS_IN (libpthread)] (CDISABLE): Likewise.
35504 [IS_IN (libc)] (CENABLE): Likewise.
35505 [IS_IN (libc)] (CENABLE): Likewise.
35506 [IS_IN (librt)] (CDISABLE): Likewise.
35507 [IS_IN (librt)] (CDISABLE): Likewise.
35508 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35509 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
35510 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
35511 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
35512 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
35513 definition.
35514 (PSEUDO_END): Likewise.
35515 [IS_IN (libpthread)] (CENABLE): Likewise.
35516 [IS_IN (libpthread)] (CDISABLE): Likewise.
35517 [IS_IN (libc)] (CENABLE): Likewise.
35518 [IS_IN (libc)] (CENABLE): Likewise.
35519 [IS_IN (librt)] (CDISABLE): Likewise.
35520 [IS_IN (librt)] (CDISABLE): Likewise.
35521 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35522 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
35523 definition.
35524 (PSEUDO_END): Likewise.
35525 [IS_IN (libpthread)] (CENABLE): Likewise.
35526 [IS_IN (libpthread)] (CDISABLE): Likewise.
35527 [IS_IN (libc)] (CENABLE): Likewise.
35528 [IS_IN (libc)] (CENABLE): Likewise.
35529 [IS_IN (librt)] (CDISABLE): Likewise.
35530 [IS_IN (librt)] (CDISABLE): Likewise.
35531 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35532
35533 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
35534
35535 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
35536
35537 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
35538
35539 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
35540
35541 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
35542
35543 [BZ #21982]
35544 * string/stratcliff.c (do_test): Declare size, nchars, inner,
35545 middle and outer with size_t instead of int. Repleace %d and
35546 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
35547 "MAX (outer, nchars - 64)" to support unsigned outer and
35548 nchars. Also exit loop when outer == 0.
35549
35550 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35551
35552 * include/fcntl.h (__fcntl_nocancel): Remove definition.
35553 * include/signal.h (__sigsuspend_nocancel): Likewise.
35554 * include/time.h (__nanosleep_nocancel): Likewise.
35555 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
35556 * login/utmp_file.c: Include non cancellable syscall header.
35557 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
35558 prototype.
35559
35560 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
35561
35562 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
35563 .byte sequences with AVX512F instructions.
35564 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
35565 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
35566 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
35567 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
35568 Likewise.
35569 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
35570 Likewise.
35571
35572 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
35573 Steve Ellcey <sellcey@cavium.com>
35574
35575 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
35576 Use PTR_REG macro in cmp instruction.
35577
35578 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35579
35580 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
35581 Change the return type of the ifunc resolver to match the return
35582 type of the target function.
35583
35584 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35585
35586 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
35587 (preadv64): Likewise.
35588 (pwrite64(: Likewise.
35589 (pwritev64): Likewise.
35590
35591 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
35592 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
35593 (LOAD_ARGS_0): Likewise.
35594 (LOAD_ARGS_1): Likewise.
35595 (LOAD_ARGS_2): Likewise.
35596 (LOAD_ARGS_3): Likewise.
35597 (LOAD_ARGS_4): Likewise.
35598 (LOAD_ARGS_5): Likewise.
35599 (LOAD_ARGS_6): Likewise.
35600 (LOAD_REGS_0): Likewise.
35601 (LOAD_REGS_1): Likewise.
35602 (LOAD_REGS_2): Likewise.
35603 (LOAD_REGS_3): Likewise.
35604 (LOAD_REGS_4): Likewise.
35605 (LOAD_REGS_5): Likewise.
35606 (LOAD_REGS_6): Likewise.
35607 (ASM_ARGS_0): Likewise.
35608 (ASM_ARGS_1): Likewise.
35609 (ASM_ARGS_2): Likewise.
35610 (ASM_ARGS_3): Likewise.
35611 (ASM_ARGS_4): Likewise.
35612 (ASM_ARGS_5): Likewise.
35613 (ASM_ARGS_6): Likewise.
35614 (LOAD_ARGS_TYPES_1): Likewise.
35615 (LOAD_ARGS_TYPES_2): Likewise.
35616 (LOAD_ARGS_TYPES_3): Likewise.
35617 (LOAD_ARGS_TYPES_4): Likewise.
35618 (LOAD_ARGS_TYPES_5): Likewise.
35619 (LOAD_ARGS_TYPES_6): Likewise.
35620 (LOAD_REGS_TYPES_1): Likewise.
35621 (LOAD_REGS_TYPES_2): Likewise.
35622 (LOAD_REGS_TYPES_3): Likewise.
35623 (LOAD_REGS_TYPES_4): Likewise.
35624 (LOAD_REGS_TYPES_5): Likewise.
35625 (LOAD_REGS_TYPES_6): Likewise.
35626 (TYPEFY): New define.
35627 (ARGIFY): Likewise.
35628 (internal_syscall0): Likewise.
35629 (internal_syscall1): Likewise.
35630 (internal_syscall2): Likewise.
35631 (internal_syscall3): Likewise.
35632 (internal_syscall4): Likewise.
35633 (internal_syscall5): Likewise.
35634 (internal_syscall6): Likewise.
35635 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
35636 (INTERNAL_SYSCALL_NCS): Remove define.
35637 (internal_syscall1): Add define.
35638
35639 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35640
35641 * math/w_remainder_compat.c: Remove duplicate inclusion of
35642 math-svid-compat.h.
35643 * math/w_remainderf_compat.c: Likewise.
35644 * math/w_remainderl_compat.c: Likewise.
35645
35646 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35647
35648 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
35649
35650 2017-08-22 Joseph Myers <joseph@codesourcery.com>
35651
35652 [BZ #21684]
35653 * math/tgmath.h (__floating_type): Simplify definitions.
35654 (__real_integer_type): New macro.
35655 (__complex_integer_type): Likewise.
35656 (__expr_is_real): Likewise.
35657 (__tgmath_real_type_sub): Update comment to describe handling of
35658 complex types.
35659 (__tgmath_complex_type_sub): New macro.
35660 (__tgmath_complex_type): Likewise.
35661 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
35662 (__TGMATH_CF128): Use __expr_is_real.
35663 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
35664 __expr_is_real.
35665 (__TGMATH_BINARY_REAL_IMAG): Likewise.
35666 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
35667 * math/gen-tgmath-tests.py (Type.create_type): Create complex
35668 integer types.
35669
35670 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35671
35672 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
35673 macro.
35674 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
35675 alias.
35676 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
35677 Likewise.
35678
35679 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
35680 nanosleep_not_cancel with __nanosleep_nocancel.
35681 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
35682 (__nanosleep_nocancel): New macro.
35683 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
35684 function.
35685 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
35686 macro.
35687 (__nanosleep_nocancel): New prototype.
35688
35689 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
35690 pause_not_cancel with __pause_nocancel.
35691 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
35692 (__pause_nocancel): New macro.
35693 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
35694 macro.
35695 (__pause_nocancel): New prototype.
35696 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
35697
35698 2017-08-22 Martin Sebor <msebor@redhat.com>
35699
35700 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
35701 to return a pointer to the same type as the target function.
35702
35703 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
35704
35705 [BZ #18822]
35706 [BZ #21986]
35707 * include/printf.h (__printf_fphex): Add attribute_hidden.
35708 (__guess_grouping): New prototype.
35709 * stdio-common/printf_fp.c (__guess_grouping): Removed.
35710 * stdio-common/reg-printf.c (__register_printf_specifier): Add
35711 libc_hidden_proto and libc_hidden_def.
35712 * stdlib/strfmon_l.c (__guess_grouping): Removed.
35713 (__vstrfmon_l): Remove the third argument passed to
35714 __guess_grouping.
35715
35716 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35717
35718 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
35719 definition for issignaling that does not rely on __MATH_TG,
35720 since __MATH_TG uses __builtin_types_compatible_p, which is only
35721 available in C mode.
35722 (CFLAGS-test-math-issignaling.cc): New variable.
35723 * math/Makefile [CXX] (tests): Add test-math-issignaling.
35724 * math/test-math-issignaling.cc: New test for C++ implementation
35725 of type-generic issignaling.
35726 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
35727 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
35728 options of test-math-issignaling on powerpc64le.
35729
35730 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
35731
35732 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
35733 building libc.a.
35734 (hidden_proto): Likewise.
35735 (hidden_tls_proto): Likewise.
35736 (__hidden_proto): Likewise.
35737
35738 2017-08-22 Florian Weimer <fweimer@redhat.com>
35739
35740 math: Statically link tests of internal functionality.
35741 * math/Makefile (tests): Remove atest-exp, atest-sincos,
35742 atest-exp2.
35743 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
35744 (gmp-objs): Remove assignment.
35745 (atest-exp, atest-sincos, atest-exp2): Remove targets.
35746
35747 2017-08-22 Joseph Myers <joseph@codesourcery.com>
35748
35749 [BZ #21987]
35750 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
35751 and copy to ...
35752 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
35753 ... here.
35754 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
35755 ... and here.
35756
35757 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
35758 variable definitions above inclusion of ../Rules.
35759
35760 2017-08-21 Joseph Myers <joseph@codesourcery.com>
35761
35762 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
35763 case calling __builtin_unreachable.
35764
35765 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35766
35767 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
35768 __waitpid_nocancel.
35769 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
35770 (__waitpid_nocancel): New macro.
35771 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
35772 macro.
35773 (__waitpid_nocancel): Replace macro with a function.
35774 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
35775 function.
35776
35777 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
35778 __fcntl_nocancel.
35779 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
35780 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
35781
35782 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
35783 __writev_nocancel_nostatus.
35784 (write_call_graph): Likewise.
35785 (write_bb_counts): Likewise.
35786 * resolv/herror.c (herror): Likewise.
35787 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
35788 macro.
35789 (__writev_nocancel_nostatus): New macro.
35790 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
35791 Remove macro.
35792 (__writev_nocancel_nostatus): New function.
35793
35794 2017-08-21 Joseph Myers <joseph@codesourcery.com>
35795
35796 Revert:
35797 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
35798
35799 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
35800 building libc.a.
35801 (hidden_proto): Likewise.
35802 (hidden_tls_proto): Likewise.
35803 (__hidden_proto): Likewise.
35804
35805 [BZ #21973]
35806 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
35807 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
35808 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
35809 Likewise.
35810 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
35811 Likewise.
35812 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
35813 Likewise.
35814 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
35815 Likewise.
35816 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
35817 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
35818 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
35819 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
35820 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
35821 GLIBC_2.0 sqrtl symbol.
35822
35823 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
35824 [__USE_MISC] (_LIB_VERSION): Likewise.
35825 [__USE_MISC] (struct exception): Likewise.
35826 [__USE_MISC] (matherr): Likewise.
35827 [__USE_MISC] (DOMAIN): Likewise.
35828 [__USE_MISC] (SING): Likewise.
35829 [__USE_MISC] (OVERFLOW): Likewise.
35830 [__USE_MISC] (UNDERFLOW): Likewise.
35831 [__USE_MISC] (TLOSS): Likewise.
35832 [__USE_MISC] (PLOSS): Likewise.
35833 [__USE_MISC] (HUGE): Likewise.
35834 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
35835 * math/math-svid-compat.h: New file.
35836 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
35837 and matherrl.
35838 * include/math.h [!_ISOMAC] (__matherr): Remove.
35839 * manual/arith.texi (FP Exceptions): Do not document matherr.
35840 * math/Makefile (tests): Change test-matherr to test-matherr-3.
35841 (tests-internal): New variable.
35842 (install-lib): Do not add libieee.a.
35843 (non-lib.a): Likewise.
35844 (extra-objs): Do not add libieee.a and ieee-math.o.
35845 (CPPFLAGS-s_lib_version.c): Remove variable.
35846 ($(objpfx)libieee.a): Remove rule.
35847 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
35848 * math/ieee-math.c: Remove.
35849 * math/libm-test-support.c (matherr): Remove.
35850 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
35851 and license notices. Include <math-svid-compat.h> and
35852 <shlib-compat.h>.
35853 (matherr): Undefine as macro. Use compat_symbol_reference.
35854 (_LIB_VERSION): Likewise.
35855 * math/test-matherr-2.c: New file.
35856 * math/test-matherr-3.c: Likewise.
35857 * sysdeps/generic/math_private.h (__kernel_standard): Remove
35858 declaration.
35859 (__kernel_standard_f): Likewise.
35860 (__kernel_standard_l): Likewise.
35861 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
35862 <math_private.h>. Include <math-svid-compat.h>.
35863 (_LIB_VERSION): Undefine as macro.
35864 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
35865 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
35866 [LIBM_SVID_COMPAT], use compat_symbol.
35867 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
35868 <math_private.h>. Include <math-svid-compat.h>.
35869 (matherr): Undefine as macro.
35870 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
35871 compat_symbol.
35872 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
35873 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
35874 compat_symbol_reference.
35875 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
35876 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
35877 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
35878 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
35879 (MATHERR_D): Remove declaration.
35880 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
35881 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
35882 [LIBM_BUILD] (pmatherrf): Likewise.
35883 [LIBM_BUILD] (pmatherr): Likewise.
35884 [LIBM_BUILD] (pmatherrl): Likewise.
35885 (DOMAIN): Likewise.
35886 (SING): Likewise.
35887 (OVERFLOW): Likewise.
35888 (UNDERFLOW): Likewise.
35889 (TLOSS): Likewise.
35890 (PLOSS): Likewise.
35891 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
35892 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
35893 compat_symbol.
35894 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
35895 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
35896 compat_symbol.
35897 * math/lgamma-compat.h: Include <math-svid-compat.h>.
35898 * math/w_acos_compat.c: Likewise.
35899 * math/w_acosf_compat.c: Likewise.
35900 * math/w_acosh_compat.c: Likewise.
35901 * math/w_acoshf_compat.c: Likewise.
35902 * math/w_acoshl_compat.c: Likewise.
35903 * math/w_acosl_compat.c: Likewise.
35904 * math/w_asin_compat.c: Likewise.
35905 * math/w_asinf_compat.c: Likewise.
35906 * math/w_asinl_compat.c: Likewise.
35907 * math/w_atan2_compat.c: Likewise.
35908 * math/w_atan2f_compat.c: Likewise.
35909 * math/w_atan2l_compat.c: Likewise.
35910 * math/w_atanh_compat.c: Likewise.
35911 * math/w_atanhf_compat.c: Likewise.
35912 * math/w_atanhl_compat.c: Likewise.
35913 * math/w_cosh_compat.c: Likewise.
35914 * math/w_coshf_compat.c: Likewise.
35915 * math/w_coshl_compat.c: Likewise.
35916 * math/w_exp10_compat.c: Likewise.
35917 * math/w_exp10f_compat.c: Likewise.
35918 * math/w_exp10l_compat.c: Likewise.
35919 * math/w_exp2_compat.c: Likewise.
35920 * math/w_exp2f_compat.c: Likewise.
35921 * math/w_exp2l_compat.c: Likewise.
35922 * math/w_fmod_compat.c: Likewise.
35923 * math/w_fmodf_compat.c: Likewise.
35924 * math/w_fmodl_compat.c: Likewise.
35925 * math/w_hypot_compat.c: Likewise.
35926 * math/w_hypotf_compat.c: Likewise.
35927 * math/w_hypotl_compat.c: Likewise.
35928 * math/w_j0_compat.c: Likewise.
35929 * math/w_j0f_compat.c: Likewise.
35930 * math/w_j0l_compat.c: Likewise.
35931 * math/w_j1_compat.c: Likewise.
35932 * math/w_j1f_compat.c: Likewise.
35933 * math/w_j1l_compat.c: Likewise.
35934 * math/w_jn_compat.c: Likewise.
35935 * math/w_jnf_compat.c: Likewise.
35936 * math/w_jnl_compat.c: Likewise.
35937 * math/w_lgamma_main.c: Likewise.
35938 * math/w_lgamma_r_compat.c: Likewise.
35939 * math/w_lgammaf_main.c: Likewise.
35940 * math/w_lgammaf_r_compat.c: Likewise.
35941 * math/w_lgammal_main.c: Likewise.
35942 * math/w_lgammal_r_compat.c: Likewise.
35943 * math/w_log10_compat.c: Likewise.
35944 * math/w_log10f_compat.c: Likewise.
35945 * math/w_log10l_compat.c: Likewise.
35946 * math/w_log2_compat.c: Likewise.
35947 * math/w_log2f_compat.c: Likewise.
35948 * math/w_log2l_compat.c: Likewise.
35949 * math/w_log_compat.c: Likewise.
35950 * math/w_logf_compat.c: Likewise.
35951 * math/w_logl_compat.c: Likewise.
35952 * math/w_pow_compat.c: Likewise.
35953 * math/w_powf_compat.c: Likewise.
35954 * math/w_powl_compat.c: Likewise.
35955 * math/w_remainder_compat.c: Likewise.
35956 * math/w_remainderf_compat.c: Likewise.
35957 * math/w_remainderl_compat.c: Likewise.
35958 * math/w_scalb_compat.c: Likewise.
35959 * math/w_scalbf_compat.c: Likewise.
35960 * math/w_scalbl_compat.c: Likewise.
35961 * math/w_sinh_compat.c: Likewise.
35962 * math/w_sinhf_compat.c: Likewise.
35963 * math/w_sinhl_compat.c: Likewise.
35964 * math/w_sqrt_compat.c: Likewise.
35965 * math/w_sqrtf_compat.c: Likewise.
35966 * math/w_sqrtl_compat.c: Likewise.
35967 * math/w_tgamma_compat.c: Likewise.
35968 * math/w_tgammaf_compat.c: Likewise.
35969 * math/w_tgammal_compat.c: Likewise.
35970 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
35971 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
35972 * sysdeps/ieee754/k_standard.c: Likewise.
35973 * sysdeps/ieee754/k_standardf.c: Likewise.
35974 * sysdeps/ieee754/k_standardl.c: Likewise.
35975 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
35976 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
35977 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
35978 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
35979 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
35980 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
35981 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
35982 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
35983 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
35984 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
35985 Likewise.
35986 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
35987 Likewise.
35988 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
35989 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
35990 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
35991 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
35992
35993 2017-08-21 Florian Weimer <fweimer@redhat.com>
35994
35995 [BZ #21864]
35996 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
35997 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
35998 Move before inclusion of ../Rules.
35999
36000 2017-08-21 Florian Weimer <fweimer@redhat.com>
36001
36002 [BZ #21972]
36003 * assert/assert.h (assert): Use static_cast (bool) for C++.
36004 Use the ternary operator in the warning branch for GNU C.
36005 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
36006 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
36007 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
36008 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
36009 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
36010
36011 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36012
36013 [BZ #18822]
36014 * sysdeps/unix/sysv/linux/x86_64/init-first.c
36015 (__syscall_clock_gettime): Add attribute_hidden.
36016 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
36017 (__start_context): Likewise.
36018
36019 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36020
36021 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
36022 building libc.a.
36023 (hidden_proto): Likewise.
36024 (hidden_tls_proto): Likewise.
36025 (__hidden_proto): Likewise.
36026
36027 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36028
36029 * include/libc-symbols.h (attribute_hidden): Enable hidden
36030 visibility in libc.a compiled with PIE.
36031
36032 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36033
36034 [BZ #18822]
36035 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
36036 Add attribute_hidden.
36037
36038 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36039
36040 [BZ #21864]
36041 * Makerules (all-nonlib): Add $(others-extras).
36042 * catgets/Makefile (others-extras): New.
36043 * elf/Makefile (others-extras): Likewise.
36044 * nss/Makefile (others-extras): Likewise.
36045
36046 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36047
36048 [BZ #18822]
36049 * csu/libc-start.c (__libc_multiple_libcs): Removed.
36050 * elf/dl-open.c: Include <libc-internal.h>.
36051 (__libc_multiple_libcs): Removed.
36052 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
36053 <hp-timing.h>.
36054 * include/libc-internal.h (__libc_multiple_libcs): New.
36055 * misc/sbrk.c: Include <libc-internal.h>.
36056 (__libc_multiple_libcs): Removed.
36057
36058 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36059
36060 [BZ #18822]
36061 * grp/initgroups.c (__nss_group_database): Removed.
36062 (__nss_initgroups_database): Likewise.
36063 * nscd/gai.c (__nss_hosts_database): Likewise.
36064 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
36065 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
36066 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
36067 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
36068 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
36069 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
36070 attribute_hidden.
36071 * nss/nsswitch.c (__nss_database_custom): Define only if
36072 USE_NSCD is defined.
36073 (__nss_configure_lookup): Use __nss_database_custom only if
36074 USE_NSCD is defined.
36075 * nss/nsswitch.h (__nss_database_custom): Declare only if
36076 USE_NSCD is defined. Add attribute_hidden.
36077 (__nss_setent): Add attribute_hidden.
36078 (__nss_endent): Likewise.
36079 (__nss_getent_r): Likewise.
36080 (__nss_getent): Likewise.
36081 (DEFINE_DATABASE): Declare __nss_##arg##_database.
36082
36083 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36084
36085 [BZ #18822]
36086 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
36087 libc_hidden_proto and libc_hidden_def.
36088
36089 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36090
36091 [BZ #18822]
36092 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
36093 Add libc_hidden_proto.
36094 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
36095 Add libc_hidden_def.
36096
36097 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36098
36099 [BZ #21974]
36100 * gmon/Makefile (routines): Remove bb_init_func and
36101 bb_exit_func.
36102 (elide-routines.os): Removed.
36103 * gmon/bb_exit_func.c: Likewise.
36104 * gmon/bb_init_func.c: Likewise.
36105 * include/sys/gmon.h (__bb): Likewise.
36106 (__bb_init_func): Likewise.
36107 (__bb_exit_func): Likewise.
36108 * sysdeps/alpha/bb_init_func.S: Likewise.
36109
36110 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36111
36112 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
36113 * include/setjmp.h (____longjmp_chk): Here. Add
36114 attribute_hidden.
36115
36116 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
36117
36118 [BZ #18822]
36119 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
36120 attribute_hidden.
36121 (__strspn_sse2): Likewise.
36122
36123 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36124
36125 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
36126 (close_not_cancel_no_status): Likewise.
36127 (__close_nocancel): New macro.
36128 (__close_nocancel_nostatus): Likewise.
36129 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
36130 macro.
36131 (close_not_cancel): Likewise.
36132 (close_not_cancel_no_status): Likewise.
36133 (__close_nocancel): New prototype.
36134 (__close_nocancel_nostatus): New function.
36135 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
36136 * catgets/open_catalog.c (__open_catalog): Replace
36137 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
36138 * gmon/gmon.c (write_gmon): Likewise.
36139 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
36140 * intl/loadmsgcat.c (close): Likewise.
36141 * io/ftw.c (open_dir_stream): Likewise.
36142 (ftw_startup): Likewise.
36143 * libio/fileops.c (_IO_file_open): Likewise.
36144 (_IO_file_close_mmap): Likewise.
36145 (_IO_file_close): Likewise.
36146 * libio/iopopen.c (_IO_dup2): Likewise.
36147 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
36148 * locale/loadlocale.c (_nl_load_locale): Likewise.
36149 * login/utmp_file.c (pututline_file): Likewise.
36150 (endutent_file): Likewise.
36151 * misc/daemon.c (daemon): Likewise.
36152 * nscd/nscd_getai.c (__nscd_getai): Likewise.
36153 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
36154 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
36155 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
36156 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
36157 * nscd/nscd_helper.c (open_socket): Likewise.
36158 (__nscd_open_socket): Likewise.
36159 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
36160 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
36161 (__nscd_innetgr): Likewise.
36162 * nss/nss_db/db-open.c (internal_setent): Likewise.
36163 * resolv/res-close.c (__res_iclose): Likewise.
36164 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
36165 * sysdeps/posix/closedir.c (__closedir): Likewise.
36166 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
36167 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
36168 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
36169 (opendir_tail): Likewise.
36170 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
36171 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
36172 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
36173 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
36174 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
36175 (gethostid): Likewise.
36176 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
36177 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
36178 Likewise.
36179 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
36180 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
36181 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
36182 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
36183 Likewise.
36184 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
36185 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
36186 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
36187 Likewise.
36188 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
36189 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
36190 Likewise.
36191 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
36192 Likewise.
36193 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
36194 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
36195 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
36196 __close_nocancel.
36197
36198 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
36199 (openat_not_cancel_3): Likewise.
36200 (openat64_not_cancel_3): Likewise).
36201 (openat_not_cancel_3): Likewise).
36202 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
36203 macro.
36204 (openat_not_cancel_3): Likewise.
36205 (openat64_not_cancel): Likewise.
36206 (openat64_not_cancel_3): Likewise.
36207 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
36208 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
36209 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
36210 __open{64}_nocancel.
36211 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
36212 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
36213 * sysdeps/posix/opendir.c (__opendirat): Likewise.
36214
36215 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
36216
36217 [BZ #18822]
36218 * include/argz.h (__argz_create_sep): New function prototype.
36219 (__argz_append): Likewise.
36220 (__argz_add): Likewise.
36221 (__argz_add_sep): Likewise.
36222 (__argz_delete): Likewise.
36223 (__argz_insert): Likewise.
36224 (__argz_replace): Likewise.
36225 * string/argz.h (__argz_create_sep): Removed.
36226 (__argz_append): Likewise.
36227 (__argz_add): Likewise.
36228 (__argz_add_sep): Likewise.
36229 (__argz_delete): Likewise.
36230 (__argz_insert): Likewise.
36231 (__argz_replace): Likewise.
36232
36233 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
36234
36235 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
36236 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
36237 (GNU_PROPERTY_STACK_SIZE): Likewie.
36238 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
36239 (GNU_PROPERTY_LOPROC): Likewise.
36240 (GNU_PROPERTY_HIPROC): Likewise.
36241 (GNU_PROPERTY_LOUSER): Likewise.
36242 (GNU_PROPERTY_HIUSER): Likewise.
36243 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
36244 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
36245 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
36246 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
36247 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
36248 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
36249 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
36250 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
36251 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
36252 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
36253 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
36254 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
36255 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
36256 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
36257 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
36258 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
36259 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
36260 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
36261 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
36262 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
36263 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
36264 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
36265 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
36266
36267 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36268
36269 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
36270 in C++ mode.
36271
36272 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36273
36274 [BZ #21930]
36275 * math/math.h (isinf): Check if in C or C++ mode before using
36276 __builtin_types_compatible_p, since this is a C mode feature.
36277
36278 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36279
36280 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
36281 (__write_nocancel): New macro.
36282 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
36283 Rewrite as a function prototype.
36284 (write_not_cancel): Remove macro.
36285 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
36286 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
36287 (write_gmon): Likewise.
36288 * libio/fileops.c (_IO_new_file_write): Likewise.
36289 * login/utmp_file.c (pututline_file): Likewise.
36290 (updwtmp_file): Likewise.
36291 * stdio-common/psiginfo.c (psiginfo): Likewise.
36292 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
36293 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
36294 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
36295 Likewise.
36296 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
36297 Likewise.
36298
36299 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
36300 (__read_nocancel): New macro.
36301 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
36302 __read_nocancel.
36303 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
36304 macro.
36305 (__read_nocancel): New prototype.
36306 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
36307 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
36308 with __read_nocancel.
36309 * intl/loadmsgcat.c (read): Likewise.
36310 * libio/fileops.c (_IO_file_read): Likewise.
36311 * locale/loadlocale.c (_nl_load_locale): Likewise.
36312 * login/utmp_file.c (getutent_r_file): Likewise.
36313 (internal_getut_r): Likewise.
36314 (getutline_r_file): Likewise.
36315 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
36316 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
36317 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
36318 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
36319 Likewise.
36320 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
36321 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
36322 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
36323 Likewise.
36324 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
36325 Likewise.
36326 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
36327 Likewise.
36328 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
36329 Likewise.
36330 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
36331
36332 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
36333
36334 [BZ #21966]
36335 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
36336 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
36337 usable.
36338
36339 2017-08-17 DJ Delorie <dj@redhat.com>
36340
36341 * bug17079.c: Update to new test harness.
36342 * test-digits-dots.c: Likewise.
36343 * test-netdb.c: Likewise.
36344 * tst-field.c: Likewise.
36345 * tst-nss-getpwent.c: Likewise.
36346 * tst-nss-static.c: Likewise.
36347 * tst-nss-test1.c: Likewise.
36348 * tst-nss-test2.c: Likewise.
36349 * tst-nss-test3.c: Likewise.
36350 * tst-nss-test4.c: Likewise.
36351 * tst-nss-test5.c: Likewise.
36352
36353 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36354
36355 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
36356 (open_not_cancel_2): Likewise.
36357 (open_nocancel): New macro.
36358 (open64_nocancel): Likewise.
36359 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
36360 (open_not_cancel_2): Likewise.
36361 (__open_nocancel): New prototype.
36362 (__open64_nocancel): Likewise.
36363 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
36364 __open_nocancel.
36365 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
36366 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
36367 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
36368 with __open_nocancel.
36369 * csu/check_fds.c (check_one_fd): Likewise.
36370 * gmon/gmon.c (write_gmon): Likewise.
36371 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
36372 * intl/loadmsgcat.c (open): Likewise.
36373 * libio/fileops.c (_IO_file_open): Likewise.
36374 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
36375 * locale/loadlocale.c (_nl_load_locale): Likewise.
36376 * login/utmp_file.c (setutent_file): Likewise.
36377 * misc/daemon.c (daemon): Likewise.
36378 * nss/nss_db/db-open.c (internal_setent): Likewise.
36379 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
36380 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
36381 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
36382 (__opendir): Likewise.
36383 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
36384 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
36385 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
36386 (gethostid): Likewise.
36387 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
36388 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
36389 Likewise.
36390 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
36391 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
36392 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
36393 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
36394 Likewise.
36395 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
36396 Likewise.
36397 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
36398 Likewise.
36399 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
36400 Likewise.
36401 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
36402 Likewise.
36403 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
36404 Likewise.
36405 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
36406 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
36407
36408 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
36409
36410 * benchtests/bench-skeleton.c (main): Add support for
36411 latency benchmarking.
36412 * benchtests/scripts/bench.py: Add support for latency benchmarking.
36413
36414 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
36415
36416 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
36417 the startup object.
36418
36419 2017-08-17 Florian Weimer <fweimer@redhat.com>
36420
36421 * include/sys/socket.h (__opensock): Remove internal_function.
36422 * socket/opensock.c (__opensock): Likewise.
36423 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
36424
36425 2017-08-16 Joseph Myers <joseph@codesourcery.com>
36426
36427 [BZ #21944]
36428 * signal/bits/types/__sigval_t.h: New file.
36429 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
36430 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
36431 and define sigval_t using __sigval_t.
36432 * include/bits/types/__sigval_t.h: New file.
36433 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
36434 instead of <bits/types/__sigval_t.h>.
36435 (struct sigevent): Use __sigval_t instead of sigval_t.
36436 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
36437 instead of <bits/types/__sigval_t.h>.
36438 (siginfo_t): Use __sigval_t instead of sigval_t.
36439 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
36440 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
36441 (struct sigevent): Use __sigval_t instead of sigval_t.
36442 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
36443 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
36444 (siginfo_t): Use __sigval_t instead of sigval_t.
36445 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
36446
36447 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
36448
36449 * NEWS: Remove "[Add new features here]" for 2.27.
36450
36451 2017-08-16 Joseph Myers <joseph@codesourcery.com>
36452
36453 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
36454 libc.so.
36455
36456 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
36457
36458 * NEWS: Mention x86-64 FMA optimization.
36459
36460 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
36461
36462 [BZ #21912]
36463 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
36464 Add e_expf-fma.
36465 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
36466 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
36467 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
36468
36469 2017-08-16 Andreas Schwab <schwab@suse.de>
36470
36471 [BZ #16750]
36472 CVE-2009-5064
36473 * elf/ldd.bash.in: Never run file directly.
36474
36475 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
36476
36477 [BZ #21955]
36478 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
36479 (L(SP_INF_0)): Likewise.
36480
36481 2017-08-15 Florian Weimer <fweimer@redhat.com>
36482
36483 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
36484 run-built-tests.
36485
36486 2017-08-15 Florian Weimer <fweimer@redhat.com>
36487
36488 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
36489 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
36490 BROKEN_THREAD_SIGNALS code.
36491 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
36492 request_list): Remove caller_pid member used for
36493 BROKEN_THREAD_SIGNALS.
36494 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
36495 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
36496 Remove BROKEN_THREAD_SIGNALS support.
36497 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
36498 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
36499
36500 2017-08-15 Florian Weimer <fweimer@redhat.com>
36501
36502 * gmon/Makefile (tests): Add tst-gmon.
36503 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
36504 Set.
36505 (tests-special): Add tst-gmon-prof.out.
36506 (tst-gmon.out): Depend on clean-tst-gmon-data.
36507 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
36508 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
36509 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
36510 startup object.
36511 * aclocal.m4 (GPROF): Set and substitute.
36512 * config.amke.in (GPROF): Set.
36513 * configure: Regenerate.
36514
36515 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
36516
36517 * elf/elf.h A (NT_PPC_TAR): New macro.
36518 (NT_PPC_PPR): Likewise.
36519 (NT_PPC_DSCR): Likewise.
36520 (NT_PPC_EBB): Likewise.
36521 (NT_PPC_PMU): Likewise.
36522 (NT_PPC_TM_CGPR): Likewise.
36523 (NT_PPC_TM_CFPR): Likewise.
36524 (NT_PPC_TM_CVMX): Likewise.
36525 (NT_PPC_TM_CVSX): Likewise.
36526 (NT_PPC_TM_SPR): Likewise.
36527 (NT_PPC_TM_CTAR): Likewise.
36528 (NT_PPC_TM_CPPR): Likewise.
36529 (NT_PPC_TM_CDSCR): Likewise.
36530
36531 2017-08-15 Florian Weimer <fweimer@redhat.com>
36532
36533 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
36534 regparm (2) instead of internal_function.
36535 (_MCOUNT_DECL): Adjust.
36536
36537 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
36538
36539 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
36540 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
36541
36542 2017-08-14 Joseph Myers <joseph@codesourcery.com>
36543
36544 * conform/data/sys/wait.h-data (si_value): Do not expect for
36545 XPG42.
36546
36547 2017-08-14 Florian Weimer <fweimer@redhat.com>
36548
36549 [BZ #21962]
36550 NSS: Create stubs for accidentally exported lookup functions.
36551 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
36552 Remove declaration.
36553 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
36554 (ether_hostton): Call __nss_ethers_lookup2 instead.
36555 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
36556 (ether_ntohost): Call __nss_ethers_lookup2 instead.
36557 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
36558 (setup): Call __nss_netgroup_lookup2 instead.
36559 * nss/Makefile (routines): Add compat-lookup.
36560 * nss/Versions (GLIBC_2.27): Add symbol version.
36561 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
36562 (DB_COMPAT_FCT): Remove.
36563 * nss/compat-lookup.c: New file.
36564 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
36565 from databases.def.
36566 * nss/service-lookup.c (NO_COMPAT): Remove definition.
36567 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
36568 (netname2user): Call __nss_publickey_lookup2 instead.
36569 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
36570 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
36571 instead.
36572
36573 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36574 Sergei Trofimovich <slyfox@inbox.ru>
36575
36576 [BZ #21908]
36577 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
36578 Rename to MMAP2_PAGE_UNIT.
36579 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
36580 __OFF_T_MATCHES_OFF64_T is not defined.
36581 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
36582 uint64_t.
36583 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
36584 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
36585
36586 2017-08-14 Florian Weimer <fweimer@redhat.com>
36587
36588 i386: Do not set internal_function.
36589 * config.h.in (USE_REGPARMS, internal_function): Remove.
36590 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
36591 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
36592
36593 2017-08-14 Florian Weimer <fweimer@redhat.com>
36594
36595 * elf/dl-init.c (_dl_init): Remove internal_function.
36596 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
36597 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
36598
36599 2017-08-14 Florian Weimer <fweimer@redhat.com>
36600
36601 * elf/rtld.c (_dl_start): Remove internal_function.
36602 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
36603 _dl_start.
36604
36605 2017-08-14 Florian Weimer <fweimer@redhat.com>
36606
36607 * elf/dl-fini.c (_dl_fini): Remove internal_function
36608 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
36609
36610 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
36611
36612 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
36613 (bit_cpu_SHSTK): Likewise.
36614 (index_cpu_IBT): Likewise.
36615 (index_cpu_SHSTK): Likewise.
36616 (reg_IBT): Likewise.
36617 (reg_SHSTK): Likewise.
36618 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
36619 Handle index_cpu_IBT and index_cpu_SHSTK.
36620
36621 2017-08-14 Mike FABIAN <mfabian@redhat.com>
36622
36623 [BZ #19982]
36624 * po/fr.po: Fix spelling mistake.
36625
36626 2017-08-13 Florian Weimer <fweimer@redhat.com>
36627
36628 * elf/dl-addr.c (_dl_addr): Remove internal_function.
36629 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
36630 (_dl_catch_error, _dl_receive_error): Likewise.
36631 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
36632 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
36633 (_dl_deallocate_tls): Likewise.
36634 * include/dlfcn.h (_dl_addr): Likewise.
36635 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
36636 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
36637 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
36638 Likewise.
36639
36640 2017-08-13 Florian Weimer <fweimer@redhat.com>
36641
36642 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
36643 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
36644 internal_function.
36645 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
36646
36647 2017-08-13 Florian Weimer <fweimer@redhat.com>
36648
36649 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
36650 internal_function.
36651 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
36652 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
36653 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
36654 internal_function from _dl_make_stack_executable_hook member.
36655 (_dl_make_stack_executable): Remove internal_function.
36656 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
36657 Likewise.
36658 * sysdeps/unix/sysv/linux/dl-execstack.c
36659 (_dl_make_stack_executable): Likewise.
36660
36661 2017-08-13 Florian Weimer <fweimer@redhat.com>
36662
36663 * sysdeps/unix/sysv/linux/netlinkaccess.h
36664 (__netlink_assert_response): Remove internal_function.
36665 * sysdeps/unix/sysv/linux/netlink_assert_response.c
36666 (__netlink_assert_response): Likewise.
36667
36668 2017-08-13 Florian Weimer <fweimer@redhat.com>
36669
36670 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
36671 internal_function.
36672 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
36673
36674 2017-08-13 Florian Weimer <fweimer@redhat.com>
36675
36676 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
36677 internal_function.
36678 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
36679 * inet/netgroup.h (__internal_setnetgrent)
36680 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
36681 * inet/getnetgrent_r.c (__internal_setnetgrent)
36682 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
36683 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
36684 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
36685 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
36686 * nss/nsswitch.h (db_lookup_function): Likewise.
36687
36688 2017-08-13 Florian Weimer <fweimer@redhat.com>
36689
36690 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
36691 Remove internal_function.
36692 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
36693 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
36694 message argument on the stack.
36695 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
36696 Likeweise.
36697
36698 2017-08-12 Mike FABIAN <mfabian@redhat.com>
36699
36700 Adapt test case data to the changes in the thousands
36701 separators.
36702
36703 [BZ #20756]
36704 * localedata/tst-langinfo.sh: Adapt test case data.
36705 * stdlib/tst-strfmon_l.c: Likewise.
36706 * stdlib/tst-strtod4.c: Likewise.
36707 * stdlib/tst-strtod5i.c: Likewise.
36708
36709 2017-08-11 Florian Weimer <fweimer@redhat.com>
36710
36711 [BZ #21242]
36712 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
36713 Suppress pedantic warning resulting from statement expression.
36714 (__ASSERT_FUNCTION): Add missing __extension__.
36715
36716 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
36717
36718 * benchtests/bench-memmove-large.c: Print output in JSON
36719 format.
36720 * benchtests/bench-memmove.c: Likewise.
36721
36722 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
36723 * benchtests/bench-memchr.c (do_one_test): Likewise.
36724 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
36725 * benchtests/bench-memcpy.c (do_one_test): Likewise.
36726 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
36727 * benchtests/bench-memmove.c (do_one_test): Likewise.
36728 * benchtests/bench-memset-large.c (do_one_test): Likewise.
36729 * benchtests/bench-memset.c (do_one_test): Likewise.
36730 * benchtests/bench-string.h (test_init): Remove memsets.
36731
36732 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
36733
36734 * manual/lang.texi
36735 (Computing the Width of an Integer Data Type): Rename section to
36736 "Width of an Integer Type". Remove inaccurate statement regarding
36737 lack of C language facilities for determining width of integer
36738 types, and reorder content to improve flow and context of
36739 discussion.
36740
36741 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
36742
36743 * lang.texi (va_copy): Change standard from ISO to C99.
36744 (__va_copy): Add standard and header annotation.
36745 Update description for clarity of origins and current use.
36746
36747 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36748
36749 [BZ #21941]
36750 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
36751 xssqrtqp requires operands to be in Vector Registers
36752 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
36753 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
36754 (__ieee754_sqrtf128): Likewise.
36755
36756 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
36757
36758 * sysdeps/aarch64/memcmp.S (memcmp):
36759 Rewrite of optimized memcmp.
36760
36761 2017-08-10 Florian Weimer <fweimer@redhat.com>
36762
36763 Introduce ld.so exceptions.
36764 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
36765 (_dl_exception_create, _dl_exception_create_format)
36766 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
36767 (_dl_catch_exception): Declare.
36768 (_dl_catch_error): Update comment.
36769 * elf/dl-error-skeleton.c (struct catch): Replace objname,
36770 errstring, malloced members with exception member.
36771 (_dl_out_of_memory): Remove.
36772 (fatal_error): New function, extracted from _dl_signal_error.
36773 (_dl_signal_exception, _dl_signal_cexception): New functions.
36774 (_dl_signal_error): Call _dl_exception_create to allocate an
36775 exception object.
36776 (_dl_catch_exception): New function, based on _dl_catch_error.
36777 (_dl_catch_error): Implement using _dl_catch_exception.
36778 * elf/dl-exception.c: New file.
36779 * elf/Makefile (dl-routines): Add dl-exception.
36780 (elide-routines.os): Likewise.
36781 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
36782 _dl_exception_create_format, _dl_exception_free.
36783 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
36784 _dl_signal_exception.
36785 * elf/dl-lookup.c (make_string): Remove.
36786 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
36787 _dl_signal_cexception, _dl_exception_free.
36788 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
36789 _dl_signal_exception.
36790 * elf/dl-sym.c (do_sym): Likewise.
36791 * elf/dl-version.c (make_string): Remove.
36792 (match_symbol): Use _dl_exception_create_format,
36793 _dl_signal_cexception, _dl_exception_free.
36794 (_dl_check_map_versions): Likewise.
36795 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
36796 _dl_catch_exception.
36797 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
36798 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
36799 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
36800 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
36801 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
36802 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
36803 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
36804 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
36805 Likewise.
36806 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
36807 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
36808 (ld.so): Likewise.
36809 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
36810 (ld.so): Likewise.
36811 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
36812 Likewise.
36813 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
36814 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
36815 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
36816 Likewise.
36817 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
36818 Likewise.
36819 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
36820
36821 2017-08-10 Florian Weimer <fweimer@redhat.com>
36822
36823 * inet/net-internal.h (__inet6_scopeid_pton): Remove
36824 attribute_hidden, internal_function.
36825 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
36826 internal_function.
36827
36828 2017-08-10 Florian Weimer <fweimer@redhat.com>
36829
36830 * malloc/malloc.c (get_max_fast): Reimplement as an inline
36831 function which calls __builtin_unreachable.
36832
36833 2017-08-10 Mike FABIAN <mfabian@redhat.com>
36834
36835 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
36836 Indian monetary formatting
36837 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
36838 test cases.
36839
36840 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
36841
36842 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
36843 Fix typo in comment.
36844
36845 [BZ #21928]
36846 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
36847 PTRACE_SEIZE_DEVEL): Remove.
36848 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
36849 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
36850 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
36851 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
36852 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
36853
36854 2017-08-09 Joseph Myers <joseph@codesourcery.com>
36855
36856 * posix/bits/types.h (__qaddr_t): Remove.
36857
36858 [BZ #21457]
36859 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
36860 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
36861 __glibc_reserved1.
36862 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
36863 (ucontext_t): Use __ctx with uc_flags.
36864 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
36865 (__ctxt): Likewise.
36866 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
36867 __glibc_reserved1.
36868 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
36869 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
36870 __glibc_reserved1.
36871 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
36872 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
36873 __glibc_reserved1.
36874 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
36875 macro.
36876 (ucontext_t): Use __ctx with uc_flags.
36877 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
36878 (ucontext_t): Use __ctx with uc_flags.
36879 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
36880 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
36881 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
36882 (ucontext_t): Use __ctx with uc_flags.
36883 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
36884 undefine further down.
36885 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
36886 __glibc_reserved1.
36887 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
36888 undefine further down.
36889 (ucontext_t): Use __ctx with uc_flags.
36890 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
36891 undefine further down.
36892 (ucontext_t): Use __ctx with uc_flags.
36893 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
36894 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
36895 Rename uc_pad to __glibc_reserved1.
36896 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
36897 undefine further down.
36898 (ucontext_t): Use __ctx with uc_flags.
36899 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
36900 further down.
36901 (ucontext_t): Use __ctx with uc_flags.
36902 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
36903 __ctx with uc_flags.
36904 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
36905 (ucontext_t): Use __ctx with uc_flags.
36906 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
36907 __ctx with uc_flags.
36908
36909 2017-08-09 Florian Weimer <fweimer@redhat.com>
36910
36911 [BZ #21932]
36912 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
36913 before early return.
36914
36915 2017-08-09 Andreas Schwab <schwab@suse.de>
36916
36917 [BZ #21041]
36918 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
36919 renamed alias.
36920
36921 [BZ #21041]
36922 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
36923 tst-compat-forwarder.
36924 (modules-names): Add tst-compat-forwarder-mod.
36925 ($(objpfx)tst-compat-forwarder): Depend on
36926 $(objpfx)tst-compat-forwarder-mod.so.
36927 * nptl/tst-compat-forwarder.c: New file.
36928 * nptl/tst-compat-forwarder-mod.c: New file.
36929
36930 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
36931
36932 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
36933 comments.
36934
36935 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
36936 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
36937 memcpy_falkor.
36938 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
36939 Bump.
36940 (__libc_ifunc_impl_list): Add __memcpy_falkor.
36941 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
36942 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
36943 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
36944 Add falkor.
36945 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
36946 New macro.
36947
36948 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36949
36950 [BZ #759]
36951 * manual/setjmp.texi (getcontex): Document uc_stack value
36952 compatibility differences.
36953
36954 2017-08-08 Joseph Myers <joseph@codesourcery.com>
36955
36956 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
36957 (old_malloc_hook): Likewise.
36958 (old_memalign_hook): Likewise.
36959 (old_realloc_hook): Likewise.
36960 (struct hdr): Likewise.
36961 (flood): Likewise.
36962 (freehook): Likewise.
36963 (mallochook): Likewise.
36964 (memalignhook): Likewise.
36965 (reallochook): Likewise.
36966 (mprobe): Likewise.
36967 * malloc/mtrace.c (mallwatch): Likewise.
36968 (tr_old_free_hook): Likewise.
36969 (tr_old_malloc_hook): Likewise.
36970 (tr_old_realloc_hook): Likewise.
36971 (tr_old_memalign_hook): Likewise.
36972 (tr_where): Likewise.
36973 (lock_and_info): Likewise.
36974 (tr_freehook): Likewise.
36975 (tr_mallochook): Likewise.
36976 (tr_reallochook): Likewise.
36977 (tr_memalignhook): Likewise.
36978 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
36979 * misc/mmap.c (__mmap): Likewise.
36980 * misc/mmap64.c (__mmap64): Likewise.
36981 * misc/mprotect.c (__mprotect): Likewise.
36982 * misc/msync.c (msync): Likewise.
36983 * misc/munmap.c (__munmap): Likewise.
36984 * posix/posix_madvise.c (posix_madvise): Likewise.
36985 * socket/send.c (__send): Likewise.
36986 * socket/sendto.c (__sendto): Likewise.
36987 * socket/setsockopt.c (__setsockopt): Likewise.
36988 * string/memcmp.c (__ptr_t): Remove macro.
36989 (MEMCMP): Use void * instead of ptr_t.
36990 * string/memrchr.c (__ptr_t): Remove macro.
36991 (__memrchr): Use void * instead of ptr_t.
36992 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
36993 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
36994 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
36995 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
36996 * sysdeps/mach/msync.c (msync): Likewise.
36997 * sysdeps/mach/munmap.c (__munmap): Likewise.
36998 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
36999 Likewise.
37000 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
37001 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
37002 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
37003 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
37004 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
37005 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
37006 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
37007 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
37008 Likewise.
37009 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
37010 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
37011 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
37012 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
37013 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
37014 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
37015 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
37016 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
37017 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
37018 Likewise.
37019 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
37020 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
37021 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
37022 (MEMCMP): Use void * instead of ptr_t.
37023 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
37024 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
37025
37026 2017-08-08 Florian Weimer <fweimer@redhat.com>
37027
37028 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
37029 return statement.
37030
37031 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
37032
37033 [BZ #21913]
37034 * csu/libc-tls.c: Include <startup.h> first.
37035 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
37036 * elf/dl-tunables.c: Include <startup.h> first.
37037 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
37038 * sysdeps/generic/startup.h: New file.
37039 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
37040 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
37041 (I386_USE_SYSENTER): New. Defined to 0.
37042
37043 2017-08-08 Andreas Schwab <schwab@suse.de>
37044
37045 [BZ #21041]
37046 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
37047 * nptl/pt-system.c (system): Likewise.
37048
37049 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
37050
37051 [BZ #21780]
37052 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
37053 EOPNOTSUPP.
37054 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
37055 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
37056 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
37057 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
37058 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
37059 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
37060 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
37061
37062 2017-08-07 Joseph Myers <joseph@codesourcery.com>
37063
37064 [BZ #21899]
37065 * bits/sigaction.h (struct sigaction): Define sa_handler and
37066 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
37067 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37068 [__USE_XOPEN_EXTENDED].
37069 (SA_RESTART): Likewise.
37070 (SA_NODEFER): Likewise.
37071 (SA_RESETHAND): Likewise.
37072 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
37073 (struct sigaction): Define sa_handler and sa_sigaction using union
37074 also for [__USE_XOPEN_EXTENDED].
37075 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37076 [__USE_XOPEN_EXTENDED].
37077 (SA_RESTART): Likewise.
37078 (SA_NODEFER): Likewise.
37079 (SA_RESETHAND): Likewise.
37080 * sysdeps/unix/sysv/linux/bits/sigaction.h
37081 (struct sigaction): Define sa_handler and sa_sigaction using union
37082 also for [__USE_XOPEN_EXTENDED].
37083 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37084 [__USE_XOPEN_EXTENDED].
37085 (SA_RESTART): Likewise.
37086 (SA_NODEFER): Likewise.
37087 (SA_RESETHAND): Likewise.
37088 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
37089 (struct sigaction): Define sa_handler and sa_sigaction using union
37090 also for [__USE_XOPEN_EXTENDED].
37091 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37092 [__USE_XOPEN_EXTENDED].
37093 (SA_RESTART): Likewise.
37094 (SA_NODEFER): Likewise.
37095 (SA_RESETHAND): Likewise.
37096 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
37097 (struct sigaction): Define sa_handler and sa_sigaction using union
37098 also for [__USE_XOPEN_EXTENDED].
37099 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37100 [__USE_XOPEN_EXTENDED].
37101 (SA_RESTART): Likewise.
37102 (SA_NODEFER): Likewise.
37103 (SA_RESETHAND): Likewise.
37104 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
37105 (struct sigaction): Define sa_handler and sa_sigaction using union
37106 also for [__USE_XOPEN_EXTENDED].
37107 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37108 [__USE_XOPEN_EXTENDED].
37109 (SA_RESTART): Likewise.
37110 (SA_NODEFER): Likewise.
37111 (SA_RESETHAND): Likewise.
37112 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
37113 (struct sigaction): Define sa_handler and sa_sigaction using union
37114 also for [__USE_XOPEN_EXTENDED].
37115 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37116 [__USE_XOPEN_EXTENDED].
37117 (SA_RESTART): Likewise.
37118 (SA_NODEFER): Likewise.
37119 (SA_RESETHAND): Likewise.
37120 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
37121 (struct sigaction): Define sa_handler and sa_sigaction using union
37122 also for [__USE_XOPEN_EXTENDED].
37123 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37124 [__USE_XOPEN_EXTENDED].
37125 (SA_RESTART): Likewise.
37126 (SA_NODEFER): Likewise. Define directly rather than as alias.
37127 (SA_RESETHAND): Likewise.
37128 (SA_INTERRUPT): Define only for [__USE_MISC].
37129 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
37130 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
37131 [__USE_MISC].
37132 (SA_STACK): Define only for [__USE_MISC].
37133 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
37134 (struct sigaction): Define sa_handler and sa_sigaction using union
37135 also for [__USE_XOPEN_EXTENDED].
37136 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37137 [__USE_XOPEN_EXTENDED].
37138 (SA_RESTART): Likewise.
37139 (SA_NODEFER): Likewise.
37140 (SA_RESETHAND): Likewise.
37141 (SA_NOPTRACE): Define only for [__USE_MISC].
37142
37143 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
37144 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
37145 (struct catalog_info): Likewise.
37146 * inet/htontest.c (lo): Likewise.
37147 (foo): Likewise.
37148 * inet/inet_lnaof.c (inet_lnaof): Likewise.
37149 * inet/inet_net.c (inet_network): Likewise.
37150 * inet/inet_netof.c (inet_netof): Likewise.
37151 * inet/rcmd.c (__ivaliduser): Likewise.
37152 (iruserok): Likewise.
37153 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
37154 * locale/programs/locale-spec.c (locale_special): Likewise.
37155 * nis/nis_findserv.c (struct findserv_req): Likewise.
37156 (__nis_findfastest_with_timeout): Likewise.
37157 * nss/test-netdb.c (test_network): Likewise.
37158 * resolv/inet_neta.c (inet_neta): Likewise.
37159 * resolv/ns_date.c (ns_datetosecs): Likewise.
37160 (SECS_PER_DAY): Likewise.
37161 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
37162 Likewise.
37163 * resolv/res_comp.c (__putlong): Likewise.
37164 (__putshort): Likewise.
37165 (_getlong): Likewise.
37166 (_getshort): Likewise.
37167 * resolv/res_debug.c (p_time): Likewise.
37168 (precsize_ntoa): Likewise.
37169 (precsize_aton): Likewise.
37170 (latlon2ul): Likewise.
37171 (loc_aton): Likewise.
37172 (loc_ntoa): Likewise.
37173 * resolv/res_hconf.c (struct netaddr): Likewise.
37174 (_res_hconf_reorder_addrs): Likewise.
37175 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
37176 (clnttcp_control): Likewise.
37177 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
37178 (clntudp_control): Likewise.
37179 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
37180 (clntunix_control): Likewise.
37181 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
37182 * sunrpc/rpc/auth.h (union des_block): Likewise.
37183 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
37184 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
37185 (xdrrec_create): Likewise.
37186 (xdrrec_endofrecord): Likewise.
37187 (flush_out): Likewise.
37188 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
37189 (xdrstdio_putlong): Likewise.
37190 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
37191 Likewise.
37192
37193 * misc/sys/cdefs.h (__long_double_t): Remove.
37194 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
37195 instead of __long_double_t,
37196 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
37197
37198 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
37199
37200 * benchtests/scripts/compare_strings.py: Avoid display error when
37201 running on a text terminal.
37202
37203 * benchtests/scripts/compare_strings.py (main): Add an
37204 optional -base option.
37205 (process_results): New argument base_func.
37206
37207 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
37208 hardcoding memcpy.
37209 * benchtests/bench-memcpy-large.c (test_name): Likewise.
37210 * benchtests/bench-memcpy-random.c (test_name): Likewise.
37211
37212 2017-08-07 Andreas Schwab <schwab@suse.de>
37213
37214 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
37215 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
37216 * intl/Makefile ($(objpfx)tst-gettext.out)
37217 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
37218 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
37219 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
37220 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
37221 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
37222 * posix/Makefile ($(objpfx)globtest.out)
37223 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
37224 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
37225 ($(objpfx)tst-printf.out): Likewise.
37226 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
37227 ($(objpfx)tst-setcontext3.out): Likewise.
37228
37229 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
37230
37231 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
37232 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
37233 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
37234 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
37235 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
37236 and mptan-fma.
37237 (CFLAGS-doasin-fma.c): New.
37238 (CFLAGS-dosincos-fma.c): Likewise.
37239 (CFLAGS-e_asin-fma.c): Likewise.
37240 (CFLAGS-e_atan2-fma.c): Likewise.
37241 (CFLAGS-e_exp-fma.c): Likewise.
37242 (CFLAGS-e_log-fma.c): Likewise.
37243 (CFLAGS-e_pow-fma.c): Likewise.
37244 (CFLAGS-halfulp-fma.c): Likewise.
37245 (CFLAGS-mpa-fma.c): Likewise.
37246 (CFLAGS-mpatan-fma.c): Likewise.
37247 (CFLAGS-mpatan2-fma.c): Likewise.
37248 (CFLAGS-mpexp-fma.c): Likewise.
37249 (CFLAGS-mplog-fma.c): Likewise.
37250 (CFLAGS-mpsqrt-fma.c): Likewise.
37251 (CFLAGS-mptan-fma.c): Likewise.
37252 (CFLAGS-s_atan-fma.c): Likewise.
37253 (CFLAGS-sincos32-fma.c): Likewise.
37254 (CFLAGS-slowexp-fma.c): Likewise.
37255 (CFLAGS-slowpow-fma.c): Likewise.
37256 (CFLAGS-s_sin-fma.c): Likewise.
37257 (CFLAGS-s_tan-fma.c): Likewise.
37258 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
37259 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
37260 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
37261 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
37262 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
37263 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
37264 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
37265 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
37266 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
37267 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
37268 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
37269 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
37270 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
37271 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
37272 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
37273 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
37274 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
37275 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
37276 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
37277 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
37278 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
37279 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
37280 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
37281 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
37282 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
37283 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
37284 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
37285 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
37286 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
37287 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
37288 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
37289
37290 2017-08-04 Joseph Myers <joseph@codesourcery.com>
37291
37292 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
37293 (min_of_type_f): New macro.
37294 (min_of_type_): Likewise.
37295 (min_of_type_l): Likewise.
37296 (min_of_type_f128): Likewise.
37297 (min_of_type): Define using __MATH_TG and taking an expression
37298 argument.
37299 (math_check_force_underflow): Pass expression instead of type to
37300 min_of_type.
37301 (math_check_force_underflow_nonneg): Likewise.
37302
37303 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37304
37305 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
37306 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
37307 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
37308
37309 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37310
37311 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
37312 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
37313 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
37314 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
37315 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
37316 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
37317 memcpy_chk-nonshared, mempcpy_chk-nonshared,
37318 memmove_chk-nonshared and memset_chk-nonshared
37319 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
37320 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
37321 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
37322 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
37323 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
37324 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
37325 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
37326 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
37327 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
37328 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
37329 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
37330 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
37331 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
37332 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
37333 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
37334 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
37335 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
37336 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
37337 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
37338 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
37339 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
37340 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
37341 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
37342 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
37343 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
37344 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
37345 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
37346 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
37347 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
37348 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
37349 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
37350 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
37351 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
37352 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
37353 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
37354 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
37355 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
37356 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
37357 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
37358 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
37359 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
37360 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
37361 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
37362 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
37363 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
37364 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
37365 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
37366 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
37367 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
37368 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
37369 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
37370 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
37371 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
37372 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
37373 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
37374 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
37375 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
37376 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
37377 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
37378 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
37379 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
37380 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
37381 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
37382 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
37383 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
37384 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
37385 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
37386 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
37387 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
37388 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
37389 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
37390 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
37391 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
37392 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
37393 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
37394 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
37395 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
37396 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
37397 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
37398 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
37399 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
37400 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
37401 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
37402 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
37403 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
37404 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
37405 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
37406 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
37407 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
37408 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
37409 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
37410 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
37411 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
37412 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
37413 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
37414 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
37415 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
37416 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
37417 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
37418 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
37419 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
37420 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
37421 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
37422 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
37423 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
37424 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
37425 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
37426 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
37427
37428 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37429
37430 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
37431 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
37432 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
37433 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
37434 svml_d_log2_core-sse2, svml_d_log4_core-sse,
37435 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
37436 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
37437 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
37438 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
37439 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
37440 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
37441 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
37442 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
37443 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
37444 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
37445 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
37446 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
37447 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
37448 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
37449 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
37450 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
37451 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
37452 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
37453 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
37454 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
37455 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
37456 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
37457 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
37458 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
37459 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
37460 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
37461 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
37462 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
37463 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
37464 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
37465 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
37466 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
37467 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
37468 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
37469 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
37470 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
37471 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
37472 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
37473 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
37474 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
37475 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
37476 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
37477 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
37478 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
37479 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
37480 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
37481 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
37482 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
37483 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
37484 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
37485 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
37486 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
37487 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
37488 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
37489 ...
37490 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
37491 Don't include <sysdep.h> nor <init-arch.h>.
37492 (_ZGVbN2v_cos): Removed.
37493 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
37494 ...
37495 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
37496 Don't include <sysdep.h> nor <init-arch.h>.
37497 (_ZGVdN4v_cos): Removed.
37498 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
37499 ...
37500 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
37501 Don't include <sysdep.h> nor <init-arch.h>.
37502 (_ZGVeN8v_cos): Removed.
37503 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
37504 ...
37505 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
37506 Don't include <sysdep.h> nor <init-arch.h>.
37507 (_ZGVbN2v_exp): Removed.
37508 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
37509 ...
37510 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
37511 Don't include <sysdep.h> nor <init-arch.h>.
37512 (_ZGVdN4v_exp): Removed.
37513 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
37514 ...
37515 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
37516 Don't include <sysdep.h> nor <init-arch.h>.
37517 (_ZGVeN8v_exp): Removed.
37518 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
37519 ...
37520 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
37521 Don't include <sysdep.h> nor <init-arch.h>.
37522 (_ZGVbN2v_log): Removed.
37523 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
37524 ...
37525 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
37526 Don't include <sysdep.h> nor <init-arch.h>.
37527 (_ZGVdN4v_log): Removed.
37528 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
37529 ...
37530 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
37531 Don't include <sysdep.h> nor <init-arch.h>.
37532 (_ZGVeN8v_log): Removed.
37533 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
37534 ...
37535 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
37536 Don't include <sysdep.h> nor <init-arch.h>.
37537 (_ZGVbN2vv_pow): Removed.
37538 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
37539 ...
37540 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
37541 Don't include <sysdep.h> nor <init-arch.h>.
37542 (_ZGVdN4vv_pow): Removed.
37543 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
37544 ...
37545 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
37546 Don't include <sysdep.h> nor <init-arch.h>.
37547 (_ZGVeN8vv_pow): Removed.
37548 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
37549 ...
37550 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
37551 Don't include <sysdep.h> nor <init-arch.h>.
37552 (_ZGVbN2v_sin): Removed.
37553 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
37554 ...
37555 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
37556 Don't include <sysdep.h> nor <init-arch.h>.
37557 (_ZGVbN4v_sin): Removed.
37558 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
37559 ...
37560 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
37561 Don't include <sysdep.h> nor <init-arch.h>.
37562 (_ZGVbN8v_sin): Removed.
37563 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
37564 ...
37565 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
37566 Don't include <sysdep.h> nor <init-arch.h>.
37567 (_ZGVbN2vvv_sincos): Removed.
37568 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
37569 ...
37570 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
37571 Don't include <sysdep.h> nor <init-arch.h>.
37572 (_ZGVdN4vvv_sincos): Removed.
37573 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
37574 ...
37575 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
37576 Don't include <sysdep.h> nor <init-arch.h>.
37577 (_ZGVeN8vvv_sincos): Removed.
37578 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
37579 ...
37580 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
37581 Don't include <sysdep.h> nor <init-arch.h>.
37582 (_ZGVeN16v_cosf): Removed.
37583 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
37584 ...
37585 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
37586 Don't include <sysdep.h> nor <init-arch.h>.
37587 (_ZGVbN4v_cosf): Removed.
37588 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
37589 ...
37590 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
37591 Don't include <sysdep.h> nor <init-arch.h>.
37592 (_ZGVdN8v_cosf): Removed.
37593 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
37594 ...
37595 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
37596 Don't include <sysdep.h> nor <init-arch.h>.
37597 (_ZGVeN16v_expf): Removed.
37598 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
37599 ...
37600 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
37601 Don't include <sysdep.h> nor <init-arch.h>.
37602 (_ZGVbN4v_expf): Removed.
37603 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
37604 ...
37605 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
37606 Don't include <sysdep.h> nor <init-arch.h>.
37607 (_ZGVdN8v_expf): Removed.
37608 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
37609 ...
37610 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
37611 Don't include <sysdep.h> nor <init-arch.h>.
37612 (_ZGVeN16v_logf): Removed.
37613 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
37614 ...
37615 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
37616 Don't include <sysdep.h> nor <init-arch.h>.
37617 (_ZGVbN4v_logf): Removed.
37618 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
37619 ...
37620 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
37621 Don't include <sysdep.h> nor <init-arch.h>.
37622 (_ZGVdN8v_logf): Removed.
37623 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
37624 ...
37625 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
37626 Don't include <sysdep.h> nor <init-arch.h>.
37627 (_ZGVeN16vv_powf): Removed.
37628 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
37629 ...
37630 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
37631 Don't include <sysdep.h> nor <init-arch.h>.
37632 (_ZGVbN4vv_powf): Removed.
37633 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
37634 ...
37635 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
37636 Don't include <sysdep.h> nor <init-arch.h>.
37637 (_ZGVdN8vv_powf): Removed.
37638 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
37639 ...
37640 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
37641 Don't include <sysdep.h> nor <init-arch.h>.
37642 (_ZGVeN16vvv_sincosf): Removed.
37643 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
37644 ...
37645 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
37646 Don't include <sysdep.h> nor <init-arch.h>.
37647 (_ZGVbN4vvv_sincosf): Removed.
37648 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
37649 ...
37650 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
37651 Don't include <sysdep.h> nor <init-arch.h>.
37652 (_ZGVdN8vvv_sincosf): Removed.
37653 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
37654 ...
37655 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
37656 Don't include <sysdep.h> nor <init-arch.h>.
37657 (_ZGVeN16v_sinf): Removed.
37658 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
37659 ...
37660 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
37661 Don't include <sysdep.h> nor <init-arch.h>.
37662 (_ZGVbN4v_sinf): Removed.
37663 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
37664 ...
37665 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
37666 Don't include <sysdep.h> nor <init-arch.h>.
37667 (_ZGVdN8v_sinf): Removed.
37668
37669 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37670
37671 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
37672 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
37673 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
37674 s_rint-sse4_1 and s_rintf-sse4_1.
37675 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
37676 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
37677 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
37678 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
37679 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
37680 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
37681 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
37682 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
37683 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
37684 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
37685 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
37686 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37687 (__ceil): Removed.
37688 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
37689 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
37690 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37691 (__ceilf): Removed.
37692 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
37693 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
37694 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37695 (__floor): Removed.
37696 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
37697 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
37698 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37699 (__floorf): Removed.
37700 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
37701 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
37702 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37703 (__nearbyint): Removed.
37704 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
37705 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
37706 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37707 (__nearbyintf): Removed.
37708 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
37709 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
37710 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37711 (__rint): Removed.
37712 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
37713 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
37714 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37715 (__rintf): Removed.
37716
37717 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37718
37719 * sysdeps/i386/start.S (_start): Check Check PIC instead of
37720 SHARED. Avoid dynamic relocation against main in static PIE.
37721
37722 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37723
37724 [BZ #21815]
37725 * elf/Makefile (CFLAGS-tst-prelink.c): New.
37726 (LDFLAGS-tst-prelink): Likewise.
37727
37728 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37729
37730 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
37731 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
37732 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
37733 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
37734 (INTERNAL_SYSCALL_NCS): Likewise.
37735 (LOADARGS_1): Likewise.
37736 (LOADARGS_5): Likewise.
37737 (RESTOREARGS_1): Likewise.
37738 (RESTOREARGS_5): Likewise.
37739
37740 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37741
37742 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
37743 (MEMPCPY_SYMBOL): Likewise.
37744 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
37745 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
37746 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
37747 in libc.a.
37748 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
37749 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
37750 Likewise.
37751 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
37752 (__hidden_ver1): Don't use in libc.a.
37753 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
37754 (__mempcpy): Don't create a weak alias in libc.a.
37755 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
37756 libc.a.
37757 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
37758 (__hidden_ver1): Don't use in libc.a.
37759
37760 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37761
37762 * config.make.in (have-insert): New.
37763 * configure.ac (libc_cv_insert): New. Set to yes if linker
37764 supports INSERT in linker script.
37765 (AC_SUBST(libc_cv_insert): New.
37766 * configure: Regenerated.
37767 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
37768 if $(have-insert) == yes.
37769
37770 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37771
37772 * elf/Makefile (tests): Add vismain only if
37773 $(have-protected-data) == yes.
37774 (tests-pie): Likewise.
37775
37776 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37777
37778 [BZ #21871]
37779 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
37780 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
37781
37782 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37783
37784 [BZ #21790]
37785 * sysdeps/i386/i586/memset.S
37786 (__memset_zero_constant_len_parameter): Removed.
37787 * sysdeps/i386/i686/memset.S
37788 (__memset_zero_constant_len_parameter): Likewise.
37789 * sysdeps/i386/i686/multiarch/memset_chk.S
37790 (__memset_zero_constant_len_parameter): Likewise.
37791 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
37792 Likewise.
37793
37794 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
37795
37796 * stdlib/getentropy.c (getentropy): Change return type to int.
37797
37798 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
37799
37800 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
37801
37802 2017-08-03 Joseph Myers <joseph@codesourcery.com>
37803
37804 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
37805 u_intN_t.
37806 * math/s_nexttowardf.c (__nexttowardf): Likewise.
37807 * sysdeps/generic/math_private.h (ieee_double_shape_type):
37808 Likewise.
37809 (ieee_float_shape_type): Likewise.
37810 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
37811 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
37812 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
37813 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
37814 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
37815 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
37816 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
37817 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
37818 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
37819 Likewise.
37820 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
37821 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
37822 (__ieee754_yn): Likewise.
37823 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
37824 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
37825 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
37826 Likewise.
37827 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
37828 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
37829 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
37830 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
37831 (__erfc): Likewise.
37832 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
37833 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
37834 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
37835 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
37836 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
37837 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
37838 Likewise.
37839 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
37840 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
37841 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
37842 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
37843 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
37844 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
37845 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
37846 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
37847 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
37848 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
37849 (__issignaling): Likewise.
37850 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
37851 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
37852 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
37853 Likewise.
37854 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
37855 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
37856 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
37857 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
37858 Likewise.
37859 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
37860 Likewise.
37861 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
37862 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
37863 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
37864 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
37865 (__erfcf): Likewise.
37866 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
37867 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
37868 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
37869 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
37870 Likewise.
37871 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
37872 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
37873 Likewise.
37874 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
37875 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
37876 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
37877 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
37878 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
37879 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
37880 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
37881 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
37882 Likewise.
37883 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
37884 Likewise.
37885 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
37886 Likewise.
37887 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
37888 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
37889 Likewise.
37890 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
37891 Likewise.
37892 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
37893 (__ieee754_ynl): Likewise.
37894 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
37895 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
37896 Likewise.
37897 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
37898 Likewise.
37899 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
37900 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
37901 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
37902 Likewise.
37903 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
37904 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
37905 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
37906 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
37907 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
37908 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
37909 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
37910 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
37911 Likewise.
37912 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
37913 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
37914 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
37915 Likewise.
37916 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
37917 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
37918 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
37919 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
37920 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
37921 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
37922 Likewise.
37923 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
37924 Likewise.
37925 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
37926 Likewise.
37927 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
37928 Likewise.
37929 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
37930 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
37931 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
37932 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
37933 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
37934 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
37935 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
37936 Likewise.
37937 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
37938 Likewise.
37939 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
37940 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
37941 Likewise.
37942 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
37943 (__ieee754_remainderl): Likewise.
37944 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
37945 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
37946 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
37947 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
37948 Likewise.
37949 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
37950 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
37951 Likewise.
37952 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
37953 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
37954 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
37955 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
37956 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
37957 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
37958 Likewise.
37959 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
37960 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
37961 (__ieee754_y0l): Likewise.
37962 (pzero): Likewise.
37963 (qzero): Likewise.
37964 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
37965 (__ieee754_y1l): Likewise.
37966 (pone): Likewise.
37967 (qone): Likewise.
37968 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
37969 (__ieee754_ynl): Likewise.
37970 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
37971 (__ieee754_lgammal_r): Likewise.
37972 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
37973 Likewise.
37974 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
37975 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
37976 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
37977 (__erfcl): Likewise.
37978 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
37979 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
37980 Likewise.
37981 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
37982 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
37983 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
37984 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
37985 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
37986 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
37987 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
37988 Likewise.
37989 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
37990 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
37991 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
37992 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
37993 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
37994 Likewise.
37995 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
37996 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
37997 Likewise.
37998 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
37999 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
38000 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
38001 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
38002 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
38003
38004 2017-08-03 Florian Weimer <fweimer@redhat.com>
38005
38006 [BZ #21885]
38007 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
38008 on memory allocation failure.
38009
38010 2017-08-03 Alan Modra <amodra@gmail.com>
38011
38012 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
38013 tst-tlsopt-powerpc.c with function name change and no test harness.
38014 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
38015 Call tls_get_addr_opt_test.
38016 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
38017 (modules-names): Add mod-tlsopt-powerpc.
38018 (mod-tlsopt-powerpc.so-no-z-defs): Define.
38019 (tst-tlsopt-powerpc): Depend on .so.
38020 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
38021 define. Expand use in TLS_GD and TLS_LD.
38022
38023 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
38024
38025 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
38026 function.
38027 * sysdeps/posix/shm_open.c: Include <pthread.h>.
38028
38029 2017-08-02 Joseph Myers <joseph@codesourcery.com>
38030
38031 [BZ #21686]
38032 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
38033 comparing size with that of double.
38034 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
38035 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
38036 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
38037 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
38038 (__TGMATH_BINARY_REAL_IMAG): Likewise.
38039 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
38040 unsigned __int128 types.
38041
38042 2017-08-02 Steve Ellcey <sellcey@cavium.com>
38043
38044 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
38045 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
38046 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
38047 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
38048 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
38049
38050 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
38051
38052 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
38053
38054 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
38055
38056 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
38057 of SHARED.
38058 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
38059 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
38060 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
38061 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
38062 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
38063 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
38064 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
38065
38066 2017-08-02 Joseph Myers <joseph@codesourcery.com>
38067
38068 [BZ #21685]
38069 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
38070 bit-field expressions passed to sizeof or typeof.
38071 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
38072 (__TGMATH_F128): Likewise.
38073 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
38074 (__TGMATH_CF128): Likewise.
38075 (__TGMATH_UNARY_REAL_ONLY): Likewise.
38076 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
38077 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
38078 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
38079 (__TGMATH_BINARY_REAL_ONLY): Likewise.
38080 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
38081 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
38082 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
38083 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
38084 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
38085 (__TGMATH_UNARY_REAL_IMAG): Likewise.
38086 (__TGMATH_UNARY_IMAG): Likewise.
38087 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
38088 (__TGMATH_BINARY_REAL_IMAG): Likewise.
38089 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
38090 type.
38091 (define_vars_for_type): Handle bit_field type specially.
38092 (Tests.__init__): Declare structure with bit-field element.
38093
38094 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
38095
38096 [BZ #21791]
38097 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
38098 (MEMCPY_CHK): Define only if SHARED is defined.
38099 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
38100 Likewise.
38101 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
38102 Likewise.
38103
38104 See ChangeLog.18 for earlier changes.