]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
nptl: Move pthread_attr_getdetachstate implementation into libc
[thirdparty/glibc.git] / ChangeLog
1 2019-08-16 Florian Weimer <fweimer@redhat.com>
2
3 nptl: Move pthread_attr_getdetachstate implementation into libc.
4 * nptl/Makefile (routines): Add pthread_attr_getdetachstate.
5 (libpthread-routines): Remove pthread_attr_getdetachstate.
6 * nptl/Versions (libpthread GLIBC_2.0): Remove
7 pthread_attr_getdetachstate.
8 * nptl/forward.c (pthread_attr_getdetachstate): Remove definition.
9 * nptl/nptl-init.c (pthread_functions): Remove initializer for
10 ptr_pthread_attr_getdetachstate.
11 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
12 Remove ptr_pthread_attr_getdetachstate member.
13 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
14 Remove pthread_attr_getdetachstate.
15 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
16 Likewise.
17 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
18 Likewise.
19 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
20 Likewise.
21 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
22 Likewise.
23 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
24 Likewise.
25 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
26 Likewise.
27 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
28 (GLIBC_2.4): Likewise.
29 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
30 (GLIBC_2.0): Likewise.
31 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
32 (GLIBC_2.18): Likewise.
33 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
34 (GLIBC_2.0): Likewise.
35 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
36 (GLIBC_2.0): Likewise.
37 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
38 Likewise.
39 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
40 (GLIBC_2.0): Likewise.
41 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
42 (GLIBC_2.3): Likewise.
43 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
44 (GLIBC_2.17): Likewise.
45 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
46 (GLIBC_2.27): Likewise.
47 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
48 (GLIBC_2.0): Likewise.
49 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
50 (GLIBC_2.2): Likewise.
51 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
52 Likewise.
53 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
54 (GLIBC_2.0): Likewise.
55 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
56 (GLIBC_2.2): Likewise.
57 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
58 (GLIBC_2.2.5): Likewise.
59 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
60 (GLIBC_2.16): Likewise.
61
62 2019-08-16 Joseph Myers <joseph@codesourcery.com>
63
64 * math/libm-test-compat_totalorder.inc (do_test)
65 [TEST_COMPAT (libm, GLIBC_2_25, GLIBC_2_31)]: Change condition to
66 [TEST_COMPAT (libm, COMPAT_VER, GLIBC_2_31)].
67 * math/libm-test-compat_totalordermag.inc (do_test)
68 [TEST_COMPAT (libm, GLIBC_2_25, GLIBC_2_31)]: Likewise.
69
70 2019-08-15 Florian Weimer <fweimer@redhat.com>
71
72 nptl: Move pthread_attr_init implementation into libc.
73 * nptl/Makefile (routines): Add pthread_attr_init.
74 (libpthread-routines): Remove pthread_attr_init.
75 * nptl/Versions (libpthread GLIBC_2.0): Remove pthread_attr_init.
76 (libpthread GLIBC_2.0): Likewise.
77 * nptl/pthread_attr_init.c: Check for libc compat version instead
78 of libpthread compat version.
79 * nptl/forward.c (__pthread_attr_init_2_0)
80 (__pthread_attr_init_2_1): Remove definitions.
81 * nptl/nptl-init.c (pthread_functions): Remove initializers for
82 ptr___pthread_attr_init_2_0, ptr___pthread_attr_init_2_1.
83 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
84 Remove members ptr___pthread_attr_init_2_0,
85 ptr___pthread_attr_init_2_1.
86 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
87 Remove pthread_attr_init.
88 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
89 Likewise.
90 (GLIBC_2.1): Likewise.
91 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
92 Likewise.
93 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
94 Likewise.
95 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
96 Likewise.
97 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
98 Likewise.
99 (GLIBC_2.1): Likewise.
100 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
101 Likewise.
102 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
103 (GLIBC_2.4): Likewise.
104 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
105 (GLIBC_2.0): Likewise.
106 (GLIBC_2.1): Likewise.
107 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
108 (GLIBC_2.18): Likewise.
109 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
110 (GLIBC_2.0): Likewise.
111 (GLIBC_2.1): Likewise.
112 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
113 (GLIBC_2.0): Likewise.
114 (GLIBC_2.1): Likewise.
115 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
116 Likewise.
117 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
118 (GLIBC_2.0): Likewise.
119 (GLIBC_2.1): Likewise.
120 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
121 (GLIBC_2.3): Likewise.
122 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
123 (GLIBC_2.17): Likewise.
124 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
125 (GLIBC_2.27): Likewise.
126 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
127 (GLIBC_2.0): Likewise.
128 (GLIBC_2.1): Likewise.
129 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
130 (GLIBC_2.2): Likewise.
131 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
132 Likewise.
133 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
134 (GLIBC_2.0): Likewise.
135 (GLIBC_2.1): Likewise.
136 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
137 (GLIBC_2.2): Likewise.
138 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
139 (GLIBC_2.2.5): Likewise.
140 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
141 (GLIBC_2.16): Likewise.
142
143 2019-08-15 Florian Weimer <fweimer@redhat.com>
144
145 [BZ #24900]
146 * elf/dl-object.c (_dl_new_object): Do not store pathnames in the
147 new object in __RTLD_OPENEXEC mode (except for the origin).
148 * elf/tst-dlopen-aout.c (check_dlopen_failure): New function with
149 check for the error message.
150 (do_test): Call it. Add check using relative path.
151 * elf/Makefile (tests-container): Add tst-dlopen-aout-container.
152 (tst-dlopen-aout-container): Link with libpthread.
153 (LDFLAGS-tst-dlopen-aout-container): Set RPATH to $ORIGIN.
154
155 2019-08-15 Joseph Myers <joseph@codesourcery.com>
156
157 * math/bits/mathcalls.h
158 [__GLIBC_USE (IEC_60559_BFP_EXT) || __MATH_DECLARING_FLOATN]
159 (totalorder): Take pointer arguments.
160 [__GLIBC_USE (IEC_60559_BFP_EXT) || __MATH_DECLARING_FLOATN]
161 (totalordermag): Likewise.
162 * manual/arith.texi (totalorder): Likewise.
163 (totalorderf): Likewise.
164 (totalorderl): Likewise.
165 (totalorderfN): Likewise.
166 (totalorderfNx): Likewise.
167 (totalordermag): Likewise.
168 (totalordermagf): Likewise.
169 (totalordermagl): Likewise.
170 (totalordermagfN): Likewise.
171 (totalordermagfNx): Likewise.
172 * math/tgmath.h (__TGMATH_BINARY_REAL_RET_ONLY): Remove macro.
173 [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalorder): Likewise.
174 [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalordermag): Likewise.
175 * math/Versions (GLIBC_2.31): Add totalorder, totalorderf,
176 totalorderl, totalordermag, totalordermagf, totalordermagl,
177 totalorderf32, totalorderf64, totalorderf32x, totalordermagf32,
178 totalordermagf64, totalordermagf32x, totalorderf64x,
179 totalordermagf64x, totalorderf128 and totalordermagf128.
180 * math/Makefile (libm-test-funcs-noauto): Add compat_totalorder
181 and compat_totalordermag.
182 (libm-test-funcs-compat): New variable.
183 (libm-tests-compat): Likewise.
184 (tests): Do not include compat tests.
185 (tests-internal): Add compat tests.
186 ($(foreach t,$(libm-tests-base),
187 $(objpfx)$(t)-compat_totalorder.o)): Depend
188 on $(objpfx)libm-test-totalorder.c.
189 ($(foreach t,$(libm-tests-base),
190 $(objpfx)$(t)-compat_totalordermag.o): Depend on
191 $(objpfx)libm-test-totalordermag.c.
192 (tgmath3-macros): Remove totalorder and totalordermag.
193 * math/libm-test-compat_totalorder.inc: New file.
194 * math/libm-test-compat_totalordermag.inc: Likewise.
195 * math/libm-test-driver.c (struct test_ff_i_data): Update comment.
196 (RUN_TEST_fpfp_b): New macro.
197 (RUN_TEST_LOOP_fpfp_b): Likewise.
198 * math/libm-test-totalorder.inc (totalorder_test_data): Use
199 TEST_fpfp_b.
200 (totalorder_test): Condition on [!COMPAT_TEST].
201 (do_test): Likewise.
202 * math/libm-test-totalordermag.inc (totalordermag_test_data): Use
203 TEST_fpfp_b.
204 (totalordermag_test): Condition on [!COMPAT_TEST].
205 (do_test): Likewise.
206 * math/gen-tgmath-tests.py (Tests.add_all_tests): Remove
207 totalorder and totalordermag.
208 * math/test-tgmath.c (NCALLS): Change to 132.
209 (F(compile_test)): Do not call totalorder or totalordermag.
210 (F(totalorder)): Remove.
211 (F(totalordermag)): Likewise.
212 * include/float.h (__STDC_WANT_IEC_60559_TYPES_EXT__): Do not
213 define if [__STDC_WANT_IEC_60559_TYPES_EXT__].
214 * include/setjmp.h [!_ISOMAC] (STR_HELPER): Rename to
215 SJSTR_HELPER.
216 [!_ISOMAC] (STR): Rename to SJSTR. Update call to STR_HELPER.
217 [!_ISOMAC] (TEST_SIZE): Update call to STR.
218 [!_ISOMAC] (TEST_ALIGN): Likewise.
219 [!_ISOMAC] (TEST_OFFSET): Likewise.
220 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include <shlib-compat.h>
221 and <first-versions.h>.
222 (__totalorder): Take pointer arguments. Add symbol versions and
223 compat symbols.
224 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
225 <shlib-compat.h> and <first-versions.h>.
226 (__totalordermag): Take pointer arguments. Add symbol versions
227 and compat symbols.
228 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
229 <shlib-compat.h> and <first-versions.h>.
230 (__totalorder): Take pointer arguments. Add symbol versions and
231 compat symbols.
232 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
233 <shlib-compat.h> and <first-versions.h>.
234 (__totalordermag): Take pointer arguments. Add symbol versions
235 and compat symbols.
236 * sysdeps/ieee754/float128/float128_private.h
237 (__totalorder_compatl): New macro.
238 (__totalordermag_compatl): Likewise.
239 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include <shlib-compat.h>
240 and <first-versions.h>.
241 (__totalorderf): Take pointer arguments. Add symbol versions and
242 compat symbols.
243 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
244 <shlib-compat.h> and <first-versions.h>.
245 (__totalordermagf): Take pointer arguments. Add symbol versions
246 and compat symbols.
247 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
248 <shlib-compat.h> and <first-versions.h>.
249 (__totalorderl): Take pointer arguments. Add symbol versions and
250 compat symbols.
251 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
252 <shlib-compat.h> and <first-versions.h>.
253 (__totalordermagl): Take pointer arguments. Add symbol versions
254 and compat symbols.
255 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c: Include
256 <shlib-compat.h>.
257 (__totalorderl): Take pointer arguments. Add symbol versions and
258 compat symbols.
259 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c: Include
260 <shlib-compat.h>.
261 (__totalordermagl): Take pointer arguments. Add symbol versions
262 and compat symbols.
263 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
264 <shlib-compat.h> and <first-versions.h>.
265 (__totalorderl): Take pointer arguments. Add symbol versions and
266 compat symbols.
267 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
268 <shlib-compat.h> and <first-versions.h>.
269 (__totalordermagl): Take pointer arguments. Add symbol versions
270 and compat symbols.
271 * sysdeps/ieee754/ldbl-opt/nldbl-totalorder.c (totalorderl): Take
272 pointer arguments.
273 * sysdeps/ieee754/ldbl-opt/nldbl-totalordermag.c (totalordermagl):
274 Likewise.
275 * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c
276 (do_test): Update calls to totalorderl and totalordermagl.
277 * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c (do_test):
278 Update calls to totalorderl and totalordermagl.
279 * sysdeps/mach/hurd/i386/libm.abilist: Update.
280 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
281 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
282 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
283 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
284 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
285 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
286 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
287 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
288 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
289 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
290 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
291 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
292 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
293 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
294 Likewise.
295 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
296 Likewise.
297 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libm.abilist:
298 Likewise.
299 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libm.abilist:
300 Likewise.
301 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
302 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
303 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
304 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
305 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
306 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
307 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
308 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
309
310 2019-08-15 Florian Weimer <fweimer@redhat.com>
311
312 [BZ #24899]
313 * sysdeps/gnu/bits/utmpx.h (struct utmpx): Add
314 __attribute_nonstring__ to ut_line, ut_id, ut_user, ut_host.
315 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h (struct utmpx):
316 Likewise.
317 * sysdeps/gnu/bits/utmp.h (struct utmp): Add
318 __attribute_nonstring__ to ut_id.
319 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h (struct utmp):
320 Likewise.
321
322 2019-08-15 Florian Weimer <fweimer@redhat.com>
323
324 [BZ #24880]
325 * login/utmp_file.c (file_locking_failed): Use struct flock64.
326 (file_locking_unlock): Likewise.
327
328 2019-08-15 Florian Weimer <fweimer@redhat.com>
329
330 [BZ #24879]
331 login: Disarm timer after utmp lock acquisition.
332 * login/utmp_file.c (struct file_locking): Remove.
333 (try_file_lock): Adjust.
334 (file_lock_restore): Remove function.
335 (__libc_getutent_r): .
336 (internal_getut_r): Likewise.
337 (__libc_getutline_r): Likewise.
338 (__libc_pututline): Likewise.
339 (__libc_updwtmp): Likewise.
340
341 2019-08-15 Florian Weimer <fweimer@redhat.com>
342
343 nptl: Remove pthread_self compatibility symbol from libpthread.
344 * nptl/Versions (libpthread GLIBC_2.0): Remove pthread_self,
345 pthread_equal.
346 * nptl/Makefile (libpthread-routines): Remove compat-pthread_self.
347 * nptl/compat-pthread_self.c: Remove file.
348 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
349 Remove pthread_self.
350 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
351 Likewise.
352 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
353 Likewise.
354 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
355 Likewise.
356 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
357 Likewise.
358 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
359 Likewise.
360 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
361 (GLIBC_2.4): Likewise.
362 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
363 (GLIBC_2.0): Likewise.
364 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
365 (GLIBC_2.18): Likewise.
366 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
367 (GLIBC_2.0): Likewise.
368 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
369 (GLIBC_2.0): Likewise.
370 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
371 Likewise.
372 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
373 (GLIBC_2.0): Likewise.
374 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
375 (GLIBC_2.3): Likewise.
376 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
377 (GLIBC_2.17): Likewise.
378 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
379 (GLIBC_2.0): Likewise.
380 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
381 (GLIBC_2.2): Likewise.
382 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
383 Likewise.
384 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
385 (GLIBC_2.0): Likewise.
386 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
387 (GLIBC_2.2): Likewise.
388 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
389 (GLIBC_2.2.5): Likewise.
390 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
391 (GLIBC_2.16): Likewise.
392
393 2019-08-15 Florian Weimer <fweimer@redhat.com>
394
395 nptl: Move pthread_attr_destroy implementation into libc.
396 * nptl/Makefile (routines): Add pthread_attr_destroy.
397 (libpthread-routines): Remove pthread_attr_destroy.
398 * nptl/Versions (libpthread GLIBC_2.0): Remove
399 pthread_attr_destroy.
400 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Check for
401 libc compat version instead of libpthread compat version.
402 * nptl/forward.c (pthread_attr_destroy): Remove definition.
403 * nptl/nptl-init.c (pthread_functions): Remove initializer for
404 ptr_pthread_attr_destroy.
405 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
406 Remove ptr_pthread_attr_destroy member.
407 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
408 Remove pthread_attr_destroy.
409 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
410 Likewise.
411 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
412 Likewise.
413 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
414 Likewise.
415 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
416 Likewise.
417 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
418 Likewise.
419 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
420 Likewise.
421 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
422 (GLIBC_2.4): Likewise.
423 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
424 (GLIBC_2.0): Likewise.
425 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
426 (GLIBC_2.18): Likewise.
427 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
428 (GLIBC_2.0): Likewise.
429 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
430 (GLIBC_2.0): Likewise.
431 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
432 Likewise.
433 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
434 (GLIBC_2.0): Likewise.
435 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
436 (GLIBC_2.3): Likewise.
437 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
438 (GLIBC_2.17): Likewise.
439 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
440 (GLIBC_2.27): Likewise.
441 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
442 (GLIBC_2.0): Likewise.
443 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
444 (GLIBC_2.2): Likewise.
445 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
446 Likewise.
447 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
448 (GLIBC_2.0): Likewise.
449 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
450 (GLIBC_2.2): Likewise.
451 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
452 (GLIBC_2.2.5): Likewise.
453 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
454 (GLIBC_2.16): Likewise.
455
456 2019-08-15 Andreas Schwab <schwab@suse.de>
457
458 * sysdeps/i386/fpu/libm-test-ulps: Update.
459
460 2019-08-15 Florian Weimer <fweimer@redhat.com>
461
462 * malloc/Makefile (tests): Only add tst-mxfast for
463 $(have-tunables).
464 * malloc/tst-mxfast.c: Fix copyright year.
465 (do_test): Fix GNU style issues. Use TEST_COMPARE instead of
466 assert for checks.
467
468 2019-08-15 Florian Weimer <fweimer@redhat.com>
469
470 * login/utmp_file.c (__libc_updwtmp): Unlock the right file
471 descriptor.
472 * login/Makefile (tests): Add tst-updwtmpx.
473 * login/tst-updwtmpx.c: New file.
474
475 2019-08-15 Florian Weimer <fweimer@redhat.com>
476
477 nptl: Move pthread_equal implementation into libc.
478 * nptl/Makefile (routines): Add pthread_equal.
479 * nptl/forward.c (pthread_equal): Remove definition.
480 * nptl/nptl-init.c (pthread_functions): Remove initializer for
481 ptr_pthread_equal.
482 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
483 Remove ptr_pthread_equal member.
484 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
485 Remove pthread_equal.
486 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
487 Likewise.
488 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
489 Likewise.
490 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
491 Likewise.
492 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
493 Likewise.
494 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
495 Likewise.
496 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
497 Likewise.
498 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
499 (GLIBC_2.4): Likewise.
500 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
501 (GLIBC_2.0): Likewise.
502 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
503 (GLIBC_2.18): Likewise.
504 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
505 (GLIBC_2.0): Likewise.
506 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
507 (GLIBC_2.0): Likewise.
508 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
509 Likewise.
510 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
511 (GLIBC_2.0): Likewise.
512 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
513 (GLIBC_2.3): Likewise.
514 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
515 (GLIBC_2.17): Likewise.
516 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
517 (GLIBC_2.27): Likewise.
518 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
519 (GLIBC_2.0): Likewise.
520 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
521 (GLIBC_2.2): Likewise.
522 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
523 Likewise.
524 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
525 (GLIBC_2.0): Likewise.
526 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
527 (GLIBC_2.2): Likewise.
528 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
529 (GLIBC_2.2.5): Likewise.
530 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
531 (GLIBC_2.16): Likewise.
532
533 2019-08-14 Florian Weimer <fweimer@redhat.com>
534
535 * support/support_descriptors.c: Include <support/descriptors.h>.
536
537 2019-08-14 Feng Xue <fxue@os.amperecomputing.com>
538
539 * sysdeps/aarch64/multiarch/memset_base64.S (DC_ZVA_THRESHOLD):
540 Disable DC ZVA code if this macro is defined as zero.
541 * sysdeps/aarch64/multiarch/memset_emag.S (DC_ZVA_THRESHOLD):
542 Change to zero to disable using DC ZVA.
543
544 2019-08-13 Joseph Myers <joseph@codesourcery.com>
545
546 * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_FUNCS_EXT):
547 Update comment.
548 (__GLIBC_USE_IEC_60559_FUNCS_EXT_C2X): New macro.
549 * bits/math-finite.h [__GLIBC_USE (IEC_60559_FUNCS_EXT)]: Change
550 to [__GLIBC_USE (IEC_60559_FUNCS_EXT_C2X)].
551 * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_FUNCS_EXT)]:
552 Likewise.
553
554 2019-08-13 Florian Weimer <fweimer@redhat.com>
555
556 * login/utmp_file.c (LOCK_FILE, LOCKING_FAILED, UNLOCK_FILE):
557 Remove macros.
558 (struct file_locking): New.
559 (try_file_lock, file_unlock, file_lock_restore): New functions.
560 (__libc_getutent_r): Use the new functions.
561 (internal_getut_r): Likewise.
562 (__libc_getutline_r): Likewise.
563 (__libc_pututline): Likewise.
564 (__libc_updwtmp): Likewise.
565
566 2019-08-13 Joseph Myers <joseph@codesourcery.com>
567
568 * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_BFP_EXT): Update
569 comment.
570 (__GLIBC_USE_IEC_60559_BFP_EXT_C2X): New macro.
571 * bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Change to
572 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)].
573 * include/limits.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
574 * math/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
575 * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
576 * stdlib/bits/stdlib-ldbl.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
577 Likewise.
578 * stdlib/stdint.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
579 * stdlib/stdlib.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
580 * sysdeps/aarch64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
581 Likewise.
582 * sysdeps/alpha/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
583 Likewise.
584 * sysdeps/arm/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
585 Likewise.
586 * sysdeps/csky/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
587 Likewise.
588 * sysdeps/hppa/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
589 Likewise.
590 * sysdeps/ia64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
591 Likewise.
592 * sysdeps/m68k/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
593 Likewise.
594 * sysdeps/microblaze/bits/fenv.h [__GLIBC_USE
595 (IEC_60559_BFP_EXT)]: Likewise.
596 * sysdeps/mips/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
597 Likewise.
598 * sysdeps/nios2/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
599 Likewise.
600 * sysdeps/powerpc/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
601 Likewise.
602 * sysdeps/riscv/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
603 Likewise.
604 * sysdeps/s390/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
605 Likewise.
606 * sysdeps/sh/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
607 Likewise.
608 * sysdeps/sparc/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
609 Likewise.
610 * sysdeps/x86/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
611 Likewise.
612 * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
613 Likewise, except for totalorder, totalordermag, getpayload,
614 setpayload and setpayloadsig.
615 * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise,
616 except for totalorder and totalordermag.
617
618 * string/string.h (memccpy): Also declare if [__GLIBC_USE (ISOC2X)].
619 (strdup): Likewise.
620 (strndup): Likewise.
621
622 * include/features.h (_ISOC2X_SOURCE): New feature test macro.
623 Undefine and define to 1 if [_GNU_SOURCE].
624 (__GLIBC_USE_ISOC2X): New macro. Undefine and redefine depending
625 on [_ISOC2X_SOURCE] and [__STDC_VERSION__ > 201710L].
626 (__USE_ISOC11): Also define to 1 if [_ISOC2X_SOURCE].
627 (__USE_ISOC99): Likewise.
628 (__USE_ISOC95): Likewise.
629 * manual/creature.texi (_ISOC2X_SOURCE): Document.
630
631 2019-08-13 Florian Weimer <fweimer@redhat.com>
632
633 * login/getutid_r.c (__getutid_r): _HAVE_UT_ID and _HAVE_UT_TYPE
634 are always true.
635 * login/getutmp.c (getutmp): _HAVE_UT_TYPE, _HAVE_UT_PID,
636 _HAVE_UT_ID, _HAVE_UT_HOST, _HAVE_UT_TV are always true.
637 * login/getutmpx.c (getutmpx): Likewise.
638 * login/login.c (login): _HAVE_UT_TYPE, _HAVE_UT_PID are always
639 true.
640 * login/logout.c (logout): _HAVE_UT_TYPE, _HAVE_UT_HOST,
641 _HAVE_UT_TV are always true.
642 * login/logwtmp.c (logwtmp): _HAVE_UT_PID, _HAVE_UT_TYPE,
643 _HAVE_UT_HOST, _HAVE_UT_TV are always true.
644 * login/tst-utmp.c: _HAVE_UT_TYPE, _HAVE_UT_TV are always true.
645 * login/utmp_file.c (__libc_setutent): _HAVE_UT_TYPE, _HAVE_UT_ID
646 are always true.
647 (internal_getut_r): _HAVE_UT_TYPE is always true.
648 (__libc_pututline): Likewise.
649 * login/programs/utmpdump.c (print_entry): Assume that
650 _HAVE_UT_TYPE, _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST,
651 _HAVE_UT_TV are always true.
652 * sysdeps/generic/utmp-equal.h (__utmp_equal): _HAVE_UT_TYPE,
653 _HAVE_UT_ID are always true.
654 * sysdeps/gnu/bits/utmp.h: Move to ...
655 * bits/utmp.h: ... here, replacing the old file.
656
657 2019-08-12 Florian Weimer <fweimer@redhat.com>
658
659 * elf/Makefile (tests): Unconditionally add tst-dlopen-aout.
660 [$(build-hardcoded-path-in-tests)] (tst-dlopen-aout-no-pie): Do
661 not set.
662 * elf/tst-dlopen-aout.c: Do not included <assert.h>.
663 (do_test): Open the executable using an absolute path. Print
664 error message to standard output.
665
666 2019-08-09 DJ Delorie <dj@redhat.com>
667
668 * elf/dl-tunables.list: Add glibc.malloc.mxfast.
669 * manual/tunables.texi: Document it.
670 * malloc/malloc.c (do_set_mxfast): New.
671 (__libc_mallopt): Call it.
672 * malloc/arena.c: Add mxfast tunable.
673 * malloc/tst-mxfast.c: New.
674 * malloc/Makefile: Add it.
675
676 2019-08-08 Niklas Hambüchen <mail@nh2.me>
677 Carlos O'Donell <carlos@redhat.com>
678
679 [BZ #24026]
680 * malloc/malloc.c (__malloc_info): Account for top chunk.
681
682 2019-08-07 Joseph Myers <joseph@codesourcery.com>
683
684 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
685 (SYNC_FILE_RANGE_WRITE_AND_WAIT): New macro.
686
687 2019-08-06 Joseph Myers <joseph@codesourcery.com>
688
689 * io/fcntl.h [__USE_GNU] (AT_RECURSIVE): New macro.
690
691 2019-07-02 Stefan Liebler <stli@linux.ibm.com>
692
693 * sysdeps/unix/sysv/linux/s390/init-first.c (VDSO_SETUP): New define.
694
695 2019-08-05 Joseph Myers <joseph@codesourcery.com>
696
697 * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU] (CLONE_PIDFD):
698 New macro.
699
700 2019-08-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
701
702 [BZ #19767]
703 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (ALWAYS_USE_VSYSCALL):
704 Remove definition.
705 * sysdeps/unix/sysv/linux/arm/sysdep.h (ALWAYS_USE_VSYSCALL):
706 Likewise.
707 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
708 Likewise.
709 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (ALWAYS_USE_VSYSCALL):
710 Likewise.
711 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
712 (ALWAYS_USE_VSYSCALL): Likewise.
713 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
714 (ALWAYS_USE_VSYSCALL): Likewise.
715 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
716 (ALWAYS_USE_VSYSCALL): Likewise.
717 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
718 (ALWAYS_USE_VSYSCALL): Likewise.
719 * sysdeps/unix/sysv/linux/riscv/sysdep.h (ALWAYS_USE_VSYSCALL):
720 Likewise.
721 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
722 (ALWAYS_USE_VSYSCALL): Likewise.
723 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
724 (ALWAYS_USE_VSYSCALL): Likewise.
725 * sysdeps/unix/sysv/linux/sparc/sysdep.h (ALWAYS_USE_VSYSCALL):
726 Likewise.
727 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
728 Likewise.
729 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Remove #if USE_VSYSCALL.
730 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Likewise.
731 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL,
732 USE_VSYSCALL): Remove defitions.
733
734 [BZ #19767]
735 * sysdeps/unix/sysv/linux/sparc/init-first.c: Remove #ifdef SHARED.
736 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: Likewise.
737 * sysdeps/unix/sysv/linux/sparc/sysdep.h (ALWAYS_USE_VSYSCALL):
738 Define.
739
740 [BZ #19767]
741 * sysdeps/unix/sysv/linux/s390/init-first.c: Remove #ifdef SHARED.
742 * sysdeps/unix/sysv/linux/s390/libc-vdso.h: Likewise.
743 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
744 (ALWAYS_USE_VSYSCALL): Define.
745 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
746 (ALWAYS_USE_VSYSCALL): Likewise.
747
748 [BZ #19767]
749 * sysdeps/unix/sysv/linux/riscv/init-first.c: Remove #ifdef SHARED.
750 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
751 * sysdeps/unix/sysv/linux/riscv/sysdep.h (ALWAYS_USE_VSYSCALL):
752 Define.
753
754 * sysdeps/sh/libm-test-ulps: Update.
755
756 2019-08-05 Florian Weimer <fweimer@redhat.com>
757
758 [BZ #23518]
759 * login/uptmp-private.h (struct ufuncs): Remove definition.
760 (__libc_utmp_file_functions, __libc_utmp_unknown_functions)
761 (__libc_utmp_jump_table): Remove declarations.
762 (__libc_setutent, __libc_getutent_r, __libc_getutid_r)
763 (__libc_getutline_r, __libc_pututline, __libc_endutent)
764 (__libc_updwtmp): Declare.
765 * login/getutent_r.c (__libc_utmp_unknown_functions)
766 (__libc_utmp_jump_table, setutent_unknown, getutent_r_unknown)
767 (getutid_r_unknown, getutline_r_unknown, pututline_unknown)
768 (endutent_unknown): Remove definitions.
769 (__setutent): Call __libc_setutent.
770 (__getutent_r): Call __libc_getutent_r.
771 (__pututline): Call __libc_pututline.
772 (__endutent): Call __libc_endutent.
773 * login/getutid_r.c (__getutid_r): Call __libc_getutid_r.
774 * login/getutline_r.c (__getutline_r): Call __libc_getutline_r.
775 * login/updwtmp.c (__updwtmp): Call __libc_updwtmp.
776 * login/utmp_file.c (__libc_utmp_file_functions): Remove definition
777 (__libc_setutent): Rename from stetutent_file. Drop static.
778 (maybe_setutent): New function.
779 (__libc_getutent_r): Rename from getutent_r_file. Drop static.
780 Check for initialization.
781 (__libc_getutid_r): Rename from getutid_r_file. Drop static.
782 Check for initialization.
783 (__libc_getutline_r): Rename from getutline_r_file. Drop static.
784 Check for initialization.
785 (__libc_pututline): Rename from pututline_file. Drop static.
786 Check for initialization.
787 (__libc_endutent): Rename from endutent_file. Drop static. Check
788 for initialization.
789 (__libc_updwtmp): Rename from updwtmp_file. Drop static.
790 * login/utmpname.c (__utmpname): Call __libc_endutent.
791 * sysdeps/unix/getlogin_r (__getlogin_r): Call __libc_setutent,
792 __libc_getutlien_r, __libc_endutent.
793 * manual/users.texi (Who Logged In, Manipulating the Database):
794 Adjust.
795
796 2019-08-05 Alexandra Hajkova <ahajkova@redhat.com>
797
798 * elf/tst-ldconfig-bad-aux-cache.c: Use support_capture_subprocess.
799
800 2019-08-02 Joseph Myers <joseph@codesourcery.com>
801
802 * sysdeps/unix/sysv/linux/syscall-names.list: Update comment.
803
804 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Update Linux
805 kernel version number to 5.2.
806
807 2019-08-01 Raoni Fassina Firmino <raoni@linux.ibm.com>
808
809 * sysdeps/powerpc/powerpc64/power8/memchr.S: Update power8
810 mnemonics and set .machine power8.
811 * sysdeps/powerpc/powerpc64/power8/memcmp.S: Likewise.
812 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Likewise.
813 * sysdeps/powerpc/powerpc64/power8/memset.S: Likewise.
814 * sysdeps/powerpc/powerpc64/power8/strchr.S: Likewise.
815 * sysdeps/powerpc/powerpc64/power8/strlen.S: Likewise.
816 * sysdeps/powerpc/powerpc64/power8/strncmp.S: Likewise.
817 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Likewise.
818 * sysdeps/powerpc/powerpc64/power8/strnlen.S: Likewise.
819 * sysdeps/powerpc/powerpc64/power8/strrchr.S: Likewise.
820 * sysdeps/powerpc/powerpc64/power8/strspn.S: Likewise.
821
822 2019-08-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
823
824 * sysdeps/hppa/fpu/libm-test-ulps: Update.
825
826 2019-08-01 Florian Weimer <fweimer@redhat.com>
827
828 [BZ #24867]
829 * malloc/malloc.c (__malloc_info): Remove unwanted leading
830 whitespace.
831
832 2019-08-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
833
834 [BZ #15813]
835 sysdeps/posix/tempname.c (__gen_tempname): get entropy on each
836 attempt.
837
838 2019-08-01 Carlos O'Donell <carlos@redhat.com>
839
840 * version.h (RELEASE): Set to "stable".
841 (VERSION): Set to "2.30".
842 * include/features.h (__GLIBC_MINOR__): Set to 2.30.
843
844 * manual/install.texi: Update component versions.
845 * INSTALL: Regenerate.
846 * NEWS: Update.
847
848 2019-07-31 Carlos O'Donell <carlos@redhat.com>
849
850 * po/be.po: Update translations.
851 * po/bg.po: Likewise.
852 * po/ca.po: Likewise.
853 * po/cs.po: Likewise.
854 * po/da.po: Likewise.
855 * po/de.po: Likewise.
856 * po/el.po: Likewise.
857 * po/eo.po: Likewise.
858 * po/es.po: Likewise.
859 * po/fi.po: Likewise.
860 * po/fr.po: Likewise.
861 * po/gl.po: Likewise.
862 * po/hr.po: Likewise.
863 * po/hu.po: Likewise.
864 * po/ia.po: Likewise.
865 * po/id.po: Likewise.
866 * po/it.po: Likewise.
867 * po/ja.po: Likewise.
868 * po/ko.po: Likewise.
869 * po/lt.po: Likewise.
870 * po/nb.po: Likewise.
871 * po/nl.po: Likewise.
872 * po/pl.po: Likewise.
873 * po/pt_BR.po: Likewise.
874 * po/ru.po: Likewise.
875 * po/rw.po: Likewise.
876 * po/sk.po: Likewise.
877 * po/sl.po: Likewise.
878 * po/sv.po: Likewise.
879 * po/tr.po: Likewise.
880 * po/uk.po: Likewise.
881 * po/vi.po: Likewise.
882 * po/zh_CN.po: Likewise.
883 * po/zh_TW.po: Likewise.
884
885 2019-07-31 Florian Weimer <fweimer@redhat.com>
886
887 [BZ #24583]
888 [BZ #24677]
889 iconv, libio: Revert reference counting changes.
890 * iconv/gconv_cache.c (__gconv_release_cache): Unconditionally
891 free the steps array.
892 * libio/Makefile (tests): Remove tst-wfile-gconv.
893 (tests-container): Do not add tst-wfile-ascii.
894 (tst-wfile-gconv-ENV): Do not set.
895 (generated): Do not add tst-wfile-gconv.mtrace,
896 tst-wfile-gconv.check.
897 [($run-built-tests)] (tests-special): Do not add
898 tst-wfile-gconv-mem.out.
899 (tst-wfile-gconv.out, tst-wfile-gconv-mem.out): Remove targets.
900 * libio/iofclose.c (_IO_new_fclose): Call __gconv_release_step
901 instead of __wcsmbs_clone_conv.
902 * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Remove definition.
903 * wcsmbs/wcsmbsload.h (__wcsmbs_clone_conv): Remove declaration.
904
905 2019-07-30 Joseph Myers <joseph@codesourcery.com>
906
907 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
908 (__CONTEXT_FUNC_NAME): Restore setting of r31.
909
910 2019-07-30 Florian Weimer <fweimer@redhat.com>
911
912 * nptl/tst-pthread-getattr.c (allocate_and_test): Change return
913 type to uintptr_t. Update comment.
914 (check_stack_top): Adjust.
915
916 2019-07-29 Florian Weimer <fweimer@redhat.com>
917
918 Linux: Move declaration of getdents64 to <dirent.h>.
919 * bits/dirent_ext.h: New file.
920 * dirent/Makefile (headers): Add bits/dirent_ext.h.
921 * dirent/dirent.h: Include <bits/dirent_ext.h>.
922 * sysdeps/unix/sysv/linux/bits/dirent_ext.h: New file.
923 * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Remove
924 declaration.
925 * manual/filesys.texi (Low-level Directory Access): Update header
926 to dirent.h.
927
928 2019-07-29 DJ Delorie <dj@redhat.com>
929 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
930
931 [BZ #24794]
932 * Makeconfig (all-subdirs): Improved source comments.
933 * Makefile (testroot.pristine/install.stamp): Pass
934 subdirs='$(sorted-subdirs)' to make install.
935
936 2019-07-25 Florian Weimer <fweimer@redhat.com>
937
938 [BZ #24677]
939 * iconv/gconv_cache.c (__gconv_release_cache): Check reference
940 counter before freeing array.
941
942 2019-07-24 H.J. Lu <hongjiu.lu@intel.com>
943
944 [BZ #24603]
945 * sysdeps/x86_64/configure.ac: Check if -mprefer-vector-width=128
946 works.
947 * sysdeps/x86_64/configure: Regenerated.
948 * sysdeps/x86_64/fpu/Makefile (CFLAGS-branred.c): New. Set
949 to -mprefer-vector-width=128 if supported.
950
951 2019-07-24 Florian Weimer <fweimer@redhat.com>
952
953 * scripts/build-many-glibcs.py (Context.checkout): Default to
954 Linux 5.2.
955
956 2019-07-24 Florian Weimer <fweimer@redhat.com>
957
958 [BZ #24532]
959 Linux: Use in-tree copy of SO_ constants for !__USE_MISC.
960 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == socket]
961 (sysdep_headers): Add bits/socket-constants.h.
962 (tests-special): Add tst-socket-consts.out.
963 (tst-socket-consts.out): New target.
964 * sysdeps/unix/sysv/linux/bits/socket.h: Remove macro tracking
965 around <asm/unistd.h>.
966 [__USE_MISC]: Include <bits/types/time_t.h> before <asm/socket.h>.
967 [!__USE_MISC]: Include <sys/socket-constants.h> instead of
968 <asm/socket.h>.
969 * sysdeps/unix/sysv/linux/bits/tst-socket-consts.py: New file.
970 * sysdeps/unix/sysv/linux/bits/socket-constants.h: Likewise.
971 * sysdeps/unix/sysv/linux/alpha/bits/socket-constants.h: Likewise.
972 * sysdeps/unix/sysv/linux/hppa/bits/socket-constants.h: Likewise.
973 * sysdeps/unix/sysv/linux/mips/bits/socket-constants.h: Likewise.
974 * sysdeps/unix/sysv/linux/powerpc/bits/socket-constants.h:
975 Likewise.
976 * sysdeps/unix/sysv/linux/sparc/bits/socket-constants.h: Likewise.
977
978 2019-07-23 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
979
980 [BZ #24794]
981 * Makefile (testroot.pristine/install.stamp): Pass
982 subdirs='$(all-subdirs)' to make install.
983
984 * Makefile (testroot.pristine/install.stamp): Execute ld.so with
985 the same arguments used in all tests.
986
987 2019-07-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
988
989 * NEWS: Mention the AArch64 IFUNC resolver ABI change.
990
991 2019-07-20 Egor Kobylkin <egor@kobylkin.com>
992
993 [BZ #2872]
994 * locale/C-translit.h.in: Add Cyrillic transliteration.
995
996 2019-07-19 Florian Weimer <fweimer@redhat.com>
997
998 * sysdeps/unix/sysv/linux/syscall-names.list: Add system calls
999 from Linux 5.2.
1000 (fsconfig): Add system call name.
1001 (fsmount): Likewise.
1002 (fsopen): Likewise.
1003 (fspick): Likewise.
1004 (move_mount): Likewise.
1005 (open_tree): Likewise.
1006
1007 2019-07-18 Carlos O'Donell <carlos@redhat.com>
1008
1009 * po/libc.pot: Regenerate.
1010
1011 2019-07-18 Mike Crowe <mac@mcrowe.com>
1012
1013 * sysdeps/unix/sysv/linux/hppa/pthread.h: Add declarations of
1014 functions recently added to sysdeps/nptl/pthread.h:
1015 pthread_mutex_clocklock, pthread_rwlock_clockrdlock,
1016 pthread_rwlock_clockwrlock and pthread_cond_clockwait.
1017
1018 * nptl/forward.c: Remove unnecessary __pthread_cond_clockwait and
1019 pthread_cond_clockwait forwarding functions. There are no internal
1020 users, so it is unnecessary to expose these functions in libc.so.
1021 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
1022 unnecessary ptr___pthread_cond_clockwait member.
1023 * nptl/nptl-init.c (pthread_functions): Remove assignment of
1024 removed member.
1025
1026 2019-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
1027
1028 [BZ #21897]
1029 * localedata/locales/aa_DJ (abday): Update from CLDR, all words
1030 begin with an uppercase letter now.
1031 (abmon): Likewise.
1032 (mon): Update from CLDR, reword February from "Kudo" to
1033 "Naharsi Kudo", April from "Agda Baxisso" to "Agda Baxis",
1034 and August from "Liiqen" to "Leqeeni".
1035 * localedata/locales/aa_ER (mon): Update from CLDR, reword
1036 April from "Agda Baxisso" to "Agda Baxis" and August from
1037 "Leqeeni" to "Liiqen".
1038 * localedata/locales/aa_ER@saaho (mon): Likewise.
1039 * localedata/locales/aa_ET (abmon): Update from CLDR, reword
1040 abbreviated February from "Kud" to "Nah".
1041 (mon): Update from CLDR, reword February from "Kudo" to
1042 "Naharsi Kudo" and April from "Agda Baxisso" to "Agda Baxis".
1043
1044 2019-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
1045
1046 [BZ #23996]
1047 * localedata/locales/nl_BE (LC_NAME): Replace with “copy "nl_NL"”.
1048
1049 2019-07-17 PanderMusubi <pander@users.sourceforge.net>
1050
1051 [BZ #23996]
1052 * localedata/locales/nl_BE (LC_NAME): Add name_gen, name_mr,
1053 name_mrs, name_miss, and name_ms.
1054 * localedata/locales/nl_NL (LC_NAME): Likewise.
1055
1056 2019-07-17 Daniil Zhilin <generalfailer@protonmail.com>
1057
1058 [BZ #24200]
1059 * localedata/locales/ga_IE (first_weekday): Add, set to 2 (Monday).
1060 * localedata/locales/en_IE (first_weekday): Likewise.
1061
1062 2019-07-12 Mike Crowe <mac@mcrowe.com>
1063
1064 * nptl/pthread_cond_wait.c: (__pthread_cond_clockwait): Remove code
1065 that is only useful if futex_supports_exact_relative_timeouts ()
1066 returns false.
1067 * nptl/pthread_condattr_setclock.c: (pthread_condattr_setclock):
1068 Likewise.
1069 * sysdeps/nptl/futex-internal.h: Remove comment about relative
1070 timeouts potentially being imprecise since it's no longer true.
1071 Remove declaration of futex_supports_exact_relative_timeouts.
1072 * sysdeps/unix/sysv/linux/futex-internal.h: Remove implementation
1073 of futex_supports_exact_relative_timeouts.
1074
1075 * NEWS: Mention recently-added pthread_cond_clockwait,
1076 pthread_rwlock_clockrdlock, pthread_rwlock_clockwrlock and
1077 sem_clockwait functions.
1078
1079 nptl: Add POSIX-proposed pthread_mutex_clocklock function that
1080 works like pthread_mutex_timedlock but takes a clockid parameter to
1081 measure the abstime parameter against.
1082 * sysdeps/nptl/pthread.h: Add pthread_mutex_clocklock.
1083 * nptl/DESIGN-systemtap-probes.txt: Likewise.
1084 * nptl/pthread_mutex_timedlock.c
1085 (__pthread_mutex_clocklock_common): Rename from
1086 __pthread_mutex_timedlock and add clockid parameter. Pass this
1087 parameter to lll_clocklock and lll_clocklock_elision in place of
1088 CLOCK_REALTIME. (__pthread_mutex_clocklock): New function to add
1089 LIBC_PROBE and validate clockid parameter before calling
1090 __pthread_mutex_clocklock_common. (__pthread_mutex_timedlock): New
1091 implementation to add LIBC_PROBE and calls
1092 __pthread_mutex_clocklock_common passing CLOCK_REALTIME as the
1093 clockid.
1094 * nptl/Makefile: Add tst-mutex11.c.
1095 * nptl/tst-abstime.c (th): Add tests for pthread_mutex_clocklock.
1096 * nptl/tst-mutex11.c: New tests for passing invalid and unsupported
1097 clockid parameters to pthread_mutex_clocklock.
1098 * nptl/tst-mutex5.c (do_test_clock): Rename from do_test and take
1099 clockid parameter to indicate which clock to be used. Call
1100 pthread_mutex_timedlock or pthread_mutex_clocklock as appropriate.
1101 (do_test): Call do_test_clock to separately test
1102 pthread_mutex_timedlock, pthread_mutex_clocklock(CLOCK_REALTIME)
1103 and pthread_mutex_clocklock(CLOCK_MONOTONIC).
1104 * nptl/tst-mutex9.c: Likewise.
1105 * nptl/Versions (GLIBC_2.30): Add pthread_mutex_clocklock.
1106 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30):
1107 Likewise.
1108 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30):
1109 Likewise.
1110 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30):
1111 Likewise.
1112 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30):
1113 Likewise.
1114 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30):
1115 Likewise.
1116 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30):
1117 Likewise.
1118 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30):
1119 Likewise.
1120 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1121 (GLIBC_2.30): Likewise.
1122 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1123 (GLIBC_2.30): Likewise.
1124 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1125 (GLIBC_2.30): Likewise.
1126 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1127 (GLIBC_2.30): Likewise.
1128 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1129 (GLIBC_2.30): Likewise.
1130 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30):
1131 Likewise.
1132 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1133 (GLIBC_2.30): Likewise.
1134 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1135 (GLIBC_2.30): Likewise.
1136 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1137 (GLIBC_2.30): Likewise.
1138 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1139 (GLIBC_2.30): Likewise.
1140 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1141 (GLIBC_2.30): Likewise.
1142 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1143 (GLIBC_2.30): Likewise.
1144 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30):
1145 Likewise.
1146 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1147 (GLIBC_2.30): Likewise.
1148 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1149 (GLIBC_2.30): Likewise.
1150 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1151 (GLIBC_2.30): Likewise.
1152 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1153 (GLIBC_2.30): Likewise.
1154
1155 nptl: Rename lll_timedlock to lll_clocklock and add clockid
1156 parameter to indicate the clock that the abstime parameter should
1157 be measured against in preparation for adding
1158 pthread_mutex_clocklock.
1159 * sysdeps/nptl/lowlevellock.h (lll_clocklock): Rename from
1160 lll_timedlock and add clockid parameter. (__lll_clocklock): Rename
1161 from __lll_timedlock and add clockid parameter.
1162 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_clocklock):
1163 Likewise.
1164 * nptl/lll_timedlock_wait.c (__lll_clocklock_wait): Rename from
1165 __lll_timedlock_wait and add clockid parameter. Use __clock_gettime
1166 rather than __gettimeofday so that clockid can be used. This means
1167 that conversion from struct timeval is no longer required.
1168 * sysdeps/sparc/sparc32/lowlevellock.c (lll_clocklock_wait):
1169 Likewise.
1170 * sysdeps/sparc/sparc32/lll_timedlock_wait.c: Update comment to
1171 refer to __lll_clocklock_wait rather than __lll_timedlock_wait.
1172 * nptl/pthread_mutex_timedlock.c (lll_clocklock_elision): Rename
1173 from lll_timedlock_elision, add clockid parameter and use
1174 meaningful names for other parameters. (__pthread_mutex_timedlock):
1175 Pass CLOCK_REALTIME where necessary to lll_clocklock and
1176 lll_clocklock_elision.
1177 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
1178 (lll_clocklock_elision): Rename from lll_timedlock_elision and add
1179 clockid parameter. (__lll_clocklock_elision): Rename from
1180 __lll_timedlock_elision and add clockid parameter.
1181 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
1182 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: Likewise.
1183 * sysdeps/unix/sysv/linux/powerpc/elision-timed.c
1184 (__lll_lock_elision): Call __lll_clocklock_elision rather than
1185 __lll_timedlock_elision. (EXTRAARG): Add clockid parameter.
1186 (LLL_LOCK): Likewise.
1187 * sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
1188 * sysdeps/unix/sysv/linux/x86/elision-timed.c: Likewise.
1189
1190 nptl: Add POSIX-proposed pthread_rwlock_clockrdlock &
1191 pthread_rwlock_clockwrlock which behave like
1192 pthread_rwlock_timedrdlock and pthread_rwlock_timedwrlock
1193 respectively, except they always measure abstime against the
1194 supplied clockid. The functions currently support CLOCK_REALTIME
1195 and CLOCK_MONOTONIC and return EINVAL if any other clock is
1196 specified.
1197 * sysdeps/nptl/pthread.h: Add pthread_rwlock_clockrdlock and
1198 pthread_wrlock_clockwrlock.
1199 * nptl/Makefile: Build pthread_rwlock_clockrdlock.c and
1200 pthread_rwlock_clockwrlock.c.
1201 * nptl/pthread_rwlock_clockrdlock.c: Implement
1202 pthread_rwlock_clockrdlock.
1203 * nptl/pthread_rwlock_clockwrlock.c: Implement
1204 pthread_rwlock_clockwrlock.
1205 * nptl/pthread_rwlock_common.c (__pthread_rwlock_rdlock_full): Add
1206 clockid parameter and verify that it indicates a supported clock on
1207 entry so that we fail even if it doesn't end up being used. Pass
1208 that clock on to futex_abstimed_wait when necessary.
1209 (__pthread_rwlock_wrlock_full): Likewise.
1210 * nptl/pthread_rwlock_rdlock.c: (__pthread_rwlock_rdlock): Pass
1211 CLOCK_REALTIME to __pthread_rwlock_rdlock_full even though it won't
1212 be used because there's no timeout.
1213 * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock): Pass
1214 CLOCK_REALTIME to __pthread_rwlock_wrlock_full even though it won't
1215 be used because there is no timeout.
1216 * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
1217 Pass CLOCK_REALTIME to __pthread_rwlock_rdlock_full since abstime
1218 uses that clock.
1219 * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
1220 Pass CLOCK_REALTIME to __pthread_rwlock_wrlock_full since abstime
1221 uses that clock.
1222 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
1223 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
1224 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
1225 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
1226 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
1227 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
1228 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
1229 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1230 (GLIBC_2.30): Likewise.
1231 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1232 (GLIBC_2.30): Likewise.
1233 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1234 (GLIBC_2.30): Likewise.
1235 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1236 (GLIBC_2.30): Likewise.
1237 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1238 (GLIBC_2.30): Likewise.
1239 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
1240 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1241 (GLIBC_2.30): Likewise.
1242 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1243 (GLIBC_2.30): Likewise.
1244 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1245 (GLIBC_2.30): Likewise.
1246 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1247 (GLIBC_2.30): Likewise.
1248 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1249 (GLIBC_2.30): Likewise.
1250 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1251 (GLIBC_2.30): Likewise.
1252 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
1253 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1254 (GLIBC_2.30): Likewise.
1255 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1256 (GLIBC_2.30): Likewise.
1257 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1258 (GLIBC_2.30): Likewise.
1259 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1260 (GLIBC_2.30): Likewise.
1261 * nptl/tst-abstime.c (th): Add pthread_rwlock_clockrdlock and
1262 pthread_rwlock_clockwrlock timeout tests to match the existing
1263 pthread_rwlock_timedrdloock and pthread_rwlock_timedwrlock tests.
1264 * nptl/tst-rwlock14.c (do_test): Likewise.
1265 * nptl/tst-rwlock6.c Invent verbose_printf macro, and use for
1266 ancillary output throughout. (tf): Accept thread_args structure so
1267 that rwlock, a clockid and function name can be passed to the
1268 thread. (do_test_clock): Rename from do_test. Accept clockid
1269 parameter to specify test clock. Use the magic clockid value of
1270 CLOCK_USE_TIMEDLOCK to indicate that pthread_rwlock_timedrdlock and
1271 pthread_rwlock_timedwrlock should be tested, otherwise pass the
1272 specified clockid to pthread_rwlock_clockrdlock and
1273 pthread_rwlock_clockwrlock. Use xpthread_create and xpthread_join.
1274 (do_test): Call do_test_clock to test each clockid in turn.
1275 * nptl/tst-rwlock7.c: Likewise.
1276 * nptl/tst-rwlock9.c (writer_thread, reader_thread): Accept
1277 thread_args structure so that the (now int) thread number, the
1278 clockid and the function name can be passed to the thread.
1279 (do_test_clock): Renamed from do_test. Pass the necessary
1280 thread_args when creating the reader and writer threads. Use
1281 xpthread_create and xpthread_join.
1282 (do_test): Call do_test_clock to test each clockid in turn.
1283 * manual/threads.texi: Add documentation for
1284 pthread_rwlock_clockrdlock and pthread_rwlock_clockwrclock.
1285
1286 nptl: pthread_rwlock: Move timeout validation into _full functions
1287 * nptl/pthread_rwlock_common.c (__pthread_rwlock_rdlock_full):
1288 Check validity of abstime parameter.
1289 (__pthread_rwlock_rwlock_full): Likewise.
1290 * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
1291 Remove check for validity of abstime parameter.
1292 * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
1293 Likewise.
1294
1295 nptl: Add POSIX-proposed pthread_cond_clockwait which behaves just
1296 like pthread_cond_timedwait except it always measures abstime
1297 against the supplied clockid.
1298 * nptl/Makefile: Add tst-cond26 and tst-cond27
1299 * nptl/Versions (GLIBC_2.30): Add pthread_cond_clockwait
1300 * sysdeps/nptl/pthread.h: Likewise
1301 * nptl/forward.c: Add __pthread_cond_clockwait
1302 * nptl/forward.c: Likewise
1303 * nptl/pthreadP.h: Likewise
1304 * sysdeps/nptl/pthread-functions.h: Likewise
1305 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Add
1306 clockid parameter and comment describing why we don't need to check
1307 its value. Use that value when calling
1308 futex_abstimed_wait_cancelable rather than reading the clock from
1309 the flags. (__pthread_cond_wait): Pass unused clockid parameter.
1310 (__pthread_cond_timedwait): Read clock from flags and pass it to
1311 __pthread_cond_wait_common. (__pthread_cond_clockwait): Add new
1312 function with weak alias from pthread_cond_clockwait.
1313 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
1314 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
1315 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
1316 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
1317 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
1318 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
1319 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
1320 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1321 (GLIBC_2.30): Likewise.
1322 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1323 (GLIBC_2.30): Likewise.
1324 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1325 (GLIBC_2.30): Likewise.
1326 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1327 (GLIBC_2.30): Likewise.
1328 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1329 (GLIBC_2.30): Likewise.
1330 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
1331 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1332 (GLIBC_2.30): Likewise.
1333 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1334 (GLIBC_2.30): Likewise.
1335 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1336 (GLIBC_2.30): Likewise.
1337 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1338 (GLIBC_2.30): Likewise.
1339 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1340 (GLIBC_2.30): Likewise.
1341 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1342 (GLIBC_2.30): Likewise.
1343 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
1344 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1345 (GLIBC_2.30): Likewise.
1346 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1347 (GLIBC_2.30): Likewise.
1348 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1349 (GLIBC_2.30): Likewise.
1350 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1351 (GLIBC_2.30): Likewise.
1352 * nptl/tst-cond11.c (run_test): Support testing
1353 pthread_cond_clockwait too by using a special magic
1354 CLOCK_USE_ATTR_CLOCK value to determine whether to call
1355 pthread_cond_timedwait or pthread_cond_clockwait. (do_test): Pass
1356 CLOCK_USE_ATTR_CLOCK for existing tests, and add new tests using
1357 all combinations of CLOCK_MONOTONIC and CLOCK_REALTIME.
1358 * ntpl/tst-cond26.c: New test for passing unsupported and invalid
1359 clocks to pthread_cond_clockwait.
1360 * nptl/tst-cond27.c: Add test similar to tst-cond5.c, but using
1361 struct timespec and pthread_cond_clockwait.
1362 * manual/threads.texi: Document pthread_cond_clockwait.
1363
1364 nptl: Add POSIX-proposed sem_clockwait which behaves just like
1365 sem_timedwait, but measures abstime against the specified clock.
1366 * nptl/sem_waitcommon.c (do_futex_wait, __new_sem_wait_slow): Add
1367 clockid parameters to indicate the clock which abstime should be
1368 measured against.
1369 * nptl/sem_timedwait.c (sem_timedwait), nptl/sem_wait.c
1370 (__new_sem_wait): Pass CLOCK_REALTIME as clockid to
1371 __new_sem_wait_slow.
1372 * nptl/sem_clockwait.c: New file to implement sem_clockwait based
1373 on sem_timedwait.c.
1374 * nptl/Makefile: Add sem_clockwait.c source file. Add CFLAGS for
1375 sem_clockwait.c to match those used for sem_timedwait.c.
1376 * sysdeps/pthread/semaphore.h: Add sem_clockwait.
1377 * nptl/Versions (GLIBC_2.30): Likewise.
1378 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
1379 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
1380 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
1381 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
1382 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
1383 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
1384 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
1385 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1386 (GLIBC_2.30): Likewise.
1387 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1388 (GLIBC_2.30): Likewise.
1389 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1390 (GLIBC_2.30): Likewise.
1391 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1392 (GLIBC_2.30): Likewise.
1393 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1394 (GLIBC_2.30): Likewise.
1395 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
1396 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1397 (GLIBC_2.30): Likewise.
1398 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1399 (GLIBC_2.30): Likewise.
1400 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1401 (GLIBC_2.30): Likewise.
1402 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1403 (GLIBC_2.30): Likewise.
1404 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1405 (GLIBC_2.30): Likewise.
1406 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1407 (GLIBC_2.30): Likewise.
1408 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
1409 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1410 (GLIBC_2.30): Likewise.
1411 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1412 (GLIBC_2.30): Likewise.
1413 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1414 (GLIBC_2.30): Likewise.
1415 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1416 (GLIBC_2.30): Likewise.
1417 * nptl/tst-sem17.c: Add new test for passing invalid clock to
1418 sem_clockwait.
1419 * nptl/tst-sem13.c, nptl/tst-sem5.c: Modify existing sem_timedwait
1420 tests to also test sem_clockwait.
1421 * manual/threads.texi: Document sem_clockwait.
1422
1423 nptl: Add clockid parameter to futex timed wait calls
1424 * sysdeps/nptl/lowlevellock-futex.h,
1425 sysdeps/unix/sysv/linux/lowlevellock-futex.h: Replace
1426 lll_futex_timed_wait_bitset with lll_futex_clock_wait_bitset that
1427 takes a clockid rather than a special clockbit.
1428 * sysdeps/nptl/lowlevellock-futex.h: Add
1429 lll_futex_supported_clockid so that client functions can check
1430 whether their clockid parameter is valid even if they don't
1431 ultimately end up calling lll_futex_clock_wait_bitset.
1432 * sysdeps/nptl/futex-internal.h,
1433 sysdeps/unix/sysv/linux/futex-internal.h
1434 (futex_abstimed_wait, futex_abstimed_wait_cancelable): Add
1435 clockid_t parameter to indicate which clock the absolute time
1436 passed should be measured against. Pass that clockid onto
1437 lll_futex_clock_wait_bitset. Add invalid clock as reason for
1438 returning -EINVAL.
1439 * sysdeps/nptl/futex-internal.h,
1440 sysdeps/unix/sysv/linux/futex-internal.h: Introduce
1441 futex_abstimed_supported_clockid so that client functions can check
1442 whether their clockid parameter is valid even if they don't
1443 ultimately end up calling futex_abstimed_wait.
1444 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Remove
1445 code to calculate relative timeout for
1446 __PTHREAD_COND_CLOCK_MONOTONIC_MASK and just pass CLOCK_MONOTONIC
1447 or CLOCK_REALTIME as required to futex_abstimed_wait_cancelable.
1448 * nptl/pthread_rwlock_common (__pthread_rwlock_rdlock_full)
1449 (__pthread_wrlock_full), nptl/sem_waitcommon (do_futex_wait): Pass
1450 additional CLOCK_REALTIME to futex_abstimed_wait_cancelable.
1451 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
1452 Switch to lll_futex_clock_wait_bitset and pass CLOCK_REALTIME
1453
1454 2019-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1455
1456 [BZ #24699]
1457 * posix/tst-mmap-offset.c: Mention BZ #24699.
1458 (do_test_bz21270): Rename to do_test_large_offset and use
1459 mmap64_maximum_offset to check for maximum expected offset value.
1460 * sysdeps/generic/mmap_info.h: New file.
1461 * sysdeps/unix/sysv/linux/mips/mmap_info.h: Likewise.
1462 * sysdeps/unix/sysv/linux/mmap64.c (MMAP_OFF_HIGH_MASK): Define iff
1463 __NR_mmap2 is used.
1464
1465 2019-07-10 DJ Delorie <dj@redhat.com>
1466 Sergei Trofimovich <slyfox@inbox.ru>
1467
1468 [BZ #24696]
1469 [BZ #24695]
1470 * nss/nss_db/db-open.c (internal_endent): Protect against NULL
1471 mappings.
1472 * nss/tst-nss-db-endgrent.c: New.
1473 * nss/tst-nss-db-endgrent.root: New.
1474 * nss/tst-nss-db-endpwent.c: New.
1475 * nss/tst-nss-db-endpwent.root: New.
1476 * nss/Makefile: Add new tests.
1477 * support/links-dso-program-c.c: Add selinux dependency.
1478 * support/links-dso-program.cc: Add selinux dependency.
1479 * support/Makefile: Build those with -lselinux if enabled.
1480
1481 2019-07-10 Szabolcs Nagy <szabolcs.nagy@arm.com>
1482
1483 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove the
1484 DT_AARCH64_VARIANT_PCS check.
1485 (elf_machine_lazy_rel): Use l_info[DT_AARCH64 (VARIANT_PCS)].
1486 * sysdeps/aarch64/linkmap.h (struct link_map_machine): Remove
1487 variant_pcs.
1488
1489 2019-07-10 Andreas Schwab <schwab@suse.de>
1490
1491 [BZ #23352]
1492 * malloc/malloc.h (__malloc_check_init): Don't declare.
1493 * include/malloc.h (__malloc_check_init): Likewise.
1494 * malloc/malloc-internal.h (__malloc_check_init): Declare it here.
1495 * manual/memory.texi (__malloc_check_init): Don't mention it.
1496
1497 2019-07-10 Mao Han <han_mao@c-sky.com>
1498
1499 * locale/Makefile: Fix tst-locale-locpath arguments passing.
1500
1501 2019-07-09 Paul A. Clarke <pc@us.ibm.com>
1502
1503 * sysdeps/powerpc/fpu/fenv_libc.h (_FPU_GET_RC): Protect use of
1504 __builtin_cpu_supports with __BUILTIN_CPU_SUPPORTS__.
1505
1506 2019-07-08 DJ Delorie <dj@redhat.com>
1507
1508 [BZ #23501]
1509 * io/ftw.c (process_entry): Fill in statbuf for dangling links.
1510 * io/tst-ftw-lnk.c: New test.
1511 * io/Makefile: Run it.
1512
1513 2019-07-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1514
1515 * sysdeps/powerpc/power7/fpu/s_logb.c: Move to ...
1516 * sysdeps/powerpc/fpu/s_logb.c: ... here. Use inline FP constants.
1517 * sysdeps/powerpc/power7/fpu/s_logbf.c: Move to ...
1518 * sysdeps/powerpc/fpu/s_logbf.c: ... here. Use inline FP constants.
1519 * sysdeps/powerpc/power7/fpu/s_logbl.c: Move to ...
1520 * sysdeps/powerpc/fpu/s_logbl.c: ... here. Use inline FP constants.
1521 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c:
1522 Adjust implementation path.
1523 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c:
1524 Adjust implementation path.
1525 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-power7.c:
1526 Adjust implementation path.
1527 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
1528 (libm-sysdep_routines): Add s_log* objects.
1529 (CFLAGS-s_logbf-power7.c, CFLAGS-s_logbl-power7.c,
1530 CFLAGS-s_logb-power7.c): New fule.
1531 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: Move
1532 to ...
1533 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb-power7.c:
1534 ... here.
1535 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: Move
1536 to ...
1537 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb-ppc64.c:
1538 ... here.
1539 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Move to ...
1540 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb.c: ... here.
1541 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: Move
1542 to ...
1543 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf-power7.c:
1544 ... here.
1545 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: Move
1546 to ...
1547 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf-ppc64.c:
1548 ... here.
1549 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Move to ...
1550 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf.c: ... here.
1551 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: Move
1552 to ...
1553 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl-power7.c:
1554 ... here.
1555 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: Move
1556 to ...
1557 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl-ppc64.c:
1558 ... here.
1559 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: Move to ...
1560 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl.c: ... here.
1561 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Remove file.
1562 * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Remove file.
1563 * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
1564 * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
1565
1566 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Move to ...
1567 * sysdeps/ieee754/dbl-64/s_logb.c: ... here. Add work around for
1568 powerpc32 integer 0 converting to -0.
1569
1570 * benchtests/Makefile (bench-math): Add logb.
1571 * benchtests/logb-inputs: New file.
1572 * benchtests/logbf-inputs: New file.
1573
1574 * sysdeps/powerpc/power5+/fpu/s_modf.c: Move to ...
1575 * sysdeps/powerpc/fpu/s_modf.c: ... here. Add ISA 2.07 optimization.
1576 * sysdeps/powerpc/power5+/fpu/s_modff.c: Move to ...
1577 * sysdeps/powerpc/fpu/s_modff.c: ... here. Add ISA 2.07 optimization.
1578 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
1579 Adjust include.
1580 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
1581 Likewise.
1582 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile (sysdep_calls,
1583 sysdep_routines): Add s_modf* objects.
1584 (CFLAGS-s_modf-power5+.c, CFLAGS-s_modff-power5+.c,
1585 CFLAGS-s_modf-ppc64.c, CFLAGS-s_modff-ppc64.c): New rule.
1586 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: Move
1587 to ...
1588 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf-power5+.c:
1589 ... here.
1590 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: Movo
1591 to ...
1592 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf-power5+.c: Move
1593 ... here.
1594 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Move to ...
1595 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf.c: ... here.
1596 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: Move
1597 to ...
1598 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff-power5+.c:
1599 ... here.
1600 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: Move to ...
1601 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff-ppc64.c:
1602 ... here.
1603 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Move to ...
1604 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff.c: ... here.
1605
1606 * sysdeps/powerpc/fpu/e_hypot.c (two60, two500, two600, two1022,
1607 twoM500, twoM600, two60factor, pdnum): Remove.
1608 (TEST_INFO_NAN, GET_TW0_HIGH_WORD): Remove macro.
1609 (__ieee754_hypot): Replace static variables with inline definition,
1610 remove ununsed branches.
1611 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1612 (libm-sysdep_routines): Remove e_hypot-* objects.
1613 (CFLAGS-e_hypot-power7.c, CFLAGS-e_hypotf-power7.c): Remove rule.
1614 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: Remove
1615 file.
1616 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: Likewise.
1617 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: Likewise.
1618 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: Likewise.
1619 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: Likewise.
1620 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: Likewise.
1621
1622 * benchtests/Makefile (bench-math): Add hypot.
1623 * benchtests/hypot-inputs: New file.
1624
1625 2019-07-08 Vincent Chen <vincentc@andestech.com>
1626
1627 * sysdeps/unix/sysv/linux/dl-vdso.h
1628 (VDSO_NAME_LINUX_4, VDSO_HASH_LINUX_4): New defines.
1629
1630 2019-07-04 Andreas Schwab <schwab@suse.de>
1631
1632 [BZ #24484]
1633 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Define.
1634
1635 2019-07-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
1636
1637 * sysdeps/aarch64/Makefile: Install sys/ifunc.h and add tests.
1638 * sysdeps/aarch64/dl-irel.h (elf_ifunc_invoke): Update to new ABI.
1639 * sysdeps/aarch64/sys/ifunc.h: New file.
1640 * sysdeps/aarch64/tst-ifunc-arg-1.c: New file.
1641 * sysdeps/aarch64/tst-ifunc-arg-2.c: New file.
1642
1643 2019-07-01 Florian Weimer <fweimer@redhat.com>
1644
1645 [BZ #20188]
1646 * nptl/Versions (libpthread): Remove __fork from GLIBC_2.0.
1647 Replace __vfork with __libpthread_version_placeholder for
1648 GLIBC_2.1.2.
1649 (libc): Remove __libc_vfork from GLIBC_PRIVATE.
1650 * nptl/Makefile (libpthread-routines): Remove pt-vfork. Add
1651 libpthread-compat.
1652 * nptl/pt-vfork.c: Remove file.
1653 * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: Likewise.
1654 * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: Likewise.
1655 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
1656 * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: Likewise.
1657 * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Likewise.
1658 * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: Likewise.
1659 * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Likewise.
1660 * sysdeps/unix/sysv/linux/mips/pt-vfork.S: Likewise.
1661 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: Likewise.
1662 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
1663 * sysdeps/unix/sysv/linux/s390/pt-vfork.S: Likewise.
1664 * sysdeps/unix/sysv/linux/sh/pt-vfork.S: Likewise.
1665 * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: Likewise.
1666 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1667 Remove vfork, __vfork.
1668 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1669 Remove vfork.
1670 (GLIBC_2.1.2): Replace __vfork with
1671 __libpthread_version_placeholder.
1672 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1673 Remove vfork, __vfork.
1674 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1675 Likewise.
1676 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1677 Remove vfork.
1678 (GLIBC_2.1.2): Replace __vfork with
1679 __libpthread_version_placeholder.
1680 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1681 Remove vfork.
1682 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1683 (GLIBC_2.4): Remove vfork, __vfork.
1684 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1685 (GLIBC_2.0): Remove vfork.
1686 (GLIBC_2.1.2): Replace __vfork with
1687 __libpthread_version_placeholder.
1688 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1689 (GLIBC_2.18): Remove vfork, __vfork.
1690 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1691 (GLIBC_2.0): Remove vfork.
1692 (GLIBC_2.2): Remove __vfork.
1693 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist:
1694 (GLIBC_2.2): Remove vfork, __vfork.
1695 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
1696 (GLIBC_2.0): Remove vfork.
1697 (GLIBC_2.1.2): Replace __vfork with
1698 __libpthread_version_placeholder.
1699 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1700 (GLIBC_2.3): Remove vfork, __vfork.
1701 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1702 (GLIBC_2.17): Likewise.
1703 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1704 (GLIBC_2.0): Remove vfork.
1705 (GLIBC_2.1.2): Replace __vfork with
1706 __libpthread_version_placeholder.
1707 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1708 (GLIBC_2.2): Remove vfork, __vfork.
1709 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1710 Likewise.
1711 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1712 (GLIBC_2.0): Remove vfork.
1713 (GLIBC_2.1.2): Replace __vfork with
1714 __libpthread_version_placeholder.
1715 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1716 (GLIBC_2.2): Remove vfork, __vfork.
1717 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1718 (GLIBC_2.2.5): Likewise.
1719 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1720 (GLIBC_2.16): Likewise.
1721 * sysdeps/unix/sysv/linux/hppa/localplt.data (libpthread.so):
1722 Remove __errno_location.
1723
1724 2019-07-02 Florian Weimer <fweimer@redhat.com>
1725
1726 [BZ #24757]
1727 * malloc/Depend: Add nptl and htl, due to potential indirect
1728 libpthread dependency of memusagestat.
1729
1730 2019-07-02 Stefan Liebler <stli@linux.ibm.com>
1731
1732 * resolv/res_send.c (__res_context_send): Disable maybe-uninitialized
1733 warning.
1734
1735 2019-07-01 Florian Weimer <fweimer@redhat.com>
1736
1737 * scripts/build-many-glibcs.py (Context.add_all_configs): Add v4t
1738 variant for arm-linux-gnueabi.
1739
1740 2019-07-01 H.J. Lu <hongjiu.lu@intel.com>
1741
1742 [BZ #24259]
1743 * elf/dl-open.c (dl_open_worker): Call _dl_open_check after
1744 relocation.
1745 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-5a,
1746 tst-cet-legacy-5b, tst-cet-legacy-6a and tst-cet-legacy-6b.
1747 (modules-names): Add tst-cet-legacy-mod-5a, tst-cet-legacy-mod-5b,
1748 tst-cet-legacy-mod-5c, tst-cet-legacy-mod-6a, tst-cet-legacy-mod-6b
1749 and tst-cet-legacy-mod-6c.
1750 (CFLAGS-tst-cet-legacy-5a.c): New.
1751 (CFLAGS-tst-cet-legacy-5b.c): Likewise.
1752 (CFLAGS-tst-cet-legacy-mod-5a.c): Likewise.
1753 (CFLAGS-tst-cet-legacy-mod-5b.c): Likewise.
1754 (CFLAGS-tst-cet-legacy-mod-5c.c): Likewise.
1755 (CFLAGS-tst-cet-legacy-6a.c): Likewise.
1756 (CFLAGS-tst-cet-legacy-6b.c): Likewise.
1757 (CFLAGS-tst-cet-legacy-mod-6a.c): Likewise.
1758 (CFLAGS-tst-cet-legacy-mod-6b.c): Likewise.
1759 (CFLAGS-tst-cet-legacy-mod-6c.c): Likewise.
1760 ($(objpfx)tst-cet-legacy-5a): Likewise.
1761 ($(objpfx)tst-cet-legacy-5a.out): Likewise.
1762 ($(objpfx)tst-cet-legacy-mod-5a.so): Likewise.
1763 ($(objpfx)tst-cet-legacy-mod-5b.so): Likewise.
1764 ($(objpfx)tst-cet-legacy-5b): Likewise.
1765 ($(objpfx)tst-cet-legacy-5b.out): Likewise.
1766 (tst-cet-legacy-5b-ENV): Likewise.
1767 ($(objpfx)tst-cet-legacy-6a): Likewise.
1768 ($(objpfx)tst-cet-legacy-6a.out): Likewise.
1769 ($(objpfx)tst-cet-legacy-mod-6a.so): Likewise.
1770 ($(objpfx)tst-cet-legacy-mod-6b.so): Likewise.
1771 ($(objpfx)tst-cet-legacy-6b): Likewise.
1772 ($(objpfx)tst-cet-legacy-6b.out): Likewise.
1773 (tst-cet-legacy-6b-ENV): Likewise.
1774 * sysdeps/x86/tst-cet-legacy-5.c: New file.
1775 * sysdeps/x86/tst-cet-legacy-5a.c: Likewise.
1776 * sysdeps/x86/tst-cet-legacy-5b.c: Likewise.
1777 * sysdeps/x86/tst-cet-legacy-6.c: Likewise.
1778 * sysdeps/x86/tst-cet-legacy-6a.c: Likewise.
1779 * sysdeps/x86/tst-cet-legacy-6b.c: Likewise.
1780 * sysdeps/x86/tst-cet-legacy-mod-5.c: Likewise.
1781 * sysdeps/x86/tst-cet-legacy-mod-5a.c: Likewise.
1782 * sysdeps/x86/tst-cet-legacy-mod-5b.c: Likewise.
1783 * sysdeps/x86/tst-cet-legacy-mod-5c.c: Likewise.
1784 * sysdeps/x86/tst-cet-legacy-mod-6.c: Likewise.
1785 * sysdeps/x86/tst-cet-legacy-mod-6a.c: Likewise.
1786 * sysdeps/x86/tst-cet-legacy-mod-6b.c: Likewise.
1787 * sysdeps/x86/tst-cet-legacy-mod-6c.c: Likewise.
1788
1789 2019-06-30 Paul A. Clarke <pc@us.ibm.com>
1790
1791 * sysdeps/powerpc/bits/fenvinline.h (__fegetround): Use
1792 __fegetround_ISA300() or __fegetround_ISA2() as appropriate.
1793 (__fegetround_ISA300) New.
1794 (__fegetround_ISA2) New.
1795 * sysdeps/powerpc/fpu_control.h (IS_ISA300): New.
1796 (_FPU_MFFS): Move implementation...
1797 (_FPU_GETCW): Here.
1798 (_FPU_MFFSL): Move implementation....
1799 (_FPU_GET_RC_ISA300): Here. New.
1800 (_FPU_GET_RC): Use _FPU_GET_RC_ISA300() or _FPU_GETCW() as appropriate.
1801 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_status_ISA300): New.
1802 (fegetenv_status): New.
1803 * sysdeps/powerpc/fpu/fegetmode.c (fegetmode): Use fegetenv_status()
1804 instead of fegetenv_register().
1805 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Likewise.
1806
1807 2019-06-28 Wilco Dijkstra <wdijkstr@arm.com>
1808
1809 * benchtests/bench-math-inlines.c: Increase iterations.
1810 * benchtests/bench-memcmp.c: Likewise.
1811 * benchtests/bench-rawmemchr.c: Likewise.
1812 * benchtests/bench-strcmp.c: Likewise.
1813 * benchtests/bench-strcpy_chk.c: Likewise.
1814 * benchtests/bench-string.h (INNER_LOOP_ITERS8): Add define.
1815 (INNER_LOOP_ITERS_MEDIUM): Increase iterations.
1816 (INNER_LOOP_ITERS_SMALL): Likewise.
1817 * benchtests/bench-strncat.c: Increase iterations.
1818 * benchtests/bench-strncmp.c: Increase iterations.
1819 * benchtests/bench-strncpy.c: Reduce iterations for wide strings.
1820 * benchtests/bench-strrchr.c: Increase iterations.
1821 * benchtests/bench-strstr.c: Keep iterations unchanged.
1822 * benchtests/bench-strtod.c: Increase iterations.
1823
1824 2019-06-28 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
1825
1826 * benchtests/bench-memccpy.c: Replace INNER_LOOP_ITERS
1827 with INNER_LOOP_ITERS_LARGE.
1828 * benchtests/bench-memchr.c: Likewise.
1829 * benchtests/bench-rawmemchr.c: Likewise.
1830 * benchtests/bench-strcat.c: Likewise.
1831 * benchtests/bench-strchr.c: Likewise.
1832 * benchtests/bench-string.h: Likewise.
1833 * benchtests/bench-strlen.c: Likewise.
1834 * benchtests/bench-strncpy.c: Likewise.
1835 * benchtests/bench-strnlen.c: Likewise.
1836
1837 2019-06-28 Florian Weimer <fweimer@redhat.com>
1838
1839 * sysdeps/unix/sysv/linux/tst-getdents64.c (large_buffer_checks):
1840 Use mmap instead of malloc. malloc with M_PERTURB writes to the
1841 entire allocated memory range.
1842
1843 2019-06-28 Tobias Klauser <tklauser@distanz.ch>
1844
1845 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Remove macro.
1846 (prepare_version_base): New helper inline function.
1847 (prepare_version): New macro replacing PREPARE_VERSION.
1848 (PREPARE_VERSION_KNOWN): Use prepare_version instead of PREPARE_VERSION.
1849
1850 2019-06-28 Florian Weimer <fweimer@redhat.com>
1851
1852 [BZ #24741]
1853 * elf/dl-lookup.c (do_lookup_x): Do not fail if there is a soname
1854 mismatch in a versioned symbol reference.
1855 (_dl_lookup_symbol_x): Do not report soname mismatch failures.
1856 * elf/Makefile [$(build-shared)] (tests): Add tst-sonamemove-link,
1857 tst-sonamemove-dlopen.
1858 (module-names): Add tst-sonamemove-linkmod1,
1859 tst-sonamemove-runmod1, tst-sonamemove-runmod2.
1860 (LDFLAGS-tst-sonamemove-linkmod1.so): Set.
1861 (LDFLAGS-tst-sonamemove-runmod1.so): Likewise.
1862 (LDFLAGS-tst-sonamemove-runmod2.so): Likewise.
1863 (tst-sonamemove-runmod1.so): Link against
1864 tst-sonamemove-runmod2.so.
1865 (tst-sonamemove-link): Link against tst-sonamemove-linkmod1.so.
1866 (tst-sonamemove-link.out): Depend on tst-sonamemove-runmod1.so,
1867 tst-sonamemove-runmod2.so.
1868 (tst-sonamemove-dlopen): Link with -ldl.
1869 (tst-sonamemove-dlopen.out): Likewise.
1870 * elf/tst-sonamemove-link.c: New file.
1871 * elf/tst-sonamemove-dlopen.c: Likewise.
1872 * elf/tst-sonamemove-linkmod1.c: Likewise.
1873 * elf/tst-sonamemove-linkmod1.map: Likewise.
1874 * elf/tst-sonamemove-runmod1.c: Likewise.
1875 * elf/tst-sonamemove-runmod1.map: Likewise.
1876 * elf/tst-sonamemove-runmod2.c: Likewise.
1877 * elf/tst-sonamemove-runmod2.map: Likewise.
1878
1879 2019-06-28 Florian Weimer <fweimer@redhat.com>
1880
1881 * support/xdlfcn.h (xdlvsym): Declare function.
1882 * support/xdlfcn.c (xdlvsym): Define funciton.
1883
1884 2019-06-28 Florian Weimer <fweimer@redhat.com>
1885
1886 [BZ #24744]
1887 io: Remove the copy_file_range emulation.
1888 * sysdeps/unix/sysv/linux/copy_file_range.c (copy_file_range): Do
1889 not define and call copy_file_range_compat.
1890 * io/Makefile (tests-static, tests-internal): Do not add
1891 tst-copy_file_range-compat.
1892 * io/copy_file_range-compat.c: Remove file.
1893 * io/copy_file_range.c (copy_file_range): Define as stub.
1894 * io/tst-copy_file_range-compat.c: Remove file.
1895 * io/tst-copy_file_range.c (xdevfile): Remove variable.
1896 (typical_sizes): Update comment. Remove 16K sizes.
1897 (maximum_offset, maximum_offset_errno, maximum_offset_hard_limit):
1898 Remove variables.
1899 (find_maximum_offset, pipe_as_source, pipe_as_destination)
1900 (delayed_write_failure_beginning, delayed_write_failure_end)
1901 (cross_device_failure, enospc_failure_1, enospc_failure)
1902 (oappend_failure): Remove functions.
1903 (tests): Adjust test case list.
1904 (do_test): Remove file system search code. Check for ENOSYS from
1905 copy_file_range. Do not free xdevfile.
1906 * manual/llio.texi (Copying File Data): Document ENOSYS error from
1907 copy_file_range. Do not document the EXDEV error, which future
1908 kernels may not report. Update the wording to reflect that
1909 further errors are possible.
1910 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
1911 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_COPY_FILE_RANGE): Do
1912 not undefine.
1913 * sysdeps/unix/sysv/linux/arm/kernel-features.h
1914 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
1915 Likewise.
1916 * sysdeps/unix/sysv/linux/kernel-features.h
1917 [__LINUX_KERNEL_VERSION >= 0x040500] (__ASSUME_COPY_FILE_RANGE):
1918 Remove definition.
1919 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
1920 [__LINUX_KERNEL_VERSION < 0x040A00] (__ASSUME_COPY_FILE_RANGE): Do
1921 not undefine.
1922 * sysdeps/unix/sysv/linux/sh/kernel-features.h
1923 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
1924 Likewise.
1925
1926 2019-06-27 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
1927
1928 * libio/libioP.h (PRINTF_LDBL_USES_FLOAT128): New macro to be
1929 used as a mask for the mode argument of __vfprintf_internal.
1930 * stdio-common/printf-parse.h (printf_arg): New union member:
1931 pa_float128.
1932 * stdio-common/vfprintf-internal.c
1933 (PARSE_FLOAT_VA_ARG_EXTENDED): New macro.
1934 (PARSE_FLOAT_VA_ARG): Likewise.
1935 (SETUP_FLOAT128_INFO): Likewise.
1936 (process_arg): Use PARSE_FLOAT_VA_ARG_EXTENDED and
1937 SETUP_FLOAT128_INFO.
1938 [__HAVE_FLOAT128_UNLIKE_LDBL] (printf_positional): Write
1939 floating-point value to the new union member, pa_float128.
1940 (printf_positional): Zero-initialize args_value[cnt] with memset.
1941
1942 2019-06-27 Florian Weimer <fweimer@redhat.com>
1943
1944 [BZ #24740]
1945 * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Adjust
1946 buffer size if necessary.
1947 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
1948 Likewise.
1949 * sysdeps/unix/sysv/linux/tst-getdents64.c (large_buffer_check):
1950 New function.
1951 (large_buffer_checks): Likewise.
1952 (do_test): Call large_buffer_checks.
1953
1954 2019-06-26 H.J. Lu <hongjiu.lu@intel.com>
1955
1956 * sysdeps/i386/dl-lookupcfg.h: Moved to ...
1957 * sysdeps/x86/dl-lookupcfg.h: Here.
1958 * sysdeps/x86_64/dl-lookupcfg.h: Removed.
1959
1960 2019-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1961
1962 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1963 (libm-sysdep_routines): Remove e_expf-power8 and expf-ppc64.
1964 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Remove
1965 file.
1966 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
1967 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
1968 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: Likewise.
1969 * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
1970 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: Likewise.
1971
1972 * sysdeps/powerpc/powerpc32/fpu/Makefile
1973 [$(subdir) == math] (CFLAGS-s_lround.c): New rule.
1974 * sysdeps/powerpc/powerpc32/fpu/s_llround.c (__llround): Add power5+
1975 and fctidz optimization.
1976 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Remove file.
1977 * sysdeps/powerpc/powerpc32/fpu/s_lround.c: New file.
1978 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
1979 (CFLAGS-s_llround-power6.c, CFLAGS-s_llround-power5+.c,
1980 CFLAGS-s_llround-ppc32.c, CFLAGS-s_lround-ppc32.c,
1981 CFLAGS-s_lround-power5+.c): New rule.
1982 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.c:
1983 New file.
1984 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.c:
1985 Likewise.
1986 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.c:
1987 Likewise.
1988 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.c:
1989 Likewise.
1990 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.c:
1991 Likewise.
1992 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
1993 Remove file.
1994 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
1995 Likewise.
1996 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
1997 Likewise.
1998 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
1999 Likewise.
2000 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
2001 Likewise.
2002 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
2003 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: Likewise.
2004 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
2005 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
2006 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
2007 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
2008 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
2009
2010 2019-06-26 Vincent Chen <vincentc@andestech.com>
2011
2012 * sysdeps/unix/sysv/linux/syscall-names.list: Add nds32
2013 specific system calls, fp_udfiex_crtl and udftrap.
2014
2015 2019-06-26 Stefan Liebler <stli@linux.ibm.com>
2016
2017 * nptl/tst-eintr1.c (tf1): Add return statement.
2018 (do_test): Remove unused th variable.
2019
2020 2019-06-26 Stefan Liebler <stli@linux.ibm.com>
2021
2022 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis):
2023 Return error if get_character fails.
2024
2025 2019-06-25 Stefan Liebler <stli@linux.ibm.com>
2026
2027 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
2028
2029 2019-06-24 Rafal Luzynski <digitalfreak@lingonborough.com>
2030
2031 [BZ #24652]
2032 * localedata/locales/szl_PL (day): Use the correct Unicode
2033 sequences instead of non-ASCII characters.
2034
2035 2019-06-24 Grzegorz Kulik <gregorykkulik@gmail.com>
2036
2037 [BZ #24652]
2038 * localedata/locales/szl_PL (abday): Spelling corrections.
2039 (day): Likewise.
2040 (abmon): Likewise.
2041 (mon): Rename to...
2042 (alt_mon): This, then apply spelling corrections.
2043 (mon): New entry, month names in the genitive case.
2044
2045 2019-06-21 Rafal Luzynski <digitalfreak@lingonborough.com>
2046
2047 [BZ #23831]
2048 * localedata/locales/nl_AW (mon_thousands_sep): Set to ".".
2049 * localedata/locales/nl_NL (mon_thousands_sep): Likewise.
2050 (thousands_sep): Likewise.
2051 (grouping): Set to 3;3.
2052
2053 2019-06-21 Tobias Klauser <tklauser@distanz.ch>
2054
2055 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (INIT_ARCH): Use
2056 PREPARE_VERSION_KNOWN.
2057 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
2058 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_2_6_39): New
2059 define.
2060 (VDSO_HASH_LINUX_2_6_39): Likewise.
2061 (VDSO_NAME_LINUX_4_9): Likewise.
2062 (VDSO_HASH_LINUX_4_9): Likewise.
2063 * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (INIT_ARCH): Likewise.
2064 * sysdeps/unix/sysv/linux/powerpc/init-first.c
2065 (_libc_vdso_platform_setup): Likewise.
2066 * sysdeps/unix/sysv/linux/powerpc/time.c (INIT_ARCH): Likewise.
2067 * sysdeps/unix/sysv/linux/s390/init-first.c (_libc_vdso_platform_setup):
2068 Likewise.
2069 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_platform_setup):
2070 Likewise.
2071
2072 2019-06-20 Mike Crowe <mac@mcrowe.com>
2073
2074 * nptl/eintr.c: Use libsupport.
2075 * nptl/tst-eintr1.c: Likewise.
2076 * nptl/tst-eintr2.c: Likewise.
2077 * nptl/tst-eintr3.c: Likewise.
2078 * nptl/tst-eintr4.c: Likewise.
2079 * nptl/tst-eintr5.c: Likewise.
2080 * nptl/tst-mutex-errorcheck.c: Likewise.
2081 * nptl/tst-mutex5.c: Likewise.
2082
2083 * support/test-driver.h: Add verbose_printf macro.
2084
2085 * support/xtime.h: Add xclock_now() helper function.
2086
2087 2019-06-20 Dmitry V. Levin <ldv@altlinux.org>
2088 Florian Weimer <fweimer@redhat.com>
2089
2090 [BZ #24228]
2091 * libio/genops.c (_IO_unbuffer_all)
2092 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Do not attempt to free wide
2093 buffers and access _IO_FILE_complete members of legacy libio streams.
2094 * libio/tst-bz24228.c: New file.
2095 * libio/tst-bz24228.map: Likewise.
2096 * libio/Makefile [build-shared] (tests): Add tst-bz24228.
2097 [build-shared] (generated): Add tst-bz24228.mtrace and
2098 tst-bz24228.check.
2099 [run-built-tests && build-shared] (tests-special): Add
2100 $(objpfx)tst-bz24228-mem.out.
2101 (LDFLAGS-tst-bz24228, tst-bz24228-ENV): New variables.
2102 ($(objpfx)tst-bz24228-mem.out): New rule.
2103
2104 2019-06-19 Paul A. Clarke <pc@us.ibm.com>
2105
2106 * sysdeps/powerpc/fpu/fenv_libc.h (relax_fenv_state): Add 'volatile'.
2107 * sysdeps/powerpc/fpu/fpu_control.h (__FPU_MFFS): Likewise.
2108 (__FPU_MFFSL): Likewise.
2109 (_FPU_SETCW): Likewise.
2110
2111 2019-06-19 Stan Shebs <stanshebs@google.com>
2112 Raoni Fassina Firmino <raoni@linux.ibm.com>
2113
2114 [BZ #24640]
2115 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c
2116 [!SHARED] (__get_timebase_freq): Fix sense of a test in the
2117 static-linking version.
2118 * sysdeps/unix/sysv/linux/powerpc/Makefile
2119 (tests-static): Add test-gettimebasefreq-static.
2120 (tests): Likewise.
2121 * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq-static.c:
2122 New file.
2123
2124 2019-06-19 Rafal Luzynski <digitalfreak@lingonborough.com>
2125
2126 [BZ #24614]
2127 * localedata/locales/nl_AW (n_sep_by_space): Set to 2 (a space
2128 between the currency symbol and the minus sign).
2129 (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
2130
2131 2019-06-19 Stefan Liebler <stli@linux.ibm.com>
2132
2133 [BZ #24556]
2134 * string/test-strcasestr.c (check_result): Add NULL check.
2135 * nss/tst-field.c (check_rewrite): Likewise.
2136 * benchtests/bench-strstr.c (do_one_test): Likewise.
2137 * string/test-strstr.c (check_result): Likewise.
2138 * argp/argp-test.c (popt): Increase size of buf to 12.
2139 * benchtests/bench-malloc-simple.c (bench):
2140 Do not initialize tests array out of bounds.
2141
2142 2019-06-19 Florian Weimer <fweimer@redhat.com>
2143
2144 [BZ #24166]
2145 * dlfcn/dlfcn.h (Dl_serinfo): Do not use array of length 1 for
2146 dls_serpath field.
2147
2148 2019-06-18 Florian Weimer <fweimer@redhat.com>
2149
2150 [BZ #24323]
2151 * include/elf.h (DT_1_SUPPORTED_MASK): Include DF_1_PIE.
2152 * elf/dl-load.c (_dl_map_object_from_fd): Check for DF_1_PIE and
2153 fail when called from dlopen.
2154 * elf/Makefile [have-fpie && build-shared] (tests): Add
2155 tst-dlopen-pie.
2156 (tst-dlopen-pie): Link with -ldl.
2157 (tst-dlopen-pie.out): Add run-time dependency on tst-pie1.
2158 * elf/tst-dlopen-pie.c (do_test): New file.
2159
2160 2019-06-17 Rafal Luzynski <digitalfreak@lingonborough.com>
2161
2162 [BZ #24614]
2163 * localedata/Makefile (LOCALES): Add nl_NL.UTF-8.
2164 * localedata/locales/nl_NL (n_sep_by_space): Set to 2 (a space
2165 between the currency symbol and the minus sign).
2166 (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
2167 * localedata/tst-strfmon1.c (tests): Add test data for nl_NL.UTF-8.
2168
2169 2019-06-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2170
2171 * sysdeps/unix/sysv/linux/m68k/Makefile (sysdep_routines,
2172 sysdep-rtld-routines): Remove rules.
2173 * sysdeps/unix/sysv/linux/m68k/Versions (libc) [GLIBC_PRIVATE]:
2174 Remove __vdso_atomic_cmpxchg_32 and __vdso_atomic_barrier.
2175 (ld) [GLIBC_PRIVATE]: __rtld___vdso_read_tp,
2176 __rtld___vdso_atomic_cmpxchg_32, and __rtld___vdso_atomic_barrier.
2177 * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h
2178 (atomic_compare_and_exchange_val_acq, atomic_full_barrier): Remove
2179 vDSO path for SHARED.
2180 * sysdeps/unix/sysv/linux/m68k/init-first.c: Remove file.
2181 * sysdeps/unix/sysv/linux/m68k/libc-m68k-vdso.c: Likewise.
2182 * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
2183 * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
2184 * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: Likewise.
2185 * sysdeps/unix/sysv/linux/m68k/m68k-helpers.c: New file.
2186
2187 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
2188 (libm-sysdep_routines): Add s_llround-power8, s_llround-power6x,
2189 s_llround-power5+, s_llround-ppc64, and s_llroundf-ppc64.
2190 (CFLAGS-s_llround-power8.c, CFLAGS-s_llround-power6x.c,
2191 CFLAGS-s_llround-power5+.c): New rule.
2192 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power5+.c:
2193 New file.
2194 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power6x.c:
2195 Likewise.
2196 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power8.c:
2197 Likewise.
2198 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-ppc64.c:
2199 Likewise.
2200 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf-ppc64.c:
2201 Likewise.
2202 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Move to ...
2203 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround.c: ... here.
2204 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Move to ...
2205 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf.c: ... here.
2206 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: Move to ...
2207 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lround.c: ... here.
2208 * sysdeps/powerpc/powerpc64/fpu/Makefile
2209 [$(subdir) == math] (CFLAGS-s_llround.c): New rule.
2210 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
2211 (libm-sysdep_routines): Remove s_llround-* objects.
2212 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Remove
2213 file.
2214 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S:
2215 Likewise.
2216 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S:
2217 Likewise.
2218 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S:
2219 Likewise.
2220 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S:
2221 Likewise.
2222 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
2223 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
2224 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
2225 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
2226 * sysdeps/powerpc/powerpc64/fpu/s_llround.c: New file.
2227 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.c: Likewise.
2228 * sysdeps/powerpc/powerpc64/fpu/s_lround.c: Likewise.
2229 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.c: Likewise.
2230 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
2231 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llroundf.S: Likewise.
2232 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
2233 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llroundf.S: Likewise.
2234 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
2235 * sysdeps/powerpc/powerpc64/power8/fpu/s_llroundf.S: Likewise.
2236
2237 * sysdeps/powerpc/fpu/s_lrintf.S: Remove file.
2238 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Move to ...
2239 * sysdeps/powerpc/fpu/s_lrintf.c: ... here.
2240 * sysdeps/powerpc/powerpc32/fpu/Makefile
2241 [$(subdir) == math] (CFLAGS-s_lrint.c): New rule.
2242 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Add power4
2243 optimization.
2244 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
2245 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Remove file.
2246 * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: New file.
2247 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
2248 (CFLAGS-s_llrintf-power6.c, CFLAGS-s_llrintf-ppc32.c,
2249 CFLAGS-s_llrint-power6.c, CFLAGS-s_llrint-ppc32.c,
2250 CFLAGS-s_lrint-ppc32.c): New rule.
2251 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
2252 Remove file.
2253 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
2254 Likewise.
2255 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
2256 Likewise.
2257 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
2258 Likewise.
2259 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
2260 Likewise.
2261 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
2262 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
2263 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
2264 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
2265 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.c:
2266 New file.
2267 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.c:
2268 Likewise.
2269 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.c:
2270 Likewise.
2271 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.c:
2272 Likewise.
2273 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.c:
2274 Likewise.
2275
2276 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
2277 (libm-sysdep_routines): Add s_llrint-power8, s_llrint-power6x, and
2278 s_llrint-ppc64.
2279 (CFLAGS-s_llrint-power8.c, CFLAGS-s_llrint-power6x.c): New rule.
2280 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power6x.c: New
2281 file.
2282 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power8.c:
2283 Likewise.
2284 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-ppc64.c:
2285 Likewise.
2286 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: Move to ...
2287 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: ... here.
2288 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Move to ...
2289 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint.c: ... here.
2290 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Move to ...
2291 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrintf.c: ... here.
2292 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: New file.
2293 * sysdeps/powerpc/powerpc64/fpu/Makefile: Likewise.
2294 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
2295 (libm-sysdep_routines): Remove s_llrint-* objects.
2296 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Remove
2297 file.
2298 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S:
2299 Likewise.
2300 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
2301 * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: New file.
2302 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: Likewise.
2303 * sysdeps/powerpc/powerpc64/fpu/s_lrint.c: Likewise.
2304 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Likewise.
2305 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Remove file.
2306 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
2307 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
2308 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
2309 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Likewise.
2310
2311 2019-06-14 Florian Weimer <fweimer@redhat.com>
2312
2313 * sysdeps/unix/sysv/linux/bits/statx.h: Use string literal in
2314 argument to __glibc_has_include to inhibit macro expansion.
2315
2316 2019-06-14 Florian Weimer <fweimer@redhat.com>
2317
2318 * misc/sys/cdefs.h (__glibc_has_include): Do not use a
2319 function-like macro, so that __has_include can inhibit expansion
2320 of its argument.
2321
2322 2019-06-13 Joseph Myers <joseph@codesourcery.com>
2323
2324 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_ROUTER_ALERT_ISOLATE):
2325 New macro.
2326
2327 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
2328 Allow memset in libc.so.
2329
2330 2019-06-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
2331
2332 * sysdeps/aarch64/dl-dtprocnum.h: New file.
2333 * sysdeps/aarch64/dl-machine.h (DT_AARCH64): Define.
2334 (elf_machine_runtime_setup): Handle DT_AARCH64_VARIANT_PCS.
2335 (elf_machine_lazy_rel): Check STO_AARCH64_VARIANT_PCS and bind such
2336 symbols at load time.
2337 * sysdeps/aarch64/linkmap.h (struct link_map_machine): Add variant_pcs.
2338
2339 2019-06-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
2340
2341 * elf/elf.h (STO_AARCH64_VARIANT_PCS): Define.
2342 (DT_AARCH64_VARIANT_PCS): Define.
2343
2344 2019-06-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2345
2346 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
2347 (sysdeps_routines, libm-sysdep_routines): Remove s_finite*
2348 objects.
2349 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
2350 Remove file.
2351 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c:
2352 Likewise.
2353 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: Likewise.
2354 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
2355 Likewise.
2356 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: Likewise.
2357 * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
2358 * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: Likewise.
2359 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
2360 Remove s_finite* objects.
2361 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Remove file.
2362 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
2363 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.c: Likewise.
2364 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
2365 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: Likewise.
2366 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: Likewise.
2367 * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
2368 * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: Likewise.
2369 * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
2370 * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: Likewise.
2371
2372 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Move to ...
2373 * sysdeps/ieee754/dbl-64/s_finite.c: ... here and format code.
2374
2375 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
2376 (sysdeps_routines, libm-sysdep_routines): Remove s_isinf* and s_isinf*
2377 objects.
2378 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S:
2379 Remove file.
2380 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c:
2381 Likewise.
2382 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: Likewise.
2383 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
2384 Likewise.
2385 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: Likewise.
2386 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
2387 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: Likewise.
2388 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
2389 Remove s_isinf* and s_isinf* objects.
2390 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
2391 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
2392 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.c: Likewise.
2393 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
2394 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: Likewise.
2395 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: Likewise.
2396 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
2397 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: Likewise.
2398 * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
2399 * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: Likewise.
2400
2401 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Move to ...
2402 * sysdeps/ieee754/dbl-64/s_isinf.c: ... here and format code.
2403
2404 * sysdeps/powerpc/fpu/s_isnan.c: Remove file.
2405 * sysdeps/powerpc/fpu/s_isnanf.S: Likewise.
2406 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
2407 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
2408 (sysdeps_routines, libm-sysdep_routines): Remove s_isnan-* and
2409 s_isnanf-* objects.
2410 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S:
2411 Remove file
2412 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S:
2413 Likewise.
2414 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S:
2415 Likewise.
2416 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S:
2417 Likewise.
2418 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: Likewise.
2419 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power5.S:
2420 Likewise.
2421 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
2422 Likewise.
2423 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: Likewise.
2424 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
2425 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: Likewise.
2426 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
2427 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: Likewise.
2428 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
2429 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: Likewise.
2430 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_calls):
2431 Remove s_isnan-* and s_isnanf-* objects.
2432 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
2433 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
2434 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S:
2435 Likewise.
2436 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
2437 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
2438 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
2439 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
2440 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: Likewise.
2441 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
2442 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
2443 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
2444 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
2445 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
2446 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: Likewise.
2447 * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
2448 * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: Likewise.
2449
2450 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Move to ...
2451 * sysdeps/ieee754/dbl-64/s_isnan.c: ... here and format code.
2452
2453 * benchtests/Makefile (bench-math): Add isnan, isinf, and isfinite.
2454 (CFLAGS-bench-isnan.c, CFLAGS-bench-isinf.c,
2455 CFLAGS-bench-isfinite.c): New rule.
2456 * benchtests/isnan-input: New file.
2457 * benchtests/isinf-input: New file.
2458 * benchtests/isfinite-input: New file.
2459
2460 * sysdeps/powerpc/fpu/s_copysign.c: New file.
2461 * sysdeps/powerpc/fpu/s_copysignf.c: Likewise.
2462 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Remove file.
2463 * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: Likewise.
2464 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
2465 (sysdep_routines, libm-sysdep_routines): Remove s_copysign-power6 and
2466 s_copysign-ppc32.
2467 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
2468 Remove file.
2469 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
2470 Likewise.
2471 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
2472 Likewise.
2473 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
2474 Likewise.
2475 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
2476 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: Likewise.
2477 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdeps_calls):
2478 Remove s_copysign-power6 s_copysign-ppc64.
2479 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S:
2480 Remove file.
2481 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S:
2482 Likewise.
2483 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
2484 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
2485 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
2486 * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: Likewise.
2487 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
2488 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: Likewise.
2489
2490 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode,
2491 round_to_integer_float, round_mode): Add RINT handling.
2492 (reset_fenv_mode): New symbol.
2493 * sysdeps/powerpc/fpu/s_rint.c (__rint): Use generic implementation.
2494 * sysdeps/powerpc/fpu/s_rintf.c (__rintf): Likewise.
2495 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove file.
2496 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
2497 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
2498 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
2499
2500 2019-06-12 Florian Weimer <fweimer@redhat.com>
2501
2502 [BZ #24632]
2503 * libio/libioP.h (_IO_JUMPS_FUNC_UPDATE): New macro.
2504 * libio/freopen.c (freopen): Use it.
2505
2506 2019-06-12 Florian Weimer <fweimer@redhat.com>
2507
2508 Linux: Deprecate sysctl.
2509 * include/sysctl.h (__sysctl): Remove declaration.
2510 * scripts/check-installed-headers.sh (sys/sysctl.h): Disable
2511 check.
2512 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add deprecation warning.
2513 (sysctl): Add deprecation attribute.
2514 * sysdeps/unix/sysv/linux/sysctl.c: Include <linux/sysctl.h>
2515 directly, to avoid the deprecation warning. Do not include
2516 <string.h>.
2517 (__sysctl): Remove hidden alias.
2518
2519 2019-06-12 Florian Weimer <fweimer@redhat.com>
2520
2521 Linux: Use kernel headers for statx definitions if available.
2522 * include/bits/statx-generic.h: New file.
2523 * include/bits/types/struct_statx.h: Likewise.
2524 * include/bits/types/struct_statx_timestamp.h: Likewise.
2525 * io/Makefile (headers): Add bits/statx-generic.h.
2526 * io/bits/statx-generic.h: New file. Partly copied from
2527 io/bits/statx.h.
2528 * io/statx_generic.c: Include <bits/types/struct_statx.h> to
2529 define original_statx.
2530 * io/bits/types/struct_statx.h: Likewise.
2531 * io/bits/types/struct_statx_timestamp.h: Likewise.
2532 (statx_generic): Use original_statx.
2533 * io/bits/statx.h: Rewrite to include <bits/statx-generic.h>.
2534 * sysdeps/unix/sysv/linux/bits/statx.h: New file.
2535
2536 2019-06-12 Florian Weimer <fweimer@redhat.com>
2537
2538 * misc/sys/cdefs.h (__glibc_has_include): Define.
2539
2540 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
2541
2542 * string/memmem.c (__memmem): Rewrite to improve performance.
2543
2544 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
2545
2546 * string/str-two-way.h (two_way_short_needle): Add inline to avoid
2547 warning.
2548 (two_way_long_needle): Block inlining.
2549 * string/strstr.c (strstr2): Add new function.
2550 (strstr3): Likewise.
2551 (STRSTR): Completely rewrite strstr to improve performance.
2552
2553 2019-06-11 Wilco Dijkstra <wdijkstr@arm.com>
2554
2555 * benchtests/bench-strstr.c (test_hard_needle): New function.
2556
2557 2019-06-10 Joseph Myers <joseph@codesourcery.com>
2558
2559 * malloc/tst-calloc.c: Include <libc-diag.h>.
2560 (null_test): Ignore -Wunused-result around calls to calloc.
2561 * malloc/tst-mallocfork.c: Include <libc-diag.h>.
2562 (do_test): Ignore -Wunused-result around call to malloc.
2563
2564 2019-06-07 Florian Weimer <fweimer@redhat.com>
2565
2566 Linux: Add getdents64 system call.
2567 * include/dirnent.h (getdents): Add comment and change buffer
2568 argument type to void *.
2569 (getdents64): Likewise. Add hidden prototype.
2570 * sysdeps/unix/sysv/linux/bits/Versions (GLIBC_2.30): Export
2571 getdents64.
2572 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == dirent] (tests):
2573 Add tst-getdents64.
2574 * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Declare.
2575 * sysdeps/unix/sysv/linux/getdents.c (__getdents): Change buffer
2576 argument type to void *.
2577 * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Likewise.
2578 Add hidden definition and getdents64 alias.
2579 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
2580 Likewise.
2581 * sysdeps/unix/sysv/linux/tst-getdents64.c: New file.
2582 * manual/filesys.texi (Accessing Directories): Add Low-level
2583 Directory Access node reference.
2584 (Opening a Directory): Cross-reference it.
2585 (Low-level Directory Access): New node.
2586 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
2587 getdents64.
2588 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
2589 Likewise.
2590 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
2591 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
2592 Likewise.
2593 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
2594 Likewise.
2595 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
2596 Likewise.
2597 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
2598 Likewise.
2599 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
2600 Likewise.
2601 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
2602 Likewise.
2603 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
2604 Likewise.
2605 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
2606 (GLIBC_2.30): Likewise.
2607 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
2608 (GLIBC_2.30): Likewise.
2609 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
2610 (GLIBC_2.30): Likewise.
2611 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
2612 (GLIBC_2.30): Likewise.
2613 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
2614 Likewise.
2615 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
2616 (GLIBC_2.30): Likewise.
2617 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
2618 (GLIBC_2.30): Likewise.
2619 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
2620 (GLIBC_2.30): Likewise.
2621 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
2622 (GLIBC_2.30): Likewise.
2623 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
2624 Likewise.
2625 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
2626 Likewise.
2627 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
2628 Likewise.
2629 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
2630 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
2631 Likewise.
2632 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
2633 Likewise.
2634 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
2635 Likewise.
2636 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
2637 Likewise.
2638
2639 2019-06-06 Paul A. Clarke <pc@us.ibm.com>
2640
2641 * sysdeps/powerpc/fpu_control.h (_FPU_MASK_RC): New.
2642 (__FPU_MFFS): New.
2643 (__FPU_MFFSL): New.
2644 (_FPU_GET_RC): New.
2645 (_FPU_GETCW): Use __FPU_MFFS().
2646 * sysdeps/powerpc/fpu/get-rounding-mode.h: New file.
2647
2648 2019-06-06 Florian Weimer <fweimer@redhat.com>
2649
2650 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Do not use
2651 internal GCC preprocessor identifier __has_include__.
2652
2653 2019-06-05 Paul A. Clarke <pc@us.ibm.com>
2654
2655 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Replace code
2656 with call to equivalent function.
2657
2658 2019-06-04 Florian Weimer <fweimer@redhat.com>
2659
2660 * iconv/gconv_dl.c (release_handle): Remove file-level definition.
2661 (do_release_shlib): Adjust for __twalk_r.
2662 (__gconv_release_shlib): Call __twalk_r.
2663
2664 2019-06-04 Andreas Schwab <schwab@suse.de>
2665
2666 [BZ #18830]
2667 * iconv/skeleton.c (FUNCTION_NAME): Use RESET_INPUT_BUFFER only if
2668 no irreversible characters occurred.
2669 * iconv/gconv_simple.c (internal_ucs4_loop)
2670 (internal_ucs4_loop_unaligned, internal_ucs4_loop_single)
2671 (ucs4_internal_loop, ucs4_internal_loop_unaligned)
2672 (ucs4_internal_loop_single, internal_ucs4le_loop)
2673 (internal_ucs4le_loop_unaligned, internal_ucs4le_loop_single)
2674 (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
2675 (ucs4le_internal_loop_single): Add const to outend.
2676 * sysdeps/s390/multiarch/gconv_simple.c (internal_ucs4le_loop)
2677 (ucs4_internal_loop, ucs4le_internal_loop): Likewise.
2678 * iconv/Makefile (tests): Add tst-iconv7.
2679 * iconv/tst-iconv7.c: New file.
2680
2681 2019-06-03 Joseph Myers <joseph@codesourcery.com>
2682
2683 * inet/netinet/in.h (INADDR_ALLSNOOPERS_GROUP): New macro.
2684
2685 2019-06-01 Florian Weimer <fweimer@redhat.com>
2686
2687 arm: Remove ioperm/iopl/inb/inw/inl/outb/outw/outl support.
2688 * sysdeps/unix/sysv/linux/arm/Makefile
2689 [$(subdir) == misc] (sysdep_headers): Remove sys/io.h.
2690 * sysdeps/unix/sysv/linux/arm/sys/io.h: Remove file.
2691 * sysdeps/unix/sysv/linux/arm/ioperm.c: Rewrite file.
2692 (ioperm, iopl, inb, inw, inl, outb, outw, outl): Turn into
2693 compatibility symbols.
2694
2695 2019-05-31 Florian Weimer <fweimer@redhat.com>
2696
2697 * sysdeps/unix/sysv/linux/syscall-names.list: Add oddly named
2698 system calls for the arm architecture: breakpoint, get_tls,
2699 set_tls, usr26, usr32.
2700
2701 2019-05-30 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
2702
2703 * sysdeps/powerpc/Makefile
2704 [$(subdir) == misc] (CFLAGS-tst-set_ppr.c): New variable.
2705 * sysdeps/powerpc/powerpc64/power4/memcmp.S [__LITTLE_ENDIAN__]:
2706 Declare '.machine power7' to get support for ldbrx.
2707 * sysdeps/powerpc/powerpc64/power7/strncmp.S: Declare '.machine'
2708 directive based on the directory of the file.
2709 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
2710 * sysdeps/powerpc/powerpc64/power8/strcmp.S: Likewise.
2711 * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Update
2712 '.machine' directive.
2713 (VCLZD_V8_v7, MFVRD_R3_V1, VSUBUDM_V9_V8, VPOPCNTD_V8_V8)
2714 (VADDUQM_V7_V8): Remove.
2715 (__STRCASECMP): Replace macros with actual instructions.
2716 * sysdeps/powerpc/powerpc64/power8/strcasestr.S: Update
2717 '.machine' directive.
2718 (VCLZD_V8_v7): Remove.
2719 (STRCASESTR): Replace VCLZD_V8_v7 with actual instruction.
2720
2721 2019-05-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2722
2723 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/get_clockfreq.c:
2724 Remove file.
2725 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: Likewise.
2726
2727 2019-05-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2728
2729 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
2730 NEARBYINT handling.
2731 * sysdeps/powerpc/fpu/s_nearbyint.c: New file.
2732 * sysdeps/powerpc/fpu/s_nearbyintf.c: Likewise.
2733 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Remove file.
2734 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Likewise.
2735 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Likewise.
2736 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
2737
2738 2019-05-28 mansayk <6688000@gmail.com>
2739
2740 [BZ #24370]
2741 * localedata/locales/tt_RU (lang_name): Add from CLDR-35.1.
2742
2743 2019-05-28 mansayk <6688000@gmail.com>
2744
2745 [BZ #24369]
2746 * localedata/locales/tt_RU (mon): Update from CLDR-35.1, fix errors.
2747 (abmon): Likewise, but remove the trailing dots.
2748
2749 2019-05-28 Joseph Myers <joseph@codesourcery.com>
2750
2751 * inet/netinet/igmp.h (IGMP_MRDISC_ADV): New macro.
2752
2753 2019-05-27 Florian Weimer <fweimer@redhat.com>
2754
2755 * nptl/nptl-init.c: Add comment.
2756
2757 2019-05-24 Florian Weimer <fweimer@redhat.com>
2758
2759 * resolv/nss_dns/dns-host.c (getanswer_r): Be more explicit about
2760 struct in_addr/struct in6_addr alignment.
2761
2762 2019-05-23 Joseph Myers <joseph@codesourcery.com>
2763
2764 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
2765 (F_SEAL_FUTURE_WRITE): New macro.
2766
2767 2019-05-23 Alexandra Hajkova <ahajkova@redhat.com>
2768
2769 * elf/Makefile (test-container): Add tst-ldconfig-bad-aux-cache.
2770 * elf/tst-ldconfig-bad-aux-cache.c: New file.
2771 * elf/tst-ldconfig_aux-cache.root: New directory.
2772 * elf/tst-ldconfig-bad-aux-cache.root/postclean.req: New file.
2773 * elf/tst-ldconfig-bad-aux-cache.root/etc: New directory.
2774 * elf/tst-ldconfig-bad-aux-cache.root/etc/ld.so.conf: New file.
2775
2776 2019-05-22 Zack Weinberg <zackw@panix.com>
2777
2778 * sysdeps/powerpc/preconfigure: Error out on powerpc-*-*gnuspe*
2779 host type.
2780 * scripts/build-many-glibcs.py: Remove powerpc-*-linux-gnuspe
2781 and powerpc-*-linux-gnuspe-e500v1 from list of build configurations.
2782
2783 * sysdeps/powerpc/powerpc32/e500: Recursively delete.
2784 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500: Recursively delete.
2785 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/context-e500.h:
2786 Delete.
2787
2788 * sysdeps/powerpc/fpu_control.h: Remove SPE variant.
2789 Issue an #error if used with a compiler in SPE-float mode.
2790 * sysdeps/powerpc/powerpc32/__longjmp_common.S
2791 * sysdeps/powerpc/powerpc32/setjmp_common.S
2792 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
2793 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/getcontext.S
2794 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/setcontext.S
2795 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/swapcontext.S
2796 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
2797 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
2798 Remove code to preserve SPE register state.
2799
2800 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
2801 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
2802 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c:
2803 Remove __SPE__ ifndefs.
2804
2805 2019-05-21 Wilco Dijkstra <wdijkstr@arm.com>
2806
2807 * benchtests/bench-memcpy-random.c (do_one_test): Use medium iterations.
2808 * benchtests/bench-memcpy-walk.c (test_main): Reduce alignment tests.
2809 * benchtests/bench-memmem.c (do_one_test): Use small iterations.
2810 * benchtests/bench-memmove-walk.c (test_main): Reduce alignment tests.
2811 * benchtests/bench-memset-walk.c (test_main): Reduce alignment tests.
2812 * benchtests/bench-strcasestr.c (do_one_test): Use small iterations.
2813 * benchtests/bench-string.h (INNER_LOOP_ITERS): Increase iterations.
2814 (INNER_LOOP_ITERS_MEDIUM): New define.
2815 (INNER_LOOP_ITERS_SMALL): New define.
2816 * benchtests/bench-strpbrk.c (do_one_test): Use medium iterations.
2817 * benchtests/bench-strsep.c (do_one_test): Use small iterations.
2818 * benchtests/bench-strspn.c (do_one_test): Use medium iterations.
2819 * benchtests/bench-strstr.c (do_one_test): Use small iterations.
2820 * benchtests/bench-strtok.c (do_one_test): Use small iterations.
2821
2822 2019-05-21 Adhemeval Zanella <adhemerval.zanella@linaro.org>
2823
2824 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h (SEMTIMEDOP_IPC_ARGS):
2825 New define.
2826 * sysdeps/unix/sysv/linux/sparc/sparc64/ipc_priv.h
2827 (SEMTIMEDOP_IPC_ARGS): Likewise.
2828
2829 2019-05-21 Florian Weimer <fweimer@redhat.com>
2830
2831 [BZ #24584]
2832 * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Acquire __gconv_lock
2833 before updating __counter field and release it afterwards. Add
2834 overflow check.
2835 * iconv/gconv.h (struct __gconv_step): Mention synchronization
2836 requirement for __counter member.
2837
2838 2019-05-21 Florian Weimer <fweimer@redhat.com>
2839
2840 [BZ #24583]
2841 * wcsmbs/wcsmbsload.h (__wcsmbs_close_conv): Declare.
2842 * wcsmbs/wcsmbsload.c (__wcsmbs_close_conv): Define.
2843 * libio/iofclose.c (_IO_new_fclose): Call __wcsmbs_close_conv
2844 instead of __gconv_release_step.
2845 * libio/Makefile (tests): Add tst-wfile-gconv.
2846 (tests-container): Add tst-wfile-ascii.
2847 (tst-wfile-gconv-ENV): Enable mtrace.
2848 (generated): Add tst-wfile-gconv.mtrace, tst-wfile-gconv.check.
2849 (tests-special): Add tst-wfile-gconv-mem.out.
2850 (tst-wfile-gconv.out): Depend on locales.
2851 (tst-wfile-gconv-mem.out): Add mtrace rule.
2852 * libio/tst-wfile-ascii.c: New file.
2853 * libio/tst-wfile-gconv.c: Likewise.
2854
2855 2019-05-20 Florian Weimer <fweimer@redhat.com>
2856
2857 [BZ #24588]
2858 libio: Remove codecvt vtable.
2859 * libio/fileops.c ( _IO_new_file_fopen): Do not copy
2860 __libio_codecvt.
2861 * libio/iofgetpos.c (_IO_new_fgetpos): Call
2862 __libio_codecvt_encoding.
2863 * libio/iofgetpos64.c (_IO_new_fgetpos): Likewise.
2864 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
2865 * libio/iofsetpos64.c (_IO_new_fsetpos): Likewise.
2866 * libio/iofwide.c (__libio_codecvt): Remove variable.
2867 (_IO_fwide): Do not copy __libio_codecvt.
2868 (__libio_codecvt_out): Rename from do_out and export.
2869 (do_unshift): Remove function.
2870 (__libio_codecvt_in): Rename from do_in and export.
2871 (__libio_codecvt_encoding): Rename from do_encoding and export.
2872 (do_always_noconv): Remove function.
2873 (__libio_codecvt_length): Rename from do_length and export.
2874 (do_max_length): Remove function.
2875 * libio/libio.h (enum __codecvt_result): Remove definition; moved
2876 to libioP.h.
2877 (struct _IO_codecvt): Remove fields __codecvt_destr,
2878 __codecvt_do_out, __codecvt_do_unshift, __codecvt_do_in,
2879 __codecvt_do_encoding, __codecvt_do_always_noconv,
2880 __codecvt_do_length, __codecvt_do_max_length.
2881 * libio/libioP.h (enum __codecvt_result): Define; moved from
2882 libio.h.
2883 (__libio_codecvt_out, __libio_codecvt_in)
2884 (__libio_codecvt_encoding, __libio_codecvt_length): Declare
2885 functions.
2886 * libio/wfileops.c (_IO_wdo_write): Call __libio_codecvt_out.
2887 (_IO_wfile_underflow): Call __libio_codecvt_in.
2888 (_IO_wfile_underflow): Likewise.
2889 (_IO_wfile_underflow_mmap): Likewise.
2890 (_IO_wfile_sync): Call __libio_codecvt_encoding,
2891 __libio_codecvt_length.
2892 (adjust_wide_data): Call __libio_codecvt_encoding,
2893 __libio_codecvt_in.
2894 (do_ftell_wide): Call __libio_codecvt_length, __libio_codecvt_out.
2895 (_IO_wfile_seekoff): Call __libio_codecvt_encoding,
2896 __libio_codecvt_length.
2897
2898 2019-05-20 Florian Weimer <fweimer@redhat.com>
2899
2900 * support/support.h (support_sbindir_prefix): Declare.
2901 (support_install_rootsbindir): Update comment.
2902 * support/Makefile (CFLAGS-support_paths.c): Define SBINDIR_PATH.
2903 * support/support_paths.c (support_sbindir_prefix): Define.
2904
2905 2019-05-20 Mike Crowe <mac@mcrowe.com>
2906
2907 * support/timespec.c: Add backslash to correct newline in failure
2908 message.
2909
2910 * support/timespec.h: Correct confusing comment.
2911
2912 2019-05-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2913
2914 * sysdeps/unix/sysv/linux/ipc_priv.h (SEMTIMEDOP_IPC_ARGS): New
2915 define.
2916 * sysdpes/unix/sysv/linux/s390/ipc_priv.h: New file.
2917 * sysdeps/unix/sysv/linux/s390/semtimedop.c: Remove file.
2918 * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Use
2919 SEMTIMEDOP_IPC_ARGS for calls with __NR_ipc.
2920
2921 [BZ #24570]
2922 * sysdeps/unix/sysv/linux/msgctl.c (__old_msgctl): Remove __IPC_64
2923 usage.
2924
2925 2019-05-20 Joseph Myers <joseph@codesourcery.com>
2926
2927 * elf/elf.h (NT_ARM_PACA_KEYS): New macro.
2928 (NT_ARM_PACG_KEYS): Likewise.
2929
2930 2019-05-17 Wilco Dijkstra <wdijkstr@arm.com>
2931
2932 * malloc/malloc.c (MAX_TCACHE_COUNT): Increase to UINT16_MAX.
2933 (tcache_put): Remove redundant assert.
2934 (tcache_get): Remove redundant asserts.
2935 (__libc_malloc): Check tcache count is not zero.
2936 * manual/tunables.texi (glibc.malloc.tcache_count): Update maximum.
2937
2938 2019-05-17 Florian Weimer <fweimer@redhat.com>
2939
2940 * manual/llio.texi (Open-time Flags): Document O_DIRECTORY.
2941
2942 2019-05-16 Joseph Myers <joseph@codesourcery.com>
2943
2944 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2945 (__ASSUME_STATFS64): Only undefine if [__LINUX_KERNEL_VERSION <
2946 0x050100].
2947 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
2948 Likewise.
2949 * sysdeps/unix/sysv/linux/sh/kernel-features.h
2950 (__ASSUME_STATX): Likewise.
2951
2952 2019-05-16 Florian Weimer <fweimer@redhat.com>
2953
2954 * nis/nss_nis/nis-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL): Remove
2955 flags argument.
2956 (LINE_PARSER): Do not map IPv4 addresses.
2957 (internal_nis_gethostent_r): Remove flags argument. Adjust call
2958 to parse_line.
2959 (_nss_nis_gethostent_r): Always pass AF_INET to
2960 internal_nis_gethostent_r.
2961 (internal_gethostbyname2_r): Remove flags argument. Adjust call
2962 to parse_line.
2963 (_nss_nis_gethostbyname2_r): Adjust call to
2964 internal_nis_gethostent_r.
2965 (_nss_nis_gethostbyname_r): Do not attempt IPv6 query. Adjust
2966 call to internal_nis_gethostent_r.
2967 (_nss_nis_gethostbyaddr_r): Do not request IPv4 address mapping
2968 from parse_line.
2969 (_nss_nis_gethostbyname4_r):Adjust call to parse_line.
2970 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
2971 Remove flags argument. Do not map IPv4 addresses.
2972 (internal_nisplus_gethostent_r): Adjust call to
2973 _nss_nisplus_parse_hostent.
2974 (internal_gethostbyname2_r): Remove flags argument. Adjust call
2975 to _nss_nisplus_parse_hostent.
2976 (_nss_nisplus_gethostbyname2_r): Adjust call to
2977 internal_gethostbyname2_r.
2978 (_nss_nisplus_gethostbyname_r): Do not perform IPv6 lookup.
2979 Adjust call to internal_gethostbyname2_r.
2980 (_nss_nisplus_gethostbyaddr_r): Adjust call to
2981 _nss_nisplus_parse_hostent.
2982 (_nss_nisplus_gethostbyname4_r): Adjust call to
2983 internal_gethostbyname2_r.
2984
2985 2019-05-16 Florian Weimer <fweimer@redhat.com>
2986
2987 * nss/nss_files/files-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL):
2988 Remove flags.
2989 (LINE_PARSER): Remove address mapping.
2990 (EXTRA_ARGS_VALUE): Remove flags argument.
2991 (gethostbyname3_multi): Likewise. Adjust call to internal_getent.
2992 (_nss_files_gethostbyname3_r): Adjust calls to internal_getent and
2993 gethostbyname3_multi.
2994 (_nss_files_gethostbyname_r): Always use AF_INET. Adjust call to
2995 _nss_files_gethostbyname3_r.
2996 (_nss_files_gethostbyname4_r): Adjust call to internal_getent.
2997
2998 2019-05-16 Florian Weimer <fweimer@redhat.com>
2999
3000 * support/support_test_compare_blob.c (report_blob): Report
3001 incorrect NULL blobs.
3002
3003 2019-05-15 Mark Wielaard <mark@klomp.org>
3004
3005 [BZ# 24476]
3006 * dlfcn/dlerror.c (__dlerror_main_freeres): Guard using
3007 __libc_once_get (once) and static_buf == NULL.
3008 (__dlerror): Check we have a valid key, set result to static_buf
3009 otherwise.
3010
3011 2019-05-15 Andreas Schwab <schwab@suse.de>
3012
3013 [BZ #20568]
3014 * libio/wfileops.c (_IO_wfile_sync): Correct last argument to
3015 __codecvt_do_length.
3016 * libio/Makefile (tests): Add tst-wfile-sync.
3017 ($(objpfx)tst-wfile-sync.out): Depend on $(gen-locales).
3018 * libio/tst-wfile-sync.c: New file.
3019 * libio/tst-wfile-sync.input: New file.
3020
3021 2019-05-15 Florian Weimer <fweimer@redhat.com>
3022
3023 nss: Turn __nss_database_lookup into a compatibility symbol.
3024 * nss/nsswitch.h (__nss_database_lookup2): Renamed from
3025 __nss_database_lookup.
3026 * nss/nsswitch.c (__nss_database_lookup2): Likewise.
3027 (nss_load_all_libraries): Call __nss_database_lookup2 instead of
3028 __nss_database_lookup.
3029 (__nss_next): Move to …
3030 * nss/compat-lookup.c (nss_next): … here. Change it to fail
3031 unconditionally.
3032 (__nss_database_lookup): New function.
3033 * nss/Versions (GLIBC_2.0): Update comment.
3034 (GLIBC_PRIVATE): Export __nss_database_lookup2.
3035 * grp/initgroups.c (internal_getgrouplist): Call
3036 __nss_database_lookup2 instead of __nss_database_lookup.
3037 * nscd/aicache.c (addhstaiX): Likewise.
3038 * nscd/initgrcache.c (addinitgroupsX): Likewise.
3039 * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
3040 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Likewise.
3041 * nss/nss_compat/compat-grp.c (init_nss_interface): Likewise.
3042 * nss/nss_compat/compat-initgroups.c (init_nss_interface):
3043 Likewise.
3044 * nss/nss_compat/compat-pwd.c (init_nss_interface): Likewise.
3045 * nss/nss_compat/compat-spwd.c (init_nss_interface): Likewise.
3046 * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
3047
3048 2019-05-15 Alexandra Hajkova <ahajkova@redhat.com>
3049
3050 * support/support.h (support_install_rootsbindir): New variable.
3051 * support/support_paths.c: Likewise.
3052 * support/Makefile (CFLAGS-support_paths.c): Add -DROOTSBINDIR_PATH.
3053
3054 2019-05-15 Florian Weimer <fweimer@redhat.com>
3055
3056 * iconv/gconv.h (__gconv_transliterate): Move declaration …
3057 * iconv/gconv_int.h (__gconv_transliterate): … here.
3058 * iconv/loop.c: Include <iconv/gconv_int.h> instead of <gconv.h>.
3059 * iconv/skeleton.c: Likewise.
3060
3061 2019-05-14 Florian Weimer <fweimer@redhat.com>
3062
3063 Linux: Add the tgkill function.
3064 * bits/signal_ext.h: New file.
3065 * manual/signal.texi (Signaling Another Process): Document tgkill.
3066 * signal/Makefile (headers): Add bits/signal_ext.h.
3067 * signal/signal.h: Include <bits/signal_ext.h>.
3068 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-tgkill.
3069 (tst-tgkill): Link with libpthread.
3070 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.30): Export tgkill.
3071 * sysdeps/unix/sysv/linux/bits/signal_ext.h: New file.
3072 * sysdeps/unix/sysv/linux/bits/tst-tgkill.c: Likewise.
3073 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
3074 tgkill.
3075 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
3076 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
3077 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
3078 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
3079 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
3080 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
3081 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
3082 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
3083 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
3084 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
3085 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
3086 Likewise.
3087 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
3088 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
3089 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
3090 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3091 Likewise.
3092 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
3093 Likewise.
3094 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist:
3095 Likewise.
3096 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist:
3097 Likewise.
3098 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
3099 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3100 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3101 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
3102 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3103 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
3104 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
3105 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
3106
3107 2019-05-14 Carlos O'Donell <carlos@redhat.com>
3108
3109 * manual/search.texi (Tree Search Function): Adjust twalk_r
3110 documentation.
3111
3112 2019-05-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3113
3114 [BZ #24544]
3115 * elf/tst-pldd.c (do_test): Use support_bindir_prefix instead of
3116 pre-defined value.
3117
3118 * support/Makefile (CFLAGS-support_paths.c): Add -DBINDIR_PATH.
3119 * support/support.h (support_bindir_prefix): New variable.
3120 * support/support_paths.c [BINDIR_PATH] (support_bindir_prefix):
3121
3122 * config.make.in (bindir): New variable.
3123
3124 * sysdeps/nptl/lowlevellock.h (__lll_trylock): New macro.
3125 (lll_trylock): Call __lll_trylock.
3126 * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Remove file.
3127 * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Likewise.
3128 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
3129 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
3130 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
3131 * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: Likewise.
3132 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
3133 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
3134 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: New file.
3135 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include
3136 lowlevellock-futex.h.
3137
3138 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
3139 initialization for LLL_LOCK_INITIALIZER different than 0.
3140 * nptl/old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0):
3141 Assume LLL_LOCK_INITIALIZER being 0.
3142 * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
3143 * nptl/old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
3144 Likewise.
3145 * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
3146 * sysdeps/nptl/libc-lockP.h (__libc_lock_define_initialized): Likewise.
3147
3148 * nptl/lowlevellock.c (__lll_lock_wait, __lll_lock_wait_private):
3149 Optimize futex call and add systemtap probe.
3150
3151 * nptl/pthreadP.h (CANCEL_ASYNC, CANCEL_RESET, LIBC_CANCEL_ASYNC,
3152 LIBC_CANCEL_RESET, __libc_enable_asynccancel,
3153 __libc_disable_asynccancel, __librt_enable_asynccancel,
3154 __libc_disable_asynccancel, __librt_enable_asynccancel,
3155 __librt_disable_asynccancel): Move to ...
3156 * sysdeps/unix/sysv/linux/sysdep-cancel.h: ... here.
3157 (SINGLE_THREAD_P, RTLD_SINGLE_THREAD_P): Move to ...
3158 * sysdeps/unix/sysv/linux/single-thread.h: ... here.
3159 * sysdeps/generic/single-thread.h: New file.
3160 * sysdeps/unix/sysdep.h: Include single-thread.h.
3161 * sysdeps/unix/sysv/linux/futex-internal.h: Include sysdep-cancel.h.
3162 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
3163
3164 2019-05-08 Mike FABIAN <mfabian@redhat.com>
3165
3166 [BZ #24535]
3167 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.1.0.
3168 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
3169 Unicode 12.1.0.
3170 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
3171 * localedata/unicode-gen/PropList.txt: Likewise.
3172 * localedata/unicode-gen/UnicodeData.txt: Likewise.
3173 * localedata/charmaps/UTF-8: Regenerate.
3174 * localedata/locales/i18n_ctype: Likewise.
3175 * localedata/locales/tr_TR: Likewise.
3176 * localedata/locales/translit_circle: Likewise.
3177 * localedata/locales/translit_cjk_compat: Likewise.
3178 * localedata/locales/translit_combining: Likewise.
3179 * localedata/locales/translit_compat: Likewise.
3180 * localedata/locales/translit_font: Likewise.
3181 * localedata/locales/translit_fraction: Likewise.
3182
3183 2019-05-10 Wilco Dijkstra <wdijkstr@arm.com>
3184
3185 [BZ #24531]
3186 * malloc/malloc.c (MAX_TCACHE_COUNT): New define.
3187 (do_set_tcache_count): Only update if count is small enough.
3188 * manual/tunables.texi (glibc.malloc.tcache_count): Document max value.
3189
3190 2019-05-10 Florian Weimer <fweimer@redhat.com>
3191
3192 * nptl/sem_close.c (struct walk_closure): Define.
3193 (walker): Adjust for __twalk_r.
3194 (sem_close): Call __twalk_r.
3195
3196 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3197
3198 * support/timespec.c (test_timespec_before_impl,
3199 test_timespec_equal_or_after_impl): print timespec member as intmax_t
3200 insted of long int.
3201
3202 2019-05-09 Mike Crowe <mac@mcrowe.com>
3203
3204 * nptl/tst-abstime.c: Use libsupport.
3205
3206 * nptl/tst-rwlock6.c: Use libsupport. This also happens to fix a
3207 small bug where only tv.tv_usec was checked which could cause an
3208 erroneous pass if pthread_rwlock_timedrdlock incorrectly took more
3209 than a second.
3210
3211 * nptl/tst-rwlock7.c, nptl/tst-rwlock9.c, nptl/tst-rwlock14.c: Use
3212 libsupport.
3213
3214 * nptl/tst-sem5.c (do_test): Use xclock_gettime, timespec_add and
3215 TEST_TIMESPEC_NOW_OR_AFTER from libsupport.
3216
3217 * nptl/tst-cond11.c: Use libsupport.
3218
3219 * support/timespec.h: New file. Provide timespec helper functions
3220 along with macros in the style of those in check.h.
3221 * support/timespec.c: New file. Implement check functions declared
3222 in support/timespec.h.
3223 * support/timespec-add.c: New file from gnulib containing
3224 timespec_add implementation that handles overflow.
3225 * support/timespec-sub.c: New file from gnulib containing
3226 timespec_sub implementation that handles overflow.
3227 * support/README: Mention timespec.h.
3228
3229 2019-05-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
3230
3231 [BZ #24537]
3232 * nptl/Makefile: Move tst-eintr1 to xtests.
3233
3234 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3235
3236 * sysdeps/powerpc/fpu/trunc_to_integer.h (set_fenv_mode): Add
3237 TRUNC handling.
3238 (round_mode): Add definition for TRUNC.
3239 * sysdeps/powerpc/fpu/s_trunc.c: New file.
3240 * sysdeps/powerpc/fpu/s_truncf.c: New file.
3241 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Remove file.
3242 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
3243 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.S:
3244 Likewise.
3245 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.S:
3246 Likewise.
3247 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.S:
3248 Likewise.
3249 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.S:
3250 Likewise.
3251 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.c: New
3252 file.
3253 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.c:
3254 Likewise.
3255 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.c:
3256 Likewise.
3257 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.c:
3258 Likewise.
3259 * sysdep/powerpc/powerpc32/power5+/fpu/s_trunc.S: Remove file.
3260 * sysdep/powerpc/powerpc32/power5+/fpu/s_truncf.S: Likewise.
3261 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
3262 (libm-sysdep_routines): Add s_trunc-power5+, s_trunc-ppc64,
3263 s_truncf-power5+, and s_truncf-ppc64.
3264 (CFLAGS-s_trunc-power5+.c, CFLAGS-s_truncf-power5+.c): New rule.
3265 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-power5+.c: New
3266 file.
3267 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-ppc64.c: Likewise.
3268 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Move to ...
3269 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_trunc.c: ... here.
3270 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-power5+.c: New
3271 file.
3272 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-ppc64.c:
3273 Likewise.
3274 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Move to ...
3275 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_truncf.c: ... here.
3276 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3277 (libm-sysdep_routines): Remove s_trunc-power5+, s_trunc-ppc64,
3278 s_truncf-power5+, and s_truncf-ppc64.
3279 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Remove
3280 file.
3281 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
3282 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S:
3283 Likewise.
3284 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
3285 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
3286 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
3287 * sysdep/powerpc/powerpc64/power5+/fpu/s_trunc.S: Likewise.
3288 * sysdep/powerpc/powerpc64/power5+/fpu/s_truncf.S: Likewise.
3289
3290 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
3291 ROUND handling.
3292 (round_mode): Add definition for ROUND.
3293 (round_to_integer_float): Likewise.
3294 * sysdeps/powerpc/fpu/s_round.c: New file.
3295 * sysdeps/powerpc/fpu/s_roundf.c: New file.
3296 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Remove file.
3297 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
3298 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.S:
3299 Likewise.
3300 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.S:
3301 Likewise.
3302 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.S:
3303 Likewise.
3304 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.S:
3305 Likewise.
3306 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.c: New
3307 file.
3308 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.c:
3309 Likewise.
3310 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.c:
3311 Likewise.
3312 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.c:
3313 Likewise.
3314 * sysdep/powerpc/powerpc32/power5+/fpu/s_round.S: Remove file.
3315 * sysdep/powerpc/powerpc32/power5+/fpu/s_roundf.S: Likewise.
3316 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
3317 (libm-sysdep_routines): Add s_round-power5+, s_round-ppc64,
3318 s_roundf-power5+, and s_roundf-ppc64.
3319 (CFLAGS-s_round-power5+.c, CFLAGS-s_roundf-power5+.c): New rule.
3320 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-power5+.c: New
3321 file.
3322 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-ppc64.c: Likewise.
3323 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Move to ...
3324 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_round.c: ... here.
3325 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-power5+.c: New
3326 file.
3327 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-ppc64.c:
3328 Likewise.
3329 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Move to ...
3330 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_roundf.c: ... here.
3331 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3332 (libm-sysdep_routines): Remove s_round-power5+, s_round-ppc64,
3333 s_roundf-power5+, and s_roundf-ppc64.
3334 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Remove
3335 file.
3336 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
3337 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S:
3338 Likewise.
3339 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
3340 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
3341 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
3342 * sysdep/powerpc/powerpc64/power5+/fpu/s_round.S: Likewise.
3343 * sysdep/powerpc/powerpc64/power5+/fpu/s_roundf.S: Likewise.
3344
3345 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode):
3346 Add FLOOR option.
3347 (round_mode): Add definition for FLOOR.
3348 * sysdeps/powerpc/fpu/s_floor.c: New file.
3349 * sysdeps/powerpc/fpu/s_floorf.c: Likewise.
3350 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Remove file.
3351 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
3352 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
3353 Remove file.
3354 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S:
3355 Likewise
3356 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
3357 Likewise.
3358 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
3359 Likewise.
3360 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.c:
3361 New file.
3362 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.c:
3363 Likewise.
3364 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.c:
3365 Likewise.
3366 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.c:
3367 Likewise.
3368 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Remove file.
3369 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Remove file.
3370 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
3371 (libm-sysdep_routines): Add s_floor-power5+, s_floor-ppc64,
3372 s_floorf-power5+, and s_floorf-ppc64.
3373 (CFLAGS-s_floor-power5+.c, CFLAGS-s_floorf-power5+.c): New rule.
3374 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-power5+.c: New
3375 file.
3376 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-ppc64.c: Likewise.
3377 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Move to ...
3378 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floor.c: ... here.
3379 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-power5+.c: New
3380 file.
3381 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-ppc64.c:
3382 Likewise.
3383 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Move to ...
3384 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floorf.c: ... here.
3385 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3386 (libm-sysdep_routines): Remove s_floor-power5+, s_floor-ppc64,
3387 s_floorf-power5+, and s_floorf-ppc64.
3388 * sysdep/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Remove
3389 file.
3390 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Remove
3391 file.
3392 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S:
3393 Likewise.
3394 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S:
3395 Likewise.
3396 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
3397 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
3398 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Likewise.
3399 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Likewise.
3400
3401 2019-05-08 Mike Crowe <mac@mcrowe.com>
3402
3403 * support/xclock_gettime.c (xclock_gettime): New file. Provide
3404 clock_gettime wrapper for use in tests that fails the test rather
3405 than returning failure.
3406
3407 * support/xtime.h: New file to declare xclock_gettime.
3408
3409 * support/Makefile: Add xclock_gettime.c.
3410
3411 * support/README: Mention xtime.h.
3412
3413 2019-05-08 Florian Weimer <fweimer@redhat.com>
3414
3415 malloc/tst-mallocfork2: Use process-shared barriers.
3416 * malloc/tst-mallocfork2.c: Switch to <support/test-driver.c>.
3417 (signal_count, sigusr1_sender_pid): Remove.
3418 (iterations): Define constant.
3419 (shared): New variable.
3420 (sigusr1_received): Update comment.
3421 (sigusr1_handler): Do not send SIGSTOP to the sender process.
3422 (signal_sender): Optional use barriers to avoid sending signals
3423 during irrelevant times.
3424 (do_it): Initialize variable shared. Use xfork for error
3425 checking. Launch multiple SIGUSR1-sending subprocesses. Limit
3426 the iteration count, independent of signal delivery. Check for
3427 deadlocks in fork. Introduce barriers for reducing signal
3428 traffic. Do not send SIGCONT to the SIGUSR1-sending processes;
3429 replaced by the barriers. Count signals during fork/free/malloc
3430 and report them.
3431 * malloc/Makefile (tst-mallocfork): Link with libpthread.
3432
3433 2019-05-07 Joseph Myers <joseph@codesourcery.com>
3434
3435 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
3436 version to 5.1.
3437 (clock_adjtime64) New syscall.
3438 (clock_getres_time64) Likewise.
3439 (clock_gettime64) Likewise.
3440 (clock_nanosleep_time64) Likewise.
3441 (clock_settime64) Likewise.
3442 (futex_time64) Likewise.
3443 (io_pgetevents_time64) Likewise.
3444 (io_uring_enter) Likewise.
3445 (io_uring_register) Likewise.
3446 (io_uring_setup) Likewise.
3447 (mq_timedreceive_time64) Likewise.
3448 (mq_timedsend_time64) Likewise.
3449 (pidfd_send_signal) Likewise.
3450 (ppoll_time64) Likewise.
3451 (pselect6_time64) Likewise.
3452 (recvmmsg_time64) Likewise.
3453 (rt_sigtimedwait_time64) Likewise.
3454 (sched_rr_get_interval_time64) Likewise.
3455 (semtimedop_time64) Likewise.
3456 (timer_gettime64) Likewise.
3457 (timer_settime64) Likewise.
3458 (timerfd_gettime64) Likewise.
3459 (timerfd_settime64) Likewise.
3460 (utimensat_time64) Likewise.
3461
3462 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
3463 version to 9 branch.
3464
3465 2019-05-03 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
3466
3467 * sysdeps/aarch64/multiarch/ifunc-impl-list.c: Added
3468 __memmove_thunderx2 to the list of implementations
3469 * sysdeps/aarch64/multiarch/memmove.c: Likewise
3470 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S:
3471 (__memmove_thunderx2): Rewritten using SIMD ld/st
3472 (__memcpy_thunderx2): Fixed handling overlapping cases.
3473 Used ldp/stp instead of ldr/str if possible. Made loops
3474 tails branchless.
3475
3476 2019-05-03 Florian Weimer <fweimer@redhat.com>
3477
3478 * misc/tst-tsearch.c (walk_tree): Add more error checking.
3479
3480 2019-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3481
3482 [BZ #24506]
3483 * elf/tst-pldd.c (in_str_list): New function.
3484 (do_test): Add default names for ld and libc as one option.
3485
3486 2019-05-02 Florian Weimer <fweimer@redhat.com>
3487
3488 misc: Add twalk_r function.
3489 * include/search.h (__twalk_r): Declare.
3490 * manual/examples/twalk.c: New file.
3491 * manual/search.texi (Tree Search Function): Document twalk_r.
3492 * misc/Versions (2.30): Export twalk_r.
3493 (GLIBC_PRIVATE): Export __twalk_r.
3494 * misc/search.h [__USE_GNU] (twalk_r): Declare.
3495 * misc/tsearch.c (trecurse_r, __twalk_r): New functions.
3496 (twalk_r): Add weak alias.
3497 * misc/tst-tsearch.c (struct walk_trace_element): Define.
3498 (walk_trace): New variable.
3499 (struct twalk_with_twalk_r_closure): Define.
3500 (twalk_with_twalk_r_action): New function.
3501 (twalk_with_twalk_r): Likewise.
3502 (walk_action): Call walk_trace_add.
3503 (walk_tree_with): Rename from walk_tree. Add walk argument.
3504 (walk_tree): New function.
3505 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.30): Add twalk_r.
3506 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
3507 Likewise.
3508 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
3509 Likewise.
3510 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
3511 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30): Likewise.
3512 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30): Likewise.
3513 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30): Likewise.
3514 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30): Likewise.
3515 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
3516 Likewise.
3517 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
3518 Likewise.
3519 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
3520 Likewise.
3521 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3522 (GLIBC_2.30): Likewise.
3523 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3524 (GLIBC_2.30): Likewise.
3525 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3526 (GLIBC_2.30): Likewise.
3527 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3528 (GLIBC_2.30): Likewise.
3529 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
3530 Likewise.
3531 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3532 (GLIBC_2.30): Likewise.
3533 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3534 (GLIBC_2.30): Likewise.
3535 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
3536 (GLIBC_2.30): Likewise.
3537 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
3538 (GLIBC_2.30): Likewise.
3539 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
3540 Likewise.
3541 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
3542 Likewise.
3543 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
3544 Likewise.
3545 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
3546 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
3547 Likewise.
3548 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
3549 Likewise.
3550 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
3551 Likewise.
3552 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
3553 Likewise.
3554
3555 2019-04-30 Paul Eggert <eggert@cs.ucla.edu>
3556
3557 Make mktime etc. compatible with __time64_t
3558 Keep these functions compatible with Gnulib while adding
3559 __time64_t support. The basic idea is to move private API
3560 declarations from include/time.h to time/mktime-internal.h, since
3561 the former file cannot easily be shared with Gnulib whereas the
3562 latter can.
3563 Also, do some other minor cleanup while in the neighborhood.
3564 * include/time.h: Include stdbool.h, time/mktime-internal.h.
3565 (__mktime_internal): Move this prototype to time/mktime-internal.h,
3566 since Gnulib needs it.
3567 (__localtime64_r, __gmtime64_r) [__TIMESIZE == 64]:
3568 Move these macros to time/mktime-internal.h, since Gnulib needs them.
3569 (__mktime64, __timegm64) [__TIMESIZE != 64]: New prototypes.
3570 (in_time_t_range): New static function.
3571 * posix/bits/types.h (__time64_t): Move to time/mktime-internal.h,
3572 so that glibc users are not tempted to use __time64_t.
3573 * time/mktime-internal.h: Rewrite so that it does both glibc
3574 and Gnulib work. Include time.h if not _LIBC.
3575 (mktime_offset_t) [!_LIBC]: Define for gnulib.
3576 (__time64_t): New type or macro, moved here from
3577 posix/bits/types.h.
3578 (__gmtime64_r, __localtime64_r, __mktime64, __timegm64)
3579 [!_LIBC || __TIMESIZE == 64): New macros, mostly moved here
3580 from include/time.h.
3581 (__gmtime_r, __localtime_r, __mktime_internal) [!_LIBC]:
3582 New macros, taken from GNulib.
3583 (__mktime_internal): New prototype, moved here from include/time.h.
3584 * time/mktime.c (mktime_min, mktime_max, convert_time)
3585 (ranged_convert, __mktime_internal, __mktime64):
3586 * time/timegm.c (__timegm64):
3587 Use __time64_t, not time_t.
3588 * time/mktime.c: Stop worrying about whether time_t is floating-point.
3589 (__mktime64) [! (_LIBC && __TIMESIZE != 64)]:
3590 Rename from mktime.
3591 (mktime) [_LIBC && __TIMESIZE != 64]: New function.
3592 * time/timegm.c [!_LIBC]: Include libc-config.h, not config.h,
3593 for libc_hidden_def.
3594 Include errno.h.
3595 (__timegm64) [! (_LIBC && __TIMESIZE != 64)]:
3596 Rename from timegm.
3597 (timegm) [_LIBC && __TIMESIZE != 64]: New function.
3598
3599 2019-04-30 Maciej W. Rozycki <macro@wdc.com>
3600
3601 [BZ #19444]
3602 * sysdeps/ieee754/soft-fp/s_ddivl.c (__ddivl): Ignore errors
3603 from `-Wmaybe-uninitialized'.
3604 * sysdeps/ieee754/soft-fp/s_fdivl.c (__fdivl): Likewise.
3605
3606 2019-04-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3607
3608 * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround_inline_nocheck): New
3609 function.
3610 * sysdeps/powerpc/fpu/round_to_integer.h: New file.
3611 * sysdeps/powerpc/fpu/s_ceil.c: Likewise.
3612 * sysdeps/powerpc/fpu/s_ceilf.c: Likewise.
3613 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Remove file.
3614 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
3615 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3616 (CFLAGS-s_ceil-power5+.c, CFLAGS-s_ceilf-power5+.c): New rule.
3617 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
3618 Remove file.
3619 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S:
3620 Likewise.
3621 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
3622 Likewise.
3623 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S:
3624 Likewise.
3625 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.c:
3626 New file.
3627 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.c:
3628 Likewise.
3629 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.c:
3630 Likewise.
3631 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.c:
3632 Likewise.
3633 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Remove file.
3634 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Likewise.
3635 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile: New file.
3636 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-power5+.c:
3637 Likewise.
3638 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-ppc64.c:
3639 Likewise.
3640 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Move to ...
3641 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil.c: ... here.
3642 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-power5+.c: New
3643 file.
3644 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-ppc64.c:
3645 Likewise.
3646 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Move to ...
3647 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf.c: ...
3648 * here.
3649 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3650 (libm-sysdep_routines): Remove s_ceil-power5+, s_ceil-ppc64,
3651 s_ceilf-power5+, and s_ceilf-ppc64.
3652 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Remove
3653 file.
3654 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
3655 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
3656 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
3657 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
3658 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
3659 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Likewise.
3660 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Likewise.
3661
3662 * sysdeps/powerpc/power4/fpu/Makefile: Remove file.
3663 * sysdeps/powerpc/power4/fpu/mpa-arch.h: Likewise.
3664 * sysdeps/powerpc/power4/fpu/mpa.c: Likewise.
3665
3666 2019-04-29 Yann Droneaud <ydroneaud@opteya.com>
3667
3668 * sysdeps/pthread/semaphore.h (sem_init): Add __nonnull attribute.
3669 (sem_destroy, sem_open, sem_close, sem_unlink): Likewise.
3670 (sem_wait, sem_timedwait, sem_trywait, sem_post): Likewise.
3671 (sem_getvalue): Likewise.
3672
3673 2019-04-26 Florian Weimer <fweimer@redhat.com>
3674
3675 elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now.
3676 * elf/Makefile (LDFLAGS-sotruss-lib.so): Set.
3677
3678 2019-04-26 Florian Weimer <fweimer@redhat.com>
3679
3680 Makeconfig: Move -Wl,-rpath-link options before library references.
3681 * Makeconfig (+link-pie, +link): Add $(link-libc-rpath-link).
3682 (link-libc): Remove $(link-libc-rpath-link).
3683
3684 2019-04-25 Florian Weimer <fweimer@redhat.com>
3685
3686 * Makeconfig (+link-pie-before-libc): Remove $(CC).
3687 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
3688 (+link-static-before-libc): Remove $(CC).
3689 (+link-static, +link-static-tests): Add $(CC).
3690 (+link-before-libc): Remove $(CC).
3691 (+link, +link-pie, +link-pie-printers): Add $(CC).
3692
3693 2019-04-26 Florian Weimer <fweimer@redhat.com>
3694
3695 * Makeconfig (+link-pie-before-libc): Remove $(CC).
3696 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
3697 (+link-static-before-libc): Remove $(CC).
3698 (+link-static, +link-static-tests): Add $(CC).
3699 (+link-before-libc): Remove $(CC).
3700 (+link, +link-pie, +link-pie-printers): Add $(CC).
3701
3702 2019-04-25 David Abdurachmanov <david.abdurachmanov@gmail.com>
3703
3704 [BZ#24484]
3705 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Remove.
3706
3707 2019-04-25 Florian Weimer <fweimer@redhat.com>
3708
3709 benchtests: Enable BIND_NOW if configured with --enable-bind-now.
3710 * benchtests/Makefile [$(bind-now)] (link-bench-bind-now): Set.
3711 (bench-link-targets): New variable.
3712 ($(binaries-bench) …): Use it. Set LDFLAGS accordingly.
3713
3714 2019-04-25 Florian Weimer <fweimer@redhat.com>
3715
3716 Also enable BIND_NOW for programs if --enable-bind-now.
3717 * Makeconfig [$(bind-now)] (link-extra-flags): Add -Wl,-z,now.
3718 (+link-pie): Use $(link-extra-flags).
3719 (+link-static): Likewise.
3720 [! $(build-pie-default)] (+link): Likewise.
3721 * manual/install.texi (Configuring and compiling): Update
3722 --enable-bind-now description.
3723 * INSTALL: Regenerated.
3724
3725 2019-04-24 Wilco Dijkstra <wdijkstr@arm.com>
3726
3727 * benchtests/Makefile (BENCH_DURATION): Set to 1 second.
3728 * benchtests/bench-malloc-thread.c (BENCH_DURATION): Set to 10 seconds.
3729
3730 2019-04-24 Mike Frysinger <vapier@gentoo.org>
3731
3732 [BZ #18465]
3733 * malloc/Makefile (others): Add memusagestat.
3734 ($(objpfx)memusagestat): Delete rule.
3735 (LDLIBS-memusagestat): New variable.
3736
3737 2019-04-24 Florian Weimer <fweimer@redhat.com>
3738
3739 * locale/Makefile (tests-special): Guard setting by
3740 $(run-built-tests) == yes, otherwise tst-locale-locpath attempts
3741 to run while cross-compiling.
3742
3743 2019-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3744
3745 [BZ #18035]
3746 * elf/Makefile (tests-container): Add tst-pldd.
3747 * elf/pldd-xx.c: Use _Static_assert in of pldd_assert.
3748 (E(find_maps)): Avoid use alloca, use default read file operations
3749 instead of explicit LFS names, and fix infinite loop.
3750 * elf/pldd.c: Explicit set _FILE_OFFSET_BITS, cleanup headers.
3751 (get_process_info): Use _Static_assert instead of assert, use default
3752 directory operations instead of explicit LFS names, and free some
3753 leadek pointers.
3754 * elf/tst-pldd.c: New file.
3755
3756 2019-04-23 H.J. Lu <hongjiu.lu@intel.com>
3757
3758 * malloc/arena.c (do_set_mallopt_check): Removed.
3759
3760 2019-04-23 Florian Weimer <fweimer@redhat.com>
3761
3762 locale: Add LOCPATH diagnostics to the locale program.
3763 * locale/programs/locale.c (setlocale_failed): New variable.
3764 (try_setlocale): New function.
3765 (quote_string): Likewise.
3766 (setlocale_diagnostics): Likewise.
3767 (main): Call try_setlocale instead of setlocale. Call
3768 setlocale_diagnostics.
3769 * locale/Makefile (tests-special): Add tst-locale-locpath.out.
3770 (tst-locale-locpath.out): New target.
3771 * locale/tst-locale-locpath.sh: New file.
3772
3773 2019-04-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3774
3775 * NEWS: Move memory allocation changes of BZ#23741 from 2.29
3776 to 2.30 notes.
3777
3778 2019-04-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3779
3780 [BZ #23741]
3781 * malloc/hooks.c (malloc_check, realloc_check): Use
3782 __builtin_add_overflow on overflow check and adapt to
3783 checked_request2size change.
3784 * malloc/malloc.c (__libc_malloc, __libc_realloc, _mid_memalign,
3785 __libc_pvalloc, __libc_calloc, _int_memalign): Limit maximum
3786 allocation size to PTRDIFF_MAX.
3787 (REQUEST_OUT_OF_RANGE): Remove macro.
3788 (checked_request2size): Change to inline function and limit maximum
3789 requested size to PTRDIFF_MAX.
3790 (__libc_malloc, __libc_realloc, _int_malloc, _int_memalign): Limit
3791 maximum allocation size to PTRDIFF_MAX.
3792 (_mid_memalign): Use _int_memalign call for overflow check.
3793 (__libc_pvalloc): Use __builtin_add_overflow on overflow check.
3794 (__libc_calloc): Use __builtin_mul_overflow for overflow check and
3795 limit maximum requested size to PTRDIFF_MAX.
3796 * malloc/malloc.h (malloc, calloc, realloc, reallocarray, memalign,
3797 valloc, pvalloc): Add __attribute_alloc_size__.
3798 * stdlib/stdlib.h (malloc, realloc, reallocarray, valloc): Likewise.
3799 * malloc/tst-malloc-too-large.c (do_test): Add check for allocation
3800 larger than PTRDIFF_MAX.
3801 * malloc/tst-memalign.c (do_test): Disable -Walloc-size-larger-than=
3802 around tests of malloc with negative sizes.
3803 * malloc/tst-posix_memalign.c (do_test): Likewise.
3804 * malloc/tst-pvalloc.c (do_test): Likewise.
3805 * malloc/tst-valloc.c (do_test): Likewise.
3806 * malloc/tst-reallocarray.c (do_test): Replace call to reallocarray
3807 with resulting size allocation larger than PTRDIFF_MAX with
3808 reallocarray_nowarn.
3809 (reallocarray_nowarn): New function.
3810 * NEWS: Mention the malloc function semantic change.
3811
3812 2019-04-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3813
3814 * sysdeps/powerpc/fpu/s_fma.c: Fix format.
3815 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
3816
3817 * sysdeps/powerpc/fpu/s_fma.S: Remove file.
3818 * sysdeps/powerpc/fpu/s_fmaf.S: Likewise.
3819 * sysdeps/powerpc/fpu/s_fma.c: New file.
3820 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
3821
3822 * sysdeps/powerpc/fpu/s_fabs.S: Remove file.
3823 * sysdeps/powerpc/fpu/s_fabsf.S: Likewise.
3824
3825 * sysdeps/unix/sysv/linux/mips/getcontext.S (__getcontext): Remove
3826 the magic flag store.
3827 * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
3828 Likewise.
3829 * sysdeps/unix/sysv/linux/mips/swapcontext.S (__swapcontext):
3830 Likewise.
3831 * sysdeps/unix/sysv/linux/mips/setcontext.S (__setcontext):
3832 Remove rt_sigreturn call.
3833
3834 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
3835 Remove rt_sigreturn call.
3836 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
3837 Likewise.
3838 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewie.
3839 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
3840
3841 * support/Makefile (libsupport-routines): Add support_subprocess,
3842 xposix_spawn, xposix_spawn_file_actions_addclose, and
3843 xposix_spawn_file_actions_adddup2.
3844 (tst-support_capture_subprocess-ARGS): New rule.
3845 * support/capture_subprocess.h (support_capture_subprogram): New
3846 prototype.
3847 * support/support_capture_subprocess.c (support_capture_subprocess):
3848 Refactor to use support_subprocess and support_capture_poll.
3849 (support_capture_subprogram): New function.
3850 * support/tst-support_capture_subprocess.c (write_mode_to_str,
3851 str_to_write_mode, test_common, parse_int, handle_restart,
3852 do_subprocess, do_subprogram, do_multiple_tests): New functions.
3853 (do_test): Add support_capture_subprogram tests.
3854 * support/subprocess.h: New file.
3855 * support/support_subprocess.c: Likewise.
3856 * support/xposix_spawn.c: Likewise.
3857 * support/xposix_spawn_file_actions_addclose.c: Likewise.
3858 * support/xposix_spawn_file_actions_adddup2.c: Likewise.
3859 * support/xspawn.h: Likewise.
3860
3861 2019-04-17 Mike Gerow <gerow@google.com>
3862
3863 * stdlib/tst-secure-getenv.c (choose_gid): Remove 64 supplemental
3864 groups limit.
3865
3866 2019-04-11 Florian Weimer <fweimer@redhat.com>
3867
3868 * resolv/nss_dns/dns-network.c (getanswer_r): Do not replace root
3869 domain with empty string.
3870 * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
3871
3872 2019-04-11 Florian Weimer <fweimer@redhat.com>
3873
3874 * include/alloc_buffer.h (alloc_buffer_alloc_bytes): Update
3875 comment.
3876 (alloc_buffer_next): Change return type to non-const. Update
3877 comment.
3878
3879 2019-04-10 TAMUKI Shoichi <tamuki@linet.gr.jp>
3880
3881 * manual/time.texi (Formatting Calendar Time): Add missing percent
3882 sign to conversion specifier.
3883
3884 2019-04-09 Carlos O'Donell <carlos@redhat.com>
3885 Kwok Cheung Yeung <kcy@codesourcery.com>
3886
3887 [BZ #16573]
3888 * malloc/mtrace.c: Define prototypes for all hooks.
3889 (set_default_hooks): New function.
3890 (set_trace_hooks): Likewise.
3891 (save_default_hooks): Likewise.
3892 (tr_freehook): Use new s*_hooks functions.
3893 (tr_mallochook): Likewise.
3894 (tr_reallochook): Likewise.
3895 (tr_memalignhook): Likewise.
3896 (mtrace): Likewise.
3897 (muntrace): Likewise.
3898
3899 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
3900
3901 * benchtests/bench-stpcpy.c (SIMPLE_STPCPY): Remove function.
3902 (generic_stpcpy): New function.
3903 * benchtests/bench-stpncpy.c (SIMPLE_STPNCPY): Remove function.
3904 (generic_stpncpy): New function.
3905 * benchtests/bench-strcat.c (SIMPLE_STRCAT): Remove function.
3906 (generic_strcat): New function.
3907 * benchtests/bench-strcpy.c (SIMPLE_STRCPY): Remove function.
3908 (generic_strcpy): New function.
3909 * benchtests/bench-strncat.c (SIMPLE_STRNCAT): Remove function.
3910 (STUPID_STRNCAT): Remove function.
3911 (generic_strncat): New function.
3912 * benchtests/bench-strncpy.c (SIMPLE_STRNCPY): Remove function.
3913 (STUPID_STRNCPY): Remove function.
3914 (generic_strncpy): New function.
3915 * benchtests/bench-strnlen.c (SIMPLE_STRNLEN): Remove function.
3916 (generic_strnlen): New function.
3917 (memchr_strnlen): New function.
3918 * benchtests/bench-strlen.c (generic_strlen): Define for WIDE.
3919 (memchr_strlen): Likewise.
3920
3921 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
3922
3923 * benchtests/bench-strstr.c (input): Add realistic input text.
3924 (stupid_strstr): Remove function.
3925 (basic_strstr): Add function.
3926 (twoway_strstr): Add function.
3927 (do_one_test): Add result checking.
3928 (do_test): Use new input text. Remove accidental early matches.
3929 (test_main): Improve range of tests, reduce unaligned cases.
3930
3931 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
3932
3933 * benchtests/bench-memmem.c (simple_memmem): Remove function.
3934 (basic_memmem): Add function.
3935 (twoway_memmem): Add function.
3936
3937 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
3938
3939 * benchtests/bench-malloc-simple.c: Remove TIMING_INIT.
3940 * benchtests/bench-malloc-thread.c: Likewise.
3941 * benchtests/bench-skeleton.c: Likewise.
3942 * benchtests/bench-strtod.c: Likewise.
3943 * benchtests/bench-timing.h: Likewise.
3944
3945 2019-04-08 Florian Weimer <fweimer@redhat.com>
3946
3947 * resolv/resolv.h (RES_INSECURE1, RES_INSECURE2): Remove
3948 definitions.
3949 * resolv/res_send.c (send_dg): Always perform RES_INSECURE1 and
3950 RES_INSECURE2 security checks.
3951 * resolv/res_debug.c (p_option): Remove RES_INSECURE1 and
3952 RES_INSECURE2 handling.
3953
3954 2019-04-08 Florian Weimer <fweimer@redhat.com>
3955
3956 resolv: Remove support for RES_USE_INET6 and the inet6 option.
3957 * nscd/aicache.c (addhstaiX): Do not disable RES_USE_INET6.
3958 * nscd/nscd_gehst_r.c (__nscd_gethostbyname_r): Always use
3959 GETHOSTBYNAME.
3960 * resolv/Makefile (tests): Remove tst-res_use_inet6.
3961 (tests-internal): Update justification for tst-resolv-res_init,
3962 tst-resolv-res_init-thread.
3963 (tst-res_use_inet6): Remove target.
3964 (CFLAGS-tst-res_use_inet6.c): Do not set variable.
3965 * resolv/res_debug.c (p_option): Remove "inet6" support.
3966 * resolv/res_init.c (res_setoptions): Likewise.
3967 * resolv/res_use_inet6.h: Remove file.
3968 * resolv/resolv-internal.h (DEPRECATED_RES_USE_INET6): Remove
3969 definition.
3970 (res_use_inet6): Always return false.
3971 * resolv/resolv.h (RES_USE_INET6): Remove definition.
3972 * resolv/resolv_context.h: Adjust file comment.
3973 (struct resolv_context): Update comment on __next field.
3974 (__resolv_context_put): Update comment.
3975 * resolv/tst-res_use_inet6.c: Remove file.
3976 * resolv/tst-resolv-res_init-skeleton.c (print_resp): Remove
3977 "inet6" support.
3978 (test_cases): Adjust test case.
3979 * resolv/tst-resolv-threads.c (byname_inet6) Remove function.
3980 (thread_byname2_af_inet6): Use old byname_inet6 code.
3981 (thread_byname_inet6, thread_byname2_af_inet6): Remove functions.
3982 (gai): Remove do_inet6 argument.
3983 (thread_gai_inet, thread_gai_inet6, thread_gai_unspec): Adjust.
3984 (thread_gai_inet_inet6, thread_gai_inet6_inet6)
3985 (thread_gai_unspec_inet6): Remove functions.
3986 (do_test): Adjust thread_funcs.
3987 * sysdeps/posix/getaddrinfo.c (gethosts): Do not restore
3988 RES_USE_INET6 flag.
3989 (gaih_inet): Do not disable RES_USE_INET6 flag.
3990
3991 2019-04-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
3992
3993 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: Cleanup branching
3994 and remove redundant code.
3995
3996 2019-04-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3997
3998 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcsrchr.c):
3999 New rule.
4000 * sysdeps/powerpc/power6/wcsrchr.c: Remove file.
4001 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c:
4002 Likewise.
4003 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c:
4004 Likewise.
4005 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c:
4006 Likewise.
4007 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
4008 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: Likewise.
4009 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: Likewise.
4010 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: Likewise.
4011 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
4012 * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Likewise.
4013 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
4014 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcsrchr-power6 and
4015 wcsrchr-power7.
4016 (CFLAGS-wcsrchr-power7.c, CFLAGS-wcsrchr-power6.c): Remove rule.
4017 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
4018 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
4019 Remove wcsrchr optimizations.
4020 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
4021
4022 * wcsmbs/wcsrchr.c (WCSRCHR): Use loop_unroll.h to parametrize
4023 the loop unroll.
4024
4025 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcschr.c):
4026 New rule.
4027 * sysdeps/powerpc/power6/wcschr.c: Remove file.
4028 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c:
4029 Likewise.
4030 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c:
4031 Likewise.
4032 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c:
4033 Likewise.
4034 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
4035 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: Likewise.
4036 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: Likewise.
4037 * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: Likewise.
4038 * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
4039 * sysdeps/powerpc/powerpc64/power6/wcschr.c: Likewise.
4040 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
4041 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcschr-power6 and
4042 wcschr-power7.
4043 (CFLAGS-wcschr-power7.c, CFLAGS-wcschr-power6.c): Remove rule.
4044 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
4045 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
4046 Remove wcschr optimizations.
4047 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
4048
4049 * wcsmbs/wcschr.c (WCSCHR): Use loop_unroll.h to parametrize
4050 the loop unroll.
4051
4052 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcscpy.c):
4053 New rule.
4054 * sysdeps/powerpc/power6/wcscpy.c: Remove file.
4055 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c:
4056 Likewise.
4057 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c:
4058 Likewise.
4059 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c:
4060 Likewise.
4061 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
4062 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: Likewise.
4063 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: Likewise.
4064 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: Likewise.
4065 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
4066 * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Likewise.
4067 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
4068 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcscpy-power6 and
4069 wcscpy-power7.
4070 (CFLAGS-wcscpy-power7.c, CFLAGS-wcscpy-power6.c): Remove rule.
4071 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
4072 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
4073 Remove wcscpy optimizations.
4074 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
4075
4076 * include/loop_unroll.h: New file.
4077 * wcsmbs/wcscpy (__wcscpy): Add option to use loop unrolling
4078 besides generic implementation.
4079
4080 2019-04-03 DJ Delorie <dj@redhat.com>
4081
4082 * time/tst-strftime3.c (tm_to_printed): Disable warning about
4083 snprintf truncating output.
4084
4085 2019-04-02 DJ Delorie <dj@redhat.com>
4086
4087 * time/tst-strftime3.c: Add new Japanese era tests. Fix printf
4088 warning.
4089
4090 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
4091
4092 [BZ #22964]
4093 * localedata/locales/ja_JP (LC_TIME): Add entry for the new Japanese
4094 era.
4095 * time/tst-strftime2.c (dates): Add 2019-04-30 and 2019-05-01.
4096 (mkreftable): Add rules for the new Japanese era and the new dates.
4097
4098 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
4099 Rafal Luzynski <digitalfreak@lingonborough.com>
4100
4101 * time/tst-strftime2.c (date_t): Explicitly define the type.
4102 (dates): Use natural month and year numbers to express a date.
4103 (is_before): New function to compare dates.
4104 (mkreftable): Minor improvements to simplify maintenance.
4105 (do_test): Reflect the changes in dates array.
4106
4107 [BZ #24293]
4108 * time/Makefile (LOCALES): Add zh_TW.UTF-8, cmn_TW.UTF-8,
4109 hak_TW.UTF-8, nan_TW.UTF-8, and lzh_TW.UTF-8.
4110 * time/tst-strftime2.c (locales): Likewise.
4111 (dates): Add 1910-04-01, 1911-12-31, 1912-01-01, 1913-04-01,
4112 2010-04-01, and 2011-04-01.
4113 (mkreftable): Add rules for the new locales and the new dates.
4114
4115 2019-04-01 Carlos O'Donell <carlos@redhat.com>
4116
4117 * localedata/locales/ja_JP: Add comments to era entries.
4118
4119 2019-04-01 DJ Delorie <dj@redhat.com>
4120
4121 [BZ #24394]
4122 * time/strptime_l.c (%Ey): Fix fencepost error.
4123 * time/tst-strftime3.c: New.
4124 * time/Makefile (tests): Add tst-strftime3.
4125
4126 2019-04-01 Uros Bizjak <ubizjak@gmail.com>
4127
4128 * sysdeps/alpha/divqu.S (__divqu): Move save of $f0 and excb after
4129 conditional branch to DIVBYZERO. Fix unwind info.
4130 * sysdeps/alpha/remqu.S (__remqu): Move saves of $f0, $f1, $f2 and
4131 excb after conditional branch to $powerof2. Add missing unop
4132 instructions and .align directives and reorder instructions to
4133 match __divqu.
4134
4135 2019-04-01 Richard Henderson <rth@twiddle.net>
4136
4137 * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
4138 Do not redefine.
4139 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_osf_shmat):
4140 Do not redefine.
4141
4142 2019-03-30 Maciej W. Rozycki <macro@wdc.com>
4143
4144 * sysdeps/unix/sysv/linux/riscv/configure.ac: Quote
4145 $libc_cv_riscv_float_abi in `test' invocation.
4146 * sysdeps/unix/sysv/linux/riscv/configure: Regenerate.
4147
4148 2019-03-29 Paul A. Clarke <pc@us.ibm.com>
4149
4150 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_register): Replace inline
4151 asm with builtin.
4152 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (FP_INIT_ROUNDMODE):
4153 Likewise.
4154 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
4155 (_GET_SI_FPSCR): Likewise.
4156 (_SET_SI_FPSCR): Likewise.
4157
4158 2019-03-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4159
4160 * math/math.h (fpclassify, isfinite, isnormal, isnan): Use builtin for
4161 clang 2.8.
4162 (signbit): Use builtin for clang 3.3.
4163 (isinf): Use builtin for clang 3.7.
4164
4165 2019-03-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4166
4167 * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file.
4168
4169 2019-03-25 Andreas K. Hüttel <dilfridge@gentoo.org>
4170
4171 * nss/tst-nss-files-alias-leak.c (do_test): add missing opening
4172 quote in printf.
4173
4174 2019-03-25 Mike Crowe <mac@mcrowe.com>
4175
4176 * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to
4177 pthread_rwlock_timedrdlock with calls to
4178 pthread_rwlock_timedwrlock to ensure that the latter is tested
4179 too. Use new function name in diagnostic messages too.
4180
4181 * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
4182 (do_test) Use libsupport test macros rather than hand-coded
4183 conditionals and error messages. Ensure that sem_init returns zero
4184 rather than not -1. Use <support/test-driver.c> rather than
4185 test-skeleton.c.
4186
4187 * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
4188 test macros rather than hand-coded conditionals and error messages.
4189 Use <support/test-driver.c> rather than test-skeleton.c.
4190
4191 2019-03-25 Joseph Myers <joseph@codesourcery.com>
4192
4193 * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
4194
4195 * elf/elf.h (NT_ARM_PAC_MASK): New macro.
4196 (NT_MIPS_MSA): Likewise.
4197
4198 2019-03-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4199
4200 * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
4201 * benchtests/README: Update description.
4202 * benchtests/bench-timing.h: Default to hp-timing.
4203 * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
4204 HP_TIMING_PRINT): Remove.
4205 (HP_TIMING_NOW): Add generic implementation.
4206 (hp_timing_t): Change to uint64_t.
4207
4208 * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
4209 HP_TIMING_INLINE.
4210 * nptl/descr.h: Likewise.
4211 * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
4212 RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
4213 (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
4214 Abstract hp-timing usage with RTLD_* macros.
4215 * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
4216 (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
4217 * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
4218 HP_TIMING_NONAVAIL): Likewise.
4219 * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
4220 Likewise.
4221 * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
4222 HP_SMALL_TIMING_AVAIL): Likewise.
4223 * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
4224 HP_SMALL_TIMING_AVAIL): Likewise.
4225 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
4226 HP_SMALL_TIMING_AVAIL): Likewise.
4227 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
4228 HP_SMALL_TIMING_AVAIL): Likewise.
4229 * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
4230 Likewise.
4231 * sysdeps/generic/hp-timing-common.h: Update comment with
4232 HP_TIMING_AVAIL removal.
4233
4234 * include/random-bits.h: New file.
4235 * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
4236 (__res_context_mkquery): Remove usage hp-timing usage and replace with
4237 random_bits.
4238 * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
4239 * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
4240 Likewise.
4241
4242 * include/libc-internal.h (__get_clockfreq): Remove prototype.
4243 * rt/Makefile (clock-routines): Remove get_clockfreq.
4244 * rt/get_clockfreq.c: Remove file.
4245 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
4246 * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
4247 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
4248 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
4249 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
4250
4251 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
4252 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
4253 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
4254 (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
4255 _SC_CPUTIME, and _SC_THREAD_CPUTIME.
4256
4257 * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
4258 pthread_clock_settime.
4259 * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
4260 * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
4261 (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
4262 * elf/rtld.c (_dl_start_final): Likewise.
4263 * nptl/allocatestack.c (__find_thread_by_id): Remove function.
4264 * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
4265 Remove.
4266 * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
4267 (_dl_cpuclock_offset): Remove.
4268 * nptl/descr.h (struct pthread): Rename cpuclock_offset to
4269 cpuclock_offset_ununsed.
4270 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
4271 cpuclock_offset set.
4272 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
4273 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
4274 * nptl/pthread_clock_gettime.c: Remove file.
4275 * nptl/pthread_clock_settime.c: Likewise.
4276 * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
4277 [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
4278 and CLOCK_PROCESS_CPUTIME_ID support.
4279 * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
4280 [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
4281 * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
4282 [HP_TIMING_AVAIL] (__clock_getres): Likewise.
4283 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
4284 Likewise.
4285 (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
4286
4287 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
4288
4289 * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
4290 * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
4291 MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
4292 New defines.
4293 * sysdeps/s390/memmem-arch13.S: New file.
4294 * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
4295 if it is only used as fallback.
4296 * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
4297 * sysdeps/s390/multiarch/ifunc-impl-list.c
4298 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
4299
4300 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
4301
4302 * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
4303 * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
4304 STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
4305 New defines.
4306 * sysdeps/s390/multiarch/ifunc-impl-list.c
4307 (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
4308 * sysdeps/s390/strstr-arch13.S: New file.
4309 * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
4310 if it is only used as fallback.
4311 * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
4312
4313 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
4314
4315 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
4316 HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
4317 * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
4318 * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
4319 ifunc selector.
4320 * sysdeps/s390/multiarch/ifunc-impl-list.c
4321 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
4322 * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
4323 S390_IS_ARCH13_MIE3): New defines.
4324
4325 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
4326
4327 * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
4328 HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
4329 * sysdeps/s390/configure.ac: Add checks for arch13 support.
4330 * sysdeps/s390/configure: Regenerated.
4331
4332 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
4333
4334 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
4335 Add vxe2, vxp, dflt, sort flags.
4336 * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
4337 HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
4338 capabilities.
4339 (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
4340 * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
4341 (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
4342 HWCAP_S390_DFLT): Define.
4343
4344 2019-03-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4345
4346 [BZ #24372]
4347 * iconv/iconvconfig.c (write_output): Add parentheses to get rid
4348 of compiler warning.
4349 * locale/programs/ld-collate.c (collate_output): Likewise.
4350
4351 2019-03-21 DJ Delorie <dj@redhat.com>
4352
4353 [BZ #24372]
4354 * iconv/iconvconfig.c (write_output): Replace floating point math
4355 with integer math to avoid imprecise results.
4356 * locale/programs/ld-collate.c (collate_output): Likewise.
4357
4358 2019-03-21 Stefan Liebler <stli@linux.ibm.com>
4359
4360 * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
4361 Add HWCAP_S390_VX and HWCAP_S390_VXE.
4362
4363 2019-03-20 mansayk <6688000@gmail.com>
4364
4365 [BZ #24296]
4366 * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
4367 (abday): Likewise, but remove the trailing dots.
4368
4369 2019-03-19 Joseph Myers <joseph@codesourcery.com>
4370
4371 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
4372 macro.
4373 (HWCAP_PACA): Likewise.
4374 (HWCAP_PACG): Likewise.
4375 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
4376 Increase to 32.
4377 (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
4378
4379 2019-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
4380
4381 * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
4382 should be handled.
4383
4384 2019-03-15 Joseph Myers <joseph@codesourcery.com>
4385
4386 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
4387 version to 5.0.
4388 (old_getpagesize): New syscall.
4389
4390 2019-03-15 Felix Yan <felixonmars@archlinux.org>
4391
4392 [BZ #24293]
4393 * localedata/locales/zh_TW (era): Add, support Minguo calendar.
4394 * localedata/locales/cmn_TW (era): Likewise.
4395 * localedata/locales/hak_TW (era): Likewise.
4396 * localedata/locales/lzh_TW (era): Likewise.
4397 * localedata/locales/nan_TW (era): Likewise.
4398
4399 2019-03-14 Adam Maris <amaris@redhat.com>
4400
4401 * malloc/malloc.c (_int_malloc): Check for large bin list
4402 corruption when inserting unsorted chunk.
4403
4404 2019-03-14 Florian Weimer <fweimer@redhat.com>
4405
4406 Remove obsolete, never-implemented XSI STREAMS declarations.
4407 * manual/terminal.texi (Allocation): Remove portability note and
4408 adjust example.
4409 * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
4410 _SC_STREAMS.
4411 * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
4412 * sysdeps/unix/inet/Subdirs (streams): Remove.
4413 * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
4414 (conformtest-headers-UNIX98): Likewise.
4415 (conformtest-headers-XOPEN2K): Likewise.
4416 (conformtest-headers-POSIX2008): Likewise.
4417 * posix/compat-streams.c: New file.
4418 * posix/Makefile (routines): Add it.
4419 * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
4420 getpmsg, isastream, putmsg, putpmsg.
4421 (GLIBC_2.30): New section.
4422 * bits/stropts.h: Remove file.
4423 * bits/xtitypes.h: Likewise.
4424 * conform/data/stropts.h-data: Likewise.
4425 * include/stropts.h: Likewise.
4426 * include/sys/stropts.h: Likewise.
4427 * include/xtitypes.h: Likewise.
4428 * streams/Makefile: Likewise.
4429 * streams/fattach.c: Likewise.
4430 * streams/fdetach.c: Likewise.
4431 * streams/getmsg.c: Likewise.
4432 * streams/getpmsg.c: Likewise.
4433 * streams/isastream.c: Likewise.
4434 * streams/putmsg.c: Likewise.
4435 * streams/putpmsg.c: Likewise.
4436 * streams/stropts.h: Likewise.
4437 * streams/sys/stropts.h: Likewise.
4438 * sysdeps/ia64/bits/xtitypes.h: Likewise.
4439 * sysdeps/s390/bits/xtitypes.h: Likewise.
4440 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
4441 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
4442 * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
4443 * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
4444 * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
4445 * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
4446 * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
4447 * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
4448 * sysdeps/x86/bits/xtitypes.h: Likewise.
4449
4450 2019-03-14 Florian Weimer <fweimer@redhat.com>
4451
4452 * nss/tst-nss-files-alias-truncated.c (do_test): Load
4453 libnss_files.
4454 * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
4455 but not with libnss_files.
4456 (tst-nss-files-alias-truncated.out): Depend on libnss_files.
4457
4458 2019-03-14 Zack Weinberg <zackw@panix.com>
4459
4460 * scripts/check-obsolete-constructs.py (HeaderChecker.check):
4461 Specify encoding="utf-8" when opening headers to check.
4462
4463 2019-03-13 Joseph Myers <joseph@codesourcery.com>
4464
4465 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
4466 version to 5.0.
4467 (Context.checkout_tar): Handle variable major version for Linux
4468 kernel.
4469
4470 2019-03-13 Florian Weimer <fweimer@redhat.com>
4471
4472 [BZ #24047]
4473 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
4474
4475 2019-03-13 Zack Weinberg <zackw@panix.com>
4476
4477 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
4478 Move to stdlib.
4479 * include/inttypes.h: Adjust to match.
4480 * include/stdint.h: New wrapper.
4481
4482 2019-03-13 Zack Weinberg <zackw@panix.com>
4483
4484 * scripts/check-obsolete-constructs.py: New test script.
4485 * scripts/check-installed-headers.sh: Remove tests for
4486 obsolete typedefs, superseded by check-obsolete-constructs.py.
4487 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
4488 as a special test. Update commentary.
4489 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
4490 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
4491 Update commentary.
4492 * posix/sys/types.h (__u_intN_t): Remove.
4493 (u_int8_t): Typedef using __uint8_t.
4494 (u_int16_t): Typedef using __uint16_t.
4495 (u_int32_t): Typedef using __uint32_t.
4496 (u_int64_t): Typedef using __uint64_t.
4497
4498 2019-03-13 Stefan Liebler <stli@linux.ibm.com>
4499
4500 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
4501 call _dl_procinfo.
4502 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
4503 Ignore types other than AT_HWCAP.
4504 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
4505 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
4506 Likewise.
4507 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
4508 in the case of falling back to generic output mechanism.
4509 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
4510 Likewise.
4511
4512 2019-03-12 Florian Weimer <fweimer@redhat.com>
4513
4514 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
4515
4516 2019-03-12 Florian Weimer <fweimer@redhat.com>
4517
4518 [BZ #24047]
4519 resolv: Enable full ICMP errors for UDP DNS sockets
4520 * resolv/res_enable_icmp.c: New file.
4521 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
4522 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
4523 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
4524 socket.
4525
4526 2019-03-11 Mao Han <han_mao@c-sky.com>
4527
4528 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
4529 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
4530
4531 2019-03-11 Mao Han <han_mao@c-sky.com>
4532
4533 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
4534 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
4535 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
4536
4537 2019-03-11 Mao Han <han_mao@c-sky.com>
4538
4539 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
4540 directly.
4541 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
4542 definition.
4543
4544 2019-03-11 Mao Han <han_mao@c-sky.com>
4545
4546 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
4547 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
4548 in mcontext_t
4549
4550 2019-03-08 Mike FABIAN <mfabian@redhat.com>
4551
4552 [BZ #24307]
4553 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
4554 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
4555 Unicode 12.0.0.
4556 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
4557 * localedata/unicode-gen/PropList.txt: Likewise.
4558 * localedata/unicode-gen/UnicodeData.txt: Likewise.
4559 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
4560 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
4561 * localedata/charmaps/UTF-8: Regenerate.
4562 * localedata/locales/i18n_ctype: Likewise.
4563 * localedata/locales/tr_TR: Likewise.
4564 * localedata/locales/translit_circle: Likewise.
4565 * localedata/locales/translit_cjk_compat: Likewise.
4566 * localedata/locales/translit_combining: Likewise.
4567 * localedata/locales/translit_compat: Likewise.
4568 * localedata/locales/translit_font: Likewise.
4569 * localedata/locales/translit_fraction: Likewise.
4570
4571 2019-03-07 Joseph Myers <joseph@codesourcery.com>
4572
4573 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
4574 than after operators.
4575 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
4576 (setitimer_locked): Likewise.
4577 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
4578 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
4579 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
4580 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
4581 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
4582 (PPC_CPU_SUPPORTED): Likewise.
4583 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
4584 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
4585 (stat_overflow): Likewise.
4586 (statfs_overflow): Likewise.
4587 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
4588 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
4589 (eq_ttyname_r): Likewise.
4590 (run_chroot_tests): Likewise.
4591
4592 2019-03-07 Florian Weimer <fweimer@redhat.com>
4593
4594 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
4595 header check.
4596
4597 2019-03-07 Martin Liska <mliska@suse.cz>
4598
4599 * math/Makefile: Change location where math-vector-fortran.h is
4600 installed.
4601 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
4602 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
4603 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
4604 * scripts/check-installed-headers.sh: Skip Fortran header files.
4605 * scripts/check-wrapper-headers.py: Likewise.
4606
4607 2019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4608
4609 * nptl/nptl-init.c (__have_futex_clock_realtime,
4610 __have_futex_clock_realtime): Remove definition.
4611 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
4612 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
4613 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
4614 __ASSUME_FUTEX_CLOCK_REALTIME support.
4615 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
4616 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
4617 * sysdeps/unix/sysv/linux/kernel-features.h
4618 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
4619 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
4620 Adjust comment.
4621
4622 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4623
4624 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
4625 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
4626 __GI___wcscpy and wcscpy.
4627
4628 2019-03-04 Florian Weimer <fweimer@redhat.com>
4629
4630 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
4631 declaration.
4632 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
4633 defined.
4634
4635 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
4636
4637 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
4638 * sysdeps/s390/s390-32/sysdep.h: Likewise.
4639
4640 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
4641
4642 [BZ #24162]
4643 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
4644 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
4645
4646 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4647
4648 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
4649 tests.
4650 (do_test): Likewise.
4651 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
4652 (do_test_call_varg): Likewise.
4653 (do_test_call_rarg): Likewise.
4654 * sysdeps/ieee754/ldbl-opt/Makefile
4655 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
4656 tst-nldbl-error.
4657 ($(objpfx)tst-nldbl-warn.c): New rule.
4658 ($(objpfx)tst-nldbl-error.c): Likewise.
4659 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
4660 New variables.
4661
4662 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4663
4664 [BZ #23984]
4665 * include/bits/error-ldbl.h: New file.
4666 * include/error.h: Include stdarg.h. Declare internal functions
4667 __error_internal and __error_at_line_internal.
4668 * misc/Makefile (headers): Add bits/error-ldbl.h.
4669 * misc/bits/error-ldbl.h: New file.
4670 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
4671 avoid the inclusion of bits/error.h.
4672 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
4673 and __nldbl_error_at_line.
4674 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
4675 (__nldbl_error, __ndlbl_error_at_line): New functions.
4676 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
4677 Redirect error and error_at_line.
4678 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
4679 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
4680 Likewise.
4681 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
4682 Likewise.
4683 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
4684 Likewise.
4685 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
4686 Likewise.
4687 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
4688 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
4689 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
4690
4691 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4692
4693 [BZ #23984]
4694 * include/bits/err-ldbl.h: New file.
4695 * include/err.h: Add prototypes for the internal functions:
4696 __vwarnx_internal and __vwarn_internal.
4697 * misc/Makefile (headers): Add bits/err-ldbl.h.
4698 * misc/bits/err-ldbl.h: New file.
4699 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
4700 defined, i.e.: when -mlong-double-64 is in use.
4701 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
4702 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
4703 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
4704 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
4705 (VA_CALL): New macro.
4706 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
4707 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
4708 functions.
4709 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
4710 declare prototypes for the new functions.
4711 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
4712 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
4713 Likewise.
4714 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
4715 Likewise.
4716 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
4717 Likewise.
4718 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
4719 Likewise.
4720 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
4721 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
4722 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
4723
4724 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4725
4726 * sysdeps/ieee754/ldbl-opt/Makefile
4727 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
4728 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
4729 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
4730
4731 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4732
4733 [BZ #23983]
4734 * argp/Makefile (headers): Add bits/argp-ldbl.h.
4735 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
4736 * argp/bits/argp-ldbl.h: New file.
4737 * include/argp.h: Include stdarg.h. Add prototypes for internal
4738 functions: __argp_error_internal and __argp_failure_internal.
4739 * include/bits/argp-ldbl.h: New file.
4740 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
4741 __nldbl_argp_error and __nldbl_argp_failure.
4742 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
4743 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
4744 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
4745 Redirect argp_error and argp_failure calls.
4746 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
4747 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
4748 Likewise.
4749 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
4750 Likewise.
4751 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
4752 Likewise.
4753 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
4754 Likewise.
4755 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
4756 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
4757 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
4758
4759 2019-03-01 Florian Weimer <fweimer@redhat.com>
4760
4761 [BZ #20419]
4762 * elf/tst-big-note-lib.S: Create a syntactically valid note.
4763 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
4764 code, to avoid creating an ABI tag note.
4765 (modules-names-nobuild): Add tst-big-note-lib.
4766
4767 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
4768
4769 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
4770 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
4771
4772 2019-03-01 Florian Weimer <fweimer@redhat.com>
4773
4774 [BZ #20271]
4775 * sysdeps/unix/sysv/linux/netlink_assert_response.c
4776 (__netlink_assert_response): Add additional missing newlines.
4777
4778 2019-02-28 Joseph Myers <joseph@codesourcery.com>
4779
4780 * sysdeps/powerpc/powerpc32/dl-machine.c
4781 (__elf_machine_fixup_plt): Use space before '('.
4782 (__process_machine_rela): Likewise.
4783 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
4784 Likewise.
4785 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
4786 Likewise.
4787 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
4788 Likewise.
4789 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
4790 (pattern): Likewise.
4791 (delta): Likewise.
4792 (check_result): Likewise.
4793 (check_excepts): Likewise.
4794 (check_op): Likewise.
4795 (fail_xr): Likewise.
4796 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
4797 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
4798 (SCNHSZ): Likewise.
4799 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
4800 Likewise.
4801 (ARGS): Likewise.
4802 (__makecontext): Likewise.
4803 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
4804 Likewise.
4805
4806 2019-02-28 Florian Weimer <fweimer@redhat.com>
4807
4808 [BZ #23937]
4809 elf: Add test with a local IFUNC resolver.
4810 * elf/ifuncmain9.c: New file.
4811 * elf/ifuncmain9pic.c: Likewise.
4812 * elf/ifuncmain9picstatic.c: Likewise.
4813 * elf/ifuncmain9pie.c: Likewise.
4814 * elf/ifuncmain9static.c: Likewise.
4815 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
4816 ifuncmain9static, ifuncmain9picstatic.
4817 * elf/Makefile [multi-arch && build-shared] (tests-internal):
4818 Add ifuncmain9, ifuncmain9pic.
4819 * elf/Makefile [multi-arch && build-shared && have-fpie]
4820 (ifunc-pie-tests): Add ifuncmain9pie.
4821 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
4822 (CFLAGS-ifuncmain9picstatic.c): Likewise.
4823 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
4824
4825 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
4826
4827 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
4828 * configure: Regenerated.
4829 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
4830
4831 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4832
4833 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
4834 symbol as __wcspcy instead of wcscpy.
4835
4836 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
4837
4838 * include/stdio.h (__renameat2): New hidden prototype.
4839 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
4840 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
4841 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
4842 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
4843
4844 2019-02-27 Joseph Myers <joseph@codesourcery.com>
4845
4846 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
4847 if statement.
4848
4849 * benchtests/bench-strcpy.c (do_test): Use space before '('.
4850 * benchtests/bench-string.h (cmdline_process_function): Likewise.
4851 * benchtests/bench-strlen.c (do_test): Likewise.
4852 (test_main): Likewise.
4853 * catgets/gencat.c (read_old): Likewise.
4854 * elf/cache.c (load_aux_cache): Likewise.
4855 * iconvdata/bug-iconv8.c (do_test): Likewise.
4856 * math/test-tgmath-ret.c (do_test): Likewise.
4857 * nis/nis_call.c (rec_dirsearch): Likewise.
4858 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
4859 * nptl/tst-audit-threads.c (do_test): Likewise.
4860 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
4861 * nss/nss_test1.c (init): Likewise.
4862 * nss/test-netdb.c (test_hosts): Likewise.
4863 * posix/execvpe.c (maybe_script_execute): Likewise.
4864 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
4865 * stdio-common/tst-printf.c (do_test): Likewise.
4866 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
4867 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
4868 * stdlib/qsort.c (STACK_SIZE): Likewise.
4869 * stdlib/test-canon.c (do_test): Likewise.
4870 * stdlib/tst-swapcontext1.c (do_test): Likewise.
4871 * string/memcmp.c (OPSIZ): Likewise.
4872 * string/test-strcpy.c (do_test): Likewise.
4873 (do_random_tests): Likewise.
4874 * string/test-strlen.c (do_test): Likewise.
4875 (test_main): Likewise.
4876 * string/test-strrchr.c (do_test): Likewise.
4877 (do_random_tests): Likewise.
4878 * string/tester.c (test_memrchr): Likewise.
4879 (test_memchr): Likewise.
4880 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
4881 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
4882 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
4883 (read_encoded_value_with_base): Likewise.
4884 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
4885 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
4886 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
4887 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
4888 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
4889 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
4890 Likewise.
4891 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
4892 Likewise.
4893 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
4894 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
4895 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
4896 Likewise.
4897 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
4898 Likewise.
4899 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
4900 Likewise.
4901 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
4902 Likewise.
4903 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
4904 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
4905 (FP_XSTATE_MAGIC2_SIZE): Likewise.
4906 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
4907 * time/test_time.c (main): Likewise.
4908
4909 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4910
4911 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
4912
4913 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
4914 wmemcpy.
4915
4916 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
4917 wmemcpy.
4918
4919 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
4920
4921 * include/wchar.h (__wcscpy): New prototype.
4922 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
4923 (__wcscpy): Route internal symbol to generic implementation.
4924 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
4925 Add internal __wcscpy alias.
4926 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
4927 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
4928 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
4929 * wcsmbs/wcscpy.c (wcscpy): Add
4930 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
4931 use generic implementation.
4932 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
4933
4934 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
4935 wmemset.
4936
4937 * sysdeps/m68k/wcpcpy.c: Remove file.
4938 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
4939
4940 2019-02-26 Joseph Myers <joseph@codesourcery.com>
4941
4942 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
4943 than after operators.
4944 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
4945 * sysdeps/mach/hurd/getcwd.c
4946 (__hurd_canonicalize_directory_name_internal): Likewise.
4947 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
4948 (pthread_mutex_consistent): Likewise.
4949 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
4950 Likewise.
4951 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
4952 (__pthread_mutex_transfer_np): Likewise.
4953 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
4954 (__pthread_mutex_unlock): Likewise.
4955 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
4956 (mtx_owned_p): Likewise.
4957 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
4958 (pthread_mutexattr_getrobust): Likewise.
4959 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
4960 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
4961 Likewise.
4962 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
4963 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
4964 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
4965 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
4966 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
4967 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
4968 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
4969 Likewise.
4970 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
4971 Likewise.
4972 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
4973 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
4974 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
4975 (____longjmp_chk): Likewise.
4976 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
4977 Likewise.
4978 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
4979 (INTERNAL_SYSCALL): Likewise.
4980 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
4981 (INTERNAL_SYSCALL): Likewise.
4982 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
4983 (__get_clockfreq_via_cpuinfo): Likewise.
4984
4985 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
4986 comments.
4987 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
4988 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
4989 (WORD_COPY_BWD): Likewise.
4990 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
4991 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
4992 Likewise.
4993 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
4994 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
4995 comment.
4996 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
4997
4998 2019-02-25 Joseph Myers <joseph@codesourcery.com>
4999
5000 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
5001 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
5002 rather than after operators.
5003 * elf/cache.c (print_cache): Likewise.
5004 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
5005 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
5006 * hurd/hurdinit.c (_hurd_setproc): Likewise.
5007 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
5008 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
5009 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
5010 (reauth_proc): Likewise.
5011 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
5012 (__file_name_split_at): Likewise.
5013 (__directory_name_split_at): Likewise.
5014 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
5015 * hurd/port2fd.c (_hurd_port2fd): Likewise.
5016 * iconv/gconv_dl.c (do_print): Likewise.
5017 * inet/netinet/in.h (struct sockaddr_in): Likewise.
5018 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
5019 * locale/setlocale.c (new_composite_name): Likewise.
5020 * malloc/memusagestat.c (main): Likewise.
5021 * misc/fstab.c (fstab_convert): Likewise.
5022 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
5023 Likewise.
5024 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
5025 (getgrent_next_file): Likewise.
5026 (internal_getgrnam_r): Likewise.
5027 (internal_getgrgid_r): Likewise.
5028 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
5029 Likewise.
5030 (internal_getgrent_r): Likewise.
5031 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
5032 (getpwent_next_nss): Likewise.
5033 (getpwent_next_file): Likewise.
5034 (internal_getpwnam_r): Likewise.
5035 (internal_getpwuid_r): Likewise.
5036 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
5037 Likewise.
5038 (getspent_next_nss): Likewise.
5039 (internal_getspnam_r): Likewise.
5040 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
5041 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
5042 * string/strchr.c (STRCHR): Likewise.
5043 * string/strchrnul.c (STRCHRNUL): Likewise.
5044 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
5045 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
5046 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
5047 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
5048 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
5049 Likewise.
5050 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
5051 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
5052 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
5053 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
5054 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
5055 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
5056 (open_file): Likewise.
5057 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
5058 (pthread_mutexattr_setprotocol): Likewise.
5059 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
5060 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
5061 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
5062 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
5063 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
5064 Likewise.
5065 (elf_machine_rela): Likewise.
5066 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
5067 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
5068 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
5069 * sysdeps/posix/rename.c (rename): Likewise.
5070 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
5071 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
5072 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
5073 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
5074 * sysdeps/unix/grantpt.c (grantpt): Likewise.
5075 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
5076 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
5077 Likewise.
5078 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
5079 Likewise.
5080 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
5081 * time/tzfile.c (__tzfile_compute): Likewise.
5082
5083 2019-02-22 Joseph Myers <joseph@codesourcery.com>
5084
5085 * benchtests/bench-memmem.c (simple_memmem): Break lines before
5086 rather than after operators.
5087 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
5088 * crypt/md5.c (md5_finish_ctx): Likewise.
5089 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
5090 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
5091 * elf/cache.c (load_aux_cache): Likewise.
5092 * elf/dl-load.c (open_verify): Likewise.
5093 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
5094 * elf/readelflib.c (process_elf_file): Likewise.
5095 * elf/rtld.c (dl_main): Likewise.
5096 * elf/sprof.c (generate_call_graph): Likewise.
5097 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
5098 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
5099 * hurd/dtable.c (reauth_dtable): Likewise.
5100 * hurd/getdport.c (__getdport): Likewise.
5101 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
5102 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
5103 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
5104 Likewise.
5105 * hurd/hurdioctl.c (fioctl): Likewise.
5106 * hurd/hurdselect.c (_hurd_select): Likewise.
5107 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
5108 (STOPSIGS): Likewise.
5109 * hurd/hurdstartup.c (_hurd_startup): Likewise.
5110 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
5111 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
5112 * hurd/msgportdemux.c (msgport_server): Likewise.
5113 * hurd/setauth.c (_hurd_setauth): Likewise.
5114 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
5115 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
5116 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
5117 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
5118 * login/tst-utmp.c (do_check): Likewise.
5119 (simulate_login): Likewise.
5120 * mach/lowlevellock.h (lll_lock): Likewise.
5121 (lll_trylock): Likewise.
5122 * math/test-fenv.c (ALL_EXC): Likewise.
5123 * math/test-fenvinline.c (ALL_EXC): Likewise.
5124 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
5125 * nis/nis_call.c (__do_niscall3): Likewise.
5126 * nis/nis_callback.c (cb_prog_1): Likewise.
5127 * nis/nis_defaults.c (searchaccess): Likewise.
5128 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
5129 * nis/nis_ismember.c (internal_ismember): Likewise.
5130 * nis/nis_local_names.c (nis_local_principal): Likewise.
5131 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
5132 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
5133 Likewise.
5134 * nis/ypclnt.c (yp_match): Likewise.
5135 (yp_first): Likewise.
5136 (yp_next): Likewise.
5137 (yp_master): Likewise.
5138 (yp_order): Likewise.
5139 * nscd/hstcache.c (cache_addhst): Likewise.
5140 * nscd/initgrcache.c (addinitgroupsX): Likewise.
5141 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
5142 (internal_getpwuid_r): Likewise.
5143 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
5144 * posix/glob.h (__GLOB_FLAGS): Likewise.
5145 * posix/regcomp.c (peek_token): Likewise.
5146 (peek_token_bracket): Likewise.
5147 (parse_expression): Likewise.
5148 * posix/regexec.c (sift_states_iter_mb): Likewise.
5149 (check_node_accept_bytes): Likewise.
5150 * posix/tst-spawn3.c (do_test): Likewise.
5151 * posix/wordexp-test.c (testit): Likewise.
5152 * posix/wordexp.c (parse_tilde): Likewise.
5153 (exec_comm): Likewise.
5154 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
5155 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
5156 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
5157 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
5158 * stdio-common/tst-fileno.c (do_test): Likewise.
5159 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
5160 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
5161 * stdlib/strtod_l.c (round_and_return): Likewise.
5162 (____STRTOF_INTERNAL): Likewise.
5163 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
5164 * string/strcspn.c (STRCSPN): Likewise.
5165 * string/test-memmem.c (simple_memmem): Likewise.
5166 * termios/tcsetattr.c (tcsetattr): Likewise.
5167 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
5168 * time/asctime.c (asctime_internal): Likewise.
5169 * time/strptime_l.c (__strptime_internal): Likewise.
5170 * time/sys/time.h (timercmp): Likewise.
5171 * time/tzfile.c (__tzfile_compute): Likewise.
5172
5173 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
5174
5175 [BZ #21915]
5176 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
5177
5178 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5179
5180 * argp/argp-help.c (__argp_error_internal): New function,
5181 renamed from __argp_error, but that takes a 'mode_flags'
5182 parameter to control the format of long double parameters.
5183 (__argp_error): Converted into a call __argp_error_internal.
5184 (__argp_failure_internal): New function, renamed from
5185 __argp_failure, but that takes a 'mode_flags' parameter.
5186 (__argp_failure): Converted into a call __argp_failure_internal.
5187 * misc/err.c (__vwarnx_internal): New function, renamed from
5188 vwarnx, but that takes a 'mode_flags' parameter.
5189 (vwarnx): Converted into a call to __vwarnx_internal.
5190 (__vwarn_internal): New function, renamed from vwarn, but that
5191 takes a 'mode_flags' parameter.
5192 (vwarn): Converted into a call to __vwarn_internal.
5193 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
5194 call to __vfxprintf with 'mode_flags'.
5195 (__error_internal): New function, renamed from error, but that
5196 takes a 'mode_flags' parameter.
5197 (error): Converted into a call to __error_internal.
5198 (__error_at_line_internal): New function, renamed from
5199 error_at_line, but that takes a 'mode_flags' parameter.
5200 (error_at_line): Converted into a call to
5201 __error_at_line_internal.
5202 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
5203 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
5204 Likewise.
5205
5206 2019-02-20 Martin Liska <mliska@suse.cz>
5207
5208 * math/Makefile: Install math-vector-fortran.h.
5209 * bits/math-vector-fortran.h: New file.
5210 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
5211
5212 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5213
5214 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
5215 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
5216
5217 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
5218
5219 * nptl/pthread_mutex_trylock.c: Fix comment.
5220
5221 2019-02-19 Carlos O'Donell <carlos@redhat.com>
5222
5223 * nptl/pthread_tryjoin.c: Fix comment.
5224
5225 2019-02-18 Joseph Myers <joseph@codesourcery.com>
5226
5227 [BZ #24231]
5228 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
5229 after R_SPARC_H34 case.
5230
5231 2019-02-18 Florian Weimer <fweimer@redhat.com>
5232
5233 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
5234 (getanswer): Do not call Dprintf.
5235 (res_gethostbyname2_context): Likewise.
5236 (res_gethostbyaddr_context): Likewise.
5237
5238 2019-02-18 Florian Weimer <fweimer@redhat.com>
5239
5240 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
5241 declaration.
5242 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
5243 Remove definitions.
5244 * libio/stdfiles.c: Update comment.
5245 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
5246 set _IO_stdin, _IO_stdout, _IO_stderr.
5247 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
5248 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
5249 inline function.
5250 (_IO_deallocate_file): New inline function.
5251 * libio/iolibio.h (_IO_vprintf): Remove definition.
5252 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
5253 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
5254 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
5255 _IO_legacy_file.
5256 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
5257 __builtin_expect. Use _IO_legacy_file.
5258
5259 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
5260
5261 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
5262 Initialize ctid with a known value and remove update of ctid
5263 after clone.
5264 (wait_tid): Adjust arguments and call futex_wait with ctid_val
5265 as assumed current value of ctid_ptr.
5266
5267 2019-02-16 Florian Weimer <fweimer@redhat.com>
5268
5269 Check that non-sysdeps headers have wrapper headers.
5270 * scripts/check-wrapper-headers.py: New file.
5271 * Makefile (tests-special): Add check-wrapper-headers.out.
5272 (check-wrapper-headers.out): New target.
5273 * Rules (tests-special): Add check-wrapper-headers.out.
5274 (check-wrapper-headers.out): New target.
5275
5276 2019-02-16 Florian Weimer <fweimer@redhat.com>
5277
5278 Add missing header wrappers under include/.
5279 * include/ar.h: New file.
5280 * include/bits/mqueue2.h: Likewise.
5281 * include/bits/stdio.h: Likewise.
5282 * include/bits/stdio2.h: Likewise.
5283 * include/fstab.h: Likewise.
5284 * include/fts.h: Likewise.
5285 * include/lastlog.h: Likewise.
5286 * include/netinet/icmp6.h: Likewise.
5287 * include/netinet/igmp.h: Likewise.
5288 * include/netinet/ip6.h: Likewise.
5289 * include/re_comp.h: Likewise.
5290 * include/regexp.h: Likewise.
5291 * include/rpcsvc/bootparam.h: Likewise.
5292 * include/rpcsvc/yp_prot.h: Likewise.
5293 * include/sys/random.h: Likewise.
5294 * include/sys/stropts.h: Likewise.
5295 * include/sys/ttychars.h: Likewise.
5296 * include/sys/vfs.h: Likewise.
5297 * include/wait.h: Likewise.
5298
5299 2019-02-16 Florian Weimer <fweimer@redhat.com>
5300
5301 * nptl_db/proc_service.h: Move to ...
5302 * sysdeps/nptl/proc_service.h: ... here.
5303 * nptl_db/thread_db.h: Move to ...
5304 * sysdeps/nptl/thread_db.h: ... here.
5305 * nptl/descr.h: Include <thread_db.h>.
5306
5307 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5308
5309 * io/Makefile (tests): Add tst-lockf.
5310 * io/lockf.c (lockf): Use __fcntl and only define for
5311 !__OFF_T_MATCHES_OFF64_T.
5312 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
5313 __OFF_T_MATCHES_OFF64_T case.
5314 * io/tst-lockf.c: New file.
5315 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
5316 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
5317 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
5318 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
5319 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
5320 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
5321 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
5322 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
5323 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
5324
5325 2019-02-15 Florian Weimer <fweimer@redhat.com>
5326
5327 [BZ #24211]
5328 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
5329 pd->result after the thread descriptor has been freed.
5330
5331 2019-02-15 Joseph Myers <joseph@codesourcery.com>
5332
5333 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
5334 from function return type.
5335
5336 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
5337
5338 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5339
5340 * scripts/test_printers_common.py: Set TERM to a known harmless
5341 value.
5342
5343 2019-02-14 Joseph Myers <joseph@codesourcery.com>
5344
5345 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
5346 (xdr_u_int): Likewise.
5347 (xdr_enum): Likewise.
5348 (xdr_bytes): Reword fall-through comment.
5349 (xdr_string): Likewise.
5350
5351 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5352
5353 [BZ #2421]
5354 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
5355 (tests): Add tst-join8 tst-join9.
5356 * nptl/lll_timedwait_tid.c: Remove file.
5357 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
5358 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
5359 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
5360 * nptl/pthread_join_common.c (timedwait_tid): New function.
5361 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
5362 is set.
5363 * nptl/tst-join5.c (thread_join): New function.
5364 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
5365 check.
5366 * nptl/tst-join8.c: New file.
5367 * nptl/tst-join9.c: Likewise.
5368 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
5369 lll_futex_timed_wait_cancel): Add generic macros.
5370 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
5371 Remove definitions.
5372 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
5373 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
5374 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
5375 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
5376 Remove function.
5377 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
5378 Likewise.
5379 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
5380 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
5381 (lll_futex_timed_wait_cancel): New macro.
5382
5383 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
5384
5385 * benchtests/Makefile: Add malloc-simple benchmark.
5386 * benchtests/bench-malloc-simple.c: New benchmark.
5387
5388 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
5389
5390 * benchtests/bench-memmove.c (do_one_test): Remove unused
5391 ORIG_SRC.
5392 (do_test): Adjust.
5393 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
5394 ORIG_SRC.
5395 (do_test): Adjust.
5396
5397 2019-01-13 Jim Wilson <jimw@sifive.com>
5398
5399 [BZ #24040]
5400 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
5401 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
5402 (func): New.
5403 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
5404 call func directly.
5405 * nptl/Makefile (tests): Add tst-unwind-thread.
5406 (CFLAGS-tst-unwind-thread.c): Define.
5407 * nptl/tst-unwind-thread.c: New file.
5408 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
5409 as undefined.
5410
5411 2019-02-13 Joseph Myers <joseph@codesourcery.com>
5412
5413 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
5414 comment wording.
5415 * nis/nis_call.c (__do_niscall3): Likewise.
5416
5417 * catgets/gencat.c (normalize_line): Use braces around empty
5418 'else' body.
5419 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
5420 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
5421 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
5422 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
5423 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
5424 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
5425 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
5426 definition.
5427
5428 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
5429 execlp returns.
5430
5431 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
5432
5433 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
5434 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
5435 * benchtests/bench-strchr.c (stupid_strchr): Remove.
5436 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
5437 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
5438 * benchtests/bench-strlen.c (builtin_strlen): Remove.
5439 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
5440 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
5441 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
5442 * benchtests/bench-strspn.c (stupid_strspn): Remove.
5443 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
5444 * benchtests/bench-bcopy.c: Delete file.
5445 * benchtests/bench-bzero.c: Likewise.
5446 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
5447 (simple_memccpy): Remove.
5448 (generic_memccpy): Add function.
5449 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
5450 * benchtests/bench-memmove.c (simple_bcopy): Remove.
5451 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
5452 (generic_mempcpy): Add new function.
5453 * benchtests/bench-memset.c (simple_bzero): Remove.
5454 (builtin_bzero): Remove.
5455 (builtin_memset): Remove.
5456 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
5457 (generic_rawmemchr): Add new function.
5458
5459 2019-02-12 Florian Weimer <fweimer@redhat.com>
5460
5461 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
5462
5463 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5464
5465 [BZ #24122]
5466 * elf/Makefile (tests): Add tst-audit13.
5467 (modules-names): Add tst-audit13mod1.
5468 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
5469 rule.
5470 * elf/tst-audit13.c: New file.
5471 * elf/tst-audit13mod1.c: Likewise.
5472
5473 2019-02-12 Florian Weimer <fweimer@redhat.com>
5474
5475 [BZ #24122]
5476 * elf/rtld.c (unload_audit_module): New function.
5477 (report_audit_module_load_error): Likewise.
5478 (load_audit_module): Likewise. Extracted from dl_main. Call
5479 _dl_close if the laversion symbol cannot be found. Use early
5480 returns for error handling. Add malloc error check. Check for a
5481 zero return value from la_version. Remove spurious comment about
5482 static TLS initialization. Remove useless casts.
5483 (notify_audit_modules_of_loaded_object): New function. Extracted
5484 from dl_main.
5485 (load_audit_module): Likewise.
5486 (dl_main): Call load_audit_modules.
5487
5488 2019-02-12 Joseph Myers <joseph@codesourcery.com>
5489
5490 * elf/dl-exception.c (_dl_exception_create_format): Add
5491 fall-through comments.
5492 * elf/ldconfig.c (parse_conf_include): Likewise.
5493 * elf/rtld.c (print_statistics): Likewise.
5494 * locale/programs/charmap.c (parse_charmap): Likewise.
5495 * misc/mntent_r.c (__getmntent_r): Likewise.
5496 * posix/wordexp.c (parse_arith): Likewise.
5497 (parse_backtick): Likewise.
5498 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
5499 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
5500 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
5501
5502 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
5503
5504 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
5505 Use float instead of double.
5506
5507 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
5508
5509 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
5510
5511 2019-02-08 Joseph Myers <joseph@codesourcery.com>
5512
5513 * sysdeps/powerpc/bits/mathinline.h: Remove.
5514
5515 2019-02-08 Florian Weimer <fweimer@redhat.com>
5516
5517 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
5518 * math/bits/math-finite.h: Move to ...
5519 * bits/math-finite.h: ... here.
5520
5521 2019-02-08 Florian Weimer <fweimer@redhat.com>
5522
5523 * sysdeps/generic/bits/unistd_ext.h: Move to ...
5524 * bits/unistd_ext.h: here.
5525
5526 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
5527
5528 [BZ #21915]
5529 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
5530 * nss/tst-nss-files-hosts-long.c: New file.
5531 * nss/tst-nss-files-hosts-long.root: New directory.
5532 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
5533 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
5534
5535 2019-02-08 Florian Weimer <fweimer@redhat.com>
5536
5537 * include/bits/unistd_ext.h: Remove file.
5538 * posix/bits/unistd_ext.h: Move to ...
5539 * sysdeps/generic/bits/unistd_ext.h: ... here.
5540
5541 2019-02-08 Florian Weimer <fweimer@redhat.com>
5542
5543 * include/bits/unistd_ext.h: New file.
5544
5545 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
5546
5547 * time/tst-strftime2.c: Use array_length macros instead of magic
5548 numbers.
5549
5550 2019-02-08 Florian Weimer <fweimer@redhat.com>
5551
5552 [BZ #24161]
5553 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
5554 argument.
5555 * nptl/register-atfork.c (__run_fork_handlers): Only perform
5556 locking if the new do_locking argument is true.
5557 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
5558 __run_fork_handlers.
5559
5560 2019-02-08 Florian Weimer <fweimer@redhat.com>
5561
5562 [BZ #6399]
5563 Linux: Add gettid system call wrapper.
5564 * posix/Makefile (headers): Add bits/unistd_ext.h.
5565 * posix/bits/unistd_ext.h: New file.
5566 * posix/unistd.h: Include it.
5567 * manual/process.texi (Process Identification): Document gettid.
5568 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
5569 tst-gettid, tst-gettid-kill.
5570 (tst-gettid): Link with $(shared-thread-library).
5571 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
5572 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
5573 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
5574 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
5575 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
5576 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
5577 Add gettid.
5578 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
5579 Likewise.
5580 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
5581 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
5582 Likewise.
5583 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
5584 Likewise.
5585 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
5586 Likewise.
5587 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
5588 Likewise.
5589 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
5590 Likewise.
5591 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
5592 Likewise.
5593 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
5594 Likewise.
5595 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
5596 (GLIBC_2.30): Likewise.
5597 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
5598 (GLIBC_2.30): Likewise.
5599 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
5600 (GLIBC_2.30): Likewise.
5601 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
5602 (GLIBC_2.30): Likewise.
5603 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
5604 Likewise.
5605 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
5606 (GLIBC_2.30): Likewise.
5607 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
5608 (GLIBC_2.30): Likewise.
5609 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
5610 (GLIBC_2.30): Likewise.
5611 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
5612 (GLIBC_2.30): Likewise.
5613 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
5614 Likewise.
5615 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
5616 Likewise.
5617 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
5618 Likewise.
5619 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
5620 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
5621 Likewise.
5622 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
5623 Likewise.
5624 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
5625 Likewise.
5626 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
5627 Likewise.
5628 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
5629
5630 2019-02-08 Florian Weimer <fweimer@redhat.com>
5631
5632 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
5633 compatibility symbols.
5634
5635 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
5636
5637 [BZ #24180]
5638 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
5639 Add compiler barriers and comments.
5640
5641 2019-02-07 Florian Weimer <fweimer@redhat.com>
5642
5643 * include/array_length.h (array_length): Do not use a statement
5644 expression and _Static_assert, so that array_length can be used at
5645 file scope and as a constant expression.
5646
5647 2019-02-07 Florian Weimer <fweimer@redhat.com>
5648
5649 * support/xdlfcn.h (xdlmopen): Declare.
5650 * support/xdlmopen.c: New file.
5651 * support/Makefile (libsupport-routines): Add xdlmopen.
5652
5653 2019-02-06 Joseph Myers <joseph@codesourcery.com>
5654
5655 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
5656 before return type, without separate inline.
5657 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
5658 * elf/dl-tunables.h (tunable_is_name): Likewise.
5659 * malloc/malloc.c (do_set_trim_threshold): Likewise.
5660 (do_set_top_pad): Likewise.
5661 (do_set_mmap_threshold): Likewise.
5662 (do_set_mmaps_max): Likewise.
5663 (do_set_mallopt_check): Likewise.
5664 (do_set_perturb_byte): Likewise.
5665 (do_set_arena_test): Likewise.
5666 (do_set_arena_max): Likewise.
5667 (do_set_tcache_max): Likewise.
5668 (do_set_tcache_count): Likewise.
5669 (do_set_tcache_unsorted_limit): Likewise.
5670 * nis/nis_subr.c (count_dots): Likewise.
5671 * nptl/allocatestack.c (advise_stack_range): Likewise.
5672 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
5673 (do_sin): Likewise.
5674 (reduce_sincos): Likewise.
5675 (do_sincos): Likewise.
5676 * sysdeps/unix/sysv/linux/x86/elision-conf.c
5677 (do_set_elision_enable): Likewise.
5678 (TUNABLE_CALLBACK_FNDECL): Likewise.
5679
5680 2019-02-06 Florian Weimer <fweimer@redhat.com>
5681
5682 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
5683 (xdlsym): Use dlerror to detect a NULL symbol.
5684
5685 2019-02-06 Florian Weimer <fweimer@redhat.com>
5686
5687 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
5688 <stap-probe.h>.
5689 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
5690
5691 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
5692
5693 * libio/tst-bz24153.c (wide): Use wide char format specifier.
5694
5695 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
5696
5697 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
5698 __wmemcmp and weak alias to wmemcmp.
5699
5700 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
5701
5702 [BZ #23403]
5703 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
5704 TLS_TCB_AT_TP tls variant.
5705 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
5706 Add alignment checks.
5707 * support/Makefile (libsupport-routines): Add xposix_memalign and
5708 xpthread_setstack.
5709 * support/support.h: Add xposix_memalign.
5710 * support/xthread.h: Add xpthread_attr_setstack.
5711 * support/xposix_memalign.c: New File.
5712 * support/xpthread_attr_setstack.c: Likewise.
5713
5714 2019-02-05 Florian Weimer <fweimer@redhat.com>
5715
5716 [BZ #24164]
5717 arm: Use "nr" constraint for Systemtap probes, to avoid the
5718 compiler using memory operands for constants, due to the "o"
5719 alternative in the default "nor" constraint.
5720 * include/stap-probe.h [USE_STAP_PROBE]: Include
5721 <stap-probe-machine.h>
5722 * sysdeps/generic/stap-probe-machine.h: New file.
5723 * sysdeps/arm/stap-probe-machine.h: Likewise.
5724
5725 2019-02-04 Joseph Myers <joseph@codesourcery.com>
5726
5727 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
5728 with 0, not tcache->entries[tc_idx].
5729
5730 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
5731 once.
5732
5733 2019-02-04 Andreas Schwab <schwab@suse.de>
5734
5735 [BZ #16976]
5736 [BZ #17396]
5737 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
5738 looking up collating elements match against (wide) character
5739 sequence instead of name. Correct alignment adjustment.
5740 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
5741 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
5742 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
5743 (LOCALES): Add cs_CZ.ISO-8859-2.
5744 * posix/tst-fnmatch4.c: New file.
5745 * posix/tst-fnmatch5.c: New file.
5746 * include/wchar.h (__wmemcmp): Declare.
5747 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
5748 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
5749 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
5750 * sysdeps/s390/wmemcmp.c: Likewise.
5751
5752 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
5753
5754 [BZ #24155]
5755 CVE-2019-7309
5756 * NEWS: Updated for CVE-2019-7309.
5757 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
5758 upper 32 bits of RDX register for x32. Use unsigned Jcc
5759 instructions, instead of signed.
5760 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
5761 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
5762
5763 2019-02-04 Florian Weimer <fweimer@redhat.com>
5764
5765 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
5766 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
5767 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
5768 Likewise.
5769 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
5770 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
5771 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
5772 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
5773 Likewise.
5774 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
5775 Likewise.
5776 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
5777 Likewise.
5778 (posix_spawn_file_actions_addopen): Likewise.
5779 (posix_spawn_file_actions_addclose): Likewise.
5780 (posix_spawn_file_actions_adddup2): Likewise.
5781 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
5782 qualifiers.
5783 (posix_spawn_file_actions_addfchdir_np): Likewise.
5784
5785 2019-02-04 David Newall <glibc@davidnewall.com>
5786
5787 elf: Implement --preload option for the dynamic linker.
5788 * elf/rtld.c (preloadarg): New variable.
5789 (handle_preload_list): Pass through “where” argument to
5790 do_preload.
5791 (dl_main): Handle "--preload" and add second call to
5792 handle_preload_list.
5793 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
5794 (tst-rtld-preload-OBJS): Set variable.
5795 (tst-rtld-preload.out): New target.
5796 * elf/tst-rtld-preload.sh: New file.
5797
5798 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
5799
5800 * Makefile (testrun.sh): Exit in case of incorrect argument.
5801
5802 2019-02-04 Florian Weimer <fweimer@redhat.com>
5803
5804 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
5805 alignment gaps.
5806
5807 2019-02-03 Florian Weimer <fweimer@redhat.com>
5808
5809 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
5810 implicit overflow checks.
5811
5812 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
5813
5814 * stdlib/isomac.c: Include <unistd.h>.
5815
5816 2019-02-03 Florian Weimer <fweimer@redhat.com>
5817
5818 * include/time.h (__tzfile_default): Use int, not long int, for
5819 the GMT offsets.
5820 * time/tzfile.c (struct ttinfo): Change type of the offset member
5821 to int.
5822 (__tzfile_read): Remove useless cast.
5823 (__tzfile_default): Adjust prototype.
5824 * time/tzset.c (tz_rule): Change type of the offset member to int.
5825 (parse_offset): Change the type of the sign variable to int.
5826
5827 2019-02-03 Florian Weimer <fweimer@redhat.com>
5828
5829 [BZ #24153]
5830 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
5831 * libio/getchar.c (getchar): Likewise.
5832 * libio/getchar_u.c (getchar_unlocked): Likewise.
5833 * libio/getwchar.c (getwchar): Likewise.
5834 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
5835 * libio/iogets.c (_IO_gets): Likewise.
5836 * libio/vscanf.c (_IO_vscanf): Likewise.
5837 * libio/vwscanf.c (__vwscanf): Likewise.
5838 * libio/tst-bz24153.c: New file.
5839 * libio/Makefile (tests): Add it.
5840
5841 2019-02-02 Florian Weimer <fweimer@redhat.com>
5842
5843 [BZ #14829]
5844 * manual/resource.texi (Basic Scheduling Functions): Add
5845 portability note. Change process to task throughout the section.
5846 Remove incorrect comment about sched_yield as it affects
5847 tasks/threads, not entire processes.
5848 * sysdeps/unix/sysv/linux/bits/posix_opt.h
5849 (_POSIX_PRIORITY_SCHEDULING): Update comment.
5850
5851 2019-02-01 Joseph Myers <joseph@codesourcery.com>
5852
5853 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
5854 * configure: Regenerated.
5855 * manual/install.texi (Tools for Compilation): Update minimum GCC
5856 version.
5857 * INSTALL: Regenerated.
5858
5859 2019-02-01 Florian Weimer <fweimer@redhat.com>
5860
5861 * support/support_test_compare_string.c
5862 (support_test_compare_string): Use "string" in error message.
5863 * support/tst-test_compare_string.c (do_test): Adjust.
5864
5865 2019-02-01 Florian Weimer <fweimer@redhat.com>
5866
5867 * support/support_format_address_family.c
5868 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
5869
5870 2019-02-01 Florian Weimer <fweimer@redhat.com>
5871
5872 * manual/socket.texi (Internet Address Formats): Clarify the byte
5873 order of struct sockaddr_in, struct sockaddr_in6. Document
5874 sin6_flowinfo and sin6_scope_id.
5875
5876 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
5877
5878 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
5879 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
5880 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
5881 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
5882 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
5883 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
5884
5885 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
5886
5887 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
5888 [!MEMCHR](MEMCHR): Set to __memchr.
5889 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
5890 Add memchr_generic and memchr_nosimd.
5891 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
5892 (__libc_ifunc_impl_list): Add memchr ifuncs.
5893 * sysdeps/aarch64/multiarch/memchr.c: New file.
5894 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
5895 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
5896
5897 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
5898
5899 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
5900 Add memset_emag.
5901 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
5902 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
5903 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
5904 Add IS_EMAG check for ifunc dispatch.
5905 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
5906 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
5907
5908 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
5909
5910 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
5911 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
5912 Add emag.
5913 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
5914 New macro.
5915
5916 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
5917
5918 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
5919
5920 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
5921
5922 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
5923 syscall-template file.
5924
5925 2019-01-31 Carlos O'Donell <carlos@redhat.com>
5926 Torvald Riegel <triegel@redhat.com>
5927 Rik Prohaska <prohaska7@gmail.com>
5928
5929 [BZ# 23844]
5930 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
5931 tst-rwlock-trywrlock-stall.
5932 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
5933 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
5934 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
5935 Set __wrphase_fute to 1 only if we started the write phase.
5936 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
5937 * nptl/tst-rwlock-trywrlock-stall.c: New file.
5938 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
5939 * support/xpthread_rwlock_destroy.c: New file.
5940 * support/xthread.h: Declare xpthread_rwlock_destroy.
5941
5942 2019-02-01 Joseph Myers <joseph@codesourcery.com>
5943
5944 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
5945 version to 4.0.2.
5946
5947 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
5948
5949 [BZ #24051]
5950 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
5951 * libio/fileops.c (_IO_new_file_underflow): Likewise
5952 * libio/wfileops.c (_IO_wfile_underflow): Likewise
5953 * libio/putchar.c (putchar): Likewise.
5954 * libio/putchar_u.c (putchar_unlocked): Likewise.
5955 * libio/putwchar.c (putchar): Likewise.
5956 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
5957 * libio/tst-bz24051.c: New test.
5958 * libio/Makefile (tests): Add tst-bz24051
5959
5960 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
5961
5962 CVE-2019-9169
5963 regex: fix read overrun [BZ #24114]
5964 Problem found by AddressSanitizer, reported by Hongxu Chen in:
5965 https://debbugs.gnu.org/34140
5966 * posix/regexec.c (proceed_next_node):
5967 Do not read past end of input buffer.
5968
5969 2019-01-31 Florian Weimer <fweimer@redhat.com>
5970
5971 [BZ #24059]
5972 * nss/nss_files/files-alias.c (get_next_alias): Handle
5973 continuation line without newline at the end.
5974 * nss/tst-nss-files-alias-truncated.c: New file.
5975 * nss/Makefile [$(build-shared)] (tests): Add
5976 tst-nss-files-alias-truncated.
5977 (tst-nss-files-alias-truncated): Link with libnss_files.so.
5978 * support/namespace.h (struct support_chroot_configuration): Add
5979 aliases member.
5980 (struct support_chroot): Add path_aliases member.
5981 * support/support_chroot.c (support_chroot_create): Handle
5982 aliases.
5983 (support_chroot_free): Free path_aliases.
5984
5985 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
5986
5987 * version.h (RELEASE): Set to "development".
5988 (VERSION): Set to "2.29.9000".
5989 * NEWS: Add section for 2.30.
5990
5991 * version.h (RELEASE): Set to "stable".
5992 (VERSION): Set to "2.29".
5993 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
5994
5995 * NEWS: Add the list of bugs fixed in 2.29.
5996 * manual/contrib.texi: Update contributors list with some more
5997 names.
5998 * manual/install.texi: Update latest versions of packages
5999 tested.
6000 * INSTALL: Regenerated.
6001
6002 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
6003
6004 * po/be.po: Update translations.
6005 * po/bg.po: Likewise.
6006 * po/ca.po: Likewise.
6007 * po/cs.po: Likewise.
6008 * po/da.po: Likewise.
6009 * po/de.po: Likewise.
6010 * po/el.po: Likewise.
6011 * po/eo.po: Likewise.
6012 * po/es.po: Likewise.
6013 * po/fi.po: Likewise.
6014 * po/fr.po: Likewise.
6015 * po/gl.po: Likewise.
6016 * po/hr.po: Likewise.
6017 * po/hu.po: Likewise.
6018 * po/ia.po: Likewise.
6019 * po/id.po: Likewise.
6020 * po/it.po: Likewise.
6021 * po/ja.po: Likewise.
6022 * po/ko.po: Likewise.
6023 * po/lt.po: Likewise.
6024 * po/nb.po: Likewise.
6025 * po/nl.po: Likewise.
6026 * po/pl.po: Likewise.
6027 * po/pt_BR.po: Likewise.
6028 * po/ru.po: Likewise.
6029 * po/rw.po: Likewise.
6030 * po/sk.po: Likewise.
6031 * po/sl.po: Likewise.
6032 * po/sv.po: Likewise.
6033 * po/tr.po: Likewise.
6034 * po/uk.po: Likewise.
6035 * po/vi.po: Likewise.
6036 * po/zh_CN.po: Likewise.
6037 * po/zh_TW.po: Likewise.
6038
6039 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
6040
6041 [BZ #24130]
6042 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
6043 of $f3 register on $y_is_neg path.
6044
6045 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
6046
6047 [BZ #24110]
6048 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
6049 sigaltstack.ss_flags.
6050
6051 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
6052
6053 [BZ #23758]
6054 * manual/time.texi (strftime): Document "%Ey".
6055 * time/strftime_l.c (__strftime_internal): Set the default width
6056 padding with zero of "%Ey" to 2.
6057
6058 [BZ #24096]
6059 * manual/time.texi (strftime): Document "%EC" and "%EY".
6060 * time/Makefile (tests): Add tst-strftime2.
6061 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
6062 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
6063 override padding for "%Ey".
6064 If an optional flag ('_' or '-') is specified to "%EY", interpret the
6065 "%Ey" in the subformat as if decorated with that flag.
6066 * time/tst-strftime2.c: New file.
6067
6068 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6069
6070 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
6071 are not defined.
6072
6073 [BZ #24122]
6074 * elf/Makefile (tests): Add tst-audit13.
6075 (modules-names): Add tst-audit13mod1.
6076 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
6077 rule.
6078 * elf/rtld.c (dl_main): Handle invalid audit module version.
6079 * elf/tst-audit13.c: New file.
6080 * elf/tst-audit13mod1.c: Likewise.
6081
6082 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
6083
6084 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
6085 returned by __hurd_at_flags.
6086 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
6087 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
6088 directly instead of __hurd_file_name_lookup.
6089
6090 2019-01-21 Joseph Myers <joseph@codesourcery.com>
6091
6092 * scripts/build-many-glibcs.py (Context.checkout): Default
6093 binutils version to 2.32 branch.
6094
6095 2019-01-21 Florian Weimer <fweimer@redhat.com>
6096
6097 [BZ #20018]
6098 CVE-2016-10739
6099 resolv: Reject trailing characters in host names
6100 * include/arpa/inet.h (__inet_aton_exact): Declare.
6101 (inet_aton): Remove hidden prototype. No longer used internally.
6102 * nscd/gai.c (__inet_aton): Do not define.
6103 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
6104 * nss/digits_dots.c (__inet_aton): Likewise.
6105 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
6106 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
6107 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
6108 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
6109 (tst-resolv-trailing): Likewise.
6110 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
6111 libc.
6112 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
6113 Make static. Add endp parameter.
6114 (__inet_aton_exact): New function.
6115 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
6116 (__inet_addr): Call inet_aton_end.
6117 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
6118 not just IPv6. Call __inet_aton_exact.
6119 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
6120 (tests): Make const. Add additional test cases with trailing
6121 characters.
6122 (do_test): Use array_length.
6123 * resolv/tst-inet_aton_exact.c: New file.
6124 * resolv/tst-resolv-trailing.c: Likewise.
6125 * resolv/tst-resolv-nondecimal.c: Likewise.
6126 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
6127
6128 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6129
6130 [BZ# 24097]
6131 CVE-2019-6488
6132 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
6133 Clear the upper 32 bits of RSI register.
6134 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
6135 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
6136 and tst-size_t-wcsnlen.
6137 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
6138 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
6139
6140 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6141
6142 [BZ# 24097]
6143 CVE-2019-6488
6144 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
6145 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
6146 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
6147 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
6148 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
6149
6150 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6151
6152 [BZ# 24097]
6153 CVE-2019-6488
6154 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
6155 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
6156 * sysdeps/x86_64/strcmp.S: Likewise.
6157 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
6158 tst-size_t-strncmp and tst-size_t-wcsncmp.
6159 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
6160 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
6161 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
6162
6163 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6164
6165 [BZ# 24097]
6166 CVE-2019-6488
6167 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
6168 RDX_LP for length. Clear the upper 32 bits of RDX register.
6169 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
6170 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
6171 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
6172 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
6173
6174 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6175
6176 [BZ# 24097]
6177 CVE-2019-6488
6178 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
6179 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
6180 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
6181 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
6182
6183 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6184
6185 [BZ# 24097]
6186 CVE-2019-6488
6187 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
6188 length. Clear the upper 32 bits of RDX register.
6189 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
6190 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
6191 Likewise.
6192 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
6193 Likewise.
6194 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
6195 tst-size_t-wmemchr.
6196 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
6197
6198 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6199
6200 [BZ# 24097]
6201 CVE-2019-6488
6202 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
6203 length. Clear the upper 32 bits of RDX register.
6204 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
6205 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
6206 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
6207 tst-size_t-wmemcmp.
6208 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
6209 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
6210
6211 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6212
6213 [BZ# 24097]
6214 CVE-2019-6488
6215 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
6216 upper 32 bits of RDX register.
6217 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
6218 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
6219 tst-size_t-wmemchr.
6220 * sysdeps/x86_64/x32/test-size_t.h: New file.
6221 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
6222 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
6223
6224 2019-01-18 Florian Weimer <fweimer@redhat.com>
6225
6226 [BZ #24112]
6227 resolv: Do not send queries for non-host-names in nss_dns.
6228 * resolv/nss_dns/dns-host.c (check_name): New function.
6229 (_nss_dns_gethostbyname2_r): Use it.
6230 (_nss_dns_gethostbyname_r): Likewise.
6231 (_nss_dns_gethostbyname4_r): Likewise.
6232
6233 2019-01-21 Florian Weimer <fweimer@redhat.com>
6234
6235 * resolv/inet_addr.c: Reformat to GNU style.
6236 (__inet_addr, __inet_aton): Update comment.
6237
6238 2019-01-18 Florian Weimer <fweimer@redhat.com>
6239
6240 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
6241 ("malloc: Use current (C11-style) atomics for fastbin access").
6242 This commit introduces a substantial performance regression on
6243 POWER and Aarch64.
6244 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
6245 (REMOVE_FB): Define.
6246 (_int_malloc): Use it and reindent.
6247 (_int_free): Use CAS loop with
6248 catomic_compare_and_exchange_val_rel.
6249 (malloc_consolidate): Use atomic_exchange_acq.
6250
6251
6252 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
6253
6254 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
6255 -Wl,-z,now.
6256 (LDFLAGS-tst-minsigstksz-2): Likewise.
6257 (LDFLAGS-tst-minsigstksz-3): Likewise.
6258 (LDFLAGS-tst-minsigstksz-3a): Likewise.
6259 (LDFLAGS-tst-minsigstksz-4): Likewise.
6260
6261 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
6262
6263 * manual/time.texi (strftime): Fix the wording to "alternative" rather
6264 than "alternate".
6265
6266 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
6267
6268 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
6269
6270 2019-01-16 Zack Weinberg <zackw@panix.com>
6271
6272 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
6273 (xget_sigstack_location): New test support functions.
6274 * support/xsigstack.c: New file, implementing them.
6275 * support/tst-xsigstack.c: New test for them.
6276 * support/Makefile: Update.
6277
6278 * signal/tst-minsigstksz-1.c
6279 * signal/tst-minsigstksz-2.c
6280 * signal/tst-minsigstksz-3.c
6281 * signal/tst-minsigstksz-3a.c
6282 * signal/tst-minsigstksz-4.c: New tests.
6283 * signal/Makefile: Run them.
6284
6285 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
6286
6287 * po/libc.pot: Regenerate.
6288
6289 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
6290
6291 * math/libm-test-fma.inc (fma_test_data): Set
6292 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
6293
6294 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
6295
6296 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
6297 (do_test): Changed __vector __int128_t to __vector unsigned int.
6298
6299 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6300
6301 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
6302 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
6303 stpcpy-avx2 and stpncpy-avx2.
6304 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
6305 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
6306 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
6307 and __stpncpy_avx2.
6308 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
6309 ifunc-strcpy.h}: rename header for a more generic name.
6310 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
6311 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
6312 AVX unaligned load is fast and vzeroupper is preferred.
6313 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
6314 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
6315 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
6316 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
6317 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
6318 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
6319
6320 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
6321
6322 * argp/argp-help.c: Fix typo in comment.
6323 * misc/sys/cdefs.h: Likewise.
6324 * posix/regexec.c (sift_states_iter_mb): Likewise.
6325 * socket/sockatmark.c: Likewise.
6326 * socket/sys/socket.h: Likewise.
6327 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
6328 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
6329 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
6330 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
6331 * sysdeps/unix/sockatmark.c: Likewise.
6332 * time/strptime_l.c: Likewise.
6333
6334 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
6335
6336 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
6337 missing space after the cast of "_NL_CURRENT".
6338
6339 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
6340
6341 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
6342 ifdef to fix read of VSCR.
6343 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
6344 tst-ucontext-ppc64-vscr.c to test list.
6345 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
6346
6347 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
6348
6349 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
6350 fall-through.
6351
6352 2019-01-09 Jim Wilson <jimw@sifive.com>
6353
6354 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
6355
6356 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
6357
6358 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
6359 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
6360 __memcpy_falkor for ares.
6361 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
6362 Add new define.
6363 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
6364 Add ares cpu.
6365
6366 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
6367
6368 [BZ #24066]
6369 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
6370 4_FP_W_TYPEs are used for IEEE quad precision.
6371 * soft-fp/extendhftf2.c: Likewise.
6372 * soft-fp/extendsftf2.c: Likewise.
6373 * soft-fp/extendxftf2.c: Likewise.
6374 * soft-fp/trunctfdf2.c: Likewise.
6375 * soft-fp/trunctfhf2.c: Likewise.
6376 * soft-fp/trunctfsf2.c: Likewise.
6377 * soft-fp/trunctfxf2.c: Likewise.
6378 * sysdeps/alpha/ots_cvttx.c: Likewise.
6379 * sysdeps/alpha/ots_cvtxt.c: Likewise.
6380 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
6381 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
6382 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
6383 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
6384 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
6385 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
6386 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
6387 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
6388 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
6389 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
6390 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
6391 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
6392 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
6393 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
6394 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
6395 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
6396
6397 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
6398
6399 [BZ #24024]
6400 * Makeconfig: Build libm with -fno-math-errno but build the remaining
6401 code with -fmath-errno.
6402 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
6403 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
6404 * string/test-strerror-errno.c: New file.
6405
6406 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
6407
6408 [BZ #24046]
6409 * localedata/locales/en_US (date_fmt): Add, set to
6410 "%a %d %b %Y %r %Z".
6411
6412 2019-01-07 Florian Weimer <fweimer@redhat.com>
6413
6414 [BZ #24063]
6415 * manual/arith.texi (Math Error Reporting): Use @code{errno}
6416 instead of @var{errno}.
6417 (Parsing of Integers): Likewise.
6418 (Parsing of Floats): Likewise.
6419 * manual/filesys.texi (Working with Directory Trees): Likewise.
6420 (Temporary Files): Likewise.
6421 * manual/job.texi (Terminal Access Functions): Likewise.
6422 * manual/llio.texi (Synchronizing I/O): Likewise.
6423 * manual/math.texi (SVID Random): Likewise.
6424 * manual/message.texi (The catgets Functions): Likewise.
6425 (Translation with gettext): Likewise.
6426 (Locating gettext catalog): Likewise.
6427 (Charset conversion in gettext): Likewise.
6428 * manual/nss.texi (NSS Module Function Internals): Likewise.
6429 * manual/search.texi (Hash Search Function): Likewise.
6430 * manual/setjmp.texi (System V contexts): Likewise.
6431 * manual/time.texi (Sleeping): Likewise.
6432 * manual/users.texi (Lookup User): Likewise.
6433 (Lookup Group): Likewise.
6434
6435 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6436
6437 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
6438 fix typo.
6439
6440 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
6441
6442 [BZ #19444]
6443 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
6444 __builtin_unreachable for default case in switch.
6445 (__ieee754_yn): Likewise.
6446 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
6447 (__ieee754_ynl): Likewise.
6448 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
6449 (__ieee754_ynl): Likewise.
6450 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
6451 (__ieee754_ynl): Likewise.
6452
6453 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
6454
6455 * manual/maint.texi: Use @{ and @}.
6456
6457 2019-01-04 Florian Weimer <fweimer@redhat.com>
6458
6459 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
6460 function.
6461 (do_in_chroot_1): Call it.
6462 (run_chroot_tests):
6463 Improve error reporting in case it is not possible to create a
6464 collision for the PTY name required by the test.
6465
6466 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6467
6468 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
6469 lll_wait_tid with timeout.
6470 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
6471 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
6472 futex_reltimed_wait_cancelable for cancelabla mode.
6473 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
6474 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
6475 macros.
6476 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
6477 * sysdeps/posix/waitid.c (__sigwait): Likewise.
6478 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
6479 SYSCALL_CANCEL_NCS): New macro.
6480 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
6481 (lll_timedwait_tid): Remove macro.
6482 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
6483 Likewise.
6484 (lll_timedwait_tid): Likewise.
6485 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
6486 Likewise.
6487 (lll_timedwait_tid): Likewise.
6488 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
6489 Likewise.
6490 (lll_timedwait_tid): Likewise.
6491 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
6492 Use INTERNAL_SYSCALL_CANCEL.
6493 * sysdeps/unix/sysv/linux/futex-internal.h
6494 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
6495 instead of __pthread_{enable,disable}_asynccancel.
6496 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
6497 (lll_futex_wait_cancel): New macro.
6498
6499 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
6500 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
6501
6502 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
6503 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
6504
6505 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
6506 in backtrace analysis.
6507 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
6508 side-effects.
6509 (tf_send): Likewise.
6510
6511 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
6512 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
6513 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
6514 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
6515 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
6516 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
6517 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
6518 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
6519 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
6520 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
6521 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
6522 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
6523 Likewise.
6524 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
6525 tst-cancel-wrappers.sh.
6526 (generated): Remove tst-cancel-wrappers.out.
6527 (tst-cancel-wrappers.out): Remove rule.
6528 * nptl/tst-cancel-wrappers.sh: Remove file.
6529
6530 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
6531
6532 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
6533 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
6534 Update.
6535
6536 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6537
6538 [BZ #23640]
6539 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
6540 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
6541 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
6542 close-on-exec reset for adddup2 file action.
6543 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
6544
6545 2019-01-03 Zack Weinberg <zackw@panix.com>
6546
6547 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
6548 parameter. Only use deprecated scanf when __USE_GNU is defined
6549 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
6550 than 201103L, whichever is relevant for the language being compiled.
6551
6552 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
6553 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
6554 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
6555 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
6556 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
6557
6558 * libio/iovsscanf.c
6559 * libio/fwscanf.c
6560 * libio/iovswscanf.c
6561 * libio/swscanf.c
6562 * libio/vscanf.c
6563 * libio/vwscanf.c
6564 * libio/wscanf.c
6565 * stdio-common/fscanf.c
6566 * stdio-common/scanf.c
6567 * stdio-common/vfscanf.c
6568 * stdio-common/vfwscanf.c
6569 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
6570 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
6571 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
6572 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
6573 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
6574 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
6575 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
6576 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
6577 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
6578 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
6579 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
6580 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
6581 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
6582 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
6583 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
6584
6585 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
6586 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
6587 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
6588 not sscanf.
6589 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
6590 with a preprocessor macro.
6591
6592 * stdio-common/bug21.c, stdio-common/scanf14.c:
6593 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
6594 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
6595 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
6596 to xscanf, xfscanf, xsscanf.
6597
6598 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
6599 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
6600 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
6601 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
6602 xfscanf, xsscanf.
6603 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
6604 override feature selection macros or provide definitions of u_char etc.
6605 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
6606 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
6607 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
6608 with -std=gnu89.
6609
6610 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6611
6612 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6613 bits/termios-misc.h.
6614 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
6615 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
6616 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
6617 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
6618 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
6619 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
6620
6621 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
6622 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
6623 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
6624 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
6625 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
6626 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
6627 termios-misc.h.
6628 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
6629 (sysdep_headers): Add termios-misc.h.
6630
6631 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
6632 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
6633 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
6634
6635 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6636 termios-tcflow.h.
6637 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
6638 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
6639 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
6640 TCSAFLUSH): Move to termios-tcflow.h.
6641 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
6642 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
6643 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
6644 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
6645
6646 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6647 termios-c_lflag.h.
6648 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
6649 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
6650 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
6651 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
6652 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
6653 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
6654 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
6655 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
6656 Likewise.
6657 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
6658 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
6659 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
6660 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
6661
6662 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6663 termios-c_cflag.h.
6664 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
6665 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
6666 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
6667 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
6668 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
6669 termios-c_cflag.h.
6670 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
6671 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
6672 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
6673 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
6674
6675 [BZ #23783]
6676 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6677 termios-baud.h.
6678 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
6679 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
6680 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
6681 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
6682 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
6683 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
6684 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
6685 __MAX_BAUD): Move to termios-baud.h.
6686 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
6687 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
6688 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
6689 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
6690 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
6691
6692 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
6693 termios-c_oflag.h.
6694 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
6695 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
6696 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
6697 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
6698 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
6699 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
6700 termios-c_oflag.h.
6701 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
6702 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
6703 FFR1): Likewise.
6704 [USE_MISC] (XTABS): Likewise.
6705 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
6706 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
6707 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
6708 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
6709
6710 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
6711 termios-c_iflag.h.
6712 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
6713 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
6714 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
6715 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
6716 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
6717 IUTF8): Move to termios-c_iflag.h.
6718 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
6719 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
6720 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
6721 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
6722
6723 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
6724 termios-cc.h.
6725 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
6726 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
6727 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
6728 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
6729 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
6730 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
6731 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
6732 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
6733 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
6734 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
6735 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
6736 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
6737
6738 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
6739 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
6740 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
6741 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
6742 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6743 termios-struct.h.
6744 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
6745 termios-struct.h.
6746 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
6747 Likewise.
6748 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
6749 Likewise.
6750 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
6751 Likewise.
6752 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
6753 Likewise.
6754 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
6755 _HAVE_C_OSPEED): Define.
6756 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
6757 _HAVE_C_OSPEED): Likewise.
6758 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
6759 _HAVE_C_OSPEED): Likewise.
6760 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
6761 (cfsetospeed): Check for define value instead of existence.
6762 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
6763 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
6764 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
6765 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
6766 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
6767
6768 [BZ #17783]
6769 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
6770 Define.
6771 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
6772 (TIOCSER_TEMT): Likewise.
6773 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
6774 (TEOCSER_TEMT): Likewise.
6775
6776 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
6777
6778 [BZ #24011]
6779 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
6780
6781 2019-01-02 Joseph Myers <joseph@codesourcery.com>
6782
6783 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
6784
6785 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
6786
6787 * sysdeps/htl/pt-barrierattr-setpshared.c
6788 (pthread_barrierattr_setpshared): Add stub warning.
6789 * sysdeps/htl/pt-condattr-setpshared.c
6790 (pthread_condattr_setpshared): Likewise.
6791 * sysdeps/htl/pt-mutexattr-setpshared.c
6792 (pthread_mutexattr_setpshared): Likewise.
6793 * sysdeps/htl/pt-rwlockattr-setpshared.c
6794 (pthread_rwlockattr_setpshared): Likewise.
6795 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
6796 (pthread_mutexattr_setpshared): Likewise.
6797
6798 2019-01-02 Joseph Myers <joseph@codesourcery.com>
6799
6800 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
6801 constants to match with Linux 4.20.
6802
6803 * sysdeps/mips/mips32/libm-test-ulps: Update.
6804 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
6805
6806 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
6807
6808 [BZ #24034]
6809 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
6810 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
6811 than __typeof (...) for the a_ptr variable.
6812
6813 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6814
6815 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
6816 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
6817 * libio/Makefile (tests): Add tst-sprintf-ub and
6818 tst-sprintf-chk-ub.
6819 (CFLAGS-tst-sprintf-ub.c): New variable.
6820 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
6821 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
6822 destination buffer and check for overflows in fortified mode.
6823 * libio/libioP.h (PRINTF_CHK): New macro.
6824 * libio/tst-sprintf-chk-ub.c: New file.
6825 * libio/tst-sprintf-ub.c: Likewise.
6826
6827 2019-01-02 Florian Weimer <fweimer@redhat.com>
6828
6829 [BZ #24018]
6830 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
6831 failure.
6832
6833 2019-01-02 Florian Weimer <fweimer@redhat.com>
6834
6835 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
6836
6837 2019-01-01 Joseph Myers <joseph@codesourcery.com>
6838
6839 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
6840 macro.
6841
6842 * sysdeps/unix/sysv/linux/netpacket/packet.h
6843 (PACKET_IGNORE_OUTGOING): New macro.
6844
6845 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
6846 macro.
6847
6848 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
6849 version to 4.20.
6850 (riscv_flush_icache): New syscall.
6851
6852 * manual/texinfo.tex: Update to version 2018-12-28.17 with
6853 trailing whitespace removed.
6854 * scripts/config.guess: Update to version 2019-01-01.
6855 * scripts/config.sub: Update to version 2019-01-01.
6856 * scripts/move-if-change: Update from gnulib.
6857
6858 * NEWS: Update copyright dates.
6859 * catgets/gencat.c (print_version): Likewise.
6860 * csu/version.c (banner): Likewise.
6861 * debug/catchsegv.sh: Likewise.
6862 * debug/pcprofiledump.c (print_version): Likewise.
6863 * debug/xtrace.sh (do_version): Likewise.
6864 * elf/ldconfig.c (print_version): Likewise.
6865 * elf/ldd.bash.in: Likewise.
6866 * elf/pldd.c (print_version): Likewise.
6867 * elf/sotruss.sh: Likewise.
6868 * elf/sprof.c (print_version): Likewise.
6869 * iconv/iconv_prog.c (print_version): Likewise.
6870 * iconv/iconvconfig.c (print_version): Likewise.
6871 * locale/programs/locale.c (print_version): Likewise.
6872 * locale/programs/localedef.c (print_version): Likewise.
6873 * login/programs/pt_chown.c (print_version): Likewise.
6874 * malloc/memusage.sh (do_version): Likewise.
6875 * malloc/memusagestat.c (print_version): Likewise.
6876 * malloc/mtrace.pl: Likewise.
6877 * manual/libc.texinfo: Likewise.
6878 * nptl/version.c (banner): Likewise.
6879 * nscd/nscd.c (print_version): Likewise.
6880 * nss/getent.c (print_version): Likewise.
6881 * nss/makedb.c (print_version): Likewise.
6882 * posix/getconf.c (main): Likewise.
6883 * scripts/test-installation.pl: Likewise.
6884 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
6885
6886 * All files with FSF copyright notices: Update copyright dates
6887 using scripts/update-copyrights.
6888 * locale/programs/charmap-kw.h: Regenerated.
6889 * locale/programs/locfile-kw.h: Likewise.
6890
6891 2018-12-31 Joseph Myers <joseph@codesourcery.com>
6892
6893 * timezone/zdump.c: Update from tzcode 2018i.
6894 * timezone/zic.c: Likewise.
6895
6896 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
6897
6898 regex: improve Gnulib port to AIX
6899 From the glibc point of view, this removes duplicate macro
6900 definitions and is obviously safe.
6901 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
6902 * posix/regex_internal.h:
6903 (__attribute__, __attribute_warn_unused_result__):
6904 Remove; already defined elsewhere.
6905
6906 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
6907
6908 [BZ #24027]
6909 * malloc/malloc.c (_int_realloc): Always call memcpy for the
6910 copying operation. (ncopies had the wrong type, resulting in an
6911 integer wraparound and too few elements being copied.)
6912
6913 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
6914
6915 [BZ #24022]
6916 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
6917 <asm/syscalls.h> exists with __has_include__ before including it.
6918
6919 2018-12-31 Joseph Myers <joseph@codesourcery.com>
6920
6921 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
6922 version to 4.20.
6923
6924 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
6925
6926 * hurd/lookup-retry: Include <unistd.h>.
6927 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
6928 Release it on return. Handle "pid" magical lookup retry.
6929
6930 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
6931
6932 [BZ #10496]
6933 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
6934 (t_fmt_ampm): Likewise.
6935 * localedata/locales/aa_ER (t_fmt): Likewise.
6936 (t_fmt_ampm): Likewise.
6937 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
6938 (t_fmt_ampm): Likewise.
6939 * localedata/locales/aa_ET (t_fmt): Likewise.
6940 (t_fmt_ampm): Likewise.
6941 * localedata/locales/am_ET (t_fmt): Likewise.
6942 (t_fmt_ampm): Likewise.
6943 * localedata/locales/byn_ER (t_fmt): Likewise.
6944 (t_fmt_ampm): Likewise.
6945 * localedata/locales/om_ET (t_fmt): Likewise.
6946 (t_fmt_ampm): Likewise.
6947 * localedata/locales/sid_ET (t_fmt): Likewise.
6948 (t_fmt_ampm): Likewise.
6949 * localedata/locales/so_DJ (t_fmt): Likewise.
6950 (t_fmt_ampm): Likewise.
6951 * localedata/locales/so_ET (t_fmt): Likewise.
6952 (t_fmt_ampm): Likewise.
6953 * localedata/locales/so_SO (t_fmt): Likewise.
6954 (t_fmt_ampm): Likewise.
6955 * localedata/locales/ti_ER (t_fmt): Likewise.
6956 (t_fmt_ampm): Likewise.
6957 * localedata/locales/ti_ET (t_fmt): Likewise.
6958 (t_fmt_ampm): Likewise.
6959 * localedata/locales/tig_ER (t_fmt): Likewise.
6960 (t_fmt_ampm): Likewise.
6961 * localedata/locales/wal_ET (t_fmt): Likewise.
6962 (t_fmt_ampm): Likewise.
6963
6964 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
6965 * localedata/locales/ar_IN (t_fmt): Likewise.
6966 * localedata/locales/bhb_IN (t_fmt): Likewise.
6967 * localedata/locales/bho_IN (t_fmt): Likewise.
6968 * localedata/locales/bi_VU (t_fmt): Likewise.
6969 * localedata/locales/bn_BD (t_fmt): Likewise.
6970 * localedata/locales/bn_IN (t_fmt): Likewise.
6971 * localedata/locales/brx_IN (t_fmt): Likewise.
6972 * localedata/locales/doi_IN (t_fmt): Likewise.
6973 * localedata/locales/en_HK (t_fmt): Likewise.
6974 (t_fmt_ampm): Likewise.
6975 * localedata/locales/en_IN (t_fmt): Likewise.
6976 * localedata/locales/en_PH (t_fmt): Likewise.
6977 * localedata/locales/gu_IN (t_fmt): Likewise.
6978 * localedata/locales/hi_IN (t_fmt): Likewise.
6979 * localedata/locales/hif_FJ (t_fmt): Likewise.
6980 * localedata/locales/hne_IN (t_fmt): Likewise.
6981 * localedata/locales/kn_IN (t_fmt): Likewise.
6982 * localedata/locales/kok_IN (t_fmt): Likewise.
6983 * localedata/locales/ks_IN (t_fmt): Likewise.
6984 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
6985 * localedata/locales/mag_IN (t_fmt): Likewise.
6986 * localedata/locales/mai_IN (t_fmt): Likewise.
6987 * localedata/locales/mjw_IN (t_fmt): Likewise.
6988 * localedata/locales/ml_IN (t_fmt): Likewise.
6989 * localedata/locales/mni_IN (t_fmt): Likewise.
6990 * localedata/locales/mr_IN (t_fmt): Likewise.
6991 * localedata/locales/ms_MY (t_fmt): Likewise.
6992 * localedata/locales/pa_IN (t_fmt): Likewise.
6993 * localedata/locales/raj_IN (t_fmt): Likewise.
6994 * localedata/locales/sa_IN (t_fmt): Likewise.
6995 * localedata/locales/sat_IN (t_fmt): Likewise.
6996 * localedata/locales/sd_IN (t_fmt): Likewise.
6997 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
6998 * localedata/locales/tcy_IN (t_fmt): Likewise.
6999 * localedata/locales/the_NP (t_fmt): Likewise.
7000 * localedata/locales/to_TO (t_fmt): Likewise.
7001 * localedata/locales/ur_IN (t_fmt): Likewise.
7002
7003 * localedata/locales/hif_FJ (d_t_fmt): Set to
7004 "%A %d %b %Y %I:%M:%S %p".
7005 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
7006
7007 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
7008 * localedata/locales/ar_BH (t_fmt): Likewise.
7009 * localedata/locales/ar_DZ (t_fmt): Likewise.
7010 * localedata/locales/ar_EG (t_fmt): Likewise.
7011 * localedata/locales/ar_IQ (t_fmt): Likewise.
7012 * localedata/locales/ar_JO (t_fmt): Likewise.
7013 * localedata/locales/ar_KW (t_fmt): Likewise.
7014 * localedata/locales/ar_LB (t_fmt): Likewise.
7015 * localedata/locales/ar_LY (t_fmt): Likewise.
7016 * localedata/locales/ar_OM (t_fmt): Likewise.
7017 * localedata/locales/ar_QA (t_fmt): Likewise.
7018 * localedata/locales/ar_SD (t_fmt): Likewise.
7019 * localedata/locales/ar_SS (t_fmt): Likewise.
7020 * localedata/locales/ar_SY (t_fmt): Likewise.
7021 * localedata/locales/ar_TN (t_fmt): Likewise.
7022 * localedata/locales/ar_YE (t_fmt): Likewise.
7023
7024 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
7025 (t_fmt_ampm): Likewise.
7026 * localedata/locales/gez_ET (t_fmt): Likewise.
7027 (t_fmt_ampm): Likewise.
7028
7029 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
7030 (t_fmt_ampm): Likewise.
7031 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
7032
7033 * localedata/locales/zh_HK (t_fmt):
7034 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
7035
7036 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
7037 because this locale does not use the 12-hour clock.
7038 (t_fmt): Set to "%Z %H:%M:%S".
7039 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
7040
7041 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
7042 because this locale does not use the 12-hour clock.
7043 (t_fmt): Set to "%H:%M:%S %Z".
7044 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
7045
7046 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
7047 because this locale does not use the 12-hour clock.
7048 (t_fmt): Set to "%T".
7049 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
7050 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
7051
7052 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
7053 because this locale does not use the 12-hour clock.
7054 (t_fmt): Set to "%H:%M:%S %Z".
7055 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
7056
7057 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
7058 because this locale does not use the 12-hour clock.
7059 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
7060 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
7061
7062 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
7063
7064 [BZ #10496]
7065 [BZ #23724]
7066 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
7067 (t_fmt_ampm): Likewise.
7068 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
7069 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
7070 (d_fmt): Set to "%-d.%-m.%y".
7071
7072 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7073
7074 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
7075 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
7076 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
7077 Likewise.
7078 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
7079 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
7080 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
7081 function.
7082 * support/blob_repeat.c (check_mul_overflow_size_t,
7083 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
7084
7085 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
7086
7087 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
7088
7089 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
7090
7091 regex: simplify Gnulib port
7092 This simplifies the code, by removing stuff intended for porting
7093 to Gnulib but no longer needed there.
7094 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
7095 uses of libc_hidden_def, weak_alias.
7096 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
7097 _Restrict_ except for public-facing headers.
7098 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
7099 Remove; already defined elsewhere.
7100 * posix/regex.c, posix/regex_internal.h:
7101 Use __GNUC_PREREQ instead of rolling our own.
7102 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
7103
7104 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
7105
7106 * benchtests/bench-strlen.c (generic_strlen): New function.
7107 (memchr_strlen): New function.
7108
7109 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
7110
7111 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
7112 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
7113 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
7114
7115 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
7116
7117 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
7118
7119 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
7120
7121 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
7122 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
7123 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
7124 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
7125 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
7126 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
7127 <sysdeps/ieee754/flt-32/s_sincosf.c>.
7128
7129 2018-12-21 Joseph Myers <joseph@codesourcery.com>
7130
7131 [BZ #24023]
7132 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
7133 PLT reference in libc.so.
7134 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
7135 _Q_lltoq and _Q_qtod PLT references in libc.so.
7136
7137 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
7138
7139 * benchtests/bench-memchr.c: Cleanup defines.
7140 * benchtests/bench-memcmp.c: Likewise.
7141 * benchtests/bench-memset.c: Likewise.
7142 * benchtests/bench-memset-large.c: Likewise.
7143 * benchtests/bench-memset-walk.c: Likewise.
7144 * benchtests/bench-stpcpy.c: Likewise.
7145 * benchtests/bench-stpncpy.c: Likewise.
7146 * benchtests/bench-strcat.c: Likewise.
7147 * benchtests/bench-strchr.c: Likewise.
7148 * benchtests/bench-strcmp.c: Likewise.
7149 * benchtests/bench-strcpy.c: Likewise.
7150 * benchtests/bench-strcspn.c: Likewise.
7151 * benchtests/bench-string.h: Likewise.
7152 * benchtests/bench-strlen.c: Likewise.
7153 * benchtests/bench-strncat.c: Likewise.
7154 * benchtests/bench-strncmp.c: Likewise.
7155 * benchtests/bench-strncpy.c: Likewise.
7156 * benchtests/bench-strnlen.c: Likewise.
7157 * benchtests/bench-strpbrk.c: Likewise.
7158 * benchtests/bench-strrchr.c: Likewise.
7159 * benchtests/bench-strspn.c: Likewise.
7160
7161 2018-12-21 Joseph Myers <joseph@codesourcery.com>
7162
7163 * stdlib/longlong.h: Update from GCC.
7164
7165 [BZ #23993]
7166 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
7167 * configure: Regenerated.
7168 * manual/install.texi (Tools for Compilation): Update minimum GCC
7169 version.
7170 * INSTALL: Regenerated.
7171
7172 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
7173
7174 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
7175
7176 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
7177
7178 * malloc/malloc.c (mremap_chunk): Additional checks.
7179
7180 2018-12-21 Mao Han <han_mao@c-sky.com>
7181
7182 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
7183 * scripts/build-many-glibcs.py: Add C-SKY targets.
7184 * sysdeps/csky/Implies: New file.
7185 * sysdeps/csky/Makefile: Likewise.
7186 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
7187 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
7188 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
7189 * sysdeps/csky/abiv2/memcmp.S: Likewise.
7190 * sysdeps/csky/abiv2/memcpy.S: Likewise.
7191 * sysdeps/csky/abiv2/memmove.S: Likewise.
7192 * sysdeps/csky/abiv2/memset.S: Likewise.
7193 * sysdeps/csky/abiv2/setjmp.S: Likewise.
7194 * sysdeps/csky/abiv2/start.S: Likewise.
7195 * sysdeps/csky/abiv2/strcmp.S: Likewise.
7196 * sysdeps/csky/abiv2/strcpy.S: Likewise.
7197 * sysdeps/csky/abiv2/strlen.S: Likewise.
7198 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
7199 * sysdeps/csky/abort-instr.h: Likewise.
7200 * sysdeps/csky/atomic-machine.h: Likewise.
7201 * sysdeps/csky/bits/endian.h: Likewise.
7202 * sysdeps/csky/bits/fenv.h: Likewise.
7203 * sysdeps/csky/bits/link.h: Likewise.
7204 * sysdeps/csky/bits/setjmp.h: Likewise.
7205 * sysdeps/csky/bsd-_setjmp.S: Likewise.
7206 * sysdeps/csky/bsd-setjmp.S: Likewise.
7207 * sysdeps/csky/configure: Likewise.
7208 * sysdeps/csky/configure.ac: Likewise.
7209 * sysdeps/csky/dl-machine.h: Likewise.
7210 * sysdeps/csky/dl-procinfo.c: Likewise.
7211 * sysdeps/csky/dl-procinfo.h: Likewise.
7212 * sysdeps/csky/dl-sysdep.h: Likewise.
7213 * sysdeps/csky/dl-tls.h: Likewise.
7214 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
7215 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
7216 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
7217 * sysdeps/csky/fpu/fegetenv.c: Likewise.
7218 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
7219 * sysdeps/csky/fpu/fegetmode.c: Likewise.
7220 * sysdeps/csky/fpu/fegetround.c: Likewise.
7221 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
7222 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
7223 * sysdeps/csky/fpu/fenv_private.h: Likewise.
7224 * sysdeps/csky/fpu/fesetenv.c: Likewise.
7225 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
7226 * sysdeps/csky/fpu/fesetmode.c: Likewise.
7227 * sysdeps/csky/fpu/fesetround.c: Likewise.
7228 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
7229 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
7230 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
7231 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
7232 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
7233 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
7234 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
7235 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
7236 * sysdeps/csky/fpu_control.h: Likewise.
7237 * sysdeps/csky/gccframe.h: Likewise.
7238 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
7239 * sysdeps/csky/ldsodefs.h: Likewise.
7240 * sysdeps/csky/libc-tls.c: Likewise.
7241 * sysdeps/csky/linkmap.h: Likewise.
7242 * sysdeps/csky/machine-gmon.h: Likewise.
7243 * sysdeps/csky/memusage.h: Likewise.
7244 * sysdeps/csky/nofpu/Implies: Likewise.
7245 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
7246 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
7247 * sysdeps/csky/nptl/Makefile: Likewise.
7248 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
7249 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
7250 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
7251 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
7252 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
7253 * sysdeps/csky/nptl/tls.h: Likewise.
7254 * sysdeps/csky/preconfigure: Likewise.
7255 * sysdeps/csky/sfp-machine.h: Likewise.
7256 * sysdeps/csky/sotruss-lib.c: Likewise.
7257 * sysdeps/csky/stackinfo.h: Likewise.
7258 * sysdeps/csky/sysdep.h: Likewise.
7259 * sysdeps/csky/tininess.h: Likewise.
7260 * sysdeps/csky/tst-audit.h: Likewise.
7261 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
7262 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
7263 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
7264 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
7265 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
7266 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
7267 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
7268 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
7269 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
7270 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
7271 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
7272 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
7273 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
7274 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
7275 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
7276 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
7277 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
7278 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
7279 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
7280 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
7281 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
7282 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
7283 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
7284 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
7285 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
7286 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
7287 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
7288 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
7289 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
7290 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
7291 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
7292 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
7293 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
7294 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
7295 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
7296 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
7297 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
7298 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
7299 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
7300 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
7301 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
7302 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
7303 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
7304 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
7305
7306 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
7307
7308 * include/time.h (__difftime64): Add.
7309 * time/difftime.c (subtract): convert to 64-bit time.
7310 * time/difftime.c (__difftime64): Add.
7311 * time/difftime.c (__difftime): Wrap around __difftime64.
7312
7313 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
7314
7315 * manual/examples/add.c: Remove redundant "if not".
7316 * manual/examples/argp-ex1.c: Likewise.
7317 * manual/examples/argp-ex2.c: Likewise.
7318 * manual/examples/argp-ex3.c: Likewise.
7319 * manual/examples/argp-ex4.c: Likewise.
7320 * manual/examples/atexit.c: Likewise.
7321 * manual/examples/db.c: Likewise.
7322 * manual/examples/dir.c: Likewise.
7323 * manual/examples/dir2.c: Likewise.
7324 * manual/examples/execinfo.c: Likewise.
7325 * manual/examples/filecli.c: Likewise.
7326 * manual/examples/filesrv.c: Likewise.
7327 * manual/examples/fmtmsgexpl.c: Likewise.
7328 * manual/examples/genpass.c: Likewise.
7329 * manual/examples/inetcli.c: Likewise.
7330 * manual/examples/inetsrv.c: Likewise.
7331 * manual/examples/isockad.c: Likewise.
7332 * manual/examples/longopt.c: Likewise.
7333 * manual/examples/memopen.c: Likewise.
7334 * manual/examples/memstrm.c: Likewise.
7335 * manual/examples/mkdirent.c: Likewise.
7336 * manual/examples/mkfsock.c: Likewise.
7337 * manual/examples/mkisock.c: Likewise.
7338 * manual/examples/mygetpass.c: Likewise.
7339 * manual/examples/pipe.c: Likewise.
7340 * manual/examples/popen.c: Likewise.
7341 * manual/examples/rprintf.c: Likewise.
7342 * manual/examples/search.c: Likewise.
7343 * manual/examples/select.c: Likewise.
7344 * manual/examples/setjmp.c: Likewise.
7345 * manual/examples/sigh1.c: Likewise.
7346 * manual/examples/sigusr.c: Likewise.
7347 * manual/examples/stpcpy.c: Likewise.
7348 * manual/examples/strdupa.c: Likewise.
7349 * manual/examples/strftim.c: Likewise.
7350 * manual/examples/subopt.c: Likewise.
7351 * manual/examples/swapcontext.c: Likewise.
7352 * manual/examples/termios.c: Likewise.
7353 * manual/examples/testopt.c: Likewise.
7354 * manual/examples/testpass.c: Likewise.
7355 * manual/examples/timeval_subtract.c: Likewise.
7356
7357 2018-12-19 Joseph Myers <joseph@codesourcery.com>
7358
7359 * sysdeps/x86/fpu/math_private.h: New file.
7360 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
7361
7362 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
7363 definition.
7364 (cosh): Likewise.
7365 (tanh): Likewise.
7366
7367 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
7368
7369 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
7370 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
7371 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
7372 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
7373 fields.
7374 (_dl_show_auxv): Give a special treatment to
7375 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
7376 and AT_L3_CACHEGEOMETRY.
7377 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
7378 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
7379 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
7380 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
7381
7382 2018-12-19 Andreas Schwab <schwab@suse.de>
7383
7384 * nscd/connections.c (check_use): Don't abort on invalid len.
7385
7386 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
7387
7388 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
7389 values in the 64bit value cases.
7390
7391 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
7392
7393 * include/time.h
7394 (__ctime64_r): Add.
7395 * time/ctime_r.c
7396 (__ctime64_r): Add.
7397 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
7398
7399 * include/time.h
7400 (__ctime64): Add.
7401 * time/gmtime.c
7402 (__ctime64): Add.
7403 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
7404
7405 * include/time.h
7406 (__gmtime64_r): Add.
7407 * time/gmtime.c
7408 (__gmtime64_r): Add.
7409 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
7410
7411 * include/time.h
7412 (__gmtime64): Add.
7413 * time/gmtime.c
7414 (__gmtime64): Add.
7415 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
7416
7417 * include/time.h
7418 (__localtime64_r): Add.
7419 * time/localtime.c
7420 (__localtime64_r): Add.
7421 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
7422
7423 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7424
7425 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
7426 kernel_sigction definition.
7427
7428 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
7429
7430 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
7431
7432 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
7433 __syscall_rt_sigaction.
7434 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
7435 (kernel_sigaction): Use Linux generic defintion.
7436 (STUB): Define.
7437 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
7438 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
7439 (__syscall_rt_sigaction): Remove implementation.
7440 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
7441 hidden.
7442 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
7443 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
7444 INTERNAL_SYSCALL): Remove definitions.
7445 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
7446 action and signal set size.
7447 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
7448 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
7449
7450 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7451 James Clarke <jrtc27@jrtc27.com>
7452
7453 [BZ #23967]
7454 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
7455 Define if SA_RESTORER is defined.
7456 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
7457 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
7458 already defined.
7459 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
7460 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
7461 definitions.
7462 (HAS_SA_RESTORER): Define.
7463 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
7464 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
7465 (HAS_SA_RESTORER): Define.
7466 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
7467 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
7468 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
7469 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
7470 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
7471
7472 2018-12-18 Joseph Myers <joseph@codesourcery.com>
7473
7474 * sysdeps/unix/sysv/linux/kernel-features.h
7475 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
7476 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
7477 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
7478 * sysdeps/unix/sysv/linux/sh/kernel-features.h
7479 (__ASSUME_ST_INO_64_BIT): Likewise.
7480 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
7481 <kernel-features.h>.
7482 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
7483 Remove conditional code.
7484 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
7485 <kernel-features.h>.
7486 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
7487 Remove conditional code.
7488 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
7489 <kernel-features.h>.
7490 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
7491 Remove conditional code.
7492 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
7493 <kernel-features.h>.
7494 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
7495 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
7496
7497 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
7498
7499 * sysdeps/s390/multiarch/ifunc-resolve.h
7500 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
7501 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
7502 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
7503 Delete macro definition.
7504 (s390_libc_ifunc_init): Rename to
7505 s390_libc_ifunc_expr_stfle_init.
7506 * sysdeps/s390/bzero: Use
7507 s390_libc_ifunc_expr_stfle_init instead of
7508 s390_libc_ifunc_init.
7509 * sysdeps/s390/memcmp.c: Likewise.
7510 * sysdeps/s390/memcpy.c: Likewise.
7511 * sysdeps/s390/mempcpy.c: Likewise.
7512 * sysdeps/s390/memset.c: Likewise.
7513
7514 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
7515
7516 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
7517 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
7518
7519 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
7520
7521 * sysdeps/s390/multiarch/Makefile
7522 (sysdep_routines): Remove wmemcmp variants.
7523 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
7524 * sysdeps/s390/multiarch/ifunc-impl-list.c
7525 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
7526 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
7527 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
7528 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
7529 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
7530 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
7531 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
7532 * sysdeps/s390/ifunc-wmemcmp.h: New file.
7533
7534 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
7535
7536 * sysdeps/s390/multiarch/Makefile
7537 (sysdep_routines): Remove wmemset variants.
7538 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
7539 * sysdeps/s390/multiarch/ifunc-impl-list.c
7540 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
7541 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
7542 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
7543 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
7544 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
7545 * sysdeps/s390/multiarch/wmemset.c: Move to ...
7546 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
7547 * sysdeps/s390/ifunc-wmemset.h: New file.
7548
7549 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
7550
7551 * sysdeps/s390/multiarch/Makefile
7552 (sysdep_routines): Remove wmemchr variants.
7553 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
7554 * sysdeps/s390/multiarch/ifunc-impl-list.c
7555 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
7556 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
7557 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
7558 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
7559 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
7560 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
7561 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
7562 * sysdeps/s390/ifunc-wmemchr.h: New file.
7563
7564 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
7565
7566 * sysdeps/s390/multiarch/Makefile
7567 (sysdep_routines): Remove wcscspn variants.
7568 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
7569 * sysdeps/s390/multiarch/ifunc-impl-list.c
7570 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
7571 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
7572 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
7573 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
7574 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
7575 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
7576 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
7577 * sysdeps/s390/ifunc-wcscspn.h: New file.
7578
7579 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
7580
7581 * sysdeps/s390/multiarch/Makefile
7582 (sysdep_routines): Remove wcspbrk variants.
7583 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
7584 * sysdeps/s390/multiarch/ifunc-impl-list.c
7585 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
7586 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
7587 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
7588 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
7589 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
7590 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
7591 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
7592 * sysdeps/s390/ifunc-wcspbrk.h: New file.
7593
7594 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
7595
7596 * sysdeps/s390/multiarch/Makefile
7597 (sysdep_routines): Remove wcsspn variants.
7598 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
7599 * sysdeps/s390/multiarch/ifunc-impl-list.c
7600 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
7601 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
7602 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
7603 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
7604 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
7605 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
7606 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
7607 * sysdeps/s390/ifunc-wcsspn.h: New file.
7608
7609 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
7610
7611 * sysdeps/s390/multiarch/Makefile
7612 (sysdep_routines): Remove wcsrchr variants.
7613 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
7614 * sysdeps/s390/multiarch/ifunc-impl-list.c
7615 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
7616 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
7617 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
7618 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
7619 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
7620 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
7621 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
7622 * sysdeps/s390/ifunc-wcsrchr.h: New file.
7623
7624 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
7625
7626 * sysdeps/s390/multiarch/Makefile
7627 (sysdep_routines): Remove wcschrnul variants.
7628 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
7629 * sysdeps/s390/multiarch/ifunc-impl-list.c
7630 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
7631 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
7632 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
7633 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
7634 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
7635 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
7636 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
7637 * sysdeps/s390/ifunc-wcschrnul.h: New file.
7638
7639 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
7640
7641 * sysdeps/s390/multiarch/Makefile
7642 (sysdep_routines): Remove wcschr variants.
7643 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
7644 * sysdeps/s390/multiarch/ifunc-impl-list.c
7645 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
7646 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
7647 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
7648 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
7649 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
7650 * sysdeps/s390/multiarch/wcschr.c: Move to ...
7651 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
7652 * sysdeps/s390/ifunc-wcschr.h: New file.
7653
7654 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
7655
7656 * sysdeps/s390/multiarch/Makefile
7657 (sysdep_routines): Remove wcsncmp variants.
7658 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
7659 * sysdeps/s390/multiarch/ifunc-impl-list.c
7660 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
7661 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
7662 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
7663 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
7664 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
7665 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
7666 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
7667 * sysdeps/s390/ifunc-wcsncmp.h: New file.
7668
7669 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
7670
7671 * sysdeps/s390/multiarch/Makefile
7672 (sysdep_routines): Remove wcscmp variants.
7673 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
7674 * sysdeps/s390/multiarch/ifunc-impl-list.c
7675 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
7676 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
7677 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
7678 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
7679 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
7680 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
7681 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
7682 * sysdeps/s390/ifunc-wcscmp.h: New file.
7683
7684 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
7685
7686 * sysdeps/s390/multiarch/Makefile
7687 (sysdep_routines): Remove wcsncat variants.
7688 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
7689 * sysdeps/s390/multiarch/ifunc-impl-list.c
7690 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
7691 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
7692 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
7693 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
7694 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
7695 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
7696 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
7697 * sysdeps/s390/ifunc-wcsncat.h: New file.
7698
7699 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
7700
7701 * sysdeps/s390/multiarch/Makefile
7702 (sysdep_routines): Remove wcscat variants.
7703 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
7704 * sysdeps/s390/multiarch/ifunc-impl-list.c
7705 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
7706 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
7707 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
7708 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
7709 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
7710 * sysdeps/s390/multiarch/wcscat.c: Move to ...
7711 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
7712 * sysdeps/s390/ifunc-wcscat.h: New file.
7713
7714 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
7715
7716 * sysdeps/s390/multiarch/Makefile
7717 (sysdep_routines): Remove wcpncpy variants.
7718 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
7719 * sysdeps/s390/multiarch/ifunc-impl-list.c
7720 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
7721 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
7722 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
7723 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
7724 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
7725 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
7726 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
7727 * sysdeps/s390/ifunc-wcpncpy.h: New file.
7728
7729 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
7730
7731 * sysdeps/s390/multiarch/Makefile
7732 (sysdep_routines): Remove wcsncpy variants.
7733 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
7734 * sysdeps/s390/multiarch/ifunc-impl-list.c
7735 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
7736 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
7737 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
7738 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
7739 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
7740 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
7741 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
7742 * sysdeps/s390/ifunc-wcsncpy.h: New file.
7743
7744 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
7745
7746 * sysdeps/s390/multiarch/Makefile
7747 (sysdep_routines): Remove wcpcpy variants.
7748 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
7749 * sysdeps/s390/multiarch/ifunc-impl-list.c
7750 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
7751 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
7752 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
7753 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
7754 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
7755 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
7756 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
7757 * sysdeps/s390/ifunc-wcpcpy.h: New file.
7758
7759 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
7760
7761 * sysdeps/s390/multiarch/Makefile
7762 (sysdep_routines): Remove wcscpy variants.
7763 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
7764 * sysdeps/s390/multiarch/ifunc-impl-list.c
7765 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
7766 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
7767 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
7768 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
7769 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
7770 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
7771 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
7772 * sysdeps/s390/ifunc-wcscpy.h: New file.
7773
7774 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
7775
7776 * sysdeps/s390/multiarch/Makefile
7777 (sysdep_routines): Remove wcsnlen variants.
7778 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
7779 * sysdeps/s390/multiarch/ifunc-impl-list.c
7780 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
7781 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
7782 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
7783 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
7784 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
7785 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
7786 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
7787 * sysdeps/s390/ifunc-wcsnlen.h: New file.
7788
7789 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
7790
7791 * sysdeps/s390/multiarch/Makefile
7792 (sysdep_routines): Remove wcslen variants.
7793 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
7794 * sysdeps/s390/multiarch/ifunc-impl-list.c
7795 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
7796 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
7797 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
7798 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
7799 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
7800 * sysdeps/s390/multiarch/wcslen.c: Move to ...
7801 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
7802 * sysdeps/s390/ifunc-wcslen.h: New file.
7803
7804 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
7805
7806 * sysdeps/s390/multiarch/Makefile
7807 (sysdep_routines): Remove memrchr variants.
7808 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
7809 * sysdeps/s390/multiarch/ifunc-impl-list.c
7810 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
7811 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
7812 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
7813 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
7814 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
7815 * sysdeps/s390/multiarch/memrchr.c: Move to ...
7816 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
7817 * sysdeps/s390/ifunc-memrchr.h: New file.
7818
7819 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
7820
7821 * sysdeps/s390/multiarch/Makefile
7822 (sysdep_routines): Remove memccpy variants.
7823 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
7824 * sysdeps/s390/multiarch/ifunc-impl-list.c
7825 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
7826 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
7827 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
7828 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
7829 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
7830 * sysdeps/s390/multiarch/memccpy.c: Move to ...
7831 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
7832 * sysdeps/s390/ifunc-memccpy.h: New file.
7833
7834 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
7835
7836 * sysdeps/s390/multiarch/Makefile
7837 (sysdep_routines): Remove rawmemchr variants.
7838 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
7839 * sysdeps/s390/multiarch/ifunc-impl-list.c
7840 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
7841 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
7842 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
7843 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
7844 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
7845 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
7846 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
7847 * sysdeps/s390/ifunc-rawmemchr.h: New file.
7848
7849 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
7850
7851 * sysdeps/s390/multiarch/Makefile
7852 (sysdep_routines): Remove memchr variants.
7853 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
7854 * sysdeps/s390/multiarch/ifunc-impl-list.c
7855 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
7856 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
7857 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
7858 * sysdeps/s390/multiarch/memchr.c: Move to ...
7859 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
7860 * sysdeps/s390/ifunc-memchr.h: New file.
7861 * sysdeps/s390/s390-64/memchr.S: Move to ...
7862 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
7863 for 31/64bit and ifunc handling.
7864 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
7865 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
7866 * sysdeps/s390/s390-32/memchr.S: Likewise.
7867
7868 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
7869
7870 * sysdeps/s390/multiarch/Makefile
7871 (sysdep_routines): Remove strcspn variants.
7872 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
7873 * sysdeps/s390/multiarch/ifunc-impl-list.c
7874 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
7875 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
7876 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
7877 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
7878 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
7879 * sysdeps/s390/multiarch/strcspn.c: Move to ...
7880 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
7881 * sysdeps/s390/ifunc-strcspn.h: New file.
7882
7883 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
7884
7885 * sysdeps/s390/multiarch/Makefile
7886 (sysdep_routines): Remove strpbrk variants.
7887 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
7888 * sysdeps/s390/multiarch/ifunc-impl-list.c
7889 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
7890 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
7891 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
7892 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
7893 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
7894 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
7895 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
7896 * sysdeps/s390/ifunc-strpbrk.h: New file.
7897
7898 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
7899
7900 * sysdeps/s390/multiarch/Makefile
7901 (sysdep_routines): Remove strspn variants.
7902 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
7903 * sysdeps/s390/multiarch/ifunc-impl-list.c
7904 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
7905 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
7906 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
7907 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
7908 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
7909 * sysdeps/s390/multiarch/strspn.c: Move to ...
7910 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
7911 * sysdeps/s390/ifunc-strspn.h: New file.
7912
7913 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
7914
7915 * sysdeps/s390/multiarch/Makefile
7916 (sysdep_routines): Remove strrchr variants.
7917 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
7918 * sysdeps/s390/multiarch/ifunc-impl-list.c
7919 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
7920 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
7921 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
7922 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
7923 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
7924 * sysdeps/s390/multiarch/strrchr.c: Move to ...
7925 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
7926 * sysdeps/s390/ifunc-strrchr.h: New file.
7927
7928 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
7929
7930 * sysdeps/s390/multiarch/Makefile
7931 (sysdep_routines): Remove strchrnul variants.
7932 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
7933 * sysdeps/s390/multiarch/ifunc-impl-list.c
7934 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
7935 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
7936 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
7937 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
7938 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
7939 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
7940 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
7941 * sysdeps/s390/ifunc-strchrnul.h: New file.
7942
7943 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
7944
7945 * sysdeps/s390/multiarch/Makefile
7946 (sysdep_routines): Remove strchr variants.
7947 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
7948 * sysdeps/s390/multiarch/ifunc-impl-list.c
7949 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
7950 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
7951 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
7952 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
7953 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
7954 * sysdeps/s390/multiarch/strchr.c: Move to ...
7955 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
7956 * sysdeps/s390/ifunc-strchr.h: New file.
7957
7958 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
7959
7960 * sysdeps/s390/multiarch/Makefile
7961 (sysdep_routines): Remove strncmp variants.
7962 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
7963 * sysdeps/s390/multiarch/ifunc-impl-list.c
7964 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
7965 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
7966 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
7967 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
7968 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
7969 * sysdeps/s390/multiarch/strncmp.c: Move to ...
7970 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
7971 * sysdeps/s390/ifunc-strncmp.h: New file.
7972
7973 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
7974
7975 * sysdeps/s390/multiarch/Makefile
7976 (sysdep_routines): Remove strcmp variants.
7977 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
7978 * sysdeps/s390/multiarch/ifunc-impl-list.c
7979 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
7980 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
7981 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
7982 * sysdeps/s390/multiarch/strcmp.c: Move to ...
7983 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
7984 * sysdeps/s390/ifunc-strcmp.h: New file.
7985 * sysdeps/s390/s390-64/strcmp.S: Move to ...
7986 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
7987 for 31/64bit and ifunc handling.
7988 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
7989 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
7990 * sysdeps/s390/s390-32/strcmp.S: Likewise.
7991
7992 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
7993
7994 * sysdeps/s390/multiarch/Makefile
7995 (sysdep_routines): Remove strncat variants.
7996 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
7997 * sysdeps/s390/multiarch/ifunc-impl-list.c
7998 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
7999 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
8000 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
8001 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
8002 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
8003 * sysdeps/s390/multiarch/strncat.c: Move to ...
8004 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
8005 * sysdeps/s390/ifunc-strncat.h: New file.
8006
8007 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8008
8009 * sysdeps/s390/multiarch/Makefile
8010 (sysdep_routines): Remove strcat variants.
8011 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
8012 * sysdeps/s390/multiarch/ifunc-impl-list.c
8013 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
8014 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
8015 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
8016 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
8017 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
8018 * sysdeps/s390/multiarch/strcat.c: Move to ...
8019 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
8020 * sysdeps/s390/ifunc-strcat.h: New file.
8021
8022 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8023
8024 * sysdeps/s390/multiarch/Makefile
8025 (sysdep_routines): Remove stpncpy variants.
8026 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
8027 * sysdeps/s390/multiarch/ifunc-impl-list.c
8028 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
8029 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
8030 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
8031 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
8032 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
8033 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
8034 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
8035 * sysdeps/s390/ifunc-stpncpy.h: New file.
8036
8037 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8038
8039 * sysdeps/s390/multiarch/Makefile
8040 (sysdep_routines): Remove strncpy variants.
8041 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
8042 * sysdeps/s390/multiarch/ifunc-impl-list.c
8043 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
8044 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
8045 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
8046 * sysdeps/s390/multiarch/strncpy.c: Move to ...
8047 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
8048 * sysdeps/s390/ifunc-strncpy.h: New file.
8049 * sysdeps/s390/s390-64/strncpy.S: Move to ...
8050 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
8051 and adjust ifunc handling.
8052 * sysdeps/s390/s390-32/strncpy.S: Move to ...
8053 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
8054 and adjust ifunc handling.
8055 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
8056 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
8057
8058 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8059
8060 * sysdeps/s390/multiarch/Makefile
8061 (sysdep_routines): Remove stpcpy variants.
8062 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
8063 * sysdeps/s390/multiarch/ifunc-impl-list.c
8064 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
8065 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
8066 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
8067 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
8068 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
8069 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
8070 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
8071 * sysdeps/s390/ifunc-stpcpy.h: New file.
8072
8073 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8074
8075 * sysdeps/s390/multiarch/Makefile
8076 (sysdep_routines): Remove strcpy variants.
8077 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
8078 * sysdeps/s390/multiarch/ifunc-impl-list.c
8079 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
8080 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
8081 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
8082 * sysdeps/s390/multiarch/strcpy.c: Move to ...
8083 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
8084 * sysdeps/s390/ifunc-strcpy.h: New file.
8085 * sysdeps/s390/s390-64/strcpy.S: Move to ...
8086 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
8087 for 31/64bit and ifunc handling.
8088 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
8089 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
8090 * sysdeps/s390/s390-32/strcpy.S: Likewise.
8091
8092 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8093
8094 * sysdeps/s390/multiarch/Makefile
8095 (sysdep_routines): Remove strnlen variants.
8096 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
8097 * sysdeps/s390/multiarch/ifunc-impl-list.c
8098 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
8099 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
8100 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
8101 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
8102 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
8103 * sysdeps/s390/multiarch/strnlen.c: Move to ...
8104 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
8105 * sysdeps/s390/ifunc-strnlen.h: New file.
8106
8107 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8108
8109 * sysdeps/s390/multiarch/Makefile
8110 (sysdep_routines): Remove strlen variants.
8111 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
8112 * sysdeps/s390/multiarch/ifunc-impl-list.c
8113 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
8114 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
8115 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
8116 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
8117 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
8118 * sysdeps/s390/multiarch/strlen.c: Move to ...
8119 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
8120 * sysdeps/s390/ifunc-strlen.h: New file.
8121
8122 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8123
8124 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
8125 * sysdeps/s390/multiarch/ifunc-impl-list.c
8126 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
8127 * sysdeps/s390/ifunc-memmem.h: New file.
8128 * sysdeps/s390/memmem.c: Likewise.
8129 * sysdeps/s390/memmem-c.c: Likewise.
8130 * sysdeps/s390/memmem-vx.c: Likewise.
8131
8132 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8133
8134 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
8135 * sysdeps/s390/multiarch/ifunc-impl-list.c
8136 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
8137 * sysdeps/s390/ifunc-strstr.h: New file.
8138 * sysdeps/s390/strstr.c: Likewise.
8139 * sysdeps/s390/strstr-c.c: Likewise.
8140 * sysdeps/s390/strstr-vx.c: Likewise.
8141
8142 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8143
8144 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
8145 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
8146 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
8147 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
8148 New defines.
8149 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
8150 * sysdeps/s390/memmove-c.c: New file.
8151 * sysdeps/s390/memmove.c: Likewise.
8152 * sysdeps/s390/multiarch/ifunc-impl-list.c
8153 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
8154
8155 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8156
8157 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
8158 * sysdeps/s390/configure.ac: Add check for z13 support.
8159 * sysdeps/s390/configure: Regenerated.
8160
8161 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8162
8163 * sysdeps/s390/memcopy.h: New file.
8164
8165 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8166
8167 * sysdeps/s390/s390-32/bcopy.S: Remove.
8168 * sysdeps/s390/s390-64/bcopy.S: Likewise.
8169
8170 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8171
8172 * sysdeps/s390/ifunc-memcpy.h: New File.
8173 * sysdeps/s390/memcpy.S: Move to ...
8174 * sysdeps/s390/memcpy-z900.S ... here.
8175 Move implementations from memcpy-s390x.s to here.
8176 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
8177 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
8178 Remove memcpy/mempcpy variants.
8179 * sysdeps/s390/Makefile (sysdep_routines):
8180 Add memcpy/mempcpy variants.
8181 * sysdeps/s390/multiarch/ifunc-impl-list.c
8182 (__libc_ifunc_impl_list): Adjust ifunc variants for
8183 memcpy and mempcpy.
8184 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
8185 to ...
8186 * sysdeps/s390/memcpy.c: ... here.
8187 Adjust ifunc variants for memcpy.
8188 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
8189 * sysdeps/s390/mempcpy.c: ... here.
8190 Adjust ifunc variants for mempcpy.
8191 * sysdeps/s390/mempcpy.S: Delete file.
8192
8193 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8194
8195 * sysdeps/s390/s390-64/memcpy.S: Move to ...
8196 * sysdeps/s390/memcpy.S: ... here.
8197 Adjust to be usable for 31/64bit.
8198 * sysdeps/s390/s390-32/memcpy.S: Delete File.
8199 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
8200 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
8201 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
8202 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
8203 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
8204 Adjust to be usable for 31/64bit.
8205 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
8206 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
8207 * sysdeps/s390/multiarch/memcpy.c: ... here.
8208 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
8209
8210 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8211
8212 * sysdeps/s390/ifunc-memcmp.h: New File.
8213 * sysdeps/s390/memcmp.S: Move to ...
8214 * sysdeps/s390/memcmp-z900.S ... here.
8215 Move implementations from memcmp-s390x.s to here.
8216 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
8217 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
8218 Remove memcmp variants.
8219 * sysdeps/s390/Makefile (sysdep_routines):
8220 Add memcmp variants.
8221 * sysdeps/s390/multiarch/ifunc-impl-list.c
8222 (__libc_ifunc_impl_list): Adjust ifunc variants for
8223 memcmp.
8224 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
8225 to ...
8226 * sysdeps/s390/memcmp.c: ... here.
8227 Adjust ifunc variants for memcmp.
8228
8229 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8230
8231 * sysdeps/s390/s390-64/memcmp.S: Move to ...
8232 * sysdeps/s390/memcmp.S: ... here.
8233 Adjust to be usable for 31/64bit.
8234 * sysdeps/s390/s390-32/memcmp.S: Delete File.
8235 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
8236 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
8237 Remove memcmp.
8238 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
8239 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
8240 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
8241 Adjust to be usable for 31/64bit.
8242 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
8243 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
8244 * sysdeps/s390/multiarch/memcmp.c: ... here.
8245 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
8246
8247 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8248
8249 * sysdeps/s390/s390-32/bzero.S: Delete file.
8250 * sysdeps/s390/s390-64/bzero.S: Likewise.
8251 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
8252 * sysdeps/s390/bzero.c: New file.
8253 * sysdeps/s390/memset-z900.S: Add bzero entry points.
8254 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
8255 * sysdeps/s390/multiarch/ifunc-impl-list.c
8256 (__libc_ifunc_impl_list): Add bzero ifunc variants.
8257
8258 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8259
8260 * sysdeps/s390/ifunc-memset.h: New File.
8261 * sysdeps/s390/memset.S: Move to ...
8262 * sysdeps/s390/memset-z900.S ... here.
8263 Move implementations from memset-s390x.s to here.
8264 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
8265 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
8266 Remove memset variants.
8267 * sysdeps/s390/Makefile (sysdep_routines):
8268 Add memset variants.
8269 * sysdeps/s390/multiarch/ifunc-impl-list.c
8270 (__libc_ifunc_impl_list): Adjust ifunc variants for
8271 memset.
8272 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
8273 to ...
8274 * sysdeps/s390/memset.c: ... here.
8275 Adjust ifunc variants for memset.
8276
8277 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8278
8279 * sysdeps/s390/s390-64/memset.S: Move to ...
8280 * sysdeps/s390/memset.S: ... here.
8281 Adjust to be usable for 31/64bit.
8282 * sysdeps/s390/s390-32/memset.S: Delete File.
8283 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
8284 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
8285 Remove memset.
8286 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
8287 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
8288 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
8289 Adjust to be usable for 31/64bit.
8290 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
8291 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
8292 * sysdeps/s390/multiarch/memset.c: ... here.
8293 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
8294
8295 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8296
8297 * sysdeps/s390/multiarch/ifunc-resolve.h
8298 (s390_libc_ifunc_init, s390_libc_ifunc,
8299 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
8300
8301 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8302
8303 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
8304 * sysdeps/s390/configure.ac: Add check for z10 support.
8305 * sysdeps/s390/configure: Regenerated.
8306
8307 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
8308
8309 * sysdeps/i386/atomic-machine.h: Merged with ...
8310 * sysdeps/x86_64/atomic-machine.h: To ...
8311 * sysdeps/x86/atomic-machine.h: This. New file.
8312
8313 2018-12-18 Florian Weimer <fweimer@redhat.com>
8314
8315 Rewrite locale/gen-translit.pl in Python.
8316 * locale/Makefile (generated): Add C-translit.h.
8317 (before-compile): Add $(objpfx)C-translit.h.
8318 (C-translit.h): Move to $(objpfx). Create target directory.
8319 Build using Python script.
8320 * locale/gen-translit.py: New file.
8321 * locale/gen-translit.pl: Remove file.
8322 * locale/C-translit.h.in: Change comment character to '#' for
8323 easier parsing without a C preprocessor.
8324 * locale/C-translit.h: Remove generated file.
8325 * manual/install.texi (Tools for Compilation): Do not mention
8326 C-translit.h.
8327 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
8328 Remove locale/C-translit.h.
8329 * scripts/update-copyrights: Likewise.
8330 * INSTALL: Regenerate.
8331
8332 2018-12-18 Florian Weimer <fweimer@redhat.com>
8333
8334 [BZ #23995]
8335 * localedata/locales/bi_VU: Remove executable bit from file.
8336
8337 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
8338
8339 * include/time.h
8340 (__localtime64): Add.
8341 * manual/maint.texi: Document Y2038 symbol handling.
8342 * time/localtime.c
8343 (__localtime64): Add.
8344 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
8345
8346 2018-12-17 Joseph Myers <joseph@codesourcery.com>
8347
8348 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
8349 Do not clobber r12.
8350
8351 * scripts/glibcextract.py (compare_macro_consts): Take parameters
8352 to allow extra macros from first or second sources.
8353 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
8354 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8355 (tests-special): Add $(objpfx)tst-mman-consts.out.
8356 ($(objpfx)tst-mman-consts.out): New makefile target.
8357
8358 2018-12-17 Mao Han <han_mao@c-sky.com>
8359
8360 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
8361 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
8362 without stat64 system call support.
8363 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
8364 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
8365 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
8366 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
8367 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
8368 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
8369 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
8370 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
8371 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
8372 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
8373 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
8374
8375 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
8376
8377 regex: fix storage-exhaustion error
8378 [BZ #18040]
8379 * posix/regexec.c (get_subexp):
8380 Do not continue if storage is exhausted.
8381
8382 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
8383
8384 regex: fix heap-use-after-free error
8385 [BZ #18040]
8386 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
8387 https://debbugs.gnu.org/32592
8388 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
8389 call extend_buffers which reallocates the re_string_t internal buffer.
8390 Local variable 'buf' was not updated in such case, resulting in
8391 use-after-free.
8392 * posix/regexec.c (get_subexp): Update 'buf' after call to
8393 get_subexp_sub.
8394
8395 2018-12-15 Florian Weimer <fweimer@redhat.com>
8396
8397 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
8398 (minimum_stride_size): Use it.
8399 (support_blob_repeat_allocate): Likewise.
8400
8401 2018-12-14 Joseph Myers <joseph@codesourcery.com>
8402
8403 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
8404 definition.
8405 (acosh): Likewise.
8406 (atanh): Likewise.
8407
8408 2018-12-14 Florian Weimer <fweimer@redhat.com>
8409
8410 * manual/process.texi (Process Creation Concepts): Remove
8411 documentation of process (ID) lifetime. List more process
8412 creation functions. Reference Process Identification section.
8413 (Process Identification): Add information about process ID
8414 lifetime. Describe Linux thread/task IDs.
8415 * manual/signal.texi (Signaling Another Process): Mention that the
8416 signal is always sent to the process.
8417
8418 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
8419
8420 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
8421 and tst-ldbl-efgcvt.
8422 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
8423 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
8424 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
8425 (fcvt_tests, output_error, output_r_error, do_test): Use the
8426 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
8427 select the type of floating-point variables and arguments; to
8428 produce extra tests for double and conversion specifiers for
8429 printf; and to set the names of called functions.
8430 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
8431 in tst-efgcvt-template.c.
8432 * misc/tst-ldbl-efgcvt.c: Likewise.
8433
8434 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
8435
8436 * nss/Makefile (tst-nss-test3.out): New rule.
8437
8438 2018-12-13 Joseph Myers <joseph@codesourcery.com>
8439
8440 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
8441 clobber sp.
8442
8443 2018-12-13 fanjinke <fanjinke@hygon.cn>
8444
8445 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
8446 "HygonGenuine".
8447
8448 2018-12-13 Andreas Schwab <schwab@suse.de>
8449
8450 [BZ #23861]
8451 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
8452 (__pthread_rwlock_rdlock_full): Update expected value for
8453 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
8454 * nptl/tst-rwlock-pwn.c: New file.
8455 * nptl/Makefile (tests): Add tst-rwlock-pwn.
8456
8457 2018-12-12 Joseph Myers <joseph@codesourcery.com>
8458
8459 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
8460 definition.
8461
8462 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
8463
8464 * benchtests/scripts/compare_bench.py (do_compare): write to
8465 stderr in casestat is not present.
8466 * benchtests/scripts/compare_bench.py (plot_graphs): write to
8467 stderr in case timings field is not present. Also string showing
8468 the output filename goes into the stderr.
8469
8470 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
8471
8472 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
8473 and ZeroDivisorError exceptions.
8474 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
8475 argument to loop through user provided statistics.
8476 * benchtests/scripts/compare_bench.py (main): Include the --stats
8477 argument.
8478
8479 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
8480
8481 * benchtests/scripts/compare_bench.py (compare_runs): Continue
8482 instead of return.
8483
8484 2018-12-12 Florian Weimer <fweimer@redhat.com>
8485
8486 * sysdeps/posix/timespec_get.c: Add missing “any later version”
8487 clause to copyright header.
8488
8489 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
8490
8491 [BZ #23614]
8492 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
8493 registers saved in the stack frame.
8494 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
8495 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
8496
8497 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
8498
8499 * include/bits/monetary-ldbl.h: New file.
8500 * include/bits/printf-ldbl.h: Likewise.
8501 * include/bits/stdio-ldbl.h: Likewise.
8502 * include/bits/stdlib-ldbl.h: Likewise.
8503 * include/bits/syslog-ldbl.h: Likewise.
8504 * include/bits/wchar-ldbl.h: Likewise.
8505
8506 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
8507
8508 * libio/libio.h: Remove redirection for _IO_vfprintf.
8509
8510 2018-12-11 Andreas Schwab <schwab@suse.de>
8511
8512 * Makerules: Remove all references to abilist-pattern.
8513 (update-all-abi): Simplify find expression.
8514
8515 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
8516
8517 [BZ #23961]
8518 * math/auto-libm-test-in: Add new test case.
8519 * math/auto-libm-test-out-pow: Regenerated.
8520 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
8521
8522 2018-12-10 DJ Delorie <dj@redhat.com>
8523
8524 [BZ #23948]
8525 * support/test-container.c: Move postclean step to before we
8526 change namespaces.
8527
8528 2018-12-10 Joseph Myers <joseph@codesourcery.com>
8529
8530 * scripts/gen-as-const.py (main): Handle --python option.
8531 * scripts/gen-py-const.awk: Remove.
8532 * Makerules (py-const-script): Use gen-as-const.py.
8533 ($(py-const)): Likewise.
8534 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
8535 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
8536 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
8537 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
8538 ~PTHREAD_MUTEX_NO_ELISION_NP.
8539 * manual/README.pretty-printers: Update reference to
8540 gen-py-const.awk.
8541
8542 * scripts/glibcextract.py: New file.
8543 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
8544 or tempfile. Import glibcexctract.
8545 (compute_c_consts): Remove. Moved to glibcextract.py.
8546 (gen_test): Update reference to compute_c_consts.
8547 (main): Likewise.
8548 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
8549 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
8550 * sysdeps/unix/sysv/linux/Makefile
8551 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
8552 Redirect stderr as well as stdout.
8553
8554 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
8555
8556 [BZ #19767]
8557 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
8558 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
8559 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
8560 ALWAYS_USE_VSYSCALL.
8561 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
8562 ALWAYS_USE_VSYSCALL.
8563 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
8564 ALWAYS_USE_VSYSCALL.
8565
8566 2018-12-10 Florian Weimer <fweimer@redhat.com>
8567
8568 [BZ #23972]
8569 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
8570 offset instead of count for clarity. Fix typo in comment.
8571 (__old_getdents64): Keep track of previous offset. Use it to call
8572 handle_overflow.
8573 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
8574 that d_off is never zero.
8575
8576 2018-12-10 Andreas Schwab <schwab@suse.de>
8577
8578 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
8579 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
8580 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
8581 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
8582 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
8583
8584 2018-12-10 Joseph Myers <joseph@codesourcery.com>
8585
8586 * timezone/private.h: Update from tzcode 2018g.
8587 * timezone/tzfile.h: Likewise.
8588 * timezone/tzselect.ksh: Likewise.
8589 * timezone/zdump.c: Likewise.
8590 * timezone/zic.c: Likewise.
8591
8592 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
8593
8594 [BZ #23490]
8595 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
8596 (do_test): Adjust buffer size and fix format.
8597
8598 2018-12-07 DJ Delorie <dj@redhat.com>
8599
8600 [BZ #23907]
8601 * malloc/tst-tcfree3.c: New.
8602 * malloc/Makefile: Add it.
8603
8604 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
8605
8606 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
8607
8608 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
8609
8610 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
8611 used as a mask for the mode argument of __vfscanf_internal and
8612 __vfwscanf_internal.
8613 * stdio-common/vfscanf-internal.c
8614 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
8615 (__strtof128_internal): Define to __wcstof128_internal.
8616 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
8617 __strtof128_internal or __wcstof128_internal when the format of
8618 long double is the same as _Float128.
8619
8620 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
8621
8622 * include/unistd.h (__confstr): Add prototype and hidden prototype.
8623 * posix/confstr.c (confstr): Rename to __confstr.
8624 (__confstr): Add hidden def.
8625 (confstr): Add weak alias for __confstr.
8626 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
8627 confstr.
8628
8629 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
8630
8631 * NEWS: Mention getcpu.
8632 * include/sched.h (__getcpu): New libc_hidden_proto.
8633 * manual/resource.texi: Document getcpu.
8634 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
8635 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
8636 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
8637 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8638 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
8639 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
8640 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
8641 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
8642 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
8643 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
8644 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
8645 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
8646 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
8647 Likewise.
8648 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
8649 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
8650 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
8651 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
8652 Likewise.
8653 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
8654 Likewise.
8655 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
8656 Likewise.
8657 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
8658 Likewise.
8659 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
8660 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
8661 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
8662 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
8663 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
8664 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8665 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
8666 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
8667 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
8668 * sysdeps/unix/sysv/linux/getcpu.c: New file.
8669 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
8670 Also check getcpu.
8671
8672 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
8673
8674 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
8675 functions.
8676 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
8677
8678 2018-12-07 Florian Weimer <fweimer@redhat.com>
8679
8680 [BZ #17405]
8681 * posix/Makefile (routines): Add spawn_faction_addfchdir.
8682 * posix/Versions (GLIBC_2.29): Export
8683 posix_spawn_file_actions_addfchdir_np.
8684 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
8685 * posix/spawn_faction_destroy.c
8686 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
8687 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
8688 and the field action.fchdir_action.
8689 * posix/tst-spawn-chdir.c (add_chdir): New function.
8690 (do_test): Add do_fchdir loop. Call add_chdir.
8691 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
8692 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
8693 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
8694 posix_spawn_file_actions_addfchdir_np.
8695 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
8696 Likewise.
8697 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
8698 Likewise.
8699 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
8700 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
8701 Likewise.
8702 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
8703 Likewise.
8704 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
8705 Likewise.
8706 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
8707 Likewise.
8708 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
8709 Likewise.
8710 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
8711 Likewise.
8712 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
8713 (GLIBC_2.29): Likewise.
8714 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
8715 (GLIBC_2.29): Likewise.
8716 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
8717 (GLIBC_2.29): Likewise.
8718 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
8719 (GLIBC_2.29): Likewise.
8720 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
8721 Likewise.
8722 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
8723 (GLIBC_2.29): Likewise.
8724 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
8725 (GLIBC_2.29): Likewise.
8726 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
8727 (GLIBC_2.29): Likewise.
8728 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
8729 (GLIBC_2.29): Likewise.
8730 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
8731 Likewise.
8732 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
8733 Likewise.
8734 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
8735 Likewise.
8736 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
8737 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
8738 Likewise.
8739 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
8740 Likewise.
8741 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
8742 Likewise.
8743 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
8744 Likewise.
8745
8746 2018-12-06 Joseph Myers <joseph@codesourcery.com>
8747
8748 * manual/texinfo.tex: Update to version 2018-09-21.20 with
8749 trailing whitespace removed.
8750 * scripts/config.guess: Update to version 2018-11-28.
8751 * scripts/config.sub: Update to version 2018-11-28.
8752 * scripts/install-sh: Update to version 2018-03-11.20.
8753 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
8754 * scripts/move-if-change: Update to version 2018-03-07 03:47.
8755
8756 2018-12-07 Florian Weimer <fweimer@redhat.com>
8757
8758 [BZ #23927]
8759 CVE-2018-19591
8760 * inet/tst-if_index-long.c: New file.
8761 * inet/Makefile (tests): Add tst-if_index-long.
8762
8763 2018-12-07 Florian Weimer <fweimer@redhat.com>
8764
8765 * support/check.h (support_record_failure_is_failed): Declare.
8766 * support/descriptors.h: New file.
8767 * support/support_descriptors.c: Likewise.
8768 * support/tst-support_descriptors.c: Likewise.
8769 * support/support_record_failure.c
8770 (support_record_failure_is_failed): New function.
8771 * support/Makefile (libsupport-routines): Add support_descriptors.
8772 (tests): Add tst-support_descriptors.
8773
8774 2018-12-05 Zack Weinberg <zackw@panix.com>
8775 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
8776
8777 * stdio-common/vfprintf-internal.c
8778 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
8779 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
8780 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
8781 and __no_long_double.
8782 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
8783 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
8784 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
8785 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
8786 and __nldbl_*syslog* functions.
8787 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
8788 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
8789 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
8790 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
8791 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
8792 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
8793 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
8794 (__nldbl_vwprintf, __nldbl_wprintf):
8795 Directly call the appropriate __v*printf_internal routine, passing
8796 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
8797 variable names.
8798 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
8799 (__nldbl___printf_chk, __nldbl___snprintf_chk)
8800 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
8801 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
8802 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
8803 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
8804 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
8805 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
8806 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
8807 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
8808 Likewise, and also pass PRINTF_FORTIFY when appropriate.
8809 (__nldbl_syslog, __nldbl_vsyslog):
8810 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
8811 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
8812 appropriate.
8813 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
8814 appropriate.
8815
8816 2018-12-05 Zack Weinberg <zackw@panix.com>
8817 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
8818
8819 [BZ #11319]
8820 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
8821 Moved here from debug/vsprintf_chk.c.
8822 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
8823 and completion logic for the strfile to match exactly what
8824 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
8825 _IO_str_init_static_internal instead of maxlen-1.
8826 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
8827 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
8828 __vsprintf_internal.
8829
8830 * debug/vsprintf_chk.c (__vsprintf_chk)
8831 * debug/sprintf_chk.c (__sprintf_chk):
8832 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
8833 'flags' argument is positive, and slen as maxlen. No need to lock
8834 the FILE and/or construct a temporary FILE. Minimize and normalize
8835 header inclusions and variable names. Do not libc_hidden_def anything.
8836
8837 * debug/asprintf_chk.c (__asprintf_chk)
8838 * debug/dprintf_chk.c (__dprintf_chk)
8839 * debug/fprintf_chk.c (__fprintf_chk)
8840 * debug/fwprintf_chk.c (__fwprintf_chk)
8841 * debug/printf_chk.c (__printf_chk)
8842 * debug/snprintf_chk.c (__snprintf_chk)
8843 * debug/swprintf_chk.c (__swprintf_chk)
8844 * debug/vasprintf_chk.c (__vasprintf_chk)
8845 * debug/vdprintf_chk.c (__vdprintf_chk)
8846 * debug/vfprintf_chk.c (__vfprintf_chk)
8847 * debug/vfwprintf_chk.c (__vfwprintf_chk)
8848 * debug/vprintf_chk.c (__vprintf_chk)
8849 * debug/vsnprintf_chk.c (__vsnprintf_chk)
8850 * debug/vswprintf_chk.c (__vswprintf_chk)
8851 * debug/vwprintf_chk.c (__vwprintf_chk)
8852 * debug/wprintf_chk.c (__wprintf_chk):
8853 Directly call the corresponding vxxprintf_internal function, passing
8854 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
8855 the FILE and/or construct a temporary FILE. Minimize and normalize
8856 header inclusions and variable names. Do not libc_hidden_def anything.
8857
8858 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
8859 __obstack_vprintf_internal.
8860 (__obstack_vprintf_chk): Convert into a wrapper that calls
8861 __obstack_vprintf_internal (these two functions already had the
8862 same code) and move to new file...
8863 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
8864 file.
8865 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
8866 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
8867 * debug/Makefile (routines): Add vobprintf_chk.
8868
8869 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
8870 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
8871 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
8872 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
8873 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
8874 (__nldbl___obstack_vfprintf_chk):
8875 Directly call the corresponding vxxprintf_internal function,
8876 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
8877 duplicate comparison of slen with 0 or maxlen from the corresponding
8878 non-__nldbl function.
8879
8880 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
8881 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
8882 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
8883 Remove libc_hidden_proto.
8884
8885 * stdio-common/vfprintf-internal.c
8886 (__vfprintf_internal, __vfwprintf_internal):
8887 Do not check _IO_FLAGS2_FORTIFY.
8888 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
8889 * libio/libioP.h: Update prototype of __vsprintf_internal and add
8890 a comment explaining why it has the maxlen argument.
8891 (_IO_acquire_lock_clear_flags2_fct): Remove.
8892 (_IO_acquire_lock_clear_flags2): Remove.
8893 (_IO_release_lock): Remove conditional statement which will
8894 now never execute.
8895 (_IO_acquire_lock): Remove variable which is now unused.
8896 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
8897 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
8898
8899 * stdio-common/Makefile (tests): Add tst-bz11319 and
8900 tst-bz11319-fortify2.
8901 (CFLAGS-tst-bz11319-fortify2.c): New macro.
8902 * stdio-common/tst-bz11319-fortify2.c: New file.
8903 * stdio-common/tst-bz11319.c: Likewise.
8904
8905 2018-12-05 Zack Weinberg <zackw@panix.com>
8906 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
8907
8908 * misc/syslog.c: Include libioP.h, not iolibio.h.
8909 (__vsyslog_internal): New function with the former body of
8910 __vsyslog_chk; takes mode_flags argument same as
8911 __v*printf_internal. Call __vfprintf_internal directly.
8912
8913 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
8914 Remove libc_hidden_def.
8915 (__syslog, __syslog_chk): Use __vsyslog_internal.
8916 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
8917
8918 * include/sys/syslog.h: Add multiple inclusion guard.
8919 Add prototype for __vsyslog_internal.
8920 Remove declaration and libc_hidden_proto for __vsyslog_chk.
8921
8922 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
8923 Use __vsyslog_internal.
8924
8925 2018-12-05 Zack Weinberg <zackw@panix.com>
8926 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
8927
8928 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
8929 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
8930 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
8931 New functions.
8932 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
8933 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
8934
8935 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
8936 Include wctype.h here if COMPILE_WPRINTF is defined.
8937 Define __vfprintf_internal or __vfwprintf_internal, depending
8938 on COMPILE_WPRINTF.
8939 Temporarily, on entry to this function, update mode_flags
8940 according to the environmental settings corresponding to
8941 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
8942 Throughout, check mode_flags instead of __ldbl_is_dbl and
8943 _IO_FLAGS2_FORTIFY on the destination FILE.
8944 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
8945 Include vfprintf-internal.c. Don't include wctype.h.
8946 * stdio-common/vfprintf.c: New file. Just define __vfprintf
8947 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
8948 and vfprintf.
8949 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
8950 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
8951 and vfwprintf.
8952 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
8953
8954 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
8955 and add mode_flags argument; use __vfprintf_internal.
8956 (__vdprintf): New function. Alias vdprintf to this.
8957 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
8958 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
8959 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
8960 (__obstack_printf): Use __obstack_printf_internal.
8961 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
8962 public aliases __vsnprintf and vsnprintf.
8963 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
8964 called internally.
8965 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
8966 public aliases _IO_vsprintf and vsprintf.
8967 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
8968 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
8969 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
8970 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
8971 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
8972
8973 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
8974 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
8975 * stdio-common/fprintf.c, stdio-common/fxprintf.c
8976 * stdio-common/printf.c: Use __vfprintf_internal.
8977
8978 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
8979 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
8980 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
8981
8982 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
8983 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
8984 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
8985 __vfwprintf_internal.
8986
8987 * libio/libio.h: Remove libc_hidden_proto and declaration for
8988 _IO_vfprintf.
8989 Remove declaration of _IO_vfwprintf.
8990 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
8991 _IO_vsprintf.
8992 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
8993 _IO_obstack_printf.
8994 * include/stdio.h: Add prototype for __vasprintf.
8995 (__vsnprintf): Remove declaration, because there are no more
8996 internal calls.
8997 * include/wchar.h (__vfwprintf, __vswprintf): Remove
8998 declaration, because there are no more internal calls.
8999
9000 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
9001 __vsnprintf_internal, instead of _IO_vsnprintf.
9002 * argp/argp-help.c (__argp_error, __argp_failure): Use
9003 __vasprintf_internal, instead of _IO_vasprintf.
9004 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
9005 redefine, because there are no more internal calls.
9006
9007 2018-12-05 Zack Weinberg <zackw@panix.com>
9008 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9009
9010 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
9011 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
9012 Include libio/strfile.h instead of libioP.h.
9013 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
9014 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
9015 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
9016 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
9017 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
9018 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
9019 necessary. Do not set __no_long_double. Normalize variable names.
9020 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
9021 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
9022 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
9023 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
9024 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
9025 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
9026 Call __vfscanf_internal / __vfwscanf_internal directly, passing
9027 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
9028 Do not set __no_long_double. Normalize variable names.
9029
9030 2018-12-05 Zack Weinberg <zackw@panix.com>
9031 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9032
9033 * stdio-common/isoc99_scanf.c
9034 * stdio-common/isoc99_fscanf.c
9035 * stdio-common/isoc99_sscanf.c
9036 * stdio-common/isoc99_vscanf.c
9037 * stdio-common/isoc99_vfscanf.c
9038 * stdio-common/isoc99_vsscanf.c
9039 * wcsmbs/isoc99_wscanf.c
9040 * wcsmbs/isoc99_fwscanf.c
9041 * wcsmbs/isoc99_swscanf.c
9042 * wcsmbs/isoc99_vwscanf.c
9043 * wcsmbs/isoc99_vfwscanf.c
9044 * wcsmbs/isoc99_vswscanf.c:
9045 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
9046 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
9047 No need to lock and unlock the FILE passed to that function.
9048
9049 * stdio-common/vfscanf-internal.c
9050 (__vfscanf_internal, __vfwscanf_internal):
9051 Don't look at _IO_FLAGS2_SCANF_STD.
9052 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
9053 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
9054 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
9055
9056 2018-12-05 Zack Weinberg <zackw@panix.com>
9057 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9058
9059 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
9060 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
9061 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
9062 * libio/strfile.h: Add multiple inclusion guard.
9063 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
9064
9065 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
9066 consistency with the other version of this file.
9067 (ldbl_compat_symbol): New macro.
9068 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
9069 New macro.
9070
9071 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
9072 Define __vfscanf_internal or __vfwscanf_internal, depending on
9073 COMPILE_WSCANF; don't define any other public symbols.
9074 Remove errval and code to set errp.
9075 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
9076 as the mode_flags argument.
9077 (encode_error, conv_error, input_error): Don't set errval.
9078 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
9079 Include vfscanf-internal.c.
9080 * stdio-common/vfscanf.c: New file defining the public entry
9081 point vfscanf, which calls __vfscanf_internal.
9082 * stdio-common/vfwscanf.c: New file defining the public entry
9083 point vfwscanf, which calls __vfwscanf_internal.
9084
9085 * stdio-common/iovfscanf.c: New file.
9086 * stdio-common/iovfwscanf.c: Likewise.
9087
9088 * stdio-common/Makefile (routines): Add vfscanf-internal,
9089 vfwscanf-internal, iovfscanf, iovfwscanf.
9090 * stdio-common/Versions: Mention GLIBC_2.29, so that
9091 it can be used in SHLIB_COMPAT expressions.
9092 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
9093 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
9094 Call __vfscanf_internal, instead of _IO_vfscanf.
9095 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
9096 _IO_vfscanf.
9097 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
9098 _IO_vfwscanf.
9099
9100 * libio/iovsscanf.c: Clean up includes, when possible. Use
9101 _IO_strfile_read or _IO_strfile_readw, when needed. Call
9102 __vfscanf_internal or __vfwscanf_internal directly.
9103 * libio/iovswscanf.c: Likewise.
9104 * libio/swscanf.c: Likewise.
9105 * libio/vscanf.c: Likewise.
9106 * libio/vwscanf.c: Likewise.
9107 * libio/wscanf.c: Likewise.
9108 * stdio-common/isoc99_fscanf.c: Likewise.
9109 * stdio-common/isoc99_scanf.c: Likewise.
9110 * stdio-common/isoc99_sscanf.c: Likewise.
9111 * stdio-common/isoc99_vfscanf.c: Likewise.
9112 * stdio-common/isoc99_vscanf.c: Likewise.
9113 * stdio-common/isoc99_vsscanf.c: Likewise.
9114 * stdio-common/scanf.c: Likewise.
9115 * stdio-common/sscanf.c: Likewise.
9116 * wcsmbs/isoc99_fwscanf.c: Likewise.
9117 * wcsmbs/isoc99_swscanf.c: Likewise.
9118 * wcsmbs/isoc99_vfwscanf.c: Likewise.
9119 * wcsmbs/isoc99_vswscanf.c: Likewise.
9120 * wcsmbs/isoc99_vwscanf.c: Likewise.
9121 * wcsmbs/isoc99_wscanf.c: Likewise.
9122
9123 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
9124
9125 * include/time.h
9126 (__tz_compute): Replace time_t with __time64_t.
9127 (__tz_convert): Replace time_t* with __time64_t.
9128 (__offtime): Replace time_t* with __time64_t.
9129 * time/gmtime.c
9130 (__gmtime_r): Adjust call to __tz_convert.
9131 (gmtime): Likewise.
9132 * time/localtime.c
9133 (__localtime_r): Likewise.
9134 (localtime): Likewise.
9135 * time/offtime.c: Replace time_t with __time64_t.
9136 * time/tzset.c: Likewise.
9137
9138 2018-12-04 Joseph Myers <joseph@codesourcery.com>
9139
9140 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
9141 dynamic linker unless [$(run-built-tests) = yes].
9142
9143 2018-12-03 DJ Delorie <dj@delorie.com>
9144
9145 * support/test-container.c (check_for_unshare_hints): New.
9146 (main): Call it if unshare fails. Add support for "su" scriptlet
9147 command.
9148
9149 2018-12-03 Joseph Myers <joseph@codesourcery.com>
9150
9151 * scripts/gen-as-const.py (compute_c_consts): Take an argument
9152 'START' to indicate that start text should be output.
9153 (gen_test): Likewise.
9154 (main): Generate 'START' for first symbol or '--' line, or at end
9155 of input if not previously generated.
9156
9157 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
9158
9159 [BZ #19767]
9160 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
9161 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
9162 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
9163 ALWAYS_USE_VSYSCALL.
9164
9165 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9166
9167 [BZ #23913]
9168 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
9169 new_argv by one.
9170
9171 2018-12-03 Carlos O'Donell <carlos@redhat.com>
9172
9173 [BZ #23923]
9174 * locale/programs/localedef.c: Declare boolean hard_links default true.
9175 (options): Add --no-hard-links option.
9176 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
9177 * locale/programs/localedef.h: Declare prototype for hard_links.
9178 * locale/programs/locfile.c (write_locale_data): Don't use hard
9179 links if hard_links is false.
9180
9181 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
9182
9183 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
9184 cpu_features_basic.
9185 (__cache_sysconf): Likewise.
9186 (init_cacheinfo): Likewise.
9187 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
9188 populate COMMON_CPUID_INDEX_80000007 and
9189 COMMON_CPUID_INDEX_80000008.
9190 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
9191 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
9192 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
9193 (init_cpu_features): Use _Static_assert on
9194 index_arch_Fast_Unaligned_Load.
9195 __get_cpuid_registers and __get_arch_feature. Updated for
9196 cpu_features_basic. Set stepping in cpu_features.
9197 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
9198 (FEATURE_INDEX_2): New.
9199 (FEATURE_INDEX_MAX): Changed to enum.
9200 (COMMON_CPUID_INDEX_D_ECX_1): New.
9201 (COMMON_CPUID_INDEX_80000007): Likewise.
9202 (COMMON_CPUID_INDEX_80000008): Likewise.
9203 (cpuid_registers): Likewise.
9204 (cpu_features_basic): Likewise.
9205 (CPU_FEATURE_USABLE): Likewise.
9206 (bit_arch_XXX_Usable): Likewise.
9207 (cpu_features): Use cpuid_registers and cpu_features_basic.
9208 (bit_arch_XXX): Reweritten.
9209 (bit_cpu_XXX): Likewise.
9210 (index_cpu_XXX): Likewise.
9211 (reg_XXX): Likewise.
9212 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
9213 <support/check.h>.
9214 (CHECK_CPU_FEATURE): New.
9215 (CHECK_CPU_FEATURE_USABLE): Likewise.
9216 (cpu_kinds): Likewise.
9217 (do_test): Print vendor, family, model and stepping. Check
9218 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
9219 (TEST_FUNCTION): Removed.
9220 Include <support/test-driver.c> instead of
9221 "../../test-skeleton.c".
9222 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
9223 Check POPCNT instead of POPCOUNT.
9224 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
9225
9226 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
9227
9228 * scripts/gen-as-const.py (main): Avoid emitting empty line when
9229 there is no element in `consts'.
9230
9231 2018-12-01 Florian Weimer <fweimer@redhat.com>
9232
9233 * support/support_capture_subprocess.c
9234 (support_capture_subprocess): Check that pipe descriptors have
9235 expected values. Close original pipe descriptors in subprocess.
9236
9237 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9238
9239 [BZ #23032]
9240 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
9241 attr with __pthread_default_barrierattr.
9242 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
9243 attr with __pthread_default_condattr.
9244 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
9245 attr with __pthread_default_mutexattr.
9246 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
9247 attr with __pthread_default_rwlockattr.
9248
9249 2018-12-01 Kemi Wang <kemi.wang@intel.com>
9250
9251 * manual/tunables.texi (POSIX Thread Tunables): New node.
9252 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
9253 * nptl/nptl-init.c: Include pthread_mutex_conf.h
9254 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
9255 __pthread_tunables_init.
9256 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
9257 (max_adaptive_count): Define.
9258 * nptl/pthread_mutex_conf.c: New file.
9259 * nptl/pthread_mutex_conf.h: New file.
9260 * sysdeps/generic/adaptive_spin_count.h: New file.
9261 * sysdeps/nptl/dl-tunables.list: New file.
9262 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
9263 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
9264 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
9265 Likewise.
9266
9267 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
9268
9269 [BZ #20544]
9270 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
9271 * stdlib/on_exit.c (__on_exit): Likewise.
9272 * stdlib/Makefile (tests): Add tst-bz20544.
9273 * stdlib/tst-bz20544.c: New test.
9274
9275 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
9276
9277 [BZ #19767]
9278 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
9279 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
9280 New.
9281
9282 2018-11-30 Florian Weimer <fweimer@redhat.com>
9283
9284 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
9285 Extend error logging.
9286 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
9287 symbol.
9288
9289 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9290
9291 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
9292 __sigismember instead of sigismember.
9293 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
9294 cancel_handler): New definitions.
9295 (do_system): Use posix_spawn instead of fork and execl and remove
9296 reentracy code.
9297 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
9298 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
9299 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
9300 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
9301 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
9302 * sysdeps/unix/sysv/linux/system.c: Likewise.
9303
9304 [BZ #22834]
9305 [BZ #17490]
9306 * NEWS: Add new semantic for atfork with popen and system.
9307 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
9308 fork and execl.
9309
9310 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9311
9312 [BZ #23690]
9313 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
9314 modification order when accessing reloc_result->addr.
9315 * include/link.h (reloc_result): Add field init.
9316 * nptl/Makefile (tests): Add tst-audit-threads.
9317 (modules-names): Add tst-audit-threads-mod1 and
9318 tst-audit-threads-mod2.
9319 Add rules to build tst-audit-threads.
9320 * nptl/tst-audit-threads-mod1.c: New file.
9321 * nptl/tst-audit-threads-mod2.c: Likewise.
9322 * nptl/tst-audit-threads.c: Likewise.
9323 * nptl/tst-audit-threads.h: Likewise.
9324
9325 2018-11-30 Joseph Myers <joseph@codesourcery.com>
9326
9327 * scripts/gen-as-const.py: New file.
9328 * scripts/gen-as-const.awk: Remove.
9329 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
9330 gen-as-const.py.
9331 ($(objpfx)test-as-const-%.c): Likewise.
9332
9333 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
9334
9335 * elf/dl-exception.c: Include <_itoa.h>.
9336
9337 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9338
9339 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
9340 returned by __f_setlk.
9341
9342 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
9343 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9344
9345 * elf/Makefile (tests-internal): Add tst-create_format1.
9346 * elf/dl-exception.c (_dl_exception_create_format): Support
9347 %x, %lx and %zx.
9348 * elf/tst-create_format1.c: New file.
9349
9350 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
9351
9352 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
9353 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
9354 gnulib.)
9355 * argp/argp-help.c (__argp_failure): Likewise.
9356
9357 2018-11-29 Mao Han <han_mao@c-sky.com>
9358
9359 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
9360 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
9361 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
9362 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
9363 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
9364 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
9365 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
9366 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
9367 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
9368 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
9369 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
9370 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
9371 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
9372 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
9373 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
9374 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
9375 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
9376 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
9377 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
9378 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
9379 (R_CKCORE_TLS_TPOFF32): New defines.
9380
9381 2018-11-29 Florian Weimer <fweimer@redhat.com>
9382
9383 * posix/Makefile (before-compile): Remove testcases.h and
9384 ptestcases.h.
9385 (generated): Add testcases.h and ptestcases.h.
9386 (testcases.h, ptestcases.h): Move to $(objpfx).
9387 (runtests.o): Add dependency on testcases.h.
9388 (runptests.o): Add dependency on ptestcases.h.
9389 * posix/testcases.h, posix/ptestcases.h: Remove files.
9390 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
9391 not touch posix/testcases.h and posix/ptestcases.h.
9392
9393 2018-11-28 Florian Weimer <fweimer@redhat.com>
9394
9395 support: Add signal support to support_capture_subprocess_check.
9396 * support/capture_subprocess.h (support_capture_subprocess_check):
9397 Adjust comment and rename parameter.
9398 * support/support_capture_subprocess_check.c
9399 (print_actual_status): New function.
9400 (support_capture_subprocess_check): Support negative
9401 status_or_signal. Call print_actual_status.
9402 * support/tst-support_capture_subprocess.c (do_test): Call
9403 support_capture_subprocess_check.
9404 * libio/tst-vtables-common.c (termination_status)
9405 (init_termination_status): Remove.
9406 (check_for_termination): Adjust support_capture_subprocess_check
9407 call.
9408 (do_test): Remove call to init_termination_status.
9409
9410 2018-11-28 Joseph Myers <joseph@codesourcery.com>
9411
9412 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
9413 source directory instead of a copy.
9414 (CommandList.create_copy_dir): Remove.
9415
9416 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
9417
9418 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
9419
9420 2018-11-28 Florian Weimer <fweimer@redhat.com>
9421
9422 * support/support.h (support_quote_string): Do not use str
9423 parameter name.
9424
9425 2018-11-27 Joseph Myers <joseph@codesourcery.com>
9426
9427 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
9428 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
9429
9430 2018-11-27 Florian Weimer <fweimer@redhat.com>
9431
9432 * support/support.h (support_quote_string): Declare.
9433 * support/support_quote_string.c: New file.
9434 * support/tst-support_quote_string.c: Likewise.
9435 * support/Makefile (libsupport-routines): Add
9436 support_quote_string.
9437 (tests): Add tst-support_quote_string.
9438
9439 2018-11-27 Florian Weimer <fweimer@redhat.com>
9440
9441 [BZ #23927]
9442 CVE-2018-19591
9443 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
9444 descriptor leak in case of ENODEV error.
9445
9446 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
9447
9448 [BZ #19767]
9449 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
9450 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
9451 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
9452
9453 2018-11-26 Carlos O'Donell <carlos@redhat.com>
9454
9455 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
9456 Error for unknown lines.
9457
9458 2018-11-26 Joseph Myers <joseph@codesourcery.com>
9459
9460 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
9461 Touch additional files.
9462
9463 2018-11-26 Florian Weimer <fweimer@redhat.com>
9464
9465 [BZ #23907]
9466 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
9467 double-frees.
9468
9469 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
9470
9471 [BZ #19767]
9472 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
9473 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
9474 SHARED. Include sysdep.h.
9475 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
9476 ALWAYS_USE_VSYSCALL.
9477 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
9478 ALWAYS_USE_VSYSCALL.
9479
9480 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
9481
9482 [BZ #19767]
9483 * nptl/Makefile (tests-static): Add tst-cond11-static.
9484 (tests): Likewise.
9485 * nptl/tst-cond11-static.c: New File.
9486 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
9487 tst-affinity-static.
9488 (tests): Likewise.
9489 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
9490 instead of SHARED.
9491 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
9492 (USE_VSYSCALL): Likewise.
9493 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
9494 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
9495 instead of SHARED.
9496 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
9497 SHARED.
9498 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
9499 New.
9500
9501 2018-11-23 Joseph Myers <joseph@codesourcery.com>
9502
9503 [BZ #23915]
9504 * sysdeps/unix/sysv/linux/arm/kernel-features.h
9505 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
9506 Undefine.
9507
9508 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
9509
9510 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
9511 (tst-cet-legacy-1a-ARGS): New.
9512 ($(objpfx)tst-cet-legacy-1a): New target.
9513 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
9514
9515 2018-11-22 Joseph Myers <joseph@codesourcery.com>
9516
9517 * conform/conformtest.py (CompileSubTest.__init__): Set
9518 self.run_early to False.
9519 (ExecuteSubTest.__init__): Likewise.
9520 (HeaderTests.run): Try running all non-optional, non-XFAILed
9521 compilation tests in a single execution of the compiler.
9522
9523 * conform/conformtest.py (CompileSubTest): New class.
9524 (ExecuteSubTest): Likewise.
9525 (ElementTest.run): Rename to gen_subtests. Append tests to
9526 self.subtests instead of running them.
9527 (ConstantTest.run): Likewise.
9528 (SymbolTest.run): Likewise.
9529 (TypeTest.run): Likewise.
9530 (TagTest.run): Likewise.
9531 (FunctionTest.run): Likewise.
9532 (VariableTest.run): Likewise.
9533 (MacroFunctionTest.run): Likewise.
9534 (MacroStrTest.run): Likewise.
9535 (HeaderTests.handle_test_line): Generate subtests for tests.
9536 (HeaderTests.run): Run subtests for tests.
9537
9538 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
9539
9540 * math/Versions (GLIBC_2.29): Add pow.
9541 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
9542 symbol.
9543 * math/w_pow.c: New file.
9544 * sysdeps/i386/fpu/w_pow.c: New file.
9545 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
9546 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
9547 and add necessary aliases.
9548 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
9549 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
9550 * sysdeps/mach/hurd/i386/libm.abilist: Update.
9551 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
9552 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
9553 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
9554 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
9555 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
9556 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
9557 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
9558 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
9559 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
9560 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
9561 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
9562 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
9563 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
9564 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
9565 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
9566 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
9567 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
9568 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
9569 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
9570 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
9571 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
9572 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
9573 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
9574 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
9575 __pow.
9576 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
9577 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
9578 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
9579
9580 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
9581
9582 * math/Versions (GLIBC_2.29): Add log2.
9583 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
9584 symbol.
9585 * math/w_log2.c: New file.
9586 * sysdeps/i386/fpu/w_log2.c: New file.
9587 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
9588 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
9589 and add necessary aliases.
9590 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
9591 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
9592 * sysdeps/mach/hurd/i386/libm.abilist: Update.
9593 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
9594 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
9595 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
9596 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
9597 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
9598 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
9599 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
9600 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
9601 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
9602 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
9603 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
9604 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
9605 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
9606 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
9607 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
9608 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
9609 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
9610 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
9611 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
9612 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
9613 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
9614 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
9615 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
9616
9617 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
9618
9619 * math/Versions (GLIBC_2.29): Add log.
9620 * math/w_log_compat.c (__log_compat): Change to versioned compat
9621 symbol.
9622 * math/w_log.c: New file.
9623 * sysdeps/i386/fpu/w_log.c: New file.
9624 * sysdeps/ia64/fpu/e_log.S: Update.
9625 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
9626 and add necessary aliases.
9627 * sysdeps/ieee754/dbl-64/w_log.c: New file.
9628 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
9629 * sysdeps/mach/hurd/i386/libm.abilist: Update.
9630 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
9631 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
9632 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
9633 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
9634 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
9635 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
9636 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
9637 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
9638 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
9639 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
9640 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
9641 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
9642 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
9643 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
9644 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
9645 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
9646 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
9647 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
9648 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
9649 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
9650 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
9651 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
9652 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
9653 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
9654 __log.
9655 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
9656 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
9657 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
9658 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
9659
9660 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
9661
9662 * math/Versions (GLIBC_2.29): Add exp and exp2.
9663 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
9664 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
9665 * math/w_exp_compat.c (__exp_compat): Likewise.
9666 * math/w_exp.c: New file.
9667 * math/w_exp2.c: New file.
9668 * sysdeps/i386/fpu/w_exp.c: New file.
9669 * sysdeps/i386/fpu/w_exp2.c: New file.
9670 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
9671 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
9672 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
9673 and add necessary aliases.
9674 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
9675 and add necessary aliases.
9676 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
9677 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
9678 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
9679 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
9680 * sysdeps/mach/hurd/i386/libm.abilist: Update.
9681 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
9682 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
9683 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
9684 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
9685 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
9686 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
9687 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
9688 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
9689 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
9690 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
9691 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
9692 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
9693 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
9694 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
9695 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
9696 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
9697 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
9698 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
9699 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
9700 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
9701 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
9702 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
9703 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
9704 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
9705 (__ieee754_exp): Rename to __exp.
9706 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
9707 (__ieee754_exp): Rename to __exp.
9708 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
9709 (__ieee754_exp): Rename to __exp.
9710 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
9711 __exp.
9712 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
9713
9714 2018-11-20 DJ Delorie <dj@redhat.com>
9715
9716 * malloc/malloc.c (tcache_entry): Add key field.
9717 (tcache_put): Set it.
9718 (tcache_get): Likewise.
9719 (_int_free): Check for double free in tcache.
9720 * malloc/tst-tcfree1.c: New.
9721 * malloc/tst-tcfree2.c: New.
9722 * malloc/Makefile: Run the new tests.
9723 * manual/probes.texi: Document memory_tcache_double_free probe.
9724
9725 * dlfcn/dlerror.c (check_free): Prevent double frees.
9726
9727 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
9728
9729 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
9730
9731 2018-11-20 Joseph Myers <joseph@codesourcery.com>
9732
9733 * conform/conformtest.py (ElementTest.run): Use unique identifiers
9734 in tests. Use names for format arguments.
9735 (ConstantTest.run): Likewise.
9736 (SymbolTest.run): Likewise.
9737 (TypeTest.run): Likewise.
9738 (TagTest.run): Likewise.
9739 (FunctionTest.run): Likewise.
9740 (VariableTest.run): Likewise.
9741 (MacroFunctionTest.run): Likewise.
9742 (MacroStrTest.run): Likewise.
9743 (HeaderTests.__init__): Set self.num_tests.
9744 (HeaderTests.handle_test_line): Set test.num. Increment
9745 self.num_tests.
9746
9747 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
9748
9749 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
9750 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
9751 SEEK_SET.
9752
9753 2018-11-19 Mao Han <han_mao@c-sky.com>
9754
9755 * scripts/config.guess: Update to version 2018-08-29.
9756 * scripts/config.sub: Update to version 2018-08-29.
9757
9758 2018-11-19 Florian Weimer <fweimer@redhat.com>
9759
9760 support: Print timestamps in timeout handler.
9761 * support/support_test_main.c (print_timestamp): New function.
9762 (signal_handler): Use it to print the termination time and the
9763 time of the last write to standard output.
9764
9765 2018-11-16 Zack Weinberg <zackw@panix.com>
9766 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9767
9768 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
9769 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
9770 argument.
9771 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
9772 and add flags argument. Check flags instead of __ldbl_is_dbl when
9773 deciding whether to set is_long_double.
9774 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
9775 passing zero for flags argument.
9776 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
9777
9778 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
9779 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
9780 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
9781 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
9782 variable names. Remove libc_hidden_def/libc_hidden_proto from
9783 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
9784 longer called from within the library.
9785 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
9786 for __nldbl___vstrfmon_l, declare it explicitly.
9787
9788 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
9789
9790 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
9791
9792 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
9793 macros
9794 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
9795 F_SETLK64, F_SETLKW64, respectively.
9796 * sysdeps/mach/hurd/f_setlk.c: New file.
9797 * sysdeps/mach/hurd/f_setlk.h: New file.
9798 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
9799 f_setlk.
9800 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
9801 (__libc_fcntl): Move non-flock operations to...
9802 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
9803 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
9804
9805 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
9806
9807 mktime: DEBUG_MKTIME cleanup
9808 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
9809 And it’s no longer needed now that glibc and Gnulib both have
9810 their own testing mechanisms for mktime.
9811 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
9812
9813 mktime: fix non-EOVERFLOW errno handling
9814 [BZ#23789]
9815 mktime was not properly reporting failures when the underlying
9816 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
9817 them like EOVERFLOW failures, and set errno to EOVERFLOW.
9818 The problem could happen on non-glibc platforms, with Gnulib.
9819 * time/mktime.c (guess_time_tm): Remove, replacing with ...
9820 (tm_diff): ... this simpler function, which does not change errno.
9821 All callers changed to deal with errno themselves.
9822 (ranged_convert, __mktime_internal): Return failure immediately if
9823 the underlying function reports any failure other than EOVERFLOW.
9824 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
9825 gap code fails.
9826
9827 mktime: fix bug with Y2038 DST transition
9828 [BZ#23789]
9829 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
9830 mishandle a DST transition that jumps over the Y2038 boundary.
9831 No such DST transitions are known so this is only a theoretical
9832 bug, but we might as well do things right.
9833
9834 mktime: make more room for overflow
9835 [BZ#23789]
9836 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
9837 This is so that we can add tm_diff results to a previous guess,
9838 which will be useful in a later patch.
9839
9840 mktime: simplify offset guess
9841 [BZ#23789]
9842 * time/mktime.c (__mktime_internal): Omit excess precision.
9843
9844 mktime: new test for mktime failure
9845 [BZ#23789]
9846 Based on a test suggested by Albert Aribaud in:
9847 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
9848 * time/Makefile (tests): Add bug-mktime4.
9849 * time/bug-mktime4.c: New file.
9850
9851 mktime: fix EOVERFLOW bug
9852 [BZ#23789]
9853 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
9854 Include libc-config.h, not config.h, for __set_errno.
9855 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
9856
9857 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
9858
9859 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
9860 __attribute_copy__ to copy attributes from name. Drop static qualifier
9861 to avoid warnings about leaf attribute not having effect on static
9862 functions.
9863
9864 2018-11-13 Florian Weimer <fweimer@redhat.com>
9865
9866 * malloc/malloc.c (fastbin_push_entry): New function.
9867 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
9868 (REMOVE_FB): Remove macro.
9869 (_int_malloc): Use fastbin_pop_entry and reindent.
9870 (_int_free): Use fastbin_push_entry.
9871 (malloc_consolidate): Use atomic_exchange_acquire.
9872
9873 2018-11-13 Joseph Myers <joseph@codesourcery.com>
9874
9875 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
9876 alias attribute, not with strong_alias.
9877
9878 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
9879 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
9880 with additional parameter thread.
9881 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
9882 in terms of __hidden_ver2.
9883 (hidden_tls_def): New macro.
9884 (libc_hidden_tls_def): Likewise.
9885 (rtld_hidden_tls_def): Likewise.
9886 (libm_hidden_tls_def): Likewise.
9887 (libmvec_hidden_tls_def): Likewise.
9888 (libresolv_hidden_tls_def): Likewise.
9889 (librt_hidden_tls_def): Likewise.
9890 (libdl_hidden_tls_def): Likewise.
9891 (libnss_files_hidden_tls_def): Likewise.
9892 (libnsl_hidden_tls_def): Likewise.
9893 (libnss_nisplus_hidden_tls_def): Likewise.
9894 (libutil_hidden_tls_def): Likewise.
9895 (libutil_hidden_tls_def): Likweise.
9896 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
9897 libc_hidden_tls_def.
9898 (__sim_disabled_exceptions_thread): Likewise.
9899 (__sim_round_mode_thread): Likewise.
9900
9901 * sysdeps/sparc/sparc-ifunc.h [SHARED]
9902 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
9903 copy attributes from name.
9904
9905 2018-11-12 Joseph Myers <joseph@codesourcery.com>
9906
9907 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
9908 Use __attribute_copy__ to copy attributes from name.
9909
9910 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
9911 with __hidden_ver1 call.
9912 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
9913 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
9914 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
9915 (__cosf): Do not declare here.
9916 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
9917 (__sincosf): Do not declare here.
9918 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
9919 (__sinf): Do not declare here.
9920
9921 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
9922 (__BIG_ENDIAN): Likewise.
9923 (__BYTE_ORDER): Likewise.
9924 (strong_alias): Likewise.
9925 (_strong_alias): Likewise.
9926
9927 2018-11-12 Florian Weimer <fweimer@redhat.com>
9928
9929 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
9930 function. Move after the definition of in_smallbin_range. Do not
9931 use __builtin_expect for paths that lead to a noreturn function.
9932 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
9933 because it is unclear whether this is in fact an unlikely
9934 condition.
9935 (_int_malloc, _int_free): Adjust.
9936 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
9937 variables.
9938 * malloc/arena.c (heap_trim): Likewise.
9939
9940 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
9941
9942 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
9943 it, free it if needed.
9944 (reauthenticate): Test and use ccwdir.
9945 (child_init_port): In non-resetids case, test and use ccwdir.
9946 (child_chdir): New nested function to set ccwdir.
9947 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
9948 * hurd/hurd/port.h (_hurd_port_move): New function.
9949 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
9950 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
9951 * hurd/Versions (_hurd_port_move): Export function.
9952 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
9953 symbol.
9954 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
9955 of dtablesize for allocating dtable_cloexec.
9956
9957 2018-11-09 Martin Sebor <msebor@redhat.com>
9958
9959 * include/libc-symbols.h (__attribute_copy__): Define macro unless
9960 it's already defined.
9961 (_strong_alias): Use __attribute_copy__.
9962 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
9963 * misc/sys/cdefs.h (__attribute_copy__): New macro.
9964 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
9965 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
9966 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
9967 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
9968 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
9969 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
9970 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
9971 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
9972 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
9973 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
9974 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
9975 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
9976 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
9977 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
9978 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
9979 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
9980 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
9981
9982 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9983
9984 * misc/tst-efgcvt.c: Include support/check.h and
9985 support/test-driver.c. Do not include test-skeleton.c.
9986 (error_count): Remove.
9987 (output_error): Replace increments to error_count with calls to
9988 support_record_failure.
9989 (output_r_error): Likewise.
9990 (special): Likewise.
9991 (do_test): Unconditionally return zero.
9992 (TEST_FUNCTION): Remove.
9993
9994 2018-11-09 Joseph Myers <joseph@codesourcery.com>
9995
9996 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
9997 not $(@D)/scratch.
9998 ($(linknamespace-header-tests)): Likewise.
9999
10000 * conform/conformtest.py: New file.
10001 * conform/conformtest.pl: Remove.
10002 * conform/GlibcConform.pm: Likewise.
10003 * conform/glibcconform.py (KEYWORDS_C90): New constant.
10004 (KEYWORDS_C99): Likewise.
10005 (KEYWORDS): Likewise.
10006 * conform/Makefile ($(conformtest-header-tests)): Use
10007 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
10008 option. Use --header instead of --headers.
10009 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
10010 function entries.
10011 * conform/data/spawn.h-data: Likewise.
10012 * conform/data/fcntl.h-data (openat): Add space after function
10013 name.
10014 * conform/data/wchar.h-data (wcscasecmp): Likewise.
10015 (wcscasecmp_l): Likewise.
10016 * conform/data/termios.h-data (c_cc): Add space after element
10017 name.
10018
10019 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10020
10021 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
10022 instead of manually comparing and reporting mismatching strings.
10023 * misc/tst-ldbl-error.c (do_one_test): Likewise.
10024 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
10025
10026 2018-11-08 Joseph Myers <joseph@codesourcery.com>
10027
10028 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
10029 __ASSUME_SOCKETCALL.
10030 * sysdeps/unix/sysv/linux/i386/kernel-features.h
10031 (__ASSUME_SOCKETCALL): Remove.
10032 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
10033 (__ASSUME_SOCKETCALL): Likewise.
10034 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10035 (__ASSUME_SOCKETCALL): Likewise.
10036 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
10037 (__ASSUME_SOCKETCALL): Likewise.
10038 * sysdeps/unix/sysv/linux/s390/kernel-features.h
10039 (__ASSUME_SOCKETCALL): Likewise.
10040 * sysdeps/unix/sysv/linux/sh/kernel-features.h
10041 (__ASSUME_SOCKETCALL): Likewise.
10042 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
10043 (__ASSUME_SOCKETCALL): Likewise.
10044
10045 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
10046
10047 [BZ #23509]
10048 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
10049 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
10050 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
10051 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
10052 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
10053 lc_unknown.
10054
10055 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
10056
10057 [BZ #17630]
10058 * resolv/tst-resolv-network.c: Add test for getnetbyname.
10059
10060 2018-11-07 Joseph Myers <joseph@codesourcery.com>
10061
10062 [BZ #23867]
10063 * sysdeps/unix/sysv/linux/arm/kernel-features.h
10064 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
10065 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10066 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
10067
10068 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10069
10070 * support/support_test_compare_string.c
10071 (support_test_compare_string): Fix printf format.
10072
10073 2018-11-07 Florian Weimer <fweimer@redhat.com>
10074
10075 Implement TEST_COMPARE_STRING.
10076 * support/check.h (TEST_COMPARE_STRING): Define.
10077 (support_test_compare_string): Declare.
10078 * support/Makefile (libsupport-routines): Add
10079 support_test_compare_string.
10080 (tests): Add tst-test_compare_string.
10081 * support/support_test_compare_string.c: New file.
10082 * support/tst-test_compare_string.c: Likewise.
10083
10084 2018-11-07 Andreas Schwab <schwab@suse.de>
10085
10086 [BZ #23864]
10087 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
10088 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
10089 Undef.
10090
10091 2018-11-06 Joseph Myers <joseph@codesourcery.com>
10092
10093 [BZ #23862]
10094 * sysdeps/unix/sysv/linux/sh/kernel-features.h
10095 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
10096 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
10097 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
10098 Likewise.
10099
10100 2018-11-06 Florian Weimer <fweimer@redhat.com>
10101
10102 [BZ #17405]
10103 * posix/Makefile (routines): Add spawn_faction_addchdir.
10104 (tests): Add tst-spawn-chdir.
10105 * posix/Versions (GLIBC_2.29): Add
10106 posix_spawn_file_actions_addchdir_np.
10107 * posix/spawn_faction_addchdir.c: New file.
10108 * posix/spawn_faction_destroy.c
10109 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
10110 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
10111 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
10112 chdir_action.
10113 * posix/tst-spawn-chdir.c: New file.
10114 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
10115 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
10116 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
10117 posix_spawn_file_actions_addchdir_np.
10118 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
10119 Likewise.
10120 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
10121 Likewise.
10122 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
10123 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
10124 Likewise.
10125 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
10126 Likewise.
10127 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
10128 Likewise.
10129 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
10130 Likewise.
10131 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
10132 Likewise.
10133 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
10134 Likewise.
10135 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
10136 (GLIBC_2.29): Likewise.
10137 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
10138 (GLIBC_2.29): Likewise.
10139 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
10140 (GLIBC_2.29): Likewise.
10141 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
10142 (GLIBC_2.29): Likewise.
10143 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
10144 Likewise.
10145 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
10146 (GLIBC_2.29): Likewise.
10147 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
10148 (GLIBC_2.29): Likewise.
10149 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
10150 (GLIBC_2.29): Likewise.
10151 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
10152 (GLIBC_2.29): Likewise.
10153 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
10154 Likewise.
10155 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
10156 Likewise.
10157 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
10158 Likewise.
10159 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
10160 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
10161 Likewise.
10162 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
10163 Likewise.
10164 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
10165 Likewise.
10166 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
10167 Likewise.
10168
10169 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10170
10171 * misc/Makefile (tests): Add tst-ldbl-error.
10172 * misc/tst-ldbl-error.c: New file.
10173
10174 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10175
10176 * misc/Makefile (tests): Add tst-ldbl-warn.
10177 * misc/tst-ldbl-warn.c: New file.
10178
10179 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10180
10181 * argp/Makefile (tests): Add tst-ldbl-argp.
10182 * argp/tst-ldbl-argp.c: New file.
10183
10184 2018-11-05 Arjun Shankar <arjun@redhat.com>
10185
10186 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
10187 __gconv_path_elem and call __gconv_get_path unconditionally.
10188
10189 2018-11-05 Andreas Schwab <schwab@suse.de>
10190
10191 [BZ #22927]
10192 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
10193 creating the first helper thread failed.
10194
10195 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10196
10197 * sysdeps/mach/hurd/msync.c: New file.
10198
10199 2018-11-02 Florian Weimer <fweimer@redhat.com>
10200
10201 * support/shell-container.c (copy_func): Call
10202 support_copy_file_range instead of copy_file_range to support
10203 cross-device copies.
10204
10205 2018-11-02 Florian Weimer <fweimer@redhat.com>
10206
10207 * support/test-container.c: Include <libc-pointer-arith.h> for
10208 ALIGN_UP.
10209
10210 2018-11-01 Zong Li <zong@andestech.com>
10211
10212 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
10213 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
10214 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
10215 (__FP_FRAC_SET_8): Add implementation for RV32 use.
10216
10217 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
10218 variable to avoid overlap arguments.
10219
10220 2018-11-01 Joseph Myers <joseph@codesourcery.com>
10221
10222 * posix/bug-regex22.c (main): Use puts with distinct error
10223 messages for unexpected success of re_compile_pattern, not printf
10224 with NULL argument to %s.
10225
10226 * stdio-common/bug22.c: Include <libc-diag.h>.
10227 (do_test): Disable -Wformat-overflow= warnings around fprintf
10228 calls outputting more than INT_MAX characters.
10229 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
10230 around printf call with NULL %s argument.
10231
10232 [BZ #23848]
10233 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
10234 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
10235 Undefine.
10236 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
10237 (__ASSUME_RECVMSG_SYSCALL): Likewise.
10238 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
10239 (__ASSUME_SENDTO_SYSCALL): Likewise.
10240 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
10241 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
10242 [!__arch64__].
10243 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
10244 (__ASSUME_CONNECT_SYSCALL): Likewise.
10245 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
10246 (__ASSUME_RECVFROM_SYSCALL): Likewise.
10247 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
10248 Define.
10249 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
10250 Likewise.
10251 [__LINUX_KERNEL_VERSION >= 0x040400]
10252 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
10253 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
10254 Remove.
10255 (listen): Likewise.
10256 (setsockopt): Likewise.
10257
10258 2018-11-01 Fredrik Noring <noring@nocrew.org>
10259
10260 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
10261 with the ISA override.
10262
10263 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
10264
10265 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
10266 #endif.
10267
10268 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
10269
10270 * manual/errno.texi (EIEIO): Document how translators should
10271 translate the error message.
10272 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
10273 printing trailing whitespaces refused by git.
10274 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
10275 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
10276 * hurd/Makefile (user-interfaces): Add pci.
10277
10278 2018-10-30 Joseph Myers <joseph@codesourcery.com>
10279
10280 * conform/linknamespace.py: New file.
10281 * conform/linknamespace.pl: Remove file.
10282 * conform/Makefile ($(linknamespace-header-tests)): Use
10283 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
10284 option.
10285
10286 2018-10-30 Florian Weimer <fweimer@redhat.com>
10287
10288 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
10289 memory leaks.
10290
10291 2018-10-30 Florian Weimer <fweimer@redhat.com>
10292
10293 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
10294
10295 2018-10-30 Florian Weimer <fweimer@redhat.com>
10296
10297 * stdlib/tst-strtod-overflow.c (do_test): Switch to
10298 support_blob_repeat.
10299
10300 2018-10-30 Florian Weimer <fweimer@redhat.com>
10301
10302 Avoid spurious test failures in stdlib/test-bz22786.
10303 * support/Makefile (libsupport-routines): Add blob_repeat.
10304 (tests): Add tst-support_blob_repeat.
10305 * support/blob_repeat.h: New file.
10306 * support/blob_repeat.c: Likewise.
10307 * support/tst-support_blob_repeat.c: Likewise.
10308 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
10309 support_blob_repeat_allocate.
10310
10311 2018-10-30 Andreas Schwab <schwab@suse.de>
10312
10313 [BZ #23125]
10314 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
10315 Don't use tail call.
10316 * elf/tst-unwind-main.c: New file.
10317 * elf/Makefile (tests): Add tst-unwind-main.
10318 (CFLAGS-tst-unwind-main.c): Define.
10319
10320 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
10321
10322 [BZ #23791]
10323 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
10324 n_cs_precedes to 0.
10325 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
10326
10327 2018-10-29 Joseph Myers <joseph@codesourcery.com>
10328
10329 * conform/glibcconform.py: Do not import shutil.
10330 (list_exported_functions): Use tempfile.TemporaryDirectory instead
10331 of mkdtemp.
10332
10333 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
10334 critic_missing for versions before 3.4.
10335 * configure: Regenerated.
10336 * manual/install.texi (Tools for Compilation): Document
10337 requirement for Python to build glibc.
10338 * INSTALL: Regenerated.
10339 * Rules [PYTHON]: Make code unconditional.
10340 * benchtests/Makefile [PYTHON]: Likewise.
10341 * conform/Makefile [PYTHON]: Likewise.
10342 * manual/Makefile [PYTHON]: Likewise.
10343 * math/Makefile [PYTHON]: Likewise.
10344
10345 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
10346
10347 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
10348 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
10349 answer to interrupt_operation, return EIEIO instead of EINTR.
10350 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
10351 _hurd_intr_rpc_msg_about_to global point to start of controlled
10352 assembly snippet. Make it check canceled flag.
10353 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
10354 the _hurd_intr_rpc_msg_about_to point.
10355 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
10356 issue, remove cancel flag check.
10357
10358 2018-10-26 Joseph Myers <joseph@codesourcery.com>
10359
10360 * scripts/build-many-glibcs.py: Remove compatibility for missing
10361 os.cpu_count and re.fullmatch.
10362
10363 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
10364
10365 [BZ #23822]
10366 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
10367 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
10368 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
10369
10370 2018-10-25 Joseph Myers <joseph@codesourcery.com>
10371
10372 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
10373 macro.
10374
10375 2018-10-25 Florian Weimer <fweimer@redhat.com>
10376
10377 [BZ #23562]
10378 [BZ #23821]
10379 XFAIL siginfo_t si_band conform test on sparc64.
10380 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
10381 (__SI_BAND_TYPE): Only override long int default type on sparc64.
10382 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
10383 (conformtest-xfail-conds): Add sparc64-linux.
10384 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
10385 sparc64.
10386 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
10387
10388 2018-10-25 Joseph Myers <joseph@codesourcery.com>
10389
10390 * elf/elf.h (NT_MIPS_DSP): New macro.
10391 (NT_MIPS_FP_MODE): Likewise.
10392
10393 2018-10-25 Zong Li <zong@andestech.com>
10394
10395 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
10396 name by adding the file extension (.so).
10397
10398 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
10399
10400 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
10401 (test-xfail-ISO11/threads.h/linknamespace,
10402 test-xfail-ISO11/threads.h/conform): Add.
10403
10404 2018-10-24 Joseph Myers <joseph@codesourcery.com>
10405
10406 * math/gen-libm-test.py: Import os.
10407 (ALL_FLOATS_MANUAL): New constant.
10408 (ALL_FLOATS_SUFFIX): Likewise.
10409 (Ulps.all_functions): New function.
10410 (real_all_ulps): Likewise.
10411 (generate_err_table_sub): Likewise.
10412 (generate_err_table): Likewise.
10413 (main): Handle -s and -m options.
10414 * manual/libm-err-tab.pl: Remove.
10415 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
10416 instead of libm-err-tab.pl.
10417 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
10418 != no].
10419 * manual/install.texi (Tools for Compilation): Document
10420 requirement for Python to build manual.
10421 * INSTALL: Regenerated.
10422
10423 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
10424
10425 * bits/time64.h: New file.
10426 * include/time.h: Replace internal_time_t with __time64_t.
10427 * posix/bits/types (__time64_t): Add.
10428 * stdlib/Makefile: Add bits/time64.h to includes.
10429 * time/tzfile.c: Replace internal_time_t with __time64_t.
10430
10431 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10432
10433 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
10434 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
10435 __posix_spawn_file_actions_init, __posix_spawnattr_init,
10436 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
10437 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
10438 prototype.
10439 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
10440 * posix/spawn_faction_addclose.c
10441 (__posix_spawn_file_actions_addclose): Add hidden definition.
10442 * posix/spawn_faction_adddup2.c
10443 (__posix_spawn_file_actions_adddup2): Likewise.
10444 * posix/spawn_faction_destroy.c
10445 (__posix_spawn_file_actions_destroy): Likewise.
10446 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
10447 Likewise.
10448 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
10449 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
10450 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
10451 Likewise.
10452 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
10453 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
10454 Likewise.
10455
10456 2018-10-24 Andreas Schwab <schwab@suse.de>
10457
10458 [BZ #18093]
10459 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
10460 format cache.
10461 * elf/cache.c (print_cache): Likewise.
10462
10463 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
10464
10465 * bits/timesize.h: New file.
10466 * stdlib/Makefile (headers): Add bits/timesize.h.
10467 * sysdeps/unix/sysv/linux/bits/msq-pad.h
10468 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
10469 * sysdeps/unix/sysv/linux/bits/sem-pad.h
10470 (__SEM_PAD_AFTER_TIME): Likewise.
10471 * sysdeps/unix/sysv/linux/bits/shm-pad.h
10472 (__SHM_PAD_AFTER_TIME): Likewise.
10473 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
10474 (__MSQ_PAD_BEFORE_TIME): Likewise.
10475 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
10476 (__SEM_PAD_BEFORE_TIME): Likewise.
10477 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
10478 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
10479 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
10480 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
10481 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
10482 (__MSQ_PAD_BEFORE_TIME): Likewise.
10483 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
10484 (__SEM_PAD_BEFORE_TIME): Likewise.
10485 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
10486 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
10487 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
10488 (__MSQ_PAD_BEFORE_TIME): Likewise.
10489 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
10490 (__SEM_PAD_BEFORE_TIME): Likewise.
10491 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
10492 (__SHM_PAD_BEFORE_TIME): Likewise.
10493 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
10494 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
10495 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
10496
10497 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
10498
10499 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
10500 USE_RDTSCP is defined.
10501 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
10502 USE_RDTSCP is defined.
10503
10504 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10505
10506 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
10507 defined.
10508
10509 [BZ #23709]
10510 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
10511 independently of other flags.
10512
10513 2018-10-23 Florian Weimer <fweimer@redhat.com>
10514
10515 * time/tst-mktime2.c (N_STRINGS): Remove.
10516 (set_timezone): New function.
10517 (spring_forward_gap): Call it. Use FAIL_EXIT1.
10518 (mktime_test1): Report localtime failure and check errno value.
10519 Use TEST_COMPARE.
10520 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
10521 (do_test): Remove alarm call. Use set_timezone and array_length.
10522
10523 2018-10-23 Andreas Schwab <schwab@suse.de>
10524
10525 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
10526 (__start_context): Use END instead of PSEUDO_END.
10527
10528 2018-10-22 Joseph Myers <joseph@codesourcery.com>
10529
10530 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
10531 version to 4.19.
10532
10533 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
10534 version to 4.19.
10535
10536 [BZ #23793]
10537 * wcsmbs/c32rtomb.c: New file.
10538 * wcsmbs/mbrtoc32.c: Likewise.
10539 * wcsmbs/tst-c32-state.c: Likewise.
10540 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
10541 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
10542 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
10543 (tests): Add tst-c32-state.
10544 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
10545 $(gen-locales).
10546
10547 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
10548
10549 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
10550 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
10551
10552 2018-10-19 Joseph Myers <joseph@codesourcery.com>
10553
10554 [BZ #23794]
10555 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
10556 pair and return 0 in that case, and use saved character to
10557 interpret following character.
10558 * wcsmbs/tst-c16-surrogate.c: New file.
10559 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
10560 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
10561 Depend on $(gen-locales)
10562
10563 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10564
10565 [BZ #23562]
10566 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
10567 (struct siginfo_t): Use correct type for si_band.
10568
10569 2018-10-19 Florian Weimer <fweimer@redhat.com>
10570
10571 [BZ #23689]
10572 * resource/bits/types/struct_rusage.h (struct rusage): Update
10573 comment on struct. Remove extraneous field comment.
10574
10575 2018-10-18 David S. Miller <davem@davemloft.net>
10576
10577 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
10578 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
10579 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
10580 sysdep_routines in subdir elf.
10581 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
10582 version for __vdso_clock_gettime.
10583 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
10584 Define.
10585 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
10586 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
10587
10588 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
10589
10590 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
10591
10592 * sysdeps/i386/init-arch.h: Removed.
10593 * sysdeps/i386/i586/init-arch.h: Likewise.
10594 * sysdeps/i386/i686/init-arch.h: Likewise.
10595 * sysdeps/i386/i686/hp-timing.h: Likewise.
10596 * sysdeps/x86_64/hp-timing.h: Likewise.
10597 * sysdeps/i386/isa.h: New file.
10598 * sysdeps/i386/i586/isa.h: Likewise.
10599 * sysdeps/i386/i686/isa.h: Likewise.
10600 * sysdeps/x86_64/isa.h: Likewise.
10601 * sysdeps/x86/hp-timing.h: New file.
10602 * sysdeps/x86/init-arch.h: Include <isa.h>.
10603
10604 2018-10-17 Joseph Myers <joseph@codesourcery.com>
10605
10606 * math/libm-test-pow.inc (pow_test_data): Do not allow
10607 divide-by-zero exception for pow(+/- 0, -Inf).
10608
10609 2018-10-17 Zack Weinberg <zackw@panix.com>
10610
10611 * manual/job.texi (Job Control is Optional): Remove node, as
10612 job control has not been optional in quite some time.
10613 (Job Control): Mention briefly that systems older than
10614 POSIX.1-2001 might not support job control.
10615 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
10616 defined on systems conforming to POSIX.1-2001.
10617
10618 2018-10-17 Arjun Shankar <arjun@redhat.com>
10619
10620 [BZ #22062]
10621 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
10622 indentation.
10623 * (__gconv_read_conf): Mark function static.
10624 * (once): New static variable.
10625 * (__gconv_load_conf): New function.
10626 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
10627 * iconv/gconv_db.c (once): Remove static variable.
10628 * (__gconv_compare_alias): Use __gconv_load_conf instead of
10629 __gconv_read_conf.
10630 * (__gconv_find_transform): Likewise.
10631 * iconv/tst-iconv-mt.c: New test.
10632 * iconv/Makefile: Add tst-iconv_mt.
10633
10634 2018-10-17 Joseph Myers <joseph@codesourcery.com>
10635
10636 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10637 bits/shm-pad.h.
10638 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
10639 (shmatt_t): Define as __syscall_ulong_t.
10640 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
10641 and [__SHM_PAD_AFTER_TIME].
10642 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
10643 Define shm_segsz and associated padding based on
10644 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
10645 Use __syscall_ulong_t instead of unsigned long int.
10646 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
10647 unsigned long int.
10648 [__USE_MISC] (struct shm_info): Likewise.
10649 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
10650 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
10651 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
10652 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
10653 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
10654 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
10655 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
10656 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
10657 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
10658 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
10659 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
10660
10661 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10662 bits/shmlba.h.
10663 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
10664 (SHMLBA): Remove macro.
10665 (__getpagesize): Remove function declaration.
10666 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
10667 <bits/shmlba.h>.
10668 (SHMLBA): Remove macro.
10669 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
10670 <bits/shmlba.h>.
10671 (SHMLBA): Remove macro.
10672 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
10673 <bits/shmlba.h>.
10674 (SHMLBA): Remove macro.
10675 (__getpagesize): Remove function declaration.
10676 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
10677 <bits/shmlba.h>.
10678 (SHMLBA): Remove macro.
10679 (__getshmlba): Remove function declaration.
10680 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
10681 (SHMLBA): Remove macro.
10682 (__getpagesize): Remove function declaration.
10683 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
10684 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
10685 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
10686 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
10687 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
10688 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
10689 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
10690 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
10691 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
10692 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
10693
10694 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
10695
10696 [BZ #23275]
10697 * nptl/tst-mutex10.c: New File.
10698 * nptl/Makefile (tests): Add tst-mutex10.
10699 (tst-mutex10-ENV): New variable.
10700 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
10701 Ensure that elision path is used if elision is available.
10702 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
10703 Likewise.
10704 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
10705 Likewise.
10706 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
10707 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
10708 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
10709 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
10710 Likewise.
10711 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
10712 (__pthread_mutex_cond_lock_adjust): Likewise.
10713 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
10714 Likewise.
10715 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
10716 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
10717 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
10718 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
10719 Add comments.
10720 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
10721 Use atomic_load_relaxed and atomic_store_relaxed.
10722 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
10723 Use atomic_store_relaxed.
10724
10725 2018-10-17 Andreas Schwab <schwab@suse.de>
10726
10727 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
10728 * crypt/badsalttest.c (TIMEOUT): Likewise.
10729 * crypt/sha256c-test.c (TIMEOUT): Likewise.
10730 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
10731 * io/test-lfs.c (TIMEOUT): Likewise.
10732 * libio/tst-atime.c (TIMEOUT): Likewise.
10733 * localedata/tst-leaks.c (TIMEOUT): Likewise.
10734 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
10735 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
10736 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
10737 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
10738 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
10739 * nptl/tst-cond11.c (TIMEOUT): Likewise.
10740 * nptl/tst-cond14.c (TIMEOUT): Likewise.
10741 * nptl/tst-cond15.c (TIMEOUT): Likewise.
10742 * nptl/tst-cond24.c (TIMEOUT): Likewise.
10743 * nptl/tst-cond25.c (TIMEOUT): Likewise.
10744 * nptl/tst-kill2.c (TIMEOUT): Likewise.
10745 * nptl/tst-kill3.c (TIMEOUT): Likewise.
10746 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
10747 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
10748 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
10749 * nptl/tst-once2.c (TIMEOUT): Likewise.
10750 * nptl/tst-once3.c (TIMEOUT): Likewise.
10751 * nptl/tst-once4.c (TIMEOUT): Likewise.
10752 * nptl/tst-robust8.c (TIMEOUT): Likewise.
10753 * nptl/tst-robust9.c (TIMEOUT): Likewise.
10754 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
10755 * nptl/tst-sem14.c (TIMEOUT): Likewise.
10756 * nptl/tst-sem6.c (TIMEOUT): Likewise.
10757 * nptl/tst-signal3.c (TIMEOUT): Likewise.
10758 * nptl/tst-spin4.c (TIMEOUT): Likewise.
10759 * nptl/tst-tls3.c (TIMEOUT): Likewise.
10760 * nptl/tst-tls4.c (TIMEOUT): Likewise.
10761 * posix/tst-chmod.c (TIMEOUT): Likewise.
10762 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
10763 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
10764 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
10765 * posix/tst-regex2.c (TIMEOUT): Likewise.
10766 * posix/tst-waitid.c (TIMEOUT): Likewise.
10767 * rt/tst-aio.c (TIMEOUT): Likewise.
10768 * rt/tst-aio10.c (TIMEOUT): Likewise.
10769 * rt/tst-aio4.c (TIMEOUT): Likewise.
10770 * rt/tst-aio5.c (TIMEOUT): Likewise.
10771 * rt/tst-aio6.c (TIMEOUT): Likewise.
10772 * rt/tst-aio64.c (TIMEOUT): Likewise.
10773 * rt/tst-aio7.c (TIMEOUT): Likewise.
10774 * rt/tst-aio9.c (TIMEOUT): Likewise.
10775 * rt/tst-clock.c (TIMEOUT): Likewise.
10776 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
10777 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
10778 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
10779 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
10780 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
10781 * rt/tst-timer4.c (TIMEOUT): Likewise.
10782 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
10783 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
10784 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
10785 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
10786 * time/tst-ftime.c (TIMEOUT): Likewise.
10787 * timezone/tst-tzset.c (TIMEOUT): Likewise.
10788
10789 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
10790
10791 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
10792 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
10793 for thunderX2.
10794
10795 2018-10-15 Joseph Myers <joseph@codesourcery.com>
10796
10797 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10798 bits/sem-pad.h.
10799 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
10800 instead of <bits/wordsize.h>.
10801 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
10802 and [__SEM_PAD_AFTER_TIME].
10803 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
10804 __syscall_ulong_t instead of unsigned long int.
10805 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
10806 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
10807 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
10808 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
10809 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
10810 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
10811 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
10812 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
10813 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
10814 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
10815 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
10816
10817 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
10818
10819 regex: simplify by using intprops.h
10820 [BZ#23744]
10821 * posix/regex_internal.h [_LIBC]: Include intprops.h.
10822 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
10823 intprops.h defines them.
10824
10825 regex: __builtin_expect → __glibc_unlikely
10826 [BZ#23744]
10827 This refactoring was prompted by a problem when the regex code is
10828 used as part of Gnulib and when the builder’s compiler does not grok
10829 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
10830 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
10831 Although this refactoring does not fix the problem directly,
10832 we might as well have Gawk use the now-preferred glibc style for when
10833 __builtin_expect is unavailable.
10834 * posix/regex_internal.h (BE): Remove.
10835 All uses replaced by __glibc_unlikely or __glibc_likely.
10836
10837 2018-10-11 Joseph Myers <joseph@codesourcery.com>
10838
10839 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10840 bits/msq-pad.h.
10841 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
10842 instead of <bits/wordsize.h>.
10843 (msgqnum_t): Define as __syscall_ulong_t.
10844 (msglen_t): Likewise.
10845 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
10846 and [__MSQ_PAD_AFTER_TIME].
10847 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
10848 __syscall_ulong_t instead of unsigned long int.
10849 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
10850 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
10851 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
10852 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
10853 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
10854 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
10855 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
10856 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
10857 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
10858 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
10859 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
10860
10861 2018-10-10 Joseph Myers <joseph@codesourcery.com>
10862
10863 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
10864 (struct shmid_ds): Condition padding after time fields on
10865 [__WORDSIZE == 32].
10866 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
10867 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
10868 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
10869
10870 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
10871 (struct semid_ds): Condition padding after time fields on
10872 [__WORDSIZE == 32].
10873 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
10874 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
10875 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
10876 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
10877
10878 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
10879 (struct msqid_ds): Condition padding after time fields on
10880 [__WORDSIZE == 32].
10881 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
10882 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
10883 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
10884 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
10885
10886 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
10887
10888 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
10889
10890 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
10891
10892 * libio/tst-readline.c (TIMEOUT): Define.
10893
10894 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
10895
10896 mktime fix for Gnulib + coreutils
10897 [BZ#23745]
10898 This fix affects only Gnulib. Problem discovered when
10899 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
10900 * time/mktime.c:
10901 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
10902 Do not define since it is not used. Defining an unused static
10903 function prompts a warning from GCC when Coreutils is configured
10904 with --enable-gcc-warnings.
10905
10906 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10907
10908 * benchtests/scripts/compare_bench.py (main): set float type on
10909 threshold argument.
10910
10911 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
10912
10913 [BZ #23740]
10914 * localedata/locales/kl_GL (mon): Update, the relative case.
10915 (alt_mon): Add, fill with month names in the nominative case.
10916 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
10917 (d_fmt): Set to "%b %d %Y".
10918
10919 2018-10-04 Joseph Myers <joseph@codesourcery.com>
10920
10921 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
10922 <bits/mman-linux.h>.
10923 (PROT_READ): Don't define here.
10924 (PROT_WRITE): Likewise.
10925 (PROT_EXEC): Likewise.
10926 (PROT_NONE): Likewise.
10927 (PROT_GROWSDOWN): Likewise.
10928 (PROT_GROWSUP): Likewise.
10929 (MAP_SHARED): Likewise.
10930 (MAP_PRIVATE): Likewise.
10931 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
10932 [__USE_MISC] (MAP_FILE): Likewise.
10933 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
10934 [__USE_MISC] (MAP_ANON): Likewise.
10935 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
10936 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
10937 (MCL_CURRENT): Likewise.
10938 (MCL_FUTURE): Likewise.
10939 (MCL_ONFAULT): Likewise.
10940 [__USE_MISC] (MADV_NORMAL): Likewise.
10941 [__USE_MISC] (MADV_RANDOM): Likewise.
10942 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
10943 [__USE_MISC] (MADV_WILLNEED): Likewise.
10944 [__USE_MISC] (MADV_DONTNEED): Likewise.
10945 [__USE_MISC] (MADV_FREE): Likewise.
10946 [__USE_MISC] (MADV_REMOVE): Likewise.
10947 [__USE_MISC] (MADV_DONTFORK): Likewise.
10948 [__USE_MISC] (MADV_DOFORK): Likewise.
10949 [__USE_MISC] (MADV_HWPOISON): Likewise.
10950 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
10951 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
10952 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
10953 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
10954 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
10955 (__MAP_ANONYMOUS): New macro.
10956 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
10957 <bits/mman-linux.h> inclusion.
10958 (MAP_FIXED): Likewise.
10959 (MS_SYNC): Likewise.
10960 (MS_ASYNC): Likewise.
10961 (MS_INVALIDATE): Likewise.
10962 [__USE_MISC] (MADV_MERGEABLE): Likewise.
10963 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
10964 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
10965 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
10966 [__USE_MISC] (MADV_DONTDUMP): Likewise.
10967 [__USE_MISC] (MADV_DODUMP): Likewise.
10968 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
10969 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
10970
10971 [BZ #23735]
10972 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
10973 Define.
10974 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
10975 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
10976 Add test-nldbl-redirect.
10977 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
10978 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
10979 $(objpfx)libnldbl_nonshared.a.
10980
10981 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
10982
10983 * support/support.h (support_objdir_elf_ldso): New variable.
10984 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
10985 * support/Makefile (CFLAGS-support_paths.c): Add definition
10986 for OBJDIR_ELF_LDSO_PATH.
10987 * support/test-container.c (main): Search for the ld.so
10988 which is also used by the testsuite.
10989
10990 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
10991
10992 [BZ #20209]
10993 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
10994 should be "sap" rather than "sab".
10995 (day): Fix spelling of Sunday, should be "sapaat" rather than
10996 "sabaat".
10997
10998 2018-10-02 Joseph Myers <joseph@codesourcery.com>
10999
11000 * math/libm-test-fma.inc (fma_test_data): Add more tests.
11001
11002 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
11003
11004 [BZ #19444]
11005 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
11006 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
11007 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
11008
11009 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11010
11011 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
11012
11013 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
11014
11015 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
11016 Add -mrtm.
11017 (CFLAGS-elision-unlock.c): Likewise.
11018 (CFLAGS-elision-timed.c): Likewise.
11019 (CFLAGS-elision-trylock.c): Likewise.
11020 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
11021
11022 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11023
11024 [BZ #21037]
11025 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
11026 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
11027 new fd_to_filename interface.
11028 * libio/freopen64.c (freopen64): Likewise.
11029 * libio/tst-memstream.h: New file.
11030 * libio/tst-memstream4.c: Likewise.
11031 * libio/tst-wmemstream4.c: Likewise.
11032 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
11033 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
11034 and remove internal dynamic allocation.
11035
11036 2018-10-01 Joseph Myers <joseph@codesourcery.com>
11037
11038 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
11039 (MREMAP_MAYMOVE): Do not define here.
11040 [__USE_GNU] (MREMAP_FIXED): Likewise.
11041 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
11042 (MREMAP_MAYMOVE): Define here instead.
11043 [__USE_GNU] (MREMAP_FIXED): Likewise.
11044 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
11045 (MREMAP_MAYMOVE): Remove.
11046 [__USE_GNU] (MREMAP_FIXED): Likewise.
11047
11048 2018-09-28 Joseph Myers <joseph@codesourcery.com>
11049
11050 * math/fromfp.h: Do not include <math_private.h>.
11051 * math/s_cacosh_template.c: Likewise.
11052 * math/s_casin_template.c: Likewise.
11053 * math/s_casinh_template.c: Likewise.
11054 * math/s_ccos_template.c: Likewise.
11055 * math/s_cproj_template.c: Likewise.
11056 * math/s_fdim_template.c: Likewise.
11057 * math/s_fmaxmag_template.c: Likewise.
11058 * math/s_fminmag_template.c: Likewise.
11059 * math/s_iseqsig_template.c: Likewise.
11060 * math/s_ldexp_template.c: Likewise.
11061 * math/s_nextdown_template.c: Likewise.
11062 * math/w_log1p_template.c: Likewise.
11063 * math/w_scalbln_template.c: Likewise.
11064 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
11065 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
11066 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
11067 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
11068 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
11069 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
11070 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
11071 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
11072 * sysdeps/i386/fpu/s_atanl.c: Likewise.
11073 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
11074 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
11075 * sysdeps/i386/fpu/s_fdim.c: Likewise.
11076 * sysdeps/i386/fpu/s_logbl.c: Likewise.
11077 * sysdeps/i386/fpu/s_rintl.c: Likewise.
11078 * sysdeps/i386/fpu/s_significandl.c: Likewise.
11079 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
11080 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
11081 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11082 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
11083 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
11084 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
11085 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
11086 * sysdeps/ieee754/k_standardf.c: Likewise.
11087 * sysdeps/ieee754/k_standardl.c: Likewise.
11088 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11089 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
11090 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
11091 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
11092 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
11093 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
11094 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
11095 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
11096 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
11097 * sysdeps/ieee754/s_signgam.c: Likewise.
11098 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
11099 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
11100 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
11101 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
11102 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
11103 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
11104 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
11105 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
11106 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
11107 * sysdeps/riscv/rvd/s_finite.c: Likewise.
11108 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
11109 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
11110 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
11111 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
11112 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
11113 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
11114 * sysdeps/riscv/rvf/fegetround.c: Likewise.
11115 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
11116 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
11117 * sysdeps/riscv/rvf/fesetround.c: Likewise.
11118 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
11119 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
11120 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
11121 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
11122 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
11123 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
11124 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
11125 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
11126 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
11127 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
11128 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
11129 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
11130 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
11131 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
11132 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
11133 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
11134 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
11135 <math_private.h>.
11136 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
11137
11138 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
11139
11140 [BZ #23716]
11141 * sysdeps/i386/dl-cet.c: Removed.
11142 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
11143 prototype.
11144 (_dl_runtime_profile_shstk): Likewise.
11145 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
11146 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
11147
11148 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11149
11150 [BZ #23579]
11151 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
11152 do_test_with_invalid_iov): New tests.
11153 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
11154 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
11155 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
11156 errno is ENOSYS.
11157 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
11158 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
11159 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
11160
11161 2018-09-27 Joseph Myers <joseph@codesourcery.com>
11162
11163 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
11164 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
11165 (MATH_REDIRECT_BINARY_ARGS): New macro.
11166 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
11167 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
11168 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
11169 header inclusion.
11170 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
11171 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
11172 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
11173 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
11174 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
11175 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11176 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
11177 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
11178 Likewise.
11179 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
11180 Likewise.
11181 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
11182 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
11183 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
11184 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
11185 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
11186 Likewise.
11187 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
11188 Likewise.
11189 * sysdeps/generic/math_private_calls.h
11190 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
11191 Do not declare and define as an inline function.
11192 * math/divtc3.c (__divtc3): Use copysign functions instead of
11193 __copysign variants.
11194 * math/multc3.c (__multc3): Likewise.
11195 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
11196 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
11197 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
11198 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
11199 Likewise.
11200 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
11201 (__ieee754_yn): Likewise.
11202 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
11203 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
11204 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
11205 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
11206 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
11207 (__sin): Likewise.
11208 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
11209 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
11210 Likewise.
11211 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
11212 Likewise.
11213 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
11214 Likewise.
11215 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
11216 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
11217 Likewise.
11218 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
11219 (__ieee754_ynf): Likewise.
11220 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
11221 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
11222 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
11223 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
11224 Likewise.
11225 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
11226 (__ieee754_ynl): Likewise.
11227 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
11228 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
11229 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
11230 Likewise.
11231 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
11232 (__ieee754_ynl): Likewise.
11233 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
11234 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
11235 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
11236 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
11237 Likewise.
11238 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
11239 (__ieee754_ynl)
11240 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
11241 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
11242 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
11243 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
11244 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
11245
11246 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
11247 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
11248 using MATH_REDIRECT.
11249 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
11250 header inclusion.
11251 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
11252 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
11253 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
11254 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
11255 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
11256 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
11257 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
11258 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
11259 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
11260 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
11261 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
11262 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
11263 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
11264 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
11265 (round): Redirect to __round.
11266 (__roundl): Call round instead of __round.
11267 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
11268 Remove macro.
11269 [_ARCH_PWR5X] (__roundf): Likewise.
11270 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
11271 functions instead of __round variants.
11272 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
11273 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
11274 Likewise.
11275 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
11276 Likewise.
11277 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
11278 Likewise.
11279 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
11280 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
11281 __lroundl.
11282 (__ieee754_expl): Call roundl instead of __roundl.
11283
11284 2018-09-27 Andreas Schwab <schwab@suse.de>
11285
11286 [BZ #23717]
11287 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
11288 (do_test): Make st1 static.
11289
11290 2018-09-26 Andreas Schwab <schwab@suse.de>
11291
11292 [BZ #23707]
11293 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
11294 * elf/Makefile (tests): Add tst-unwind-ctor.
11295 (modules-names): Add tst-unwind-ctor-lib.
11296 ($(objpfx)tst-unwind-ctor): Depend on
11297 $(objpfx)tst-unwind-ctor-lib.so.
11298
11299 2018-09-26 Joseph Myers <joseph@codesourcery.com>
11300
11301 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
11302 file. Most contents moved from ....
11303 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
11304 and include <bits/mman-map-flags-generic.h>.
11305 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
11306 (sysdep_headers): Add bits/mman-map-flags-generic.h.
11307 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
11308 <bits/mman-map-flags-generic.h>.
11309 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
11310 macros defined in <bits/mman-map-flags-generic.h>.
11311 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
11312 <bits/mman-map-flags-generic.h>.
11313 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
11314 defined in <bits/mman-map-flags-generic.h>.
11315
11316 2018-09-26 Andreas Schwab <schwab@suse.de>
11317
11318 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
11319 output.
11320
11321 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
11322 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11323 Fangrui Song <maskray@google.com>
11324
11325 [BZ #20480]
11326 * config.make.in (have-textrel_ifunc): New define.
11327 * configure.ac: Add check if linker supports textrel relocation with
11328 ifunc.
11329 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
11330 tst-ifunc-textrel.
11331 (CFLAGS-tst-ifunc-textrel.c): New rule.
11332 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
11333 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
11334 * elf/tst-ifunc-textrel.c: New file.
11335
11336 2018-09-25 Joseph Myers <joseph@codesourcery.com>
11337
11338 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
11339 <bits/procfs-prregset.h>.
11340 (prgregset_t): Define using __prgregset_t.
11341 (prfpregset_t): Define using __prfpregset_t.
11342 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
11343 (sysdep_headers): Add bits/procfs-prregset.h.
11344 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
11345 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
11346 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
11347 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
11348
11349 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
11350 <bits/procfs-id.h> and <bits/procfs-extra.h>.
11351 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
11352 pr_uid and pr_gid.
11353 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
11354 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
11355 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
11356 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
11357 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
11358 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
11359 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
11360 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
11361 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
11362 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
11363 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
11364 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
11365 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
11366 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
11367 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
11368 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
11369 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
11370 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
11371 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
11372 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
11373 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
11374 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
11375 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
11376 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
11377
11378 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
11379 AArch64 version. Include <bits/procfs.h>.
11380 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
11381 (sysdep_headers): Add bits/procfs.h.
11382 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
11383 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
11384 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
11385 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
11386 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
11387 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
11388 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
11389 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
11390 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
11391 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
11392 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
11393 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
11394 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
11395 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
11396 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
11397 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
11398 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
11399
11400 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11401
11402 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
11403 Use libsupport.
11404
11405 2018-09-25 Arjun Shankar <arjun@redhat.com>
11406
11407 * iconv/gconv_int.h (__gconv_path_elem): Remove.
11408 (__gconv_max_path_elem_len): Likewise.
11409 (__gconv_nmodules): Likewise.
11410 (__gconv_get_path): Likewise.
11411 (path_elem): Move to ...
11412 * iconv/gconv_conf.c: ... here.
11413 (__gconv_get_path): Mark function static.
11414 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
11415 * iconv/gconv_open.c: ... here.
11416
11417 2018-09-24 Andreas Schwab <schwab@suse.de>
11418
11419 * scripts/haveversions.awk: New file.
11420 * Makerules ($(common-objpfx)Versions.def)
11421 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
11422 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
11423 Move rules ...
11424 * Makeconfig ($(common-objpfx)Versions.def)
11425 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
11426 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
11427 ... here.
11428 ($(common-objpfx)Versions.mk): New rule. Include it.
11429 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
11430 Emit error if build-obsolete-nsl = yes.
11431 * manual/install.texi (Configuring and compiling): Describe
11432 --enable-obsolete-nsl as unavaiable after version 2.28.
11433 * INSTALL: Regenerate.
11434
11435 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11436
11437 * NEWS: Add note about new TLE support on powerpc64le.
11438 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
11439 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
11440 __ununsed1.
11441 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
11442 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
11443 * sysdeps/powerpc/powerpc32/sysdep.h,
11444 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
11445 ABORT_TRANSACTION): Remove macros.
11446 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
11447 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
11448 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
11449 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
11450 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
11451 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
11452 usage.
11453 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
11454
11455 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
11456
11457 [BZ #10425]
11458 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
11459 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
11460 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
11461 which is the same as in it_IT.
11462 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
11463 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
11464
11465 2018-09-20 Joseph Myers <joseph@codesourcery.com>
11466
11467 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
11468 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
11469 using MATH_REDIRECT.
11470 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
11471 header inclusion.
11472 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
11473 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
11474 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
11475 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
11476 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
11477 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
11478 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
11479 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
11480 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
11481 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
11482 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
11483 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
11484 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
11485 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
11486 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
11487 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
11488 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
11489 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
11490 (ceil): Redirect to __ceil.
11491 (floor): Redirect to __floor.
11492 (trunc): Redirect to __trunc.
11493 (__truncl): Call trunc instead of __trunc.
11494 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
11495 Remove macro.
11496 [_ARCH_PWR5X] (__truncf): Likewise.
11497 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
11498 trunc functions instead of __trunc variants.
11499 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
11500 Likewise.
11501 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
11502 Likewise.
11503 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
11504 Likewise.
11505 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
11506 Likewise.
11507
11508 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
11509 [__i586__ || __pentium__].
11510 [__i486__]: Handle explicitly.
11511 (HAS_CPUID): Define to 1 if above macros are undefined.
11512 (HAS_I586): Likewise.
11513 (HAS_I686): Likewise.
11514
11515 2018-09-20 Florian Weimer <fweimer@redhat.com>
11516
11517 * misc/tst-gethostid.c: New file.
11518 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
11519 (tst-gethostid): Link with -ldl.
11520
11521 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
11522
11523 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
11524 value from gethostbyname_r.
11525
11526 2018-09-19 Carlos O'Donell <carlos@redhat.com>
11527
11528 * stdlib/tst-setcontext9.c (f1): Rename to...
11529 (f1a): ... this.
11530 (f1b): New function implementing lower half of f1 in alternate stack.
11531
11532 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
11533
11534 Fix mktime localtime offset confusion
11535 [BZ #23603]
11536 * include/time.h (__mktime_internal): The localtime offset is now
11537 of type long int instead of time_t. This is the longstanding type
11538 in glibc, and it is more than enough to represent difference
11539 between localtime and gmtime even if it is 32 bits and time_t is
11540 64. Changing it now will let us avoid an unnecessary change when
11541 time_t is widened to 64 bits on 32-bit platforms.
11542 * time/mktime-internal.h (mktime_offset_t): Now long int.
11543
11544 Merge mktime, timegm from upstream Gnulib
11545 [BZ #23603][BZ #16346]
11546 This fixes some obscure problems with integer overflow.
11547 Although it looks scary, it is almost all a byte-for-byte copy
11548 from Gnulib, and the Gnulib code has been tested reasonably well.
11549 * include/intprops.h: New file, copied from Gnulib.
11550 * include/verify.h, time/mktime-internal.h:
11551 New tiny files, simplified from Gnulib.
11552 * time/mktime.c: Copy from Gnulib. This has the following changes:
11553 Do not include config.h if DEBUG_MKTIME is nonzero.
11554 Include stdbool.h, intprops.h, verify.h.
11555 Include string.h only if needed.
11556 Include stdlib.h on MS-Windows.
11557 Include mktime-internal.h.
11558 (DEBUG_MKTIME): Default to 0, and simplify later uses.
11559 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
11560 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
11561 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
11562 simplify later conditionals; default the others to zero. Use
11563 these conditionals to express only the code needed on the current
11564 platform. In uses of these conditionals, explicitly spell out how
11565 _LIBC affects things, so it’s easier to review from a glibc
11566 viewpoint.
11567 (WRAPV): Remove; no longer needed now that we have
11568 systematic overflow checking.
11569 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
11570 compartmentalize tzset issues. Move system-dependent tzsettish
11571 code here from mktime.
11572 (verify): Remove; now done by verify.h. All uses changed.
11573 (long_int): Use a more-conservative definition, to avoid
11574 integer overflow.
11575 (SHR): Remove, replacing with ...
11576 (shr): New function, which means we needn’t worry about side
11577 effects in args, and conversion analysis is simpler.
11578 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
11579 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
11580 (time_t_avg, time_t_add_ok): Remove.
11581 (mktime_min, mktime_max): New constants.
11582 (leapyear, isdst_differ): Use bool for booleans.
11583 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
11584 Use long_int, not time_t, for mktime differences.
11585 (long_int_avg): New function, replacing time_t_avg.
11586 INT_ADD_WRAPV replaces time_t_add_ok.
11587 (guess_time_tm): 6th arg is now long_int, not time_t const *.
11588 All uses changed.
11589 (convert_time): New function.
11590 (ranged_convert): Use it.
11591 (__mktime_internal): Last arg now points to mktime_offset_t, not
11592 time_t. All uses changed. This is a no-op on glibc, where
11593 mktime_offset_t is always time_t. Use int, not time_t, for UTC
11594 offset guess. Directly check for integer overflow instead of
11595 using a heuristic that works only 99.9...% of the time.
11596 Access *OFFSET only once, to avoid an unlikely race if the
11597 compiler delays a load and if this cascades into a signed integer
11598 overflow.
11599 (mktime): Move tzsettish code to my_tzset, and move
11600 localtime_offset to within mktime so that it doesn’t
11601 need a separate ifdef.
11602 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
11603 instead of localtime.
11604 * time/timegm.c: Copy from Gnulib. This has the following changes:
11605 Include mktime-internal.h.
11606 [!_LIBC]: Include config.h and time.h. Do not include
11607 timegm.h or time_r.h. Make __mktime_internal a macro,
11608 and include mktime-internal.h to get its declaration.
11609 (timegm): Temporary is now mktime_offset_t, not time_t.
11610 This affects only Gnulib.
11611
11612 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
11613
11614 [BZ #23637]
11615 * string/test-strstr.c (pr23637): New function.
11616 (test_main): Add tests with longer needles.
11617 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
11618 * string/strstr.c (AVAILABLE): Likewise.
11619
11620 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
11621
11622 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
11623
11624 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
11625
11626 * NEWS: Mention pow improvements.
11627 * math/Makefile (type-double-routines): Add e_pow_log_data.
11628 * sysdeps/generic/math_private.h (__exp1): Remove.
11629 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
11630 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
11631 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
11632 contraction.
11633 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
11634 (exp_inline): Remove.
11635 (__ieee754_exp): Only single double input is handled.
11636 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
11637 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
11638 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
11639 (__pow_log_data): Define.
11640 * sysdeps/ieee754/dbl-64/upow.h: Remove.
11641 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
11642 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
11643 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
11644 contraction.
11645 (CFLAGS-e_pow-fma4.c): Likewise.
11646
11647 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
11648
11649 Simplify tzfile fstat failure code
11650 [BZ #21716]
11651 * time/tzfile.c (__tzfile_read): Simplify slightly.
11652
11653 Fix tzfile low-memory assertion failure
11654 [BZ #21716]
11655 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
11656 when registering time zone abbreviations.
11657
11658 2018-09-18 Joseph Myers <joseph@codesourcery.com>
11659
11660 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
11661 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
11662 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
11663 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
11664 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
11665 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
11666 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
11667 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
11668 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
11669
11670 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
11671 __ceil.
11672 (__ceill): Call ceil instead of __ceil.
11673 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
11674 __floor.
11675 (__floorl): Call floor instead of __floor.
11676
11677 2018-09-17 Joseph Myers <joseph@codesourcery.com>
11678
11679 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
11680 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
11681 using MATH_REDIRECT.
11682 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
11683 header inclusion.
11684 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
11685 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
11686 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
11687 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
11688 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
11689 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
11690 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
11691 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
11692 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
11693 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
11694 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
11695 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
11696 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
11697 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
11698 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
11699 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
11700 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
11701 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
11702 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
11703 Remove macro.
11704 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
11705 functions instead of __ceil variants.
11706 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
11707 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
11708 Likewise.
11709 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
11710 Likewise.
11711 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
11712 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
11713 Likewise.
11714 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
11715 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
11716
11717 [BZ #21286]
11718 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
11719 constant.
11720 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
11721 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
11722 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
11723 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
11724 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
11725 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
11726 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
11727 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
11728 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
11729 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
11730 (ILL_BADIADDR): Remove constant.
11731 (TRAP_BRANCH): Likewise.
11732 (TRAP_HWBKPT): Likewise.
11733
11734 2018-09-14 Joseph Myers <joseph@codesourcery.com>
11735
11736 [BZ #23656]
11737 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
11738 Remove [_MIPS_SIM = _ABIN32] conditional case.
11739 (struct elf_prpsinfo): Likewise.
11740
11741 [BZ #23649]
11742 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
11743 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
11744 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
11745 Likewise.
11746 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
11747 elf_prpsinfo): Likewise.
11748 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
11749 elf_prpsinfo): Likewise.
11750 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
11751 Likewise.
11752
11753 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
11754 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
11755 using MATH_REDIRECT.
11756 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
11757 header inclusion.
11758 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
11759 * sysdeps/alpha/fpu/s_rint.c: Likewise.
11760 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
11761 * sysdeps/i386/fpu/s_rintl.c: Likewise.
11762 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
11763 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
11764 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
11765 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
11766 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
11767 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
11768 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
11769 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
11770 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
11771 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
11772 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
11773 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
11774 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
11775 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
11776 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
11777 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
11778 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
11779 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
11780 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
11781 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
11782 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
11783 * sysdeps/x86_64/fpu/math_private.h: Remove file.
11784 * math/e_scalb.c (invalid_fn): Use rint functions instead of
11785 __rint variants.
11786 * math/e_scalbf.c (invalid_fn): Likewise.
11787 * math/e_scalbl.c (invalid_fn): Likewise.
11788 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
11789 Likewise.
11790 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
11791 Likewise.
11792 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
11793 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
11794 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
11795 Likewise.
11796 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
11797 Likewise.
11798 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
11799 Likewise.
11800 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
11801 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
11802
11803 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
11804 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
11805 New macro.
11806 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
11807 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
11808 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
11809 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
11810 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
11811 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
11812 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
11813 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
11814 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
11815 && !NO_MATH_REDIRECT] (floor): Likewise.
11816 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
11817 header inclusion.
11818 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
11819 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
11820 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
11821 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
11822 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
11823 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
11824 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
11825 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
11826 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
11827 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
11828 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
11829 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
11830 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
11831 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
11832 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
11833 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
11834 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
11835 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
11836 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
11837 Remove macro.
11838 [_ARCH_PWR5X] (__floorf): Likewise.
11839 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
11840 inline function.
11841 [__SSE4_1__] (__floorf): Likewise.
11842 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
11843 instead of __floor variants.
11844 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
11845 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
11846 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
11847 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
11848 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
11849 * math/w_tgamma_compat.c (__tgamma): Likewise.
11850 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
11851 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
11852 * math/w_tgammal_compat.c (__tgammal): Likewise.
11853 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
11854 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
11855 Likewise.
11856 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
11857 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
11858 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
11859 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
11860 Likewise.
11861 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
11862 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
11863 Likewise.
11864 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
11865 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
11866 Likewise.
11867 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
11868 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
11869 Likewise.
11870 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
11871 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
11872 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
11873 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
11874 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
11875 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
11876
11877 2018-09-12 Joseph Myers <joseph@codesourcery.com>
11878
11879 * elf/Makefile (modules-names-tests): New variable.
11880
11881 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
11882
11883 * NEWS: Mention log2 improvements.
11884 * math/Makefile (type-double-routines): Add e_log2_data.
11885 * sysdeps/i386/fpu/e_log2_data.c: New file.
11886 * sysdeps/ia64/fpu/e_log2_data.c: New file.
11887 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
11888 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
11889 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
11890 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
11891 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
11892
11893 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
11894
11895 * NEWS: Mention log improvement.
11896 * math/Makefile (type-double-routines): Add e_log_data.
11897 * sysdeps/i386/fpu/e_log_data.c: New file.
11898 * sysdeps/ia64/fpu/e_log_data.c: New file.
11899 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
11900 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
11901 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
11902 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
11903 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
11904 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
11905
11906 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
11907 Xuepeng Guo <xuepeng.guo@intel.com>
11908
11909 [BZ #23606]
11910 * sysdeps/i386/start.S: Include <sysdep.h>
11911 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
11912 enabled. Add cfi_undefined (eip).
11913
11914 2018-09-11 Joseph Myers <joseph@codesourcery.com>
11915
11916 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
11917 (MOVQ): Likewise.
11918 (EXTRACT_WORDS64): Likewise.
11919 (INSERT_WORDS64): Likewise.
11920 (GET_FLOAT_WORD): Likewise.
11921 (SET_FLOAT_WORD): Likewise.
11922
11923 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
11924 argument.
11925 (Config.build_gcc): Use --disable-libsanitizer for first GCC
11926 build, but not for second build if --full-gcc. Use
11927 --enable-languages=all for second build if --full-gcc.
11928 (get_parser): Add --full-gcc option.
11929 (main): Update call to Context.
11930
11931 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
11932
11933 [BZ #10797]
11934 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
11935 Single Quotation Mark).
11936 (thousands_sep): Likewise.
11937 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
11938 * localedata/locales/it_IT (thousands_sep): Use ".".
11939 (grouping): Use "3;3".
11940
11941 2018-09-10 Joseph Myers <joseph@codesourcery.com>
11942
11943 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
11944 x86_64 and i686 configs using --enable-obsolete-rpc
11945 --enable-obsolete-nsl.
11946
11947 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
11948
11949 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
11950
11951 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
11952
11953 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
11954 Increment size of new_argv by one.
11955
11956 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
11957
11958 [BZ #17426]
11959 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
11960 * localedata/locales/ar_IN (d_fmt): Likewise.
11961 * localedata/locales/bhb_IN (d_fmt): Likewise.
11962 * localedata/locales/bho_IN (d_fmt): Likewise.
11963 * localedata/locales/bn_BD (d_fmt): Likewise.
11964 * localedata/locales/bn_IN (d_fmt): Likewise.
11965 * localedata/locales/doi_IN (d_fmt): Likewise.
11966 * localedata/locales/gu_IN (d_fmt): Likewise.
11967 * localedata/locales/hi_IN (d_fmt): Likewise.
11968 * localedata/locales/hne_IN (d_fmt): Likewise.
11969 * localedata/locales/kn_IN (d_fmt): Likewise.
11970 * localedata/locales/mag_IN (d_fmt): Likewise.
11971 * localedata/locales/mai_IN (d_fmt): Likewise.
11972 * localedata/locales/mjw_IN (d_fmt): Likewise.
11973 * localedata/locales/ml_IN (d_fmt): Likewise.
11974 * localedata/locales/mni_IN (d_fmt): Likewise.
11975 * localedata/locales/mr_IN (d_fmt): Likewise.
11976 * localedata/locales/pa_IN (d_fmt): Likewise.
11977 * localedata/locales/raj_IN (d_fmt): Likewise.
11978 * localedata/locales/sat_IN (d_fmt): Likewise.
11979 * localedata/locales/sd_IN (d_fmt): Likewise.
11980 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
11981 * localedata/locales/ta_IN (d_fmt): Likewise.
11982 * localedata/locales/ta_LK (d_fmt): Likewise.
11983 * localedata/locales/tcy_IN (d_fmt): Likewise.
11984 * localedata/locales/ur_IN (d_fmt): Likewise.
11985
11986 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
11987 * localedata/locales/ks_IN (d_fmt): Likewise.
11988 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
11989
11990 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
11991 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
11992 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
11993 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
11994
11995 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
11996
11997 * NEWS: Mention exp and exp2 improvements.
11998 * math/Makefile (libm-support): Remove t_exp.
11999 (type-double-routines): Add math_err and e_exp_data.
12000 * sysdeps/aarch64/libm-test-ulps: Update.
12001 * sysdeps/arm/libm-test-ulps: Update.
12002 * sysdeps/i386/fpu/e_exp_data.c: New file.
12003 * sysdeps/i386/fpu/math_err.c: New file.
12004 * sysdeps/i386/fpu/t_exp.c: Remove.
12005 * sysdeps/ia64/fpu/e_exp_data.c: New file.
12006 * sysdeps/ia64/fpu/math_err.c: New file.
12007 * sysdeps/ia64/fpu/t_exp.c: Remove.
12008 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
12009 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
12010 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
12011 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
12012 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
12013 * sysdeps/ieee754/dbl-64/math_config.h: New file.
12014 * sysdeps/ieee754/dbl-64/math_err.c: New file.
12015 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
12016 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
12017 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
12018 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
12019 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
12020 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
12021 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
12022 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12023 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
12024
12025 2018-09-05 Joseph Myers <joseph@codesourcery.com>
12026
12027 * sysdeps/alpha/fpu/math_private.h: Remove.
12028
12029 * sysdeps/generic/math_private.h
12030 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
12031 Move this inline function ....
12032 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
12033 * include/math.h [!_ISOMAC]: To here....
12034
12035 2018-09-04 Joseph Myers <joseph@codesourcery.com>
12036
12037 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
12038 code ....
12039 [!FE_HAVE_ROUNDING_MODES]: And this code ....
12040 * include/fenv.h [!_ISOMAC]: ... to here.
12041 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
12042 (feraiseexcept): Likewise.
12043 * math/fromfp.h: Do not include <fenv_private.h>.
12044 * math/s_cexp_template.c: Likewise.
12045 * math/s_csin_template.c: Likewise.
12046 * math/s_csinh_template.c: Likewise.
12047 * math/s_ctan_template.c: Likewise.
12048 * math/s_ctanh_template.c: Likewise.
12049 * math/s_iseqsig_template.c: Likewise.
12050 * math/w_acos_compat.c: Likewise.
12051 * math/w_acosf_compat.c: Likewise.
12052 * math/w_acosl_compat.c: Likewise.
12053 * math/w_asin_compat.c: Likewise.
12054 * math/w_asinf_compat.c: Likewise.
12055 * math/w_asinl_compat.c: Likewise.
12056 * math/w_j0_compat.c: Likewise.
12057 * math/w_j0f_compat.c: Likewise.
12058 * math/w_j0l_compat.c: Likewise.
12059 * math/w_j1_compat.c: Likewise.
12060 * math/w_j1f_compat.c: Likewise.
12061 * math/w_j1l_compat.c: Likewise.
12062 * math/w_jn_compat.c: Likewise.
12063 * math/w_jnf_compat.c: Likewise.
12064 * math/w_log10_compat.c: Likewise.
12065 * math/w_log10f_compat.c: Likewise.
12066 * math/w_log10l_compat.c: Likewise.
12067 * math/w_log2_compat.c: Likewise.
12068 * math/w_log2f_compat.c: Likewise.
12069 * math/w_log2l_compat.c: Likewise.
12070 * math/w_log_compat.c: Likewise.
12071 * math/w_logf_compat.c: Likewise.
12072 * math/w_logl_compat.c: Likewise.
12073 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12074 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
12075 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12076 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
12077 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
12078 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12079 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
12080 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12081 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
12082 * sysdeps/ieee754/k_standardl.c: Likewise.
12083 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12084 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
12085 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
12086 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
12087 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
12088 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
12089 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12090 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
12091 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12092 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
12093 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
12094 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
12095 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
12096 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
12097 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
12098 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
12099 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
12100 * math/w_ilogb_template.c: Include <fenv.h> instead of
12101 <fenv_private.h>.
12102 * math/w_llogb_template.c: Likewise.
12103 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
12104 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
12105
12106 2018-09-03 Joseph Myers <joseph@codesourcery.com>
12107
12108 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
12109 * math/fromfp.h: Include <fenv_private.h>.
12110 * math/math-narrow.h: Likewise.
12111 * math/s_cexp_template.c: Likewise.
12112 * math/s_csin_template.c: Likewise.
12113 * math/s_csinh_template.c: Likewise.
12114 * math/s_ctan_template.c: Likewise.
12115 * math/s_ctanh_template.c: Likewise.
12116 * math/s_iseqsig_template.c: Likewise.
12117 * math/w_acos_compat.c: Likewise.
12118 * math/w_acosf_compat.c: Likewise.
12119 * math/w_acosl_compat.c: Likewise.
12120 * math/w_asin_compat.c: Likewise.
12121 * math/w_asinf_compat.c: Likewise.
12122 * math/w_asinl_compat.c: Likewise.
12123 * math/w_ilogb_template.c: Likewise.
12124 * math/w_j0_compat.c: Likewise.
12125 * math/w_j0f_compat.c: Likewise.
12126 * math/w_j0l_compat.c: Likewise.
12127 * math/w_j1_compat.c: Likewise.
12128 * math/w_j1f_compat.c: Likewise.
12129 * math/w_j1l_compat.c: Likewise.
12130 * math/w_jn_compat.c: Likewise.
12131 * math/w_jnf_compat.c: Likewise.
12132 * math/w_llogb_template.c: Likewise.
12133 * math/w_log10_compat.c: Likewise.
12134 * math/w_log10f_compat.c: Likewise.
12135 * math/w_log10l_compat.c: Likewise.
12136 * math/w_log2_compat.c: Likewise.
12137 * math/w_log2f_compat.c: Likewise.
12138 * math/w_log2l_compat.c: Likewise.
12139 * math/w_log_compat.c: Likewise.
12140 * math/w_logf_compat.c: Likewise.
12141 * math/w_logl_compat.c: Likewise.
12142 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
12143 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
12144 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
12145 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
12146 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12147 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12148 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12149 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12150 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12151 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12152 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
12153 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12154 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
12155 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
12156 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12157 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
12158 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
12159 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12160 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
12161 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12162 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
12163 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12164 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12165 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12166 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12167 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
12168 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
12169 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
12170 * sysdeps/ieee754/float128/float128_private.h: Likewise.
12171 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12172 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12173 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12174 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
12175 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12176 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
12177 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12178 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
12179 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12180 * sysdeps/ieee754/k_standardl.c: Likewise.
12181 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12182 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
12183 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12184 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12185 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
12186 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
12187 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
12188 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
12189 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
12190 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
12191 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
12192 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12193 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
12194 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
12195 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
12196 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
12197 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12198 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
12199 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12200 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
12201 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12202 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
12203 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
12204 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12205 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
12206 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
12207 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12208 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
12209 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
12210 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
12211 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
12212 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
12213 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
12214 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
12215 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
12216 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
12217 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
12218 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
12219 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
12220 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
12221 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
12222 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
12223 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
12224 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
12225 * sysdeps/riscv/rvd/s_finite.c: Likewise.
12226 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
12227 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
12228 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
12229 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
12230 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
12231 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
12232 * sysdeps/riscv/rvf/fegetround.c: Likewise.
12233 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
12234 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
12235 * sysdeps/riscv/rvf/fesetround.c: Likewise.
12236 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
12237 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
12238 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
12239 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
12240 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
12241 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
12242 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
12243 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
12244 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
12245 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
12246 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
12247 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
12248 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
12249 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
12250 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
12251 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
12252
12253 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
12254
12255 [BZ #20271]
12256 * include/stdio.h (__libc_fatal): Mention newline in comment.
12257 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
12258 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
12259 * nscd/initgrcache.c (addinitgroupsX): Likewise.
12260 * nss/nsswitch.c (__nss_next2): Likewise.
12261 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
12262 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
12263 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
12264 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
12265 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
12266 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
12267 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
12268 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
12269 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
12270 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
12271 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
12272 * sysdeps/unix/sysv/linux/netlink_assert_response.c
12273 (__netlink_assert_response): Likewise.
12274
12275 2018-08-31 Joseph Myers <joseph@codesourcery.com>
12276
12277 * conform/glibcconform.py: New file.
12278 * conform/list-header-symbols.py: Likewise.
12279 * conform/list-header-symbols.pl: Remove.
12280 * conform/Makefile (tests-special): Only add linknamespace tests
12281 if [PYTHON].
12282 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
12283
12284 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
12285
12286 [BZ #23597]
12287 * support/Makefile (libsupport-routines): Add
12288 support_copy_file_range and xcopy_file_range.
12289 * support/support.h: Include <sys/types.h>.
12290 (support_copy_file_range): New prototype.
12291 * support/support_copy_file_range.c: New file. Copied and
12292 modified from io/copy_file_range-compat.c.
12293 * support/test-container.c (copy_one_file): Call xcopy_file_rang
12294 instead of copy_file_range.
12295 * support/xcopy_file_range.c: New file.
12296 * support/xunistd.h (xcopy_file_range): New prototype.
12297
12298 2018-08-30 Carlos O'Donell <carlos@redhat.com>
12299
12300 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
12301 xpthread_create and xpthread_join.
12302
12303 2018-08-30 Florian Weimer <fweimer@redhat.com>
12304
12305 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
12306
12307 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
12308
12309 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
12310 if malloc fails.
12311
12312 2018-08-29 Joseph Myers <joseph@codesourcery.com>
12313
12314 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
12315 and minus_oflow as non-finite.
12316
12317 2018-08-28 Joseph Myers <joseph@codesourcery.com>
12318
12319 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
12320 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
12321 moved to fenv_private.h except for ...
12322 (TOINT_INTRINSICS): Kept in math_private.h.
12323 (roundtoint): Likewise.
12324 (converttoint): Likewise.
12325 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
12326 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
12327 * sysdeps/arm/math_private.h: Remove.
12328 * sysdeps/generic/fenv_private.h: New file. Contents moved from
12329 ....
12330 * sysdeps/generic/math_private.h: ... this file. Include
12331 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
12332 Include <fenv_private.h>. Remove functions and macros moved to
12333 fenv_private.h.
12334 * sysdeps/i386/fpu/math_private.h: Remove.
12335 * sysdeps/mips/math_private.h: Move to ....
12336 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
12337 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
12338 [__mips_hard_float] conditional. Include next <fenv_private.h>.
12339 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
12340 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
12341 * sysdeps/powerpc/fpu/math_private.h: Do not include
12342 <fenv_private.h>.
12343 * sysdeps/riscv/rvf/math_private.h: Move to ....
12344 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
12345 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
12346 <fenv_private.h>.
12347 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
12348 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
12349 * sysdeps/sparc/fpu/math_private.h: Remove.
12350 * sysdeps/i386/fpu/fenv_private.h: Move to ....
12351 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
12352 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
12353 <fenv_private.h>.
12354 * sysdeps/x86_64/fpu/math_private.h: Do not include
12355 <sysdeps/i386/fpu/fenv_private.h>.
12356
12357 2018-08-28 Florian Weimer <fweimer@redhat.com>
12358
12359 [BZ #23578]
12360 * posix/tst-regcomp-truncated.c: New file.
12361 * posix/Makefile (tests): Add it.
12362 (tst-regcomp-truncated.out): Depend on generated locales.
12363
12364 2018-08-28 Florian Weimer <fweimer@redhat.com>
12365
12366 * support/test-container.c (main): Treat unshare failure with
12367 EPERM as an unsupported test.
12368
12369 2018-08-28 Florian Weimer <fweimer@redhat.com>
12370
12371 [BZ #23520]
12372 nscd: Fix use-after-free in addgetnetgrentX and its callers.
12373 * nscd/netgroupcache.c
12374 (addgetnetgrentX): Add tofreep parameter. Do not free
12375 heap-allocated buffer.
12376 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
12377 (addgetnetgrentX_ignore): New function.
12378 (addgetnetgrent): Call it.
12379 (readdgetnetgrent): Likewise.
12380
12381 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
12382
12383 * string/memmem.c: Use memcmp for first match.
12384
12385 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
12386
12387 [BZ #17426]
12388 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
12389
12390 2018-08-27 DJ Delorie <dj@redhat.com>
12391
12392 * support/Makefile (others): Don't list programs explicitly as a
12393 dependency of "others".
12394
12395 2018-08-27 Joseph Myers <joseph@codesourcery.com>
12396
12397 * sysdeps/generic/math-tests-trap-force.h: New file.
12398 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
12399 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
12400 * sysdeps/powerpc/math-tests.h: Remove file.
12401 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
12402
12403 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
12404 Torvald Riegel <triegel@redhat.com>
12405
12406 [BZ #23538]
12407 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
12408 Update r to include the set wake-request flag if waiters are
12409 remaining after spinning.
12410
12411 2018-08-27 Joseph Myers <joseph@codesourcery.com>
12412
12413 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
12414
12415 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
12416
12417 [BZ #23578]
12418 regex: fix uninitialized memory access
12419 I introduced this bug into gnulib in commit
12420 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
12421 eventually it was merged into glibc. The bug was found by
12422 project-repo <bugs@feusi.co> and reported here:
12423 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
12424 Diagnosis and draft fix reported by Assaf Gordon here:
12425 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
12426 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
12427 * posix/regex_internal.c (build_wcs_upper_buffer):
12428 Fix bug when mbrtowc returns 0.
12429
12430 2018-08-24 Carlos O'Donell <carlos@redhat.com>
12431
12432 * po/be.po: Update translation.
12433
12434 2018-08-24 DJ Delorie <dj@delorie.com>
12435
12436 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
12437 $(libunwind).
12438
12439 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
12440
12441 [BZ #23400]
12442 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
12443 create temporary files in source tree.
12444
12445 2018-08-24 Joseph Myers <joseph@codesourcery.com>
12446
12447 * sysdeps/generic/math-tests-trap.h: New file.
12448 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
12449 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
12450 * sysdeps/aarch64/math-tests.h: Remove file.
12451 * sysdeps/arm/math-tests.h: Likewise.
12452 * sysdeps/riscv/math-tests.h: Likewise.
12453 * sysdeps/aarch64/math-tests-trap.h: New file.
12454 * sysdeps/arm/math-tests-trap.h: Likewise.
12455 * sysdeps/riscv/math-tests-trap.h: Likewise.
12456
12457 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
12458
12459 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
12460 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
12461 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
12462 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
12463 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
12464 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
12465 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
12466 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
12467 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
12468 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
12469 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
12470 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12471 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12472 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
12473 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
12474 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
12475 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
12476 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
12477
12478 2018-08-23 Joseph Myers <joseph@codesourcery.com>
12479
12480 * sysdeps/generic/math-tests-exceptions.h: New file.
12481 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
12482 (EXCEPTION_TESTS_float): Do not define here.
12483 (EXCEPTION_TESTS_double): Likewise.
12484 (EXCEPTION_TESTS_long_double): Likewise.
12485 (EXCEPTION_TESTS_float128): Likewise.
12486 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
12487 Likewise.
12488 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
12489 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
12490 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
12491 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
12492 * sysdeps/mips/math-tests.h: Likewise.
12493 * sysdeps/nios2/math-tests.h: Likewise.
12494 * sysdeps/riscv/math-tests.h [!__riscv_flen]
12495 (EXCEPTION_TESTS_float): Do not define here.
12496 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
12497 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
12498 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
12499
12500 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
12501
12502 * NEWS: Move optimized sinf entry to 2.29.
12503
12504 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
12505
12506 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
12507
12508 2018-08-22 DJ Delorie <dj@redhat.com>
12509
12510 * Makefile (testroot.pristine): New rules to initialize the
12511 test-in-container "testroot".
12512 * Makerules (all-testsuite): Add tests-container.
12513 * Rules (tests-expected): Add tests-container.
12514 (binaries-all-tests): Likewise.
12515 (tests-container): New, run these tests in the testroot container.
12516 * support/Makefile (others): Add *-container, support_paths.c,
12517 xmkdirp, and links-dso-program.
12518 * support/links-dso-program-c.c: New.
12519 * support/links-dso-program.cc: New.
12520 * support/test-container.c: New.
12521 * support/shell-container.c: New.
12522 * support/echo-container.c: New.
12523 * support/true-container.c: New.
12524 * support/xmkdirp.c: New.
12525 * support/xsymlink.c: New.
12526 * support/support_paths.c: New.
12527 * support/support.h: Add support paths prototypes.
12528 * support/xunistd.h: Add xmkdirp () and xsymlink ().
12529
12530 * nss/tst-nss-test3.c: Convert to test-in-container.
12531 * nss/tst-nss-test3.root/: New.
12532
12533 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
12534
12535 regex: port Gnulib code to z/OS POSIX environment
12536 Problem reported by Arnold Robbins in:
12537 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
12538 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
12539 Undef.
12540
12541 2018-08-22 Joseph Myers <joseph@codesourcery.com>
12542
12543 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
12544 (ROUNDING_TESTS_double): Remove.
12545 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
12546 (ROUNDING_TESTS_double): Remove.
12547 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
12548 (ROUNDING_TESTS_double): Remove.
12549 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
12550 (ROUNDING_TESTS_float): Remove.
12551 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
12552 (ROUNDING_TESTS_float): Remove.
12553 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
12554 (ROUNDING_TESTS_float): Remove.
12555 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
12556 !TEST_MATHVEC here.
12557 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
12558 (IF_ROUND_INIT_FE_UPWARD): Likewise.
12559
12560 * sysdeps/generic/math-tests-rounding.h: New file.
12561 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
12562 (ROUNDING_TESTS_float): Do not define here.
12563 (ROUNDING_TESTS_double): Likewise.
12564 (ROUNDING_TESTS_long_double): Likewise.
12565 (ROUNDING_TESTS_float128): Likewise.
12566 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
12567 (ROUNDING_TESTS_double): Undefine before defining.
12568 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
12569 (ROUNDING_TESTS_double): Undefine before defining.
12570 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
12571 (ROUNDING_TESTS_double): Undefine before defining.
12572 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
12573 (ROUNDING_TESTS_float): Undefine before defining.
12574 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
12575 (ROUNDING_TESTS_float): Undefine before defining.
12576 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
12577 (ROUNDING_TESTS_float): Undefine before defining.
12578 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
12579 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
12580 not define here.
12581 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
12582 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
12583 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
12584 * sysdeps/riscv/math-tests.h [!__riscv_flen]
12585 (ROUNDING_TESTS_float): Do not define here.
12586 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
12587 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
12588 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
12589 (ROUNDING_TESTS_float): Likewise.
12590 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
12591 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
12592 * sysdeps/mips/math-tests.h [__mips_soft_float]
12593 (ROUNDING_TESTS_float): Likewise.
12594 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
12595 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
12596 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
12597 (ROUNDING_TESTS_double): Likewise.
12598 (ROUNDING_TESTS_long_double): Likewise.
12599
12600 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
12601
12602 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
12603 (PF_XDP): New macro.
12604 (AF_XDP): New macro.
12605 (SOL_XDP): New macro.
12606
12607 2018-08-21 Joseph Myers <joseph@codesourcery.com>
12608
12609 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
12610 (TCP_INQ): Likewise.
12611 (TCP_CM_INQ): Likewise.
12612 (TCP_REPAIR_ON): Likewise.
12613 (TCP_REPAIR_OFF): Likewise.
12614 (TCP_REPAIR_OFF_NO_WP): Likewise.
12615 (struct tcp_zerocopy_receive): New type.
12616
12617 2018-08-21 Florian Weimer <fweimer@redhat.com>
12618
12619 * support/support.h (support_descriptor_supports_holes): Declare.
12620 * support/Makefile (libsupport-routines): Add
12621 support_descriptor_supports_holes.
12622 * support/support_descriptor_supports_holes.c: New file.
12623 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
12624 and stop testing if holes are not supported.
12625 * io/test-lfs.c (do_prepare): Likewise.
12626 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
12627 Likewise.
12628 * timezone/tst-tzset.c (create_tz_file): Likewise.
12629 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
12630 variable.
12631 (do_prepare): Set it.
12632 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
12633
12634 2018-08-21 Florian Weimer <fweimer@redhat.com>
12635
12636 [BZ #17248]
12637 * Makeconfig (+cflags): Do not sort (and deduplicate).
12638
12639 2018-08-21 Florian Weimer <fweimer@redhat.com>
12640
12641 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
12642 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
12643
12644 2018-08-20 Florian Weimer <fweimer@redhat.com>
12645
12646 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
12647 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
12648
12649 2018-08-20 Joseph Myers <joseph@codesourcery.com>
12650
12651 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
12652 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
12653 and ssi_arch members.
12654
12655 * elf/elf.c (NT_VMCOREDD): New macro.
12656 (AT_MINSIGSTKSZ): Likewise.
12657
12658 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
12659
12660 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
12661 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
12662 s_cosf-ppc64 and s_cosf-power8.
12663 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
12664 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
12665 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
12666 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
12667 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
12668 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
12669 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
12670 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
12671 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
12672 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
12673 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
12674 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
12675
12676 2018-08-17 Florian Weimer <fweimer@redhat.com>
12677
12678 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
12679
12680 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
12681
12682 * malloc/malloc.c (_int_malloc): Additional binning code checks.
12683
12684 2018-08-16 Florian Weimer <fweimer@redhat.com>
12685
12686 * configure.ac: Add --with-nonshared-cflags option.
12687 * config.make.in (extra-nonshared-cflags): Set variable.
12688 * Makeconfig (CFLAGS-.oS): Use it.
12689 * manual/install.texi (Configuring and compiling): Document
12690 --with-nonshared-cflags.
12691 * configure: Regenerate.
12692 * INSTALL: Likewise.
12693
12694 2018-08-16 Florian Weimer <fweimer@redhat.com>
12695
12696 * Makeconfig (ASFLAGS): Always append required assembler flags.
12697
12698 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
12699
12700 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
12701 (malloc_consolidate): Likewise.
12702
12703 2018-08-16 Pochang Chen <johnchen902@gmail.com>
12704
12705 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
12706
12707 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
12708
12709 * benchtests/bench-strlen.c (do_test): Allocate buffers before
12710 every strlen call.
12711
12712 * benchtests/bench-strlen.c: Print performance numbers in json.
12713
12714 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
12715
12716 * sysdeps/powerpc/powerpc64/multiarch/Makefile
12717 (sysdep_routines): Build strcmp-power9 and strncmp-power9
12718 only for little endian.
12719 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
12720 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
12721 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
12722 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
12723 Add check for little endian.
12724 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
12725 (__strcmp_power9): Add check for little endian.
12726 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
12727 Add check for little endian.
12728 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
12729 (__strncmp_power9): Add check for little endian.
12730 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
12731 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
12732 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
12733 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
12734 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
12735
12736 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
12737
12738 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
12739 [!STRLEN](STRLEN): Set to __strlen.
12740 * sysdeps/aarch64/multiarch/strlen.c: New file.
12741 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
12742 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
12743 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
12744 (__libc_ifunc_impl_list): Add strlen.
12745 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
12746 strlen_generic and strlen_asimd.
12747
12748 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
12749
12750 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
12751 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
12752 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
12753
12754 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
12755
12756 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
12757
12758 2018-08-14 Florian Weimer <fweimer@redhat.com>
12759
12760 [BZ #23519]
12761 * include/stdio.h (__vfxprintf): Declare.
12762 * stdio-common/fxprintf.c (__vfxprintf): New function.
12763 (__fxprintf): Call it.
12764 * misc/err.c (convert_and_print): Remove function.
12765 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
12766 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
12767 * misc/Makefile (tests): Add tst-warn-wide.
12768 * misc/tst-warn-wide.c: New file.
12769
12770 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
12771 Szabolcs Nagy <szabolcs.nagy@arm.com>
12772
12773 * NEWS: Mention sinf, cosf, sincosf.
12774 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
12775 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
12776 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
12777 constants rather than including generic sincosf.h.
12778 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
12779 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
12780 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
12781 (reduced_cos): Remove.
12782 (sinf_poly): New function.
12783 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
12784
12785 2018-08-14 Florian Weimer <fweimer@redhat.com>
12786
12787 [BZ #23521]
12788 [BZ #23522]
12789 * nss/nss_files/files-alias.c (get_next_alias): During :include:
12790 processing, bail out if no room, and close the stream before
12791 returning ERANGE.
12792 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
12793 (tst-nss-files-alias-leak): Link with libdl.
12794 (tst-nss-files-alias-leak.out): Depend on nss_files.
12795
12796 * nss/tst-nss-files-alias-leak.c: New file.
12797
12798 2018-08-14 Florian Weimer <fweimer@redhat.com>
12799
12800 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
12801 server_user, stat_user.
12802
12803 2018-08-13 Joseph Myers <joseph@codesourcery.com>
12804
12805 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
12806 version to 4.18.
12807 (io_pgetevents): New syscall.
12808 (rseq): Likewise.
12809
12810 * manual/install.texi (Configuring and compiling): Do not list
12811 tools used for testing pretty printers here.
12812 (Tools for Compilation): List Python, PExpect and GDB here.
12813 Update descriptions of uses of Perl and Python.
12814 * INSTALL: Regenerate.
12815
12816 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
12817 version to 4.18.
12818
12819 2018-08-13 Florian Weimer <fweimer@redhat.com>
12820
12821 * misc/error.c (error): Add missing va_end call.
12822 (error_at_line): Likewise.
12823
12824 2018-08-13 Florian Weimer <fweimer@redhat.com>
12825
12826 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
12827
12828 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
12829
12830 * benchtests/scripts/benchout.schema.json (properties): Add
12831 new properties.
12832
12833 * benchtests/bench-skeleton.c (main): Add duration and
12834 iterations attributes.
12835
12836 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
12837
12838 regex: Gnulib unibyte RRI uses bytes not chars
12839 Adjust the non-glibc code to agree with what Gawk needs for
12840 rational range interpretation (RRI) for regular expression ranges.
12841 In unibyte locales, Gawk wants ranges to use the underlying byte
12842 rather than the character code point. This change does not affect
12843 glibc proper.
12844 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
12845 In unibyte locales, use the byte value rather than
12846 running it through btowc.
12847
12848 2018-08-10 Joseph Myers <joseph@codesourcery.com>
12849
12850 * sysdeps/generic/math-tests-snan.h: New file.
12851 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
12852 (SNAN_TESTS_float): Do not define here.
12853 (SNAN_TESTS_double): Likewise.
12854 (SNAN_TESTS_long_double): Likewise.
12855 (SNAN_TESTS_float128): Likewise.
12856 * sysdeps/i386/fpu/math-tests-snan.h: New file.
12857 * sysdeps/i386/fpu/math-tests.h: Remove file.
12858 * sysdeps/ia64/math-tests-snan.h: New file.
12859 * sysdeps/ia64/math-tests.h: Remove file.
12860 * sysdeps/x86/math-tests.h: Likewise.
12861 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
12862
12863 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
12864 Szabolcs Nagy <szabolcs.nagy@arm.com>
12865
12866 * math/Makefile: Add s_sincosf_data.c.
12867 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
12868 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
12869 (sincosf_poly): Likewise.
12870 (reduce_small): Likewise.
12871 (reduce_large): Likewise.
12872 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
12873 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
12874 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
12875 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
12876
12877 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
12878 Szabolcs Nagy <szabolcs.nagy@arm.com>
12879
12880 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
12881 (converttoint): Use lround.
12882 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
12883 document the semantics when TOINT_INTRINSICS is set.
12884 (converttoint): Likewise.
12885 (TOINT_RINT): Remove.
12886 (TOINT_SHIFT): Remove.
12887 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
12888 path.
12889
12890 2018-08-10 Florian Weimer <fweimer@redhat.com>
12891
12892 [BZ #23497]
12893 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
12894 function.
12895 (__old_getdents64): Use getdents64. Convert entries without
12896 moving them.
12897 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
12898 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
12899 tst-readdir64-compat.
12900
12901 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
12902
12903 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
12904 Fix unwind.
12905
12906 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
12907
12908 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
12909 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
12910 code to s390x-mcount.h and #include it.
12911 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
12912 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
12913 (__fentry__): Add.
12914
12915 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
12916
12917 * stdlib/Versions: Remove __fentry__.
12918 * sysdeps/i386/Versions: Add __fentry__.
12919 * sysdeps/x86_64/Versions: Add __fentry__.
12920
12921 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
12922
12923 * sysdeps/s390/Makefile: Register the new tests.
12924 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
12925 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
12926 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
12927 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
12928 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
12929 * sysdeps/s390/tst-dl-runtime.c: New file.
12930
12931 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
12932
12933 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
12934 Do not clobber R0.
12935
12936 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
12937
12938 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
12939 Do not clobber R0.
12940
12941 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
12942
12943 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
12944 Do not clobber R0.
12945
12946 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
12947
12948 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
12949 Do not clobber R0.
12950
12951 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
12952
12953 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
12954 Use symbolic offsets for stack variables.
12955
12956 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
12957
12958 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
12959 Use symbolic offsets for stack variables.
12960
12961 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
12962
12963 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
12964 Use symbolic offsets for stack variables.
12965
12966 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
12967
12968 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
12969 Use symbolic offsets for stack variables.
12970
12971 2018-08-09 Joseph Myers <joseph@codesourcery.com>
12972
12973 * math/gen-libm-test.py: New file.
12974 * math/gen-libm-test.pl: Remove.
12975 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
12976 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
12977 gen-libm-test.pl.
12978 ($(libm-test-c-noauto-obj)): Likewise.
12979 ($(libm-test-c-auto-obj)): Likewise.
12980 ($(libm-test-c-narrow-obj)): Likewise.
12981 (regen-ulps): Likewise.
12982 * math/README.libm-test: Update references to gen-libm-test.pl.
12983 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
12984 referencing gen-libm-test.pl.
12985 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
12986 * math/libm-test-support.c: Likewise.
12987 * math/libm-test-support.h: Likewise.
12988 * sysdeps/generic/libm-test-ulps: Likewise.
12989
12990 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
12991
12992 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
12993 Fix value.
12994
12995 2018-08-08 Joseph Myers <joseph@codesourcery.com>
12996
12997 * math/libm-test-nextdown.inc (do_test): Move comment to ....
12998 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
12999
13000 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13001
13002 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
13003 symbols.
13004 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
13005 __pthread_setspecific): Add hidden proto.
13006 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
13007 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
13008
13009 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
13010
13011 * benchtests/bench-string.h (buf1_size, buf2_size): New
13012 variables.
13013 (init_sizes): New function.
13014 (test_init): Use it.
13015 (alloc_buf, exit_error): New functions.
13016 (alloc_bufs): Use ALLOC_BUF.
13017 (realloc_bufs): Remove.
13018 * benchtests/bench-memcmp.c (do_test): Adjust.
13019 * benchtests/bench-memset-large.c (do_test): Likewise.
13020 * benchtests/bench-memset-walk.c (do_test): Likewise.
13021 * benchtests/bench-memset.c (do_test): Likewise.
13022 * benchtests/bench-strncmp.c (do_test): Likewise.
13023
13024 2018-08-06 Andreas Schwab <schwab@suse.de>
13025
13026 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
13027 of CONST_THREAD_AREA.
13028
13029 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
13030
13031 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
13032 (STATE_SAVE_MASK): Likewise.
13033 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
13034 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
13035 (STATE_SAVE_MASK): Likewise.
13036 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
13037 instead of <cpu-features.h>.
13038
13039 2018-08-03 DJ Delorie <dj@redhat.com>
13040
13041 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
13042 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
13043
13044 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
13045
13046 2018-08-03 Joseph Myers <joseph@codesourcery.com>
13047
13048 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
13049 after TEST_* calls.
13050 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
13051 * math/libm-test-logb.inc (logb_test_data): Likewise.
13052
13053 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
13054
13055 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
13056 * string/strstr.c (AVAILABLE): Likewise.
13057
13058 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
13059
13060 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
13061 <init-arch.h>.
13062 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
13063 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
13064 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
13065
13066 2018-08-03 Carlos O'Donell <carlos@redhat.com>
13067
13068 * po/be.po: Update translation.
13069
13070 * po/be.po: Update translation.
13071
13072 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
13073
13074 * sysdeps/x86/cpu-features-offsets.sym
13075 (rtld_global_ro_offsetof): Removed.
13076 (CPU_FEATURES_SIZE): Likewise.
13077 (CPUID_OFFSET): Likewise.
13078 (CPUID_SIZE): Likewise.
13079 (CPUID_EAX_OFFSET): Likewise.
13080 (CPUID_EBX_OFFSET): Likewise.
13081 (CPUID_ECX_OFFSET): Likewise.
13082 (CPUID_EDX_OFFSET): Likewise.
13083 (FAMILY_OFFSET): Likewise.
13084 (MODEL_OFFSET): Likewise.
13085 (FEATURE_OFFSET): Likewise.
13086 (FEATURE_SIZ): Likewise.
13087 (COMMON_CPUID_INDEX_1): Likewise.
13088 (COMMON_CPUID_INDEX_7): Likewise.
13089 (FEATURE_INDEX_1): Likewise.
13090 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
13091
13092 2018-08-02 Carlos O'Donell <carlos@redhat.com>
13093
13094 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
13095 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
13096 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
13097 (install-locales): Depend on install-locale-archive.
13098 (install-locale-archive): Define.
13099 (install-locale-files): Define.
13100 (build-one-locale): Define macro.
13101 * manual/install.texi (Running make install): Document.
13102 * manual/INSTALL: Regenerate.
13103
13104 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
13105
13106 * benchtests/scripts/compare_strings.py: Import traceback.
13107 (parse_file): Pretty-print error.
13108
13109 * NEWS: Mention the change.
13110 * elf/dl-tunables.list: Rename tune namespace to cpu.
13111 * sysdeps/powerpc/dl-tunables.list: Likewise.
13112 * sysdeps/x86/dl-tunables.list: Likewise.
13113 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
13114 cpu.name.
13115 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
13116 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
13117 * manual/README.tunables: Likewise.
13118 * manual/tunables.texi: Likewise.
13119 * sysdeps/powerpc/cpu-features.c: Likewise.
13120 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
13121 (init_cpu_features): Likewise.
13122 * sysdeps/x86/cpu-features.c: Likewise.
13123 * sysdeps/x86/cpu-features.h: Likewise.
13124 * sysdeps/x86/cpu-tunables.c: Likewise.
13125 * sysdeps/x86_64/Makefile: Likewise.
13126 * sysdeps/x86/dl-cet.c: Likewise.
13127
13128 2018-08-02 Joseph Myers <joseph@codesourcery.com>
13129
13130 [BZ #23479]
13131 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
13132 [__mips_hard_float].
13133 (FE_UNDERFLOW): Likewise.
13134 (FE_OVERFLOW): Likewise.
13135 (FE_DIVBYZERO): Likewise.
13136 (FE_INVALID): Likewise.
13137 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
13138 (FE_TOWARDZERO): Define only if [__mips_hard_float].
13139 (FE_UPWARD): Likewise.
13140 (FE_DOWNWARD): Likewise.
13141 (__FE_UNDEFINED): Define if [!__mips_hard_float]
13142 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
13143 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
13144 [__mips_hard_float].
13145 (FP_ROUNDMODE): Likewise.
13146 (FP_RND_NEAREST): Likewise.
13147 (FP_RND_ZERO): Likewise.
13148 (FP_RND_PINF): Likewise.
13149 (FP_RND_MINF): Likewise.
13150 (FP_EX_INVALID): Likewise.
13151 (FP_EX_OVERFLOW): Likewise.
13152 (FP_EX_UNDERFLOW): Likewise.
13153 (FP_EX_DIVZERO): Likewise.
13154 (FP_EX_INEXACT): Likewise.
13155 (FP_INIT_ROUNDMODE): Likewise.
13156 * sysdeps/mips/nofpu/fesetenv.c: New file.
13157 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
13158
13159 2018-08-01 Joseph Myers <joseph@codesourcery.com>
13160
13161 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
13162 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
13163 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
13164 conditional on [FE_UPWARD].
13165
13166 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
13167
13168 regex: fix memory leak in Gnulib
13169 Problem and fix reported by Assaf Gordon in:
13170 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
13171 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
13172 range_ends members too, as they are defined in 'struct
13173 re_charset_t' even if not _LIBC. This affects only Gnulib.
13174
13175 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
13176
13177 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
13178 ...
13179 (get_common_indices): This.
13180 (init_cpu_features): Updated.
13181
13182 2018-08-01 Joseph Myers <joseph@codesourcery.com>
13183
13184 * sysdeps/generic/math-tests-snan-payload.h: New file.
13185 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
13186 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
13187 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
13188 * sysdeps/generic/math-tests.h: Include
13189 <math-tests-snan-payload.h>.
13190 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
13191 * sysdeps/hppa/math-tests.h: Remove file.
13192 * sysdeps/mips/math-tests.h [!__mips_nan2008]
13193 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
13194 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
13195 Likewise.
13196
13197 * sysdeps/generic/math-tests-snan-cast.h: New file.
13198 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
13199 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
13200 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
13201 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
13202
13203 2018-08-01 Carlos O'Donel <carlos@redhat.com>
13204
13205 * version.h (RELEASE): Set to "development".
13206 (VERSION): Set to "2.28.9000".
13207 * NEWS (2.29): New section.
13208
13209 * version.h (RELEASE): Set to "stable".
13210 (VERSION): Set to "2.28".
13211 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
13212 * NEWS: Add the list of bugs fixed in 2.28.
13213
13214 * po/ca.po: Update to latest version.
13215 * po/cs.po: Likewise
13216 * po/da.po: Likewise
13217 * po/el.po: Likewise
13218 * po/eo.po: Likewise
13219 * po/es.po: Likewise
13220 * po/fi.po: Likewise
13221 * po/fr.po: Likewise
13222 * po/gl.po: Likewise
13223 * po/hu.po: Likewise
13224 * po/ia.po: Likewise
13225 * po/id.po: Likewise
13226 * po/it.po: Likewise
13227 * po/ja.po: Likewise
13228 * po/ko.po: Likewise
13229 * po/lt.po: Likewise
13230 * po/nb.po: Likewise
13231 * po/nl.po: Likewise
13232 * po/pt_BR.po: Likewise
13233 * po/ru.po: Likewise
13234 * po/rw.po: Likewise
13235 * po/sk.po: Likewise
13236 * po/sl.po: Likewise
13237 * po/tr.po: Likewise
13238 * po/zh_CN.po: Likewise
13239 * po/zh_TW.po: Likewise
13240
13241 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
13242
13243 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
13244 initialization...
13245 (init): ... before initializing libpthread.
13246
13247 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
13248 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
13249 (__mach_setup_tls): ... new function.
13250 (mach_setup_tls): New alias.
13251 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
13252 __mach_setup_thread.
13253 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
13254 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
13255 * mach/Versions [libc] (mach_setup_tls): Add symbol.
13256 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
13257
13258 2018-07-31 Carlos O'Donell <carlos@redhat.com>
13259
13260 * manual/install.texi: Update versions.
13261 * INSTALL: Regenerate.
13262
13263 * manual/contrib.texi (Contributors): Update contributions.
13264
13265 2018-07-31 Carlos O'Donell <carlos@redhat.com>
13266
13267 * po/be.po: Update translations.
13268
13269 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13270
13271 * sysdeps/sh/libm-test-ulps: Update.
13272
13273 2018-07-30 Carlos O'Donell <carlos@redhat.com>
13274
13275 * po/bg.po: Update translations.
13276 * po/de.po: Likewise.
13277 * po/hr.po: Likewise.
13278 * po/pt_BR.po: Likewise.
13279 * po/sv.po: Likewise.
13280 * po/vi.po: Likewise.
13281
13282 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
13283
13284 [BZ #23467]
13285 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
13286 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
13287 (CFLAGS-tst-cet-property-1.o): New.
13288 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
13289 ($(objpfx)tst-cet-property-2): Likewise.
13290 ($(objpfx)tst-cet-property-2.out): Likewise.
13291 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
13292 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
13293 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
13294 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
13295 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
13296
13297 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
13298
13299 [BZ #23458]
13300 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
13301
13302 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
13303
13304 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
13305 __sbrk): Do not set attribute_hidden.
13306 * sysdeps/mach/hurd/not-errno.h: New file.
13307 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
13308 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
13309
13310 2018-07-27 Carlos O'Donell <carlos@redhat.com>
13311
13312 * po/uk.po: Update translations.
13313 * po/cs.po: Likewise.
13314 * po/pl.po: Likewise.
13315
13316 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
13317
13318 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
13319 parse beyond the note end.
13320
13321 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13322
13323 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
13324 kernel does not support OFD locks.
13325 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
13326
13327 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
13328
13329 * sysdeps/mach/hurd/Versions (libc): Make __access and
13330 __access_noerrno external so they can override the ld symbols.
13331 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
13332 __writev, __open64, __access_noerrno extern so they can be overrided.
13333 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
13334 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
13335
13336 2018-07-26 Carlos O'Donell <carlos@redhat.com>
13337
13338 * po/libc.pot: Regenerate.
13339
13340 2018-07-26 Joseph Myers <joseph@codesourcery.com>
13341
13342 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
13343
13344 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
13345
13346 [BZ #23459]
13347 * sysdeps/x86/cpu-features.c (get_extended_indices): New
13348 function.
13349 (init_cpu_features): Call get_extended_indices for both Intel
13350 and AMD CPUs.
13351 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
13352 Remove "for AMD" comment.
13353
13354 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
13355
13356 [BZ # 23456]
13357 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
13358 COMMON_CPUID_INDEX_80000001.
13359
13360 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
13361
13362 * string/tst-xbzero-opt.c (use_test_buffer): New function.
13363 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
13364
13365 2018-07-26 Florian Weimer <fweimer@redhat.com>
13366
13367 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
13368 aliases for symbols not in the implementation namespace.
13369
13370 2018-07-25 Carlos O'Donell <carlos@redhat.com>
13371
13372 [BZ #23393]
13373 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
13374 lowercase in LATIN script.
13375 * localedata/Makefile (test-input): Add en_US.UTF-8.
13376 * localedata/en_US.UTF-8.in: New file.
13377 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
13378 and restore old tests.
13379 * posix/tst-regexloc.c (do_test): Add back range expression test.
13380
13381 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
13382
13383 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
13384
13385 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13386
13387 * nptl/threads.h: Move to ...
13388 * sysdeps/nptl/threads.h: ... here.
13389 * sysdeps/hurd/stdc-predef.h: New file.
13390
13391 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
13392
13393 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
13394 tst-cet-setcontext-1 if CET is enabled.
13395 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
13396 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
13397
13398 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13399
13400 * include/threads.h: Move to ...
13401 * sysdeps/nptl/threads.h: ... here.
13402 * sysdeps/htl/threads.h: New file.
13403 * conform/Makefile (linknamespace-libs-ISO11): Use
13404 static-thread-library instead of linking libpthread.
13405 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
13406
13407 2018-07-25 Florian Weimer <fweimer@redhat.com>
13408
13409 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
13410 nanoseconds into seconds.
13411 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
13412 (do_test): Likewise.
13413 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
13414 (do_test): Likewise. Avoid nanosecond overflow and spurious
13415 timeouts due to system load.
13416 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
13417 (child_wait): Increment it.
13418 (do_test): Wait as long as necessary until all expected threads
13419 have arrived.
13420
13421 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
13422 H.J. Lu <hongjiu.lu@intel.com>
13423
13424 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
13425 __ssp.
13426 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
13427 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
13428 (__push___start_context): New.
13429 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
13430 <asm/prctl.h>.
13431 (__getcontext): Record the current shadow stack base. Save the
13432 caller's shadow stack pointer and base.
13433 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
13434 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
13435 (__push___start_context): New prototype.
13436 (__makecontext): Call __push___start_context to allocate a new
13437 shadow stack, push __start_context onto the new stack as well
13438 as the new shadow stack.
13439 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
13440 <asm/prctl.h>.
13441 (__setcontext): Restore the target shadow stack.
13442 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
13443 <asm/prctl.h>.
13444 (__swapcontext): Record the current shadow stack base. Save
13445 the caller's shadow stack pointer and base. Restore the target
13446 shadow stack.
13447 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
13448 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
13449 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
13450
13451 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
13452
13453 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
13454 tst-setcontext8 and tst-setcontext9.
13455 * stdlib/tst-setcontext6.c: New file.
13456 * stdlib/tst-setcontext7.c: Likewise.
13457 * stdlib/tst-setcontext8.c: Likewise.
13458 * stdlib/tst-setcontext9.c: Likewise.
13459
13460 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
13461
13462 * stdlib/Makefile ((tests): Add tst-setcontext5.
13463 * stdlib/tst-setcontext5.c: New file.
13464
13465 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
13466
13467 * stdlib/Makefile (tests): Add tst-setcontext4.
13468 * stdlib/tst-setcontext4.c: New file.
13469
13470 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
13471
13472 * stdlib/Makefile (tests): Add tst-swapcontext1.
13473 * stdlib/tst-swapcontext1.c: New test.
13474
13475 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
13476
13477 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
13478 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
13479 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
13480 and tst-cet-legacy-4c.
13481 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
13482 and tst-cet-legacy-mod-4.
13483 (CFLAGS-tst-cet-legacy-2.c): New.
13484 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
13485 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
13486 (CFLAGS-tst-cet-legacy-3.c): Likewise.
13487 (CFLAGS-tst-cet-legacy-4.c): Likewise.
13488 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
13489 ($(objpfx)tst-cet-legacy-1): Likewise.
13490 ($(objpfx)tst-cet-legacy-2): Likewise.
13491 ($(objpfx)tst-cet-legacy-2.out): Likewise.
13492 ($(objpfx)tst-cet-legacy-2a): Likewise.
13493 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
13494 ($(objpfx)tst-cet-legacy-4): Likewise.
13495 ($(objpfx)tst-cet-legacy-4.out): Likewise.
13496 ($(objpfx)tst-cet-legacy-4a): Likewise.
13497 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
13498 (tst-cet-legacy-4a-ENV): Likewise.
13499 ($(objpfx)tst-cet-legacy-4b): Likewise.
13500 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
13501 (tst-cet-legacy-4b-ENV): Likewise.
13502 ($(objpfx)tst-cet-legacy-4c): Likewise.
13503 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
13504 (tst-cet-legacy-4c-ENV): Likewise.
13505 * sysdeps/x86/tst-cet-legacy-1.c: New file.
13506 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
13507 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
13508 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
13509 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
13510 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
13511 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
13512 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
13513 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
13514 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
13515 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
13516
13517 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
13518
13519 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
13520 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
13521 with ssp_base.
13522 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
13523 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
13524 with ssp_base.
13525
13526 2018-07-25 Andreas Schwab <schwab@suse.de>
13527
13528 [BZ #23442]
13529 * locale/weightwc.h (findidx): Handle the case where usrc is a
13530 prefix of cp but one character too short.
13531
13532 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13533
13534 * NEWS: Add ISO C threads addition.
13535
13536 2018-07-24 Florian Weimer <fweimer@redhat.com>
13537
13538 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
13539 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
13540 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
13541 4.13.
13542
13543 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
13544
13545 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
13546 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
13547 <sys/prctl.h> and <asm/prctl.h>.
13548 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
13549 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
13550 and <asm/prctl.h>.
13551 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
13552 ARCH_CET_LEGACY_BITMAP.
13553 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
13554 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
13555 * sysdeps/x86/libc-start.c: Include <startup.h>.
13556
13557 2018-07-24 Florian Weimer <fweimer@redhat.com>
13558
13559 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
13560 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
13561
13562 2018-07-24 Rical Jasan <rj@2c3t.io>
13563 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13564 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
13565
13566 [BZ #14092]
13567 * manual/debug.texi: Update adjacent chapter name.
13568 * manual/probes.texi: Likewise.
13569 * manual/threads.texi (ISO C Threads): New section.
13570 (POSIX Threads): Convert to a section.
13571
13572 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13573 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
13574
13575 [BZ# 14092]
13576 * nptl/Makefile (tests): Add new test files.
13577 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
13578 * nptl/tst-cnd-basic.c: Likewise.
13579 * nptl/tst-cnd-broadcast.c: Likewise.
13580 * nptl/tst-cnd-timedwait.c: Likewise.
13581 * nptl/tst-mtx-basic.c: Likewise.
13582 * nptl/tst-mtx-recursive.c: Likewise.
13583 * nptl/tst-mtx-timedlock.c: Likewise.
13584 * nptl/tst-mtx-trylock.c: Likewise.
13585 * nptl/tst-thrd-basic.c: Likewise.
13586 * nptl/tst-thrd-detach.c: Likewise.
13587 * nptl/tst-thrd-sleep.c: Likewise.
13588 * nptl/tst-tss-basic.c: Likewise.
13589
13590 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13591
13592 [BZ #14092]
13593 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
13594 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
13595 symbols.
13596 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
13597 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
13598 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
13599 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
13600 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
13601 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
13602 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
13603 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
13604 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
13605 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
13606 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
13607 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
13608 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
13609 Likewise.
13610 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
13611 Likewise.
13612 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
13613 Likewise.
13614 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
13615 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
13616 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
13617 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
13618 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
13619 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
13620 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
13621 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
13622 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
13623 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
13624 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
13625 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
13626 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
13627 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
13628 Likewise.
13629 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
13630 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
13631 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
13632 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
13633 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
13634 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
13635 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
13636 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
13637 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
13638 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
13639 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
13640 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
13641 ikewise.
13642 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
13643 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
13644 Likewise.
13645 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
13646 Likewise.
13647 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
13648 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
13649 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
13650 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
13651 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
13652 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
13653 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
13654 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
13655
13656 [BZ #14092]
13657 * conform/data/threads.h-data (thread_local): New macro.
13658 (TSS_DTOR_ITERATIONS): Likewise.
13659 (tss_t): New type.
13660 (tss_dtor_t): Likewise.
13661 (tss_create): New function.
13662 (tss_get): Likewise.
13663 (tss_set): Likewise.
13664 (tss_delete): Likewise.
13665 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
13666 tss_get, and tss_set objects.
13667 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
13668 * nptl/tss_create.c: New file.
13669 * nptl/tss_delete.c: Likewise.
13670 * nptl/tss_get.c: Likewise.
13671 * nptl/tss_set.c: Likewise.
13672 * sysdeps/nptl/threads.h (thread_local): New define.
13673 (TSS_DTOR_ITERATIONS): Likewise.
13674 (tss_t): New typedef.
13675 (tss_dtor_t): Likewise.
13676 (tss_create): New prototype.
13677 (tss_get): Likewise.
13678 (tss_set): Likewise.
13679 (tss_delete): Likewise.
13680
13681 [BZ #14092]
13682 * conform/data/threads.h-data (cnd_t): New type.
13683 (cnd_init): New function.
13684 (cnd_signal): Likewise.
13685 (cnd_broadcast): Likewise.
13686 (cnd_wait): Likewise.
13687 (cnd_timedwait): Likewise.
13688 (cnd_destroy): Likewise.
13689 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
13690 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
13691 object.
13692 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
13693 * nptl/cnd_broadcast.c: New file.
13694 * nptl/cnd_destroy.c: Likewise.
13695 * nptl/cnd_init.c: Likewise.
13696 * nptl/cnd_signal.c: Likewise.
13697 * nptl/cnd_timedwait.c: Likewise.
13698 * nptl/cnd_wait.c: Likewise.
13699 * sysdeps/nptl/threads.h (cnd_t): New type.
13700 (cnd_init): New prototype.
13701 (cnd_signa): Likewise.
13702 (cnd_broadcast): Likewise.
13703 (cnd_wait): Likewise.
13704 (cnd_timedwait): Likewise.
13705 (cnd_destroy): Likewise.
13706
13707 [BZ #14092]
13708 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
13709 (once_flag): New type.
13710 (call_once): New function.
13711 * nptl/Makefile (libpthread-routines): Add call_once object.
13712 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
13713 * nptl/call_once.c: New file.
13714 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
13715 (once_flag): New type.
13716 (call_once): New prototype.
13717
13718 [BZ #14092]
13719 * conform/data/threads.h-data (mtx_plain): New constant.
13720 (mtx_recursive): Likewise.
13721 (mtx_timed): Likewise.
13722 (mtx_t): New type.
13723 (mtx_init): New function.
13724 (mtx_lock): Likewise.
13725 (mtx_timedlock): Likewise.
13726 (mtx_trylock): Likewise.
13727 (mtx_unlock): Likewise.
13728 (mtx_destroy): Likewise.
13729 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
13730 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
13731 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
13732 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
13733 * nptl/mtx_destroy.c: New file.
13734 * nptl/mtx_init.c: Likewise.
13735 * nptl/mtx_lock.c: Likewise.
13736 * nptl/mtx_timedlock.c: Likewise.
13737 * nptl/mtx_trylock.c: Likewise.
13738 * nptl/mtx_unlock.c: Likewise.
13739 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
13740 (mtx_recursive): Likewise.
13741 (mtx_timed): Likewise.
13742 (mtx_t): New type.
13743 (mtx_init): New prototype.
13744 (mtx_lock): Likewise.
13745 (mtx_timedlock): Likewise.
13746 (mtx_trylock): Likewise.
13747 (mtx_unlock): Likewise.
13748 (mtx_destroy): Likewise.
13749
13750 [BZ #14092]
13751 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
13752 (linknamespace-libs-ISO11): Add libpthread.a.
13753 * conform/data/threads.h-data: New file: add C11 thrd_* types and
13754 functions.
13755 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
13756 * nptl/Makefile (headers): Add threads.h.
13757 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
13758 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
13759 thrd_yield.
13760 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
13761 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
13762 thrd_join, thrd_sleep, and thrd_yield symbols.
13763 * nptl/descr.h (struct pthread): Add c11 field.
13764 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
13765 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
13766 routine with expected function prototype.
13767 (__pthread_create_2_1): Add C11 threads check based on attribute
13768 value.
13769 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
13770 * nptl/thrd_create.c: New file.
13771 * nptl/thrd_current.c: Likewise.
13772 * nptl/thrd_detach.c: Likewise.
13773 * nptl/thrd_equal.c: Likewise.
13774 * nptl/thrd_exit.c: Likewise.
13775 * nptl/thrd_join.c: Likewise.
13776 * nptl/thrd_priv.h: Likewise.
13777 * nptl/thrd_sleep.c: Likewise.
13778 * nptl/thrd_yield.c: Likewise.
13779 * include/threads.h: Likewise.
13780
13781 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
13782
13783 * bits/indirect-return.h: New file.
13784 * misc/sys/cdefs.h (__glibc_has_attribute): New.
13785 * sysdeps/x86/bits/indirect-return.h: Likewise.
13786 * stdlib/Makefile (headers): Add bits/indirect-return.h.
13787 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
13788 (swapcontext): Add __INDIRECT_RETURN.
13789 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
13790 (prepare_test_buffer): Use it.
13791
13792 2018-07-24 Andreas Schwab <schwab@suse.de>
13793
13794 [BZ #23448]
13795 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
13796 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
13797
13798 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
13799
13800 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
13801 Redefine if shadow stack is enabled.
13802 (SYSCALL_ERROR_LABEL): Likewise.
13803 (__vfork): Pop shadow stack and jump back to to caller directly
13804 when shadow stack is in use.
13805 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
13806 Redefine if shadow stack is enabled.
13807 (SYSCALL_ERROR_LABEL): Likewise.
13808 (__vfork): Pop shadow stack and jump back to to caller directly
13809 when shadow stack is in use.
13810
13811 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
13812
13813 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
13814 enabled.
13815 (foo): Likewise.
13816 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
13817 (foo): Likewise.
13818
13819 2018-07-20 Joseph Myers <joseph@codesourcery.com>
13820
13821 * scripts/build-many-glibcs.py (Context.checkout): Default
13822 binutils version to 2.31 branch.
13823
13824 2018-07-20 Zong Li <zong@andestech.com>
13825
13826 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
13827 URL of gcc's tarball.
13828
13829 2018-07-20 Florian Weimer <fweimer@redhat.com>
13830
13831 [BZ #23396]
13832 * posix/regcomp.c (build_equiv_class): When comparing weights, do
13833 not compare an extra byte after the end of the weights.
13834
13835 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
13836
13837 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
13838 to 1.
13839 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
13840 hidden prototypes.
13841 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
13842 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
13843 * scripts/check-execstack.awk: Consider `xfail' variable containing a
13844 list of libraries whose stack executability is expected.
13845 * elf/Makefile ($(objpfx)check-execstack.out): Pass
13846 $(check-execstack-xfail) to check-execstack.awk through `xfail'
13847 variable.
13848 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
13849 libc.so libpthread.so.
13850
13851 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
13852
13853 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
13854 SOCK_NONBLOCK.
13855 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
13856 and SOCK_NONBLOCK.
13857 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
13858 implement __pipe2.
13859 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
13860
13861 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
13862
13863 * benchtests/scripts/compare_bench.py (__main__): use the argparse
13864 library to improve command line parsing.
13865 (__main__): make schema file as optional parameter (--schema),
13866 defaulting to benchtests/scripts/benchout.schema.json.
13867 (main): move out of the parsing stuff to __main_  and leave it
13868 only as caller of main comparison functions.
13869
13870 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
13871
13872 * NEWS: Add a note for Intel CET status.
13873 * manual/install.texi: Likewise.
13874 * INSTALL: Regenerated.
13875
13876 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
13877
13878 [BZ #23140]
13879 * localedata/locales/oc_FR (mon): Rename to...
13880 (alt_mon): This, then update October (typo fix).
13881 (mon): New content (genitive case, month names preceded by
13882 "de" or "d’").
13883
13884 [BZ #23422]
13885 * localedata/locales/oc_FR (abday): Update all items.
13886 (day): Update Wednesday and Saturday (typo fixes).
13887 (abmon): Update all items, except May.
13888 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
13889 (LC_IDENTIFICATION): Bump the revision number and date.
13890 Keep the "category" entries in alphabetic order.
13891 (LC_ADDRESS): Remove no longer needed comment.
13892 (LC_COLLATE): Use “copy "ca_ES"”.
13893 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
13894 "name_mrs".
13895
13896 2018-07-18 Joseph Myers <joseph@codesourcery.com>
13897
13898 * grp/tst_fgetgrent.c: Include <unistd.h>.
13899 (main): Use mkstemp instead of tmpnam.
13900 * io/test-utime.c (main): Likewise.
13901 * posix/annexc.c (macrofile): Change to modifiable array.
13902 (main): Remove macrofile here.
13903 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
13904 macrofile here.
13905 (check_header): Do not remove macrofile here.
13906 * posix/bug-getopt1.c: Include <stdlib.h>.
13907 (do_test): Use mkstemp instead of tmpnam.
13908 * posix/bug-getopt2.c: Include <stdlib.h>.
13909 (do_test): Use mkstemp instead of tmpnam.
13910 * posix/bug-getopt3.c: Include <stdlib.h>.
13911 (do_test): Use mkstemp instead of tmpnam.
13912 * posix/bug-getopt4.c: Include <stdlib.h>.
13913 (do_test): Use mkstemp instead of tmpnam.
13914 * posix/bug-getopt5.c: Include <stdlib.h>.
13915 (do_test): Use mkstemp instead of tmpnam.
13916 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
13917 (main): Use mkstemp instead of tmpnam.
13918 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
13919 (main): Use mkstemp instead of tmpnam.
13920 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
13921 (main): use mkstemp instead of tmpnam.
13922 * stdlib/isomac.c (macrofile): Change to modifiable array.
13923 (main): Remove macrofile here.
13924 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
13925 macrofile here.
13926 (check_header): Do not remove macrofile here.
13927
13928 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
13929
13930 * manual/tunables.texi: Document glibc.tune.x86_ibt and
13931 glibc.tune.x86_shstk.
13932
13933 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
13934
13935 * NEWS: Mention --enable-cet.
13936 * manual/install.texi: Document --enable-cet.
13937 * INSTALL: Regenerated.
13938
13939 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
13940
13941 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
13942 Add _CET_NOTRACK before indirect jump to jump table.
13943
13944 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
13945
13946 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
13947 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
13948 to jump table.
13949
13950 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
13951
13952 * sysdeps/i386/i686/multiarch/strcat-sse2.S
13953 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
13954 to jump table.
13955
13956 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
13957
13958 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
13959 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
13960 to jump table.
13961
13962 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
13963
13964 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
13965 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
13966 to jump table.
13967
13968 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
13969
13970 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
13971 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
13972 to jump table.
13973 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
13974
13975 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
13976
13977 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
13978 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
13979 to jump table.
13980
13981 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
13982
13983 * sysdeps/i386/i686/multiarch/memset-sse2.S
13984 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
13985 to jump table.
13986
13987 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
13988
13989 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
13990 indirect jump to jump table.
13991
13992 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
13993
13994 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
13995 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
13996 to jump table.
13997 (MEMCPY): Likewise.
13998
13999 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14000
14001 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
14002 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14003 to jump table.
14004 (MEMCPY): Likewise.
14005
14006 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14007
14008 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
14009 _CET_NOTRACK before indirect jump to jump table.
14010
14011 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14012
14013 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
14014 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14015 to jump table.
14016
14017 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14018
14019 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
14020 indirect jump to jump table.
14021
14022 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
14023
14024 [BZ #22241]
14025 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
14026 (LOCALES): Likewise.
14027 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
14028 * localedata/locales/sah_RU: New file.
14029 * localedata/sah_RU.UTF-8.in: New file.
14030
14031 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
14032
14033 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
14034 "sysdep.h".
14035 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
14036 _CET_ENDBR to indirect jump targets and adjust jump destination
14037 for _CET_ENDBR.
14038 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
14039 "sysdep.h".
14040 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
14041 _CET_ENDBR to indirect jump targets and adjust jump destination
14042 for _CET_ENDBR.
14043 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
14044 "sysdep.h".
14045 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
14046 _CET_ENDBR to indirect jump targets and adjust jump destination
14047 for _CET_ENDBR.
14048
14049 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
14050
14051 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
14052 _CET_ENDBR.
14053
14054 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
14055
14056 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
14057 _CET_ENDBR.
14058 (_dl_tlsdesc_undefweak): Likewise.
14059 (_dl_tlsdesc_dynamic): Likewise.
14060 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
14061 (_dl_tlsdesc_resolve_rel): Likewise.
14062 (_dl_tlsdesc_resolve_rela): Likewise.
14063 (_dl_tlsdesc_resolve_hold): Likewise.
14064 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
14065 (_dl_tlsdesc_undefweak): Likewise.
14066 (_dl_tlsdesc_dynamic): Likewise.
14067 (_dl_tlsdesc_resolve_rela): Likewise.
14068 (_dl_tlsdesc_resolve_hold): Likewise.
14069
14070 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
14071
14072 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
14073 (_fini): Likewise.
14074 * sysdeps/x86_64/crti.S (_init): Likewise.
14075 (_fini): Likewise.
14076
14077 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
14078
14079 [BZ #23140]
14080 * localedata/locales/os_RU (mon): Rename to...
14081 (alt_mon): This.
14082 (mon): Import from CLDR (genitive case).
14083
14084 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
14085
14086 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
14087 cet-tunables.h> when CET is enabled.
14088
14089 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
14090
14091 [BZ #21598]
14092 * configure.ac: Add --enable-cet.
14093 * configure: Regenerated.
14094 * elf/Makefille (all-built-dso): Add a comment.
14095 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
14096 Include <dl-prop.h>.
14097 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
14098 segment.
14099 * elf/dl-open.c: Include <dl-prop.h>.
14100 (dl_open_worker): Call _dl_open_check.
14101 * elf/rtld.c: Include <dl-prop.h>.
14102 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
14103 _rtld_main_check.
14104 * sysdeps/generic/dl-prop.h: New file.
14105 * sysdeps/i386/dl-cet.c: Likewise.
14106 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
14107 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
14108 * sysdeps/x86/cet-tunables.h: Likewise.
14109 * sysdeps/x86/check-cet.awk: Likewise.
14110 * sysdeps/x86/configure: Likewise.
14111 * sysdeps/x86/configure.ac: Likewise.
14112 * sysdeps/x86/dl-cet.c: Likewise.
14113 * sysdeps/x86/dl-procruntime.c: Likewise.
14114 * sysdeps/x86/dl-prop.h: Likewise.
14115 * sysdeps/x86/libc-start.h: Likewise.
14116 * sysdeps/x86/link_map.h: Likewise.
14117 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
14118 _CET_ENDBR.
14119 (_dl_runtime_profile): Likewise.
14120 (_dl_runtime_resolve_shstk): New.
14121 (_dl_runtime_profile_shstk): Likewise.
14122 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
14123 if CET is enabled.
14124 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
14125 (CFLAGS-.os): Likewise.
14126 (CFLAGS-.op): Likewise.
14127 (CFLAGS-.oS): Likewise.
14128 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
14129 is enabled.
14130 (tests-special): Add $(objpfx)check-cet.out.
14131 (cet-built-dso): New.
14132 (+$(cet-built-dso:=.note)): Likewise.
14133 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
14134 ($(objpfx)check-cet.out): New.
14135 (generated): Add check-cet.out.
14136 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
14137 <cet-tunables.h>.
14138 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
14139 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
14140 (init_cpu_features): Call get_cet_status to check CET status
14141 and update dl_x86_feature_1 with CET status. Call
14142 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
14143 (set_x86_shstk). Disable and lock CET in libc.a.
14144 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
14145 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
14146 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
14147 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
14148 (_CET_ENDBR): Define if not defined.
14149 (ENTRY): Add _CET_ENDBR.
14150 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
14151 x86_shstk.
14152 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
14153 _CET_ENDBR.
14154 (_dl_runtime_profile): Likewise.
14155
14156 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
14157
14158 [BZ #21895]
14159 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
14160 restore r2 on longjmp.
14161 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
14162 test list.
14163 Added rules to build test tst-setjmp-bug21895-static.
14164 Added module setjmp-bug21895 and rules to build a shared object from it.
14165 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
14166 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
14167
14168 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
14169
14170 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
14171 * benchtests/bench-strstr.c: Likewise.
14172 * string/memmem.c (FASTSEARCH): Define.
14173 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
14174 Add support for FASTSEARCH.
14175 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
14176 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
14177 (FASTSEARCH): Define.
14178 * string/test-strcasestr.c: Rename __strnlen to strnlen.
14179 * string/test-strstr.c: Likewise.
14180
14181 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
14182
14183 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
14184 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
14185
14186 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
14187 H.J. Lu <hongjiu.lu@intel.com>
14188
14189 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
14190 (__longjmp): Restore shadow stack pointer if shadow stack is
14191 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
14192 isn't defined for __longjmp_cancel.
14193 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
14194 (_setjmp): Save shadow stack pointer if shadow stack is enabled
14195 and SHADOW_STACK_POINTER_OFFSET is defined.
14196 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
14197 (setjmp): Save shadow stack pointer if shadow stack is enabled
14198 and SHADOW_STACK_POINTER_OFFSET is defined.
14199 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
14200 (__sigsetjmp): Save shadow stack pointer if shadow stack is
14201 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
14202 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
14203 <jmp_buf-ssp.h>.
14204 (____longjmp_chk): Restore shadow stack pointer if shadow stack
14205 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
14206 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
14207 Remove jmp_buf-ssp.sym.
14208 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
14209 <jmp_buf-ssp.h>.
14210 (____longjmp_chk): Restore shadow stack pointer if shadow stack
14211 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
14212 * sysdeps/x86/Makefile (gen-as-const-headers): Add
14213 jmp_buf-ssp.sym.
14214 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
14215 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
14216 (__longjmp): Restore shadow stack pointer if shadow stack is
14217 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
14218 isn't defined for __longjmp_cancel.
14219 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
14220 (__sigsetjmp): Save shadow stack pointer if shadow stack is
14221 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
14222
14223 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
14224
14225 [BZ #22563]
14226 * nptl/pthread_create.c: Include <tls-setup.h>.
14227 (__pthread_create_2_1): Call tls_setup_tcbhead.
14228 * sysdeps/generic/tls-setup.h: New file.
14229 * sysdeps/x86/nptl/tls-setup.h: Likewise.
14230 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
14231 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
14232 Likewise.
14233 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
14234 to feature_1.
14235 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
14236 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
14237 (X86_FEATURE_1_SHSTK): Likewise.
14238 (CET_ENABLED): Likewise.
14239 (IBT_ENABLED): Likewise.
14240 (SHSTK_ENABLED): Likewise.
14241
14242 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
14243
14244 [BZ #23208]
14245 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
14246 (LOCALES): Likewise.
14247 * localedata/dsb_DE.UTF-8.in: New file.
14248 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
14249
14250 2018-07-12 Florian Weimer <fweimer@redhat.com>
14251
14252 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
14253 __mprotect, not mprotect.
14254
14255 2018-07-11 Florian Weimer <fweimer@redhat.com>
14256
14257 * io/Makefile (headers): Add bits/statx.h.
14258
14259 2018-07-10 Mike FABIAN <mfabian@redhat.com>
14260
14261 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
14262 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
14263 and headers.
14264 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
14265 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
14266 for utf8_gen.py
14267
14268 2018-07-10 Florian Weimer <fweimer@redhat.com>
14269
14270 * io/Makefile (routines): Add statx.
14271 (tests-internal): Add tst-statx.
14272 * io/Versions (GLIBC_2.28): Export statx.
14273 * io/bits/statx.h: New file.
14274 * io/sys/stat.h [__USE_GNU]: Include it.
14275 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
14276 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
14277 Define.
14278 * io/statx.c: New file.
14279 * io/statx_generic.: Likewise.
14280 * io/tst-statx.: Likewise.
14281 * include/bits/statx.h: Likewise.
14282 * sysdeps/unix/sysv/linux/kernel-features.h
14283 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
14284 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
14285 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
14286 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
14287 Undefine.
14288 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
14289 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
14290 * sysdeps/unix/sysv/linux/statx.c: New file.
14291 * manual/filesys.texi: Note that statx is undocumented.
14292 * sysdeps/**/libc*.abilist: Update.
14293
14294 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14295
14296 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
14297 a kernel issue which lead to test failure in some cases.
14298
14299 2018-07-10 Florian Weimer <fweimer@redhat.com>
14300
14301 [BZ #23036]
14302 * posix/regexec.c (check_node_accept_bytes): When comparing
14303 weights, do not compare an extra byte after the end of the
14304 weights.
14305
14306 2018-07-10 Florian Weimer <fweimer@redhat.com>
14307
14308 * libio/readline.c: Fix copyright year.
14309 * libio/tst-readline.c Likewise.
14310 * nss/tst-nss-files-hosts-getent.c: Likewise.
14311
14312 2018-07-06 Florian Weimer <fweimer@redhat.com>
14313
14314 [BZ #18991]
14315 * nss/nss_files/files-XXX.c (internal_getent): Use
14316 __libc_readline_unlocked. Seek back to the start of the line if
14317 parsing failes with ERANGE.
14318 (get_contents_ret, get_contents): Remove.
14319 * nss/tst-nss-files-hosts-getent.c: New file.
14320 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
14321 (tst-nss-files-hosts-getent): Link with -ldl.
14322
14323 2018-07-06 Florian Weimer <fweimer@redhat.com>
14324
14325 * include/stdio.h (__libc_readline_unlocked): Declare.
14326 (__ftello64, __fseeko64): Declare aliases.
14327 * libio/readline.c: New file.
14328 * libio/tst-readline.c: Likewise.
14329 (routines): Add readline.
14330 (tests-internal): Add tst-readlime.
14331 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
14332 __libc_readline_unlocked.
14333 * libio/fseeko.c (__fseeko): Rename from fseeko.
14334 (fseeko): Add alias.
14335 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
14336 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
14337 (fseeko64): Add alias.
14338 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
14339 * libio/ftello64.c (__ftello64): Rename from ftello64.
14340 (ftello64): Add alias.
14341
14342 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
14343
14344 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
14345 HWCAP_ATOMICS.
14346
14347 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
14348
14349 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
14350 Use dl_hwcap without masking.
14351 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
14352 Remove HWCAP_CPUID.
14353
14354 2018-07-06 Florian Weimer <fweimer@redhat.com>
14355
14356 * conform/conformtest.pl (checknamespace): Escape literal braces
14357 in regular expressions.
14358
14359 2018-07-06 Amit Pawar <amit.pawar@amd.com>
14360
14361 * sysdeps/x86/cpu-features.c (get_common_indeces):
14362 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
14363 * sysdeps/x86/cpu-features.c (init_cpu_features):
14364 AVX_Fast_Unaligned_Load is disabled for Excavator core.
14365
14366 2018-07-05 Florian Weimer <fweimer@redhat.com>
14367
14368 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
14369 protector.
14370 (CFLAGS-elf-init.oS): Likewise.
14371
14372 2018-07-05 Florian Weimer <fweimer@redhat.com>
14373 Carlos O'Donell <carlos@redhat.com>
14374
14375 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
14376 $(no-stack-protector). stack_chk_fail_local.c can be compiled
14377 with stack protector enabled because there is no risk of infinite
14378 recursion.
14379
14380 2018-07-05 Maciej W. Rozycki <macro@mips.com>
14381
14382 [BZ #19818]
14383 [BZ #23307]
14384 * libc-abis (ABSOLUTE): New ABI.
14385 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
14386 * NEWS: Mention the new ABI.
14387
14388 2018-07-05 Florian Weimer <fweimer@redhat.com>
14389
14390 [BZ # 17662]
14391 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
14392 (RENAME_WHITEOUT): Define.
14393 [__USE_GNU] (renameat2): Declare.
14394 * stdio-common/Makefile (routines): Add renameat2.
14395 (tests): Add tst-renameat2.
14396 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
14397 * stdio-common/renameat2.c: New file.
14398 * stdio-common/tst-renameat2.c: Likewise.
14399 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
14400 * manual/filesys.texi (Temporary Files): Note that renameat2 is
14401 undocumented.
14402 * sysdeps/unix/sysv/linux/kernel-features.h
14403 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
14404 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
14405 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
14406 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
14407 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
14408 * sysdeps/unix/sysv/linux/sh/kernel-features.h
14409 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
14410 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
14411 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
14412 * include/stdio.h (__renameat): Add alias for renameat.
14413 * stdio-common/renameat.c (__renameat): Rename from renameat.
14414 Add hidden definition and alias.
14415 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
14416 * sysdeps/mach/hurd/renameat.c: Likewise.
14417 * sysdeps/**/libc*.abilist: Add renameat2.
14418
14419 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14420
14421 * posix/bug-regex33.c: Fix build after regex sync.
14422
14423 2018-07-04 Carlos O'Donell <carlos@redhat.com>
14424
14425 [BZ #23164]
14426 * localedata/tst-langinfo-setlocale.c: New file.
14427 * localedata/tst-langinfo-setlocale-static.c: New file.
14428 * localedata/tst-langinfo-newlocale.c: New file.
14429 * localedata/tst-langinfo-newlocale-static.c: New file.
14430 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
14431 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
14432 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
14433 (tests-static): Remove tst-langinfo-static. Add
14434 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
14435 (tests-special): Remove $(objpfx)tst-langinfo.out,
14436 $(objpfx)tst-langinfo-static.out. Add
14437 $(objpfx)tst-langinfo-setlocale.out,
14438 $(objpfx)tst-langinfo-newlocale.out,
14439 $(objpfx)tst-langinfo-setlocale-static.out,
14440 $(objpfx)tst-langinfo-newlocale-static.out.
14441 ($(objpfx)tst-langinfo.out): Remove.
14442 ($(objpfx)tst-langinfo-static.out): Remove.
14443 ($(objpfx)tst-langinfo-newlocale.out): New target.
14444 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
14445 (test-xfail-tst-langinfo-newlocale-static): Add.
14446 ($(objpfx)tst-langinfo-setlocale.out): New target.
14447 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
14448 * localedata/tst-langinfo.c: Call test_locale.
14449 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
14450 data.
14451
14452 2018-07-04 Florian Weimer <fweimer@redhat.com>
14453
14454 testrun.sh: Implement --tool=strace, --tool=valgrind
14455 * Makefile (testrun-script): Define variable.
14456 (testrun.sh): Use variable.
14457 * manual/install.texi (Tools for Compilation): make 4.0 or later
14458 is required.
14459 * configure.ac: Check for make 4.0 or later.
14460 * INSTALL: Regenerate.
14461 * configure: Likewise.
14462
14463 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14464
14465 [BZ #23233]
14466 [BZ #21163]
14467 [BZ #18986]
14468 [BZ #13762]
14469 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
14470 * posix/PCRE.tests: Remove invalid test.
14471 * posix/bug-regex28.c: Fix expected values for used syntax.
14472 * posix/bug-regex37.c: New file.
14473 * posix/bug-regex38.c: Likewise.
14474 * posix/regcomp.c: Sync with gnulib.
14475 * posix/regex.c: Likewise.
14476 * posix/regex.h: Likewise.
14477 * posix/regex_internal.c: Likewise.
14478 * posix/regex_internal.h: Likewise.
14479 * posix/regexec.c: Likewise.
14480
14481 2018-06-26 Mike FABIAN <mfabian@redhat.com>
14482
14483 [BZ #23308]
14484 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
14485 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
14486 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
14487 * localedata/unicode-gen/PropList.txt: likewise.
14488 * localedata/unicode-gen/UnicodeData.txt: likewise.
14489 * localedata/charmaps/UTF-8: Regenerate.
14490 * localedata/locales/i18n_ctype: likewise.
14491 * localedata/locales/tr_TR: likewise.
14492 * localedata/locales/translit_circle: likewise.
14493 * localedata/locales/translit_cjk_compat: likewise.
14494 * localedata/locales/translit_combining: likewise.
14495 * localedata/locales/translit_compat: likewise.
14496 * localedata/locales/translit_font: likewise.
14497 * localedata/locales/translit_fraction: likewise.
14498
14499 2018-07-03 Florian Weimer <fweimer@redhat.com>
14500
14501 [BZ #23363]
14502 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
14503 * stdio-common/tst-printf.sh: Adjust expected output.
14504 * LICENSES: Update.
14505
14506 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14507
14508 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
14509 symbol.
14510
14511 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
14512
14513 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
14514 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
14515 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
14516 * stdio-common/tst-printfsz-islongdouble.c: New file.
14517 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
14518 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
14519 [subdir == stdio-common] (routines): Add ieee128-printf_size.
14520 [subdir == stdio-common] (tests-internal): Add
14521 test-printf-size-ieee128, and test-printf-size-ibm128.
14522 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
14523 (CFLAGS-test-printf-size-ibm128.c): New variables.
14524 [subdir == stdio-common] (tests-special): Add
14525 $(objpfx)test-printf-size-ieee128.out and
14526 $(objpfx)test-printf-size-ibm128.out.
14527 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
14528 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
14529 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
14530 __printf_sizeieee128.
14531 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
14532 New file.
14533 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
14534 Likewise.
14535 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
14536 Likewise.
14537
14538 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
14539
14540 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
14541 (exp2f_inline): Likewise.
14542 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
14543 (__math_uflowf): Likewise.
14544 (__math_may_uflowf): Likewise.
14545 (__math_divzerof): Likewise.
14546 (__math_invalidf): Likewise.
14547 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
14548 (__math_oflowf): Likewise.
14549 (__math_uflowf): Likewise.
14550 (__math_may_uflowf): Likewise.
14551 (__math_divzerof): Likewise.
14552 (__math_invalidf): Likewise.
14553
14554 2018-06-29 DJ Delorie <dj@redhat.com>
14555 Carlos O'Donell <carlos@redhat.com>
14556
14557 [BZ #23329]
14558 * include/libc-symbols.h: Comment the freeres framework.
14559 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
14560 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
14561 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
14562 * dlfcn/dlerror.c: Include libc-symbols.h
14563 (__dlerror_main_freeres): New function.
14564 * dlfcn/dlfreeres.c: New file.
14565 * dlfcn/sdlfreeres.c: New file.
14566 * include/dlfcn.h: Declare __dlerror_main_freeres.
14567 * malloc/set-freeres.c: Declare __libdl_freeres, and
14568 __libpthread_freeres.
14569 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
14570 the releavant libraries are loaded.
14571 * malloc/thread-freeres.c: Add comments.
14572 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
14573 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
14574 * nptl/allocatestack.c (__nptl_free_stacks): New function.
14575 (__free_stacks): Rename to...
14576 (free_stacks): ...this. Mark static.
14577 (queue_stack): Call free_stacks.
14578 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
14579 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
14580 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
14581 ptr_freeres element from struct.
14582 (pthread_functions): Remove .ptr_freeres from struct initializer.
14583 [SHARED] (nptl_freeres): Remove.
14584 * nptl/nptlfreeres.c: New file.
14585 * nptl/pthreadP.h
14586 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
14587 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
14588 attribute_hidden.
14589 (__free_stacks): Rename to...
14590 (__nptl_stacks_freeres): ...this.
14591 (__shm_directory_freeres): Declare.
14592 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
14593 (__nptl_unwind_freeres): ...this.
14594 * resolv/res-close.c: Add comment.
14595 * resolv/resolv_conf.c: Include libc-symbols.h.
14596 * string/strerror_l.c: Include libc-symbols.h.
14597 * sunrpc/rpc_thread.c: Include libc-symbols.h.
14598 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
14599 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
14600 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
14601
14602 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
14603
14604 * stdlib/tst-strfmon_l.c: Add tests for long double.
14605
14606 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
14607
14608 [BZ #23208]
14609 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
14610 * localedata/locales/dsb_DE: New file.
14611
14612 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
14613
14614 [BZ #23140]
14615 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
14616 genitive case).
14617 (alt_mon): New entry, import from CLDR (nominative case).
14618
14619 2018-06-29 Sylvain Lesage <severo@rednegra.net>
14620
14621 [BZ #22996]
14622 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
14623
14624 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
14625
14626 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
14627 Use vector registers.
14628
14629 * sysdeps/aarch64/multiarch/memmove_falkor.S
14630 (__memcpy_falkor): Use vector registers.
14631
14632 2018-06-29 Martin Sebor <msebor@redhat.com>
14633
14634 * manual/stdio.texi (Customizing Printf): Mention interaction
14635 with GCC built-ins.
14636
14637 2018-06-29 Maciej W. Rozycki <macro@mips.com>
14638
14639 [BZ #23307]
14640 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
14641 `st_value' is 0 if `st_shndx' is SHN_ABS.
14642 * elf/tst-absolute-zero.c: New file.
14643 * elf/tst-absolute-zero-lib.c: New file.
14644 * elf/tst-absolute-zero-lib.lds: New file.
14645 * elf/Makefile (tests): Add `tst-absolute-zero'.
14646 (modules-names): Add `tst-absolute-zero-lib'.
14647 (LDLIBS-tst-absolute-zero-lib.so): New variable.
14648 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
14649 ($(objpfx)tst-absolute-zero: New dependency.
14650
14651 2018-06-29 Zack Weinberg <zackw@panix.com>
14652
14653 * configure.ac: New command-line option --disable-crypt.
14654 Force --disable-nss-crypt when --disable-crypt is given, with a
14655 warning if it was explicitly enabled.
14656 * configure: Regenerate.
14657 * config.make.in: New boolean substitution variable $(build-crypt).
14658 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
14659 when $(build-crypt).
14660 * manual/install.texi: Document --disable-crypt.
14661 * INSTALL: Regenerate.
14662
14663 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
14664 which is never set.
14665 * conform/Makefile: Only include libcrypt.a in
14666 linknamespace-libs-xsi and linknamespace-libs-XPG4
14667 when $(build-crypt).
14668 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
14669 USE_CRYPT to 1 when $(build-crypt).
14670 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
14671 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
14672 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
14673
14674 2018-06-29 Zack Weinberg <zackw@panix.com>
14675
14676 * crypt/crypt.h, posix/unistd.h: Update comments and
14677 prototypes for crypt and crypt_r.
14678
14679 * manual/crypt.texi (Cryptographic Functions): New initial
14680 exposition.
14681 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
14682 (Unpredictable Bytes): Improve initial exposition. Clarify error
14683 behavior of getentropy and getrandom.
14684 * manual/examples/genpass.c: Generate a salt using getentropy
14685 instead of the current time. Use hash $5$ (SHA-2-256).
14686 * manual/examples/testpass.c: Demonstrate validation against
14687 hashes generated with three different one-way functions.
14688
14689 * manual/intro.texi: crypt.texi does not need an overview
14690 anymore.
14691
14692 * manual/nss.texi, manual/memory.texi, manual/socket.texi
14693 * manual/terminal.texi: Consistently refer to "passphrases"
14694 * instead of "passwords", and to the "user database" instead
14695 * of the "password database".
14696 * manual/users.texi: Similarly. Add notes about how actual
14697 passphrase hashes are now stored in the shadow database.
14698 Remove 20-year-old junk todo note.
14699
14700 2018-06-29 Zack Weinberg <zackw@panix.com>
14701
14702 * manual/crypt.texi: Use a normal top-level @node declaration.
14703 Move most of the introductory text to the 'crypt' section.
14704 Move the example programs below the @deftypefun for 'crypt_r'.
14705 Move the 'getpass' section...
14706 * manual/terminal.texi: ...here.
14707
14708 2018-06-29 Zack Weinberg <zackw@panix.com>
14709 Florian Weimer <fweimer@redhat.com>
14710
14711 * posix/unistd.h: Do not declare encrypt.
14712 (_XOPEN_CRYPT): Remove macro definition.
14713 (crypt): Declare only for _USE_MISC.
14714 * stdlib/stdlib.h: Do not declare setkey.
14715 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
14716 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
14717
14718 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
14719 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
14720 into compat symbols. Don't define initial_perm if it's not
14721 going to be used.
14722 * crypt/cert.c: Link explicitly with the expected versions for
14723 setkey and encrypt. If they are not available at all, mark
14724 the test as unsupported.
14725
14726 * sunrpc/des_crypt.c: Unconditionally block linkage with
14727 cbc_crypt and ecb_crypt for new binaries.
14728 * sunrpc/des_soft.c: Unconditionally block linkage with
14729 des_setparity for new binaries.
14730
14731 * manual/crypt.texi: Remove the entire "DES Encryption"
14732 section. Also remove the paragraph talking about FIPS 140-2
14733 from the introduction.
14734 * manual/string.texi (strfry, memfrob): Revise. Recommend use
14735 of libgcrypt for "real" encryption, not DES.
14736 * manual/conf.texi (Constants for Sysconf): Mention that
14737 _XOPEN_CRYPT is no longer impelemented.
14738
14739 * conform/data/unistd.h-data: Remove crypt function declaration.
14740
14741 2018-06-29 Florian Weimer <fweimer@redhat.com>
14742
14743 [BZ #23351]
14744 * malloc/hooks.c: Update comments on restoring of dumped heaps.
14745 (disallow_malloc_check): Remove variable.
14746 (__malloc_check_init): Adjust.
14747 (malloc_set_state): Update comment.
14748 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
14749 declarations.
14750
14751 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
14752
14753 [BZ #23140]
14754 * localedata/locales/ast_ES (mon): Rename to...
14755 (alt_mon): This.
14756 (mon): Import from CLDR (genitive case).
14757
14758 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
14759 Jakub Sitnicki <jkbs@redhat.com>
14760
14761 [BZ #21812]
14762 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
14763 on NLM_F_DUMP_INTR.
14764
14765 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
14766
14767 * manual/llio.texi: Remove spurious space.
14768
14769 2018-06-28 Florian Weimer <fweimer@redhat.com>
14770
14771 [BZ #23349]
14772 * time/bits/types/struct_timespec.h: Change header inclusion guard to
14773 _STRUCT_TIMESPEC.
14774
14775 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
14776
14777 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
14778 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
14779 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
14780 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
14781 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
14782 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
14783 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
14784
14785 2018-06-27 Maciej W. Rozycki <macro@mips.com>
14786
14787 [BZ #23266]
14788 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
14789 Copy and null-terminate entries that are not terminated, in
14790 addition to empty ones.
14791
14792 2018-06-27 Florian Weimer <fweimer@redhat.com>
14793
14794 [BZ #18023]
14795 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
14796 (extend_alloca_account): Remove.
14797 * manual/stdio.texi (Variable Arguments Output): Update comment.
14798
14799 2018-06-27 Joseph Myers <joseph@codesourcery.com>
14800
14801 * nptl/sockperf.c: Remove file.
14802
14803 2018-06-27 Florian Weimer <fweimer@redhat.com>
14804
14805 [BZ #18023]
14806 * elf/dl-deps.c (_dl_map_object_deps): Use struct
14807 scratch_buffer instead of extend_alloca.
14808
14809 2018-06-27 Florian Weimer <fweimer@redhat.com>
14810
14811 [BZ #18023]
14812 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
14813 scratch_buffer instead of extend_alloca. Update comments.
14814
14815 2018-06-27 Florian Weimer <fweimer@redhat.com>
14816
14817 [BZ #18023]
14818 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
14819 instead of extend_alloca.
14820
14821 2018-06-26 Joseph Myers <joseph@codesourcery.com>
14822
14823 [BZ #13888]
14824 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
14825 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
14826 /tmp.
14827 * scripts/test-installation.pl: Put temporary files in build
14828 directory, not /tmp.
14829 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
14830 (CFLAGS-bug4.c): Likewise.
14831 (CFLAGS-bug5.c): Likewise.
14832 (CFLAGS-test-fseek.c): Likewise.
14833 (CFLAGS-test-popen.c): Likewise.
14834 (CFLAGS-test_rdwr.c): Likewise.
14835 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
14836 /tmp.
14837 * stdio-common/bug4.c (main): Likewise.
14838 * stdio-common/bug5.c (main): Likewise.
14839 * stdio-common/test-fseek.c (TESTFILE): Likewise.
14840 * stdio-common/test-popen.c (do_test): Likewise.
14841 * stdio-common/test_rdwr.c (main): Likewise.
14842
14843 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
14844
14845 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
14846 (sem_open): Set sem.newsem.pad to zero for valgrind.
14847
14848 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14849
14850 [BZ #20251]
14851 * NEWS: Mention fcntl64 addition.
14852 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
14853 * login/utmp_file.c: Likewise.
14854 * sysdeps/posix/fdopendir.c: Likewise.
14855 * sysdeps/posix/opendir.c: Likewise.
14856 * sysdeps/unix/pt-fcntl.c: Likewise.
14857 * include/fcntl.h (__libc_fcntl64, __fcntl64,
14858 __fcntl64_nocancel_adjusted): New prototype.
14859 (__fcntl_nocancel_adjusted): Remove prototype.
14860 * io/Makefile (routines): Add fcntl64.
14861 (CFLAGS-fcntl64.c): New rule.
14862 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
14863 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
14864 * io/fcntl.h (fcntl64): Add prototype and redirect if
14865 __USE_FILE_OFFSET64 is defined.
14866 * io/fcntl64.c: New file.
14867 * manual/llio.text: Add a note for which commands fcntl acts a
14868 cancellation point.
14869 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
14870 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
14871 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
14872 New symbols.
14873 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
14874 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
14875 non-LFS case.
14876 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
14877 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
14878 to __fcntl64_nocancel.
14879 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
14880 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
14881 to __fcntl64_nocancel.
14882 * sysdeps/generic/not-cancel.h: Likewise.
14883 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
14884 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
14885 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
14886 (fcntl64): New symbol.
14887 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
14888 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
14889 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
14890 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
14891 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
14892 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
14893 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
14894 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
14895 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
14896 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
14897 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
14898 fcntl64): Likewise.
14899 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
14900 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
14901 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
14902 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
14903 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
14904 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
14905 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
14906 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
14907 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
14908 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
14909 Likewise.
14910 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
14911 Likewise.
14912 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
14913 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
14914 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
14915
14916 2018-06-26 Florian Weimer <fweimer@redhat.com>
14917
14918 Run thread shutdown functions in an explicit order.
14919 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
14920 definition.
14921 (__libc_thread_freeres): Call thread shutdown functions
14922 explicitly.
14923 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
14924 * include/string.h (__strerror_thread_freeres): Declare.
14925 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
14926 arena_thread_freeres. No longer static. Remove thread shutdown
14927 hook registration.
14928 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
14929 Declare.
14930 * resolv/res-close.c (__res_thread_freeres): Renamed from
14931 res_thread_freeres. No longer static. Remove thread shutdown
14932 hook registration.
14933 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
14934 * resolv/resolv_conf.c (freeres): Remove incorrect section
14935 attribute and use libc_freeres_fn.
14936 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
14937 strerror_thread_freeres. No longer static. Remove thread
14938 shutdown hook registration.
14939 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
14940 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
14941 shutdown hook registration.
14942 * Makerules (shlib.lds): Do not provide section boundary symbols
14943 for __libc_thread_subfreeres.
14944 * manual/memory.texi (Basic Allocation): Update comment.
14945
14946 2018-06-26 Florian Weimer <fweimer@redhat.com>
14947
14948 Remove always-defined _RPC_THREAD_SAFE_ macro.
14949 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
14950 Do not define _RPC_THREAD_SAFE_.
14951 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
14952 conditional.
14953 * sunrpc/clnt_perr.c: Likewise.
14954 * sunrpc/clnt_raw.c: Likewise.
14955 * sunrpc/clnt_simp.c: Likewise.
14956 * sunrpc/key_call.c: Likewise.
14957 * sunrpc/rpc_common.c: Likewise.
14958 * sunrpc/rpc_main.c: Likewise.
14959 * sunrpc/rpc_thread.c: Likewise.
14960 * sunrpc/svc.c: Likewise.
14961 * sunrpc/svc_raw.c: Likewise.
14962 * sunrpc/svc_simple.c: Likewise.
14963 * sumrpc/svcauth_des.c: Likewise.
14964
14965 2018-06-26 Florian Weimer <fweimer@redhat.com>
14966
14967 * libio/Makefile (tests-internal): Add tst-vtables,
14968 tst-vtables-interposed.
14969 * libio/tst-vtables.c: New file.
14970 * libio/tst-vtables-common.c: Likewise.
14971 * libio/tst-vtables-interposed.c: Likewise.
14972
14973 2018-06-26 Florian Weimer <fweimer@redhat.com>
14974
14975 * support/support_test_main.c (support_test_main): Only call
14976 setvbuf if not disables.
14977 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
14978 * support/test-driver.h (struct test_config): Add no_setvbuf member.
14979
14980 2018-06-26 Florian Weimer <fweimer@redhat.com>
14981
14982 [BZ #23313]
14983 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
14984
14985 2018-06-25 Florian Weimer <fweimer@redhat.com>
14986
14987 [BZ #18023]
14988 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
14989 Use struct scratch_buffer instead of extend_alloca.
14990
14991 2018-06-25 Florian Weimer <fweimer@redhat.com>
14992
14993 [BZ #18023]
14994 * nss/getent.c (initgroups_keys): Use dynarray instead of
14995 extend_alloca.
14996
14997 2018-06-25 Florian Weimer <fweimer@redhat.com>
14998
14999 [BZ #18023]
15000 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
15001 Use struct scratch_buffer instead of extend_alloca.
15002
15003 2018-06-25 Florian Weimer <fweimer@redhat.com>
15004
15005 [BZ #18023]
15006 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
15007 back to malloc directly, without stack allocations.
15008
15009 2018-06-25 Florian Weimer <fweimer@redhat.com>
15010
15011 [BZ #18023]
15012 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
15013 of extend_alloca.
15014
15015 2018-06-25 Florian Weimer <fweimer@redhat.com>
15016
15017 [BZ #18023]
15018 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
15019 of extend_alloca.
15020 * nscd/hstcache.c (addhstbyX): Likewise.
15021 * nscd/pwdcache.c (addpwbyX): Likewise.
15022 * nscd/servicescache.c (addservbyX): Likewise.
15023
15024 2018-06-25 Florian Weimer <fweimer@redhat.com>
15025
15026 [BZ #18023]
15027 * nscd/connections.c (read_cmdline): New function.
15028 (restart): Use it. Update comment.
15029
15030 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
15031
15032 [BZ #23140]
15033 * localedata/locales/csb_PL (mon): Rename to...
15034 (alt_mon): This.
15035 (abmon): Rename to...
15036 (ab_alt_mon): This.
15037 (mon): Add with proper genitive forms, copy from Wikipedia.
15038 (abmon): Likewise.
15039
15040 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
15041
15042 [BZ #19485]
15043 * localedata/locales/csb_PL (mon): Fix typos:
15044 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
15045 (yesstr): Add, value is "jo".
15046 (nostr): Add, value is "nié".
15047
15048 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15049
15050 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
15051 all log1p and significand functions on m680x0.
15052 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
15053 of s_significand.c..
15054 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
15055 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
15056 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
15057 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
15058 s_log1p.c and include it..
15059
15060 2018-06-21 Vincent Chen <vincentc@andestech.com>
15061
15062 * elf/elf.h (R_NDS32_NONE): New define.
15063 (R_NDS32_32_RELA): Likewise.
15064 (R_NDS32_COPY): Likewise.
15065 (R_NDS32_GLOB_DAT): Likewise.
15066 (R_NDS32_JUMP_SLOT): Likewise.
15067 (R_NDS32_RELATIVE): Likewise.
15068 (R_NDS32_TLS_TPOFF): Likewise.
15069 (R_NDS32_TLS_DESC): Likewise.
15070
15071 2018-06-21 Mark Wielaard <mark@klomp.org>
15072
15073 * elf/elf.h (R_BPF_MAP_FD): Removed.
15074 (R_BPF_64_64, R_BPF_64_32): New.
15075
15076 2018-06-21 Florian Weimer <fweimer@redhat.com>
15077
15078 [BZ #23253]
15079 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
15080 Renamed from libc_feholdsetround_ctx.
15081 (default_libc_feresetround_ctx): Renamed from
15082 libc_feresetround_ctx.
15083 (default_libc_feholdsetround_noex_ctx): Renamed from
15084 libc_feholdsetround_noex_ctx.
15085 (default_libc_feresetround_noex_ctx): Renamed from
15086 libc_feresetround_noex_ctx.
15087 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
15088 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
15089 forwardning to the old implementations under the new names.
15090 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
15091 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
15092 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
15093 (libc_feresetround_ctx): Forward to default implements for i386
15094 and MATH_SET_BOTH_ROUNDING_MODES.
15095 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
15096 Add -DMATH_SET_BOTH_ROUNDING_MODES.
15097
15098 2018-06-20 Joseph Myers <joseph@codesourcery.com>
15099
15100 * string/tst-cmp.c: Include <libc-diag.h>.
15101 (strncmp_max): Disable -Wstringop-overflow= around call to
15102 strncmp.
15103 (strncasecmp_max): Disable -Wstringop-overflow= around call to
15104 strncasecmp.
15105
15106 * string/bug-strpbrk1.c: Include <libc-diag.h>.
15107 (main): Disable -Wunused-value around call to strpbrk.
15108 * string/bug-strspn1.c: Include <libc-diag.h>.
15109 (main): Disable -Wunused-value around call to strspn.
15110
15111 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15112 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
15113
15114 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
15115 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
15116
15117 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15118
15119 * math/Makefile (libm-calls): Move s_significandF to...
15120 (gen-libm-calls): ... here.
15121 * math/s_significand_template.c: New file.
15122 * math/s_significand.c: Removed.
15123 * math/s_significandf.c: Removed.
15124 * math/s_significandl.c: Removed.
15125 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
15126 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
15127
15128 * math/e_exp2_template.c (declare_mgen_finite_alias,
15129 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
15130 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
15131 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
15132
15133 2018-06-20 Florian Weimer <fweimer@redhat.com>
15134
15135 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
15136
15137 2018-06-19 Joseph Myers <joseph@codesourcery.com>
15138
15139 [BZ #23280]
15140 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
15141 floating-point number to strtod functions rather than possibly
15142 negating result of those functions.
15143 * stdio-common/tst-scanf-round.c: New file.
15144 * stdio-common/Makefile (tests): Add tst-scanf-round.
15145 ($(objpfx)tst-scanf-round): Depend on $(libm).
15146
15147 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
15148
15149 * sysdeps/mach/hurd/localplt.data: Move to...
15150 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
15151 R_386_GLOB_DAT like on Linux i386.
15152
15153 2018-06-18 Joseph Myers <joseph@codesourcery.com>
15154
15155 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
15156 (SHM_STAT_ANY): New macro.
15157 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
15158 (SHM_STAT_ANY): Likewise.
15159 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
15160 (SHM_STAT_ANY): Likewise.
15161 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
15162 (SHM_STAT_ANY): Likewise.
15163 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
15164 (SHM_STAT_ANY): Likewise.
15165 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
15166 (SHM_STAT_ANY): Likewise.
15167 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
15168 (SHM_STAT_ANY): Likewise.
15169 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
15170 (SHM_STAT_ANY): Likewise.
15171 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
15172 (SHM_STAT_ANY): Likewise.
15173 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
15174 (SHM_STAT_ANY): Likewise.
15175 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
15176 (SHM_STAT_ANY): Likewise.
15177 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
15178 (SHM_STAT_ANY): Likewise.
15179
15180 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
15181 (SEM_STAT_ANY): New macro.
15182 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
15183 (SEM_STAT_ANY): Likewise.
15184 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
15185 (SEM_STAT_ANY): Likewise.
15186 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
15187 (SEM_STAT_ANY): Likewise.
15188 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
15189 (SEM_STAT_ANY): Likewise.
15190 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
15191 (SEM_STAT_ANY): Likewise.
15192 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
15193 (SEM_STAT_ANY): Likewise.
15194 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
15195 (SEM_STAT_ANY): Likewise.
15196 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
15197 (SEM_STAT_ANY): Likewise.
15198 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
15199 (SEM_STAT_ANY): Likewise.
15200
15201 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
15202 (MSG_STAT_ANY): New macro.
15203 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
15204 (MSG_STAT_ANY): Likewise.
15205 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
15206 (MSG_STAT_ANY): Likewise.
15207 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
15208 (MSG_STAT_ANY): Likewise.
15209 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
15210 (MSG_STAT_ANY): Likewise.
15211 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
15212 (MSG_STAT_ANY): Likewise.
15213 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
15214 (MSG_STAT_ANY): Likewise.
15215 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
15216 (MSG_STAT_ANY): Likewise.
15217 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
15218 (MSG_STAT_ANY): Likewise.
15219 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
15220 (MSG_STAT_ANY): Likewise.
15221
15222 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
15223 (MAP_TYPE): Change value to 0x2b.
15224
15225 2018-06-18 Florian Weimer <fweimer@redhat.com>
15226
15227 [BZ #15722]
15228 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
15229 socket with SOCK_CLOEXEC.
15230
15231 2018-06-18 Joseph Myers <joseph@codesourcery.com>
15232
15233 [BZ #23303]
15234 * sysdeps/powerpc/powerpc64/le/Makefile
15235 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
15236 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
15237 (gnulib-tests): Also add $(f128-loader-link) for
15238 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
15239
15240 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
15241
15242 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
15243 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
15244 of sendfile.
15245 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
15246 (sendfile64): New strong alias.
15247 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
15248 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
15249 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
15250 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
15251 attribute.
15252 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
15253 ___pthread_get_cleanup_stack.
15254 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
15255 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
15256 * mach/shortcut.awk: Make syscall stubs include
15257 <mach-shortcuts-hidden.h> and add hidden definition.
15258 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
15259 (__mach_msg): Add hidden prototype.
15260 * mach/msg.c: Include <mach.h>.
15261 (__mach_msg): Add hidden definition.
15262 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
15263 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
15264 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
15265 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
15266 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
15267 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
15268 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
15269 prototype and definition.
15270 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
15271 hidden target for _hurd_self_sigstate.
15272
15273 2018-06-15 Joseph Myers <joseph@codesourcery.com>
15274
15275 [BZ #23007]
15276 * stdlib/tst-strtod-nan-sign-main.c: New file.
15277 * stdlib/tst-strtod-nan-sign.c: Likewise.
15278 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
15279 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
15280 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
15281 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
15282 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
15283
15284 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
15285
15286 [BZ #23007]
15287 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
15288 appropriate sign.
15289
15290 2018-06-14 Florian Weimer <fweimer@redhat.com>
15291
15292 [BZ #23290]
15293 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
15294 that the result stays within the ISO-8859-1 range.
15295 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
15296 characters are defined in IBM273.
15297
15298 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
15299
15300 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
15301 __mach_task_self): Remove attribute_hidden.
15302
15303 2018-06-14 Joseph Myers <joseph@codesourcery.com>
15304
15305 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
15306 ignore -Wrestrict for one test.
15307
15308 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
15309 Szabolcs Nagy <szabolcs.nagy@arm.com>
15310
15311 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
15312
15313 2018-06-14 Florian Weimer <fweimer@redhat.com>
15314
15315 * scripts/update-abilist.sh: Accept empty list of files to patch.
15316
15317 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
15318
15319 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
15320 test-xfail-check-abi-libmachuser): Add.
15321 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
15322 __libc_read and __libc_write to __read and __write.
15323 * sysdeps/hurd/include/hurd/port.h: New file.
15324 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
15325 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
15326 __thread_switch, __evc_wait): Move declarations to...
15327 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
15328 attribute_hidden.
15329 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
15330 use PLT to call _hurd_self_sigstate.
15331
15332 2018-06-13 Joseph Myers <joseph@codesourcery.com>
15333
15334 [BZ #23279]
15335 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
15336 MAX_EXP as overflowing.
15337 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
15338 overflow flag.
15339 (round_str): Output also whether result overflows in each rounding
15340 mode.
15341 * stdlib/tst-strtod-round-data: Add more tests.
15342 * stdlib/tst-strtod-round-data.h: Regenerated.
15343 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
15344 (TEST): Handle extra arguments for overflow flags.
15345 (struct test_overflow): New type.
15346 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
15347 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
15348 (test_in_one_mode): Take argument with overflow information.
15349 (do_test): Update calls to test_in_one_mode.
15350
15351 2018-06-12 Carlos O'Donell <carlos@redhat.com>
15352
15353 * elf/dl-load (_dl_dst_substitute): Correct comment.
15354 (_dl_dst_count): Likewise.
15355
15356 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
15357 lll_futex_timed_wait.
15358
15359 2018-06-12 Joseph Myers <joseph@codesourcery.com>
15360
15361 [BZ #23277]
15362 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
15363 attribute.
15364 * math/test-nan-const.c: New file.
15365 * math/Makefile (tests): Add test-nan-const.
15366 (CFLAGS-test-nan-const.c): New variable.
15367
15368 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
15369
15370 * benchtests/scripts/compare_strings.py (process_results): Add
15371 funcs argument. Compare only functions which are selected.
15372 (main): Check if base function is among selected functions.
15373 Pass selected functions to process_results.
15374 (__main__): Add -f/--functions argument.
15375
15376 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
15377 Hongbo Zhang <hongbo.zhang@linaro.org>
15378
15379 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
15380 __memcpy_falkor for phecda core.
15381 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
15382 __memmove_falkor for phecda core.
15383 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
15384 __memset_falkor for phecda core.
15385 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
15386 for phecda core.
15387 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
15388 macro to identify phecda core.
15389
15390 2018-06-12 Carlos O'Donell <carlos@redhat.com>
15391 Andreas Schwab <schwab@suse.de>
15392 Dmitry V. Levin <ldv@altlinux.org>
15393 Florian Weimer <fweimer@redhat.com>
15394
15395 [BZ #23102]
15396 [BZ #21942]
15397 [BZ #18018]
15398 [BZ #23259]
15399 CVE-2011-0536
15400 * elf/dl-dst.h: Remove DL_DST_COUNT.
15401 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
15402 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
15403 (is_dst): Comment. Support ELF gABI.
15404 (_dl_dst_count): Comment. Simplify and count DSTs.
15405 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
15406 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
15407 locals.
15408
15409 2018-06-12 Zack Weinberg <zackw@panix.com>
15410
15411 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
15412 * sysdeps/unix/sysv/linux/dl-sysdep.c
15413 Include not-cancel.h. Use __close_nocancel instead of __close,
15414 __open64_nocancel instead of __open, __read_nocancel instead of
15415 __libc_read, and __write_nocancel instead of __libc_write.
15416
15417 * csu/check_fds.c (check_one_fd)
15418 * sysdeps/posix/fdopendir.c (__fdopendir)
15419 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
15420 instead of __fcntl and/or __libc_fcntl.
15421
15422 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
15423 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
15424 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
15425 Use __open64_nocancel instead of __open_nocancel.
15426
15427 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
15428 hidden_proto declarations to the end and issue them if either
15429 IS_IN(libc) or IS_IN(rtld).
15430 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
15431 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
15432 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
15433 read_nocancel, waitpid_nocancel, write_nocancel.
15434
15435 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
15436 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
15437 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
15438
15439 * nptl/pt-fcntl.c: New file.
15440 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
15441 (libpthread-routines): Add pt-fcntl.
15442 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
15443 (__libc_fcntl): Remove attribute_hidden.
15444 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
15445 __fcntl_nocancel_adjusted, not fcntl_common.
15446 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
15447 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
15448 to fcntl_nocancel.c.
15449 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
15450 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
15451 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
15452 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
15453
15454 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
15455 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
15456 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
15457 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
15458 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
15459 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
15460 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
15461 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
15462 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
15463 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
15464 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
15465 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
15466 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
15467 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
15468 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
15469 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
15470 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
15471 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
15472 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
15473 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
15474
15475 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
15476 libpthread-routines.
15477 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
15478 defines nothing.
15479
15480 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
15481 __libc_read, and __write instead of __libc_write. Define
15482 __open64 in addition to __open.
15483
15484 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
15485
15486 [BZ #23250]
15487 [BZ #10686]
15488 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
15489 to _private_tm[3] and add __glibc_reserved2.
15490 Add _Static_assert of offset of __private_ss == 0x30.
15491 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
15492 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
15493
15494 2018-06-12 Florian Weimer <fweimer@redhat.com>
15495
15496 x86: Make strncmp usable from rtld.
15497 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
15498 __strncmp_ia32 if in libc (and not in rtld).
15499 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
15500 strncmp if not in libc (and not to __strncmp_sse2).
15501
15502 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
15503
15504 [BZ #23140]
15505 * localedata/locales/gd_GB (mon): Rename to...
15506 (alt_mon): This.
15507 (mon): Import from CLDR (genitive case).
15508 * localedata/locales/hsb_DE (mon): Rename to...
15509 (alt_mon): This.
15510 (mon): Import from CLDR (genitive case).
15511 * localedata/locales/wa_BE (mon): Rename to...
15512 (alt_mon): This.
15513 (mon): Add, fill with the proper genitive forms, but CLDR data
15514 is incomplete; completed according to the comments in this file.
15515 (d_t_fmt): Do not use "di" before the month name, no longer needed.
15516
15517 * localedata/locales/wa_BE (country_name): Reword
15518 "Beljike" -> "Beldjike".
15519
15520 2018-06-11 Joseph Myers <joseph@codesourcery.com>
15521
15522 [BZ #23272]
15523 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
15524 cases of non-finite arguments.
15525 * math/libm-test-fma.inc (fma_test_data): Add more tests.
15526
15527 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
15528
15529 [BZ #23174]
15530 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
15531
15532 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15533
15534 [BZ #23264]
15535 * include/unistd.h (__execvpex): New prototype.
15536 * posix/Makefile (tests): Add tst-spawn4.
15537 (tests-internal): Add tst-spawn4-compat.
15538 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
15539 * posix/tst-spawn4-compat.c: New file.
15540 * posix/tst-spawn4.c: Likewise.
15541 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
15542 binaries as shell scripts.
15543 * sysdeps/posix/spawni.c (__spawni): Likewise.
15544
15545 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
15546
15547 [BZ #23145]
15548 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
15549 ($(all-built-dso:=.dynsym): New target.
15550 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
15551 ($(objpfx)check-initfini.out): New target.
15552 (generated): Add check-initfini.out.
15553 * scripts/check-initfini.awk: New file.
15554 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
15555 (_fini): Likewise.
15556 * sysdeps/alpha/crti.S (_init): Mark as hidden.
15557 (_fini): Likewise.
15558 * sysdeps/arm/crti.S (_init): Mark as hidden.
15559 (_fini): Likewise.
15560 * sysdeps/hppa/crti.S (_init): Mark as hidden.
15561 (_fini): Likewise.
15562 * sysdeps/i386/crti.S (_init): Mark as hidden.
15563 (_fini): Likewise.
15564 * sysdeps/ia64/crti.S (_init): Mark as hidden.
15565 (_fini): Likewise.
15566 * sysdeps/m68k/crti.S (_init): Mark as hidden.
15567 (_fini): Likewise.
15568 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
15569 (_fini): Likewise.
15570 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
15571 (_fini): Likewise.
15572 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
15573 (_fini): Likewise.
15574 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
15575 (_fini): Likewise.
15576 * sysdeps/nios2/crti.S (_init): Mark as hidden.
15577 (_fini): Likewise.
15578 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
15579 (_fini): Likewise.
15580 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
15581 (_fini): Likewise.
15582 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
15583 (_fini): Likewise.
15584 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
15585 (_fini): Likewise.
15586 * sysdeps/sh/crti.S (_init): Mark as hidden.
15587 (_fini): Likewise.
15588 * sysdeps/sparc/crti.S (_init): Mark as hidden.
15589 (_fini): Likewise.
15590 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
15591 (_fini): Likewise.
15592
15593 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15594
15595 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
15596 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
15597 and TF redirection to KFtype and KF only when the default
15598 long double type is not the IEEE 128-bit floating point type.
15599
15600 2018-06-05 Joseph Myers <joseph@codesourcery.com>
15601
15602 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
15603 macro.
15604 (HWCAP_USCAT): Likewise.
15605 (HWCAP_ILRCPC): Likewise.
15606 (HWCAP_FLAGM): Likewise.
15607 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
15608 Increase to 28.
15609 (_dl_aarch64_cap_flags): Add new flag names.
15610
15611 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
15612 (MAP_FIXED_NOREPLACE): New macro.
15613 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
15614 (MAP_FIXED_NOREPLACE): Likewise.
15615 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
15616 (MAP_FIXED_NOREPLACE): Likewise.
15617 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
15618 (MAP_FIXED_NOREPLACE): Likewise.
15619 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
15620 (MAP_FIXED_NOREPLACE): Likewise.
15621 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
15622 (MAP_FIXED_NOREPLACE): Likewise.
15623 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
15624 (MAP_FIXED_NOREPLACE): Likewise.
15625 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
15626 (MAP_FIXED_NOREPLACE): Likewise.
15627 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
15628 (MAP_FIXED_NOREPLACE): Likewise.
15629 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
15630 (MAP_FIXED_NOREPLACE): Likewise.
15631 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
15632 (MAP_FIXED_NOREPLACE): Likewise.
15633 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
15634 (MAP_FIXED_NOREPLACE): Likewise.
15635 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
15636 (MAP_FIXED_NOREPLACE): Likewise.
15637 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
15638 (MAP_FIXED_NOREPLACE): Likewise.
15639 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
15640 (MAP_FIXED_NOREPLACE): Likewise.
15641
15642 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
15643 version to 4.17.
15644
15645 2018-06-04 Joseph Myers <joseph@codesourcery.com>
15646
15647 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
15648 version to 4.17
15649
15650 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
15651
15652 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
15653 int.
15654 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
15655
15656 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
15657
15658 * benchtests/scripts/compare_string.py: (process_results) Catch
15659 exception in non-existent base_func and catch exception in
15660 non-existent attribute.
15661 (parse_file) Catch exception if input file does not exist.
15662
15663 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
15664
15665 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
15666 options to avoid diff calculation and omit header, respectively.
15667 (main): process --no-diff and --no-header
15668
15669 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
15670 H.J. Lu <hongjiu.lu@intel.com>
15671
15672 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15673 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
15674 wcsncmp-sse2.
15675 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
15676 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
15677 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
15678 and __wcsncmp_sse2.
15679 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
15680 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
15681 AVX unaligned load is fast and vzeroupper is preferred.
15682 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
15683 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
15684 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
15685 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
15686 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
15687 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
15688 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
15689 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
15690 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
15691 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
15692 is undefined.
15693
15694 2018-06-01 Florian Weimer <fweimer@redhat.com>
15695
15696 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
15697 configuring with --disable-multi-arch, building with
15698 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
15699 Haswell-era CPU.
15700
15701 2018-06-01 Florian Weimer <fweimer@redhat.com>
15702
15703 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
15704 results from building with “-march=x86-64 -mtune=generic
15705 -mfpmath=sse” and running on a Haswell-era CPU.
15706
15707 2018-06-01 Joseph Myers <joseph@codesourcery.com>
15708
15709 [BZ #18473]
15710 * soft-fp/sqrttf2.c: Remove file.
15711 * soft-fp/sqrtdf2.c: Move to ....
15712 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
15713 <shlib-compat.h>.
15714 (__sqrtdf2): Make conditional on
15715 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
15716 symbol.
15717 * soft-fp/sqrtsf2.c: Move to ....
15718 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
15719 <shlib-compat.h>.
15720 (__sqrtsf2): Make conditional on
15721 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
15722 symbol.
15723 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
15724 (gcc-double-routines): Remove sqrtdf2.
15725 (gcc-quad-routines): Remove sqrttf2.
15726 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
15727 Do not filter out sqrtsf2 and sqrtdf2.
15728 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
15729 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
15730
15731 2018-06-01 Florian Weimer <fweimer@redhat.com>
15732
15733 * sysdeps/generic/libcidn.abilist: Remove file.
15734
15735 2018-06-01 Florian Weimer <fweimer@redhat.com>
15736
15737 [BZ #23236]
15738 * libio/strfile.h (struct _IO_str_fields): Rename members to
15739 discourage their use and add comment.
15740 (_IO_STR_DYNAMIC): Remove unused macro.
15741 * libio/strops.c (_IO_str_init_static_internal): Do not use
15742 callback pointers. Call malloc and free.
15743 (_IO_str_overflow): Do not use callback pointers. Call malloc
15744 and free.
15745 (enlarge_userbuf): Likewise.
15746 (_IO_str_finish): Call free.
15747 * libio/wstrops.c (_IO_wstr_init_static): Initialize
15748 _allocate_buffer_unused.
15749 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
15750 and free.
15751 (enlarge_userbuf): Likewise.
15752 (_IO_wstr_finish): Call free.
15753 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
15754 _allocate_buffer_unused, _free_buffer_unused.
15755 * libio/memstream.c (__open_memstream): Likewise.
15756 * libio/vasprintf.c (_IO_vasprintf): Likewise.
15757 * libio/wmemstream.c (open_wmemstream): Likewise.
15758
15759 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
15760
15761 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
15762 AMD Ryzen 7 1800X.
15763
15764 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
15765
15766 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
15767 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
15768 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
15769 New file.
15770 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
15771 Likewise.
15772 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
15773
15774 2018-05-29 Florian Weimer <fweimer@redhat.com>
15775
15776 * support/Makefile (libsupport-routines): Add
15777 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
15778 xpthread_barrierattr_setpshared.
15779 * support/xpthread_barrierattr_destroy.c: New file.
15780 * support/xpthread_barrierattr_init.c: Likewise.
15781 * support/xpthread_barrierattr_setpshared.c: Likewise.
15782
15783 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
15784
15785 [BZ #23206]
15786 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
15787 _r_debug and update DT_DEBUG for debugger.
15788
15789 2018-05-29 Florian Weimer <fweimer@redhat.com>
15790
15791 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
15792 (tst-strtod5i.out): Likewise.
15793
15794 2018-05-25 Joseph Myers <joseph@codesourcery.com>
15795
15796 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
15797 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
15798 (sparc64-quad-routines): New variable. Moved from ....
15799 [$(subdir) = soft-fp] (sysdep_routines): Add
15800 $(sparc64-quad-routines). Moved from ....
15801 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
15802 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
15803 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
15804 moved from ....
15805 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
15806 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
15807 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
15808 * sysdeps/sparc/sparc64/qp_add.c: ... here.
15809 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
15810 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
15811 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
15812 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
15813 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
15814 * sysdeps/sparc/sparc64/qp_div.c: ... here.
15815 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
15816 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
15817 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
15818 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
15819 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
15820 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
15821 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
15822 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
15823 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
15824 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
15825 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
15826 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
15827 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
15828 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
15829 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
15830 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
15831 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
15832 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
15833 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
15834 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
15835 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
15836 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
15837 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
15838 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
15839 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
15840 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
15841 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
15842 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
15843 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
15844 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
15845 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
15846 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
15847 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
15848 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
15849 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
15850 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
15851 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
15852 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
15853 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
15854 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
15855 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
15856 * sysdeps/sparc/sparc64/qp_util.c: ... here.
15857 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
15858 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
15859 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
15860 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
15861 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
15862 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
15863
15864 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
15865 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
15866 (sparc32-quad-routines): New variable. Moved from ....
15867 [$(subdir) = soft-fp] (sysdep_routines): Add
15868 $(sparc32-quad-routines). Moved from ....
15869 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
15870 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
15871 moved from ....
15872 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
15873 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
15874 * sysdeps/sparc/sparc32/q_add.c: ... here.
15875 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
15876 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
15877 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
15878 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
15879 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
15880 * sysdeps/sparc/sparc32/q_div.c: ... here.
15881 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
15882 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
15883 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
15884 * sysdeps/sparc/sparc32/q_feq.c: ... here.
15885 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
15886 * sysdeps/sparc/sparc32/q_fge.c: ... here.
15887 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
15888 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
15889 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
15890 * sysdeps/sparc/sparc32/q_fle.c: ... here.
15891 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
15892 * sysdeps/sparc/sparc32/q_flt.c: ... here.
15893 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
15894 * sysdeps/sparc/sparc32/q_fne.c: ... here.
15895 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
15896 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
15897 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
15898 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
15899 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
15900 * sysdeps/sparc/sparc32/q_mul.c: ... here.
15901 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
15902 * sysdeps/sparc/sparc32/q_neg.c: ... here.
15903 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
15904 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
15905 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
15906 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
15907 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
15908 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
15909 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
15910 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
15911 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
15912 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
15913 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
15914 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
15915 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
15916 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
15917 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
15918 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
15919 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
15920 * sysdeps/sparc/sparc32/q_sub.c: ... here.
15921 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
15922 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
15923 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
15924 * sysdeps/sparc/sparc32/q_util.c: ... here.
15925 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
15926 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
15927 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
15928 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
15929
15930 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15931 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
15932
15933 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
15934 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
15935 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
15936 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
15937
15938 2018-05-24 Joseph Myers <joseph@codesourcery.com>
15939
15940 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
15941 powerpc/soft-fp.
15942 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
15943 Likewise.
15944 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
15945 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
15946
15947 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
15948
15949 [BZ #23171]
15950 * math/math.h [C++] (iseqsig): Fix parameter type for the long
15951 double version.
15952
15953 2018-05-23 Joseph Myers <joseph@codesourcery.com>
15954
15955 * sysdeps/sh/Implies: Remove sh/soft-fp.
15956 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
15957 * sysdeps/sh/sfp-machine.h: ... here.
15958
15959 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
15960
15961 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
15962 (__mempcpy_erms): Skip zero length.
15963 (__memmove_erms): Likewise.
15964 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
15965 (__memset_erms): Likewise.
15966
15967 2018-05-23 Joseph Myers <joseph@codesourcery.com>
15968
15969 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
15970 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
15971 Add functions moved from ....
15972 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
15973 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
15974 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
15975 from ....
15976 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
15977 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
15978 * sysdeps/alpha/e_sqrtl.c: ... here.
15979 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
15980 * sysdeps/alpha/local-soft-fp.h: ... here.
15981 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
15982 * sysdeps/alpha/ots_add.c: ... here.
15983 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
15984 * sysdeps/alpha/ots_cmp.c: ... here.
15985 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
15986 * sysdeps/alpha/ots_cmpe.c: ... here.
15987 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
15988 * sysdeps/alpha/ots_cvtqux.c: ... here.
15989 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
15990 * sysdeps/alpha/ots_cvtqx.c: ... here.
15991 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
15992 * sysdeps/alpha/ots_cvttx.c: ... here.
15993 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
15994 * sysdeps/alpha/ots_cvtxq.c: ... here.
15995 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
15996 * sysdeps/alpha/ots_cvtxt.c: ... here.
15997 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
15998 * sysdeps/alpha/ots_div.c: ... here.
15999 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
16000 * sysdeps/alpha/ots_mul.c: ... here.
16001 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
16002 * sysdeps/alpha/ots_nintxq.c: ... here.
16003 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
16004 * sysdeps/alpha/ots_sub.c: ... here.
16005 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
16006 * sysdeps/alpha/sfp-machine.h: ... here.
16007
16008 2018-05-23 Florian Weimer <fweimer@redhat.com>
16009
16010 [BZ #19728]
16011 [BZ #19729]
16012 [BZ #22247]
16013 CVE-2016-6261
16014 CVE-2016-6263
16015 CVE-2017-14062
16016 Switch to extern IDNA implementation (libidn2).
16017 * libidn: Remove subdirectory.
16018 * LICENSES: Do not mention licensing conditions for the removed
16019 libidn code.
16020 * config.h.in (HAVE_LIBIDN): Remove.
16021 * include/dlfcn.h (__libc_dlopen): Update comment.
16022 * include/idna.h: Remove file.
16023 * inet/Makefile (routines): Add idna.
16024 (tests-static, tests-internal): Add tst-idna_name_classify.
16025 (LOCALES): Generate locales for tests.
16026 (tst-idna_name_classify.out): Depend on generated locales.
16027 * inet/idna_name_classify.c: New file.
16028 * inet/tst-idna_name_classify.c: Likewise.
16029 * inet/net-internal.h (__idna_to_dns_encoding)
16030 (__idna_from_dns_encoding): Declare.
16031 * inet/net-internal.h (enum idna_name_classification): Define.
16032 (__idna_name_classify): Declare.
16033 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
16034 __idna_from_dns_encoding.
16035 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
16036 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
16037 name as a fallback in case of encoding errors.
16038 (getnameinfo): Use DEPRECATED_NI_IDN.
16039 * inet/idna.c: New file.
16040 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
16041 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
16042 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
16043 (modules-names): Add tst-no-libidn2.
16044 (extra-test-objs): Add tst-no-libidn2.os.
16045 (LDFLAGS-tst-no-libidn2.so): Set soname.
16046 (LOCALES): Set, and generate locales.
16047 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
16048 (tst-resolv-ai_idn-latin1): Likewise.
16049 (tst-resolv-ai_idn-nolibidn2): Likewise.
16050 (tst-resolv-ai_idn.out): Depend on locales.
16051 (tst-resolv-ai_idn-latin1.out): Depend on locales.
16052 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
16053 tst-no-libidn2.so.
16054 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
16055 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
16056 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
16057 * resolv/tst-resolv-ai_idn.c: New file.
16058 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
16059 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
16060 * resolv/tst-no-libidn2.c: Likewise.
16061 * support/support_format_addrinfo.c (format_ai_flags): Do not
16062 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
16063 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
16064 (gaih_inet): Call __idna_to_dns_encoding and
16065 __idna_from_dns_encoding, and use the original (punycode) name if
16066 __idna_from_dns_encoding fails due to an encoding error.
16067 (getaddrinfo): Use DEPRECATED_AI_IDN.
16068 * sysdeps/unix/inet/Subdirs (libidn): Remove.
16069 * sysdeps/unix/inet/configure: Remove file.
16070 * sysdeps/unix/inet/configure.ac: Likewise.
16071
16072 2018-05-23 Florian Weimer <fweimer@redhat.com>
16073
16074 Implement allocate_once.
16075 * include/allocate_once.h: New file.
16076 * misc/allocate_once.c: Likewise.
16077 * misc/tst-allocate_once.c: Likewise.
16078 * misc/Makefile (routines): Add allocate_once.
16079 (tests-internal): Add tst-allocate_once.
16080 (generated): Add tst-allocate_once.mtrace,
16081 tst-allocate_once-mem.out.
16082 (tests-special): Add tst-allocate_once-mem.out.
16083 (tst-allocate_once-ENV): Set MALLOC_TRACE.
16084 (tst-allocate_once-mem.out): Call mtrace.
16085 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
16086
16087 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
16088
16089 [BZ #23196]
16090 * string/test-memcpy.c (do_test1): New function.
16091 (test_main): Call it.
16092
16093 2018-05-23 Andreas Schwab <schwab@suse.de>
16094
16095 [BZ #23196]
16096 CVE-2018-11237
16097 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
16098 (L(preloop_large)): Save initial destination pointer in %r11 and
16099 use it instead of %rax after the loop.
16100 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
16101
16102 2018-05-22 Joseph Myers <joseph@codesourcery.com>
16103
16104 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
16105 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
16106 -I../soft-fp. Moved from ....
16107 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
16108 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
16109 * sysdeps/aarch64/e_sqrtl.c: ... here.
16110 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
16111 * sysdeps/aarch64/sfp-machine.h: ... here.
16112
16113 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
16114 -Wmaybe-uninitialized around access to fq[0].
16115 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
16116 Likewise.
16117
16118 [BZ #18471]
16119 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
16120 aliases for non-libc case of versioned symbols.
16121 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
16122 (llseek): Define as compat symbol if
16123 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
16124 with link warning.
16125 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
16126 Make into a compat symbol, disabled for minimum symbol version
16127 GLIBC_2.28 and later.
16128 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
16129
16130 2018-05-22 Florian Weimer <fweimer@redhat.com>
16131
16132 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
16133 not add -mpreferred-stack-boundary=4.
16134 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
16135 (stack-align-test-flags): Likewise.
16136 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
16137 Likewise.
16138 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
16139 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
16140 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
16141 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
16142 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
16143 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
16144 (CFLAGS-tst-align2.c): Likewise.
16145
16146 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
16147
16148 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
16149 (index_arch_Prefer_FSRM): Likewise.
16150 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
16151 Also check Prefer_FSRM.
16152 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
16153 Also return OPTIMIZE (erms) for Prefer_FSRM.
16154
16155 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
16156
16157 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
16158 (index_cpu_FSRM): Likewise.
16159 (reg_FSRM): Likewise.
16160
16161 2018-05-18 Joseph Myers <joseph@codesourcery.com>
16162
16163 * math/gen-tgmath-tests.py: Import sys.
16164 (Tests.__init__): Initialize macros_seen.
16165 (Tests.add_tests): Add macro to macros_seen. Only generate tests
16166 if requested to do so for this macro.
16167 (Tests.add_all_tests): Take argument for macro for which to
16168 generate tests.
16169 (Tests.check_macro_list): New function.
16170 (main): Handle check-list argument and argument specifying macro
16171 for which to generate tests.
16172 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
16173 [PYTHON] (tgmath3-macro-tests): Likewise.
16174 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
16175 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
16176 not test-tgmath3.c.
16177 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
16178 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
16179 to CFLAGS.
16180 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
16181 [PYTHON] ($(foreach
16182 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
16183 rule.
16184 [PYTHON] (tests-special): Add
16185 $(objpfx)test-tgmath3-macro-list.out.
16186 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
16187
16188 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
16189 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
16190 later.
16191
16192 [BZ #22639]
16193 * time/tzset.c (SECSPERDAY): Cast to time_t.
16194 * time/tst-y2039.c: New file.
16195 * time/Makefile (tests): Add tst-y2039.
16196
16197 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
16198
16199 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
16200 (PREFETCH_ONE_SET): Remove duplicate line.
16201
16202 2018-05-17 Florian Weimer <fweimer@redhat.com>
16203
16204 * sysdeps/generic/math-type-macros-double.h: Include
16205 <math-nan-payload-double.h> after <libm-alias-double.h>.
16206 * sysdeps/generic/math-type-macros-float.h: Include
16207 <math-nan-payload-float.h> after <libm-alias-float.h>.
16208 * sysdeps/generic/math-type-macros-float128.h: Include
16209 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
16210 * sysdeps/generic/math-type-macros-ldouble.h: Include
16211 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
16212
16213 2018-05-17 Andreas Schwab <schwab@suse.de>
16214
16215 * resolv/res_send.c (__res_context_send): Don't set errno when
16216 returing error after malloc failure.
16217
16218 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
16219
16220 * nptl/allocatestack.c (allocate_stack): Remove the
16221 !__ASSUME_PRIVATE_FUTEX paths.
16222 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
16223 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
16224 Likewise.
16225 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
16226 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
16227 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
16228 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
16229 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
16230 !__ASSUME_PRIVATE_FUTEX path.
16231 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
16232 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
16233 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
16234 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
16235 !__ASSUME_PRIVATE_FUTEX macros.
16236 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
16237 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
16238 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
16239 * sysdeps/unix/sysv/linux/kernel-features.h
16240 (__ASSUME_PRIVATE_FUTEX): Removed.
16241
16242 2018-05-17 Joseph Myers <joseph@codesourcery.com>
16243
16244 * math/Makefile (libm-narrow-fns): Add div.
16245 (libm-test-funcs-narrow): Likewise.
16246 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
16247 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
16248 * math/gen-auto-libm-tests.c (test_functions): Add div.
16249 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
16250 (NARROW_DIV_ROUND_TO_ODD): Likewise.
16251 (NARROW_DIV_TRIVIAL): Likewise.
16252 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
16253 macro.
16254 (__ddivl): Likewise.
16255 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
16256 ddiv.
16257 (CFLAGS-nldbl-ddiv.c): New variable.
16258 (CFLAGS-nldbl-fdiv.c): Likewise.
16259 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
16260 __nldbl_ddivl.
16261 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
16262 prototype.
16263 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
16264 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
16265 * math/auto-libm-test-in: Add tests of div.
16266 * math/auto-libm-test-out-narrow-div: New generated file.
16267 * math/libm-test-narrow-div.inc: New file.
16268 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
16269 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
16270 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
16271 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
16272 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
16273 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
16274 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
16275 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
16276 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
16277 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
16278 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
16279 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
16280 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
16281 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
16282 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
16283 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
16284 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
16285 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
16286 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16287 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
16288 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
16289 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
16290 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
16291 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
16292 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
16293 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
16294 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
16295 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
16296 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
16297 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
16298 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
16299 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
16300 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
16301 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
16302 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
16303 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
16304 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16305 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
16306 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
16307 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
16308 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
16309 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
16310 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
16311 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
16312
16313 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16314
16315 [BZ #23178]
16316 * nscd/nscd-client.h (sendfileall): Remove prototype.
16317 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
16318 (handle_request): Use writeall instead of sendfileall.
16319 * nscd/aicache.c (addhstaiX): Likewise.
16320 * nscd/grpcache.c (cache_addgr): Likewise.
16321 * nscd/hstcache.c (cache_addhst): Likewise.
16322 * nscd/initgrcache.c (addinitgroupsX): Likewise.
16323 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
16324 * nscd/pwdcache.c (cache_addpw): Likewise.
16325 * nscd/servicescache.c (cache_addserv): Likewise.
16326 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
16327 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
16328 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
16329 Remove define.
16330
16331 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
16332
16333 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
16334 Include <string/strncat.c>.
16335 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
16336 alias.
16337 (__GI___strncat): New hidden alias.
16338
16339 2018-05-16 Joseph Myers <joseph@codesourcery.com>
16340
16341 * sysdeps/mips/mips32/libm-test-ulps: Update.
16342 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
16343
16344 2018-05-16 Florian Weimer <fweimer@redhat.com>
16345
16346 * support/Makefile (libsupport-routines): Add support_quote_blob,
16347 support_test_compare_blob.
16348 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
16349 * support/check.h (TEST_COMPARE_BLOB): Define.
16350 (support_test_compare_blob): Declare.
16351 * support/support.h (support_quote_blob): Declare.
16352 * support/support_quote_blob.c: New file.
16353 * support/support_test_compare_blob.c: Likewise.
16354 * support/tst-support_quote_blob.c: Likewise.
16355 * support/tst-test_compare_blob.c: Likewise.
16356
16357 2018-05-16 Florian Weimer <fweimer@redhat.com>
16358
16359 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
16360 of <strtod_nan_double.h>.
16361 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
16362 instead of SET_MANTISSA.
16363 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
16364 of include <strtod_nan_float.h>.
16365 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
16366 instead of <strtod_nan_ldouble.h>.
16367 * stdlib/strtod_nan_double.h: Move to ...
16368 * sysdeps/generic/math-nan-payload-double.h: ... here.
16369 (FLOAT): Remove definition.
16370 (SET_MANTISSA): Rename to ...
16371 (SET_NAN_PAYLOAD): ... this.
16372 * stdlib/strtod_nan_float.h: Move to ...
16373 * sysdeps/generic/math-nan-payload-float.h: ... here.
16374 (FLOAT): Remove definition.
16375 (SET_MANTISSA): Rename to ...
16376 (SET_NAN_PAYLOAD): ... this.
16377 * sysdeps/generic/math-type-macros-double.h: Include
16378 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
16379 instead of <math-svid-compat.h>.
16380 * sysdeps/generic/math-type-macros-float.h: Include
16381 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
16382 instead of <math-svid-compat.h>.
16383 * sysdeps/generic/math-type-macros-float128.h: Include
16384 <math-nan-payload-float128.h>.
16385 * sysdeps/generic/math-type-macros-ldouble.h: Include
16386 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
16387 instead of <math-svid-compat.h>.
16388 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
16389 check for definition.
16390 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
16391 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
16392 Include <ieee754_float128.h>.
16393 (FLOAT): Remove definition.
16394 (SET_MANTISSA): Rename to ...
16395 (SET_NAN_PAYLOAD): ... this.
16396 * sysdeps/ieee754/float128/strtof128_nan.c: Include
16397 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
16398 Do not include <float128_private.h>.
16399 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
16400 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
16401 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
16402 (FLOAT): Remove definition.
16403 (SET_MANTISSA): Rename to ...
16404 (SET_NAN_PAYLOAD): ... this.
16405 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
16406 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
16407 (FLOAT): Remove definition.
16408 (SET_MANTISSA): Rename to ...
16409 (SET_NAN_PAYLOAD): ... this.
16410 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
16411 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
16412 (FLOAT): Remove definition.
16413 (SET_MANTISSA): Rename to ...
16414 (SET_NAN_PAYLOAD): ... this.
16415 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
16416 of "../stdlib/strtod_nan_double.h".
16417 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
16418 of "../stdlib/strtod_nan_float.h".
16419 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
16420 instead of "../stdlib/strtod_nan_ldouble.h".
16421 * manual/arith.texi (Parsing of Floats): Adjust comment.
16422
16423 2018-05-16 Joseph Myers <joseph@codesourcery.com>
16424
16425 * math/Makefile (libm-narrow-fns): Add mul.
16426 (libm-test-funcs-narrow): Likewise.
16427 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
16428 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
16429 * math/gen-auto-libm-tests.c (test_functions): Add mul.
16430 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
16431 (NARROW_MUL_ROUND_TO_ODD): Likewise.
16432 (NARROW_MUL_TRIVIAL): Likewise.
16433 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
16434 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
16435 macro.
16436 (__dmull): Likewise.
16437 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
16438 dmul.
16439 (CFLAGS-nldbl-dmul.c): New variable.
16440 (CFLAGS-nldbl-fmul.c): Likewise.
16441 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
16442 __nldbl_dmull.
16443 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
16444 prototype.
16445 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
16446 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
16447 * math/auto-libm-test-in: Add tests of mul.
16448 * math/auto-libm-test-out-narrow-mul: New generated file.
16449 * math/libm-test-narrow-mul.inc: New file.
16450 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
16451 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
16452 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
16453 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
16454 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
16455 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
16456 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
16457 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
16458 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
16459 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
16460 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
16461 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
16462 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
16463 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
16464 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
16465 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
16466 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
16467 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
16468 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16469 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
16470 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
16471 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
16472 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
16473 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
16474 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
16475 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
16476 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
16477 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
16478 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
16479 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
16480 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
16481 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
16482 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
16483 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
16484 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
16485 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
16486 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16487 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
16488 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
16489 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
16490 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
16491 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
16492 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
16493 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
16494
16495 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
16496
16497 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
16498 with *%eax in call.
16499
16500 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
16501
16502 * sysdeps/i386/ldsodefs.h: Removed.
16503 * sysdeps/x86_64/ldsodefs.h: Moved to ...
16504 * sysdeps/x86/ldsodefs.h: This.
16505 (La_i86_regs): New.
16506 (La_i86_retval): Likewise.
16507 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
16508 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
16509
16510 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
16511
16512 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
16513 unnecessary testl.
16514
16515 2018-05-13 Alan Modra <amodra@gmail.com>
16516
16517 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
16518 R_PARISC_TLS_DTPOFF32 reloc addend.
16519
16520 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16521
16522 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
16523 * math/math.h: Restrict the prototype definition for the functions
16524 issignaling(_Float128) and iszero(_Float128); and template
16525 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
16526 __HAVE_FLOAT128_UNLIKE_LDBL.
16527 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
16528 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
16529 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
16530 __f128() constants; define the type _Float128 as long double;
16531 and reuse long double in __CFLOAT128.
16532
16533 2018-05-11 Joseph Myers <joseph@codesourcery.com>
16534
16535 * sysdeps/generic/math_private.h: Do not include
16536 <math-barriers.h>.
16537 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
16538 <math_private.h>.
16539 * math/fromfp.h: Include <math-barriers.h>.
16540 * math/math-narrow.h: Likewise.
16541 * math/s_nextafter.c: Likewise.
16542 * math/s_nexttowardf.c: Likewise.
16543 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
16544 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
16545 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
16546 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
16547 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
16548 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
16549 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
16550 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16551 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
16552 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16553 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
16554 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
16555 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
16556 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
16557 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
16558 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
16559 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
16560 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
16561 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
16562 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
16563 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
16564 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
16565 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
16566 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
16567 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
16568 * sysdeps/ieee754/k_standardl.c: Likewise.
16569 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
16570 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
16571 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
16572 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
16573 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
16574 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
16575 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
16576 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
16577 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
16578 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
16579 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
16580 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
16581 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
16582 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
16583 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
16584 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
16585 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
16586 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
16587 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
16588 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
16589 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
16590 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
16591
16592 2018-05-11 Florian Weimer <fweimer@redhat.com>
16593
16594 Use 64-bit epoch values in the time zone file parser.
16595 * include/time.h (internal_time_t): Define.
16596 (__tzfile_compute): Use it.
16597 * time/tzfile.c (struct leap): Use internal_time_t for epoch
16598 member.
16599 (transitions): Switch to internal_time_t.
16600 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
16601 types.
16602 (__tzfile_compute): Use internal_time_t for timer argument. Check
16603 for truncation before calling __offtime.
16604
16605 2018-05-11 Florian Weimer <fweimer@redhat.com>
16606
16607 [BZ #23166]
16608 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
16609 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
16610 Likewise.
16611 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
16612 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
16613 export without --enable-obsolete-rpc.
16614 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
16615 symbol. This should not have been exported, ever.
16616
16617 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
16618
16619 [BZ #23152]
16620 * localedata/locales/gd_GB (abmon): Fix typo in May:
16621 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
16622
16623 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
16624
16625 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
16626 Use multiple registers to copy data in loop tail.
16627
16628 * sysdeps/aarch64/multiarch/memmove_falkor.S
16629 (__memmove_falkor): Use multiple registers to move data in
16630 loop tail.
16631
16632 2018-05-10 Joseph Myers <joseph@codesourcery.com>
16633
16634 * math/math-underflow.h: New file.
16635 * sysdeps/generic/math_private.h: Do not include <float.h>.
16636 (fabs_tg): Remove macro. Moved to math-underflow.h.
16637 (min_of_type_f): Likewise.
16638 (min_of_type_): Likewise.
16639 (min_of_type_l): Likewise.
16640 (min_of_type_f128): Likewise.
16641 (min_of_type): Likewise.
16642 (math_check_force_underflow): Likewise.
16643 (math_check_force_underflow_nonneg): Likewise.
16644 (math_check_force_underflow_complex): Likewise.
16645 * math/e_exp2_template.c: Include <math-underflow.h>.
16646 * math/k_casinh_template.c: Likewise.
16647 * math/s_catan_template.c: Likewise.
16648 * math/s_catanh_template.c: Likewise.
16649 * math/s_ccosh_template.c: Likewise.
16650 * math/s_cexp_template.c: Likewise.
16651 * math/s_clog10_template.c: Likewise.
16652 * math/s_clog_template.c: Likewise.
16653 * math/s_csin_template.c: Likewise.
16654 * math/s_csinh_template.c: Likewise.
16655 * math/s_csqrt_template.c: Likewise.
16656 * math/s_ctan_template.c: Likewise.
16657 * math/s_ctanh_template.c: Likewise.
16658 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
16659 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
16660 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
16661 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
16662 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
16663 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
16664 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
16665 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16666 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
16667 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
16668 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16669 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
16670 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
16671 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
16672 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
16673 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
16674 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16675 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
16676 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
16677 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
16678 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
16679 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
16680 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16681 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
16682 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
16683 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
16684 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
16685 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
16686 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
16687 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
16688 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
16689 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
16690 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
16691 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
16692 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
16693 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
16694 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
16695 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
16696 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16697 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
16698 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
16699 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
16700 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
16701 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
16702 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
16703 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
16704 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
16705 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
16706 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
16707 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
16708 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
16709 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
16710 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
16711 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
16712 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
16713 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
16714 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
16715 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
16716 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
16717 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
16718 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
16719 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
16720 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
16721 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
16722 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
16723 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
16724 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
16725 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
16726 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
16727 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
16728 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16729 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
16730 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
16731 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
16732 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
16733 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
16734 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
16735 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
16736 * sysdeps/x86/fpu/powl_helper.c: Likewise.
16737 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
16738 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
16739 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
16740 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
16741 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
16742
16743 2018-05-09 Joseph Myers <joseph@codesourcery.com>
16744
16745 * sysdeps/generic/math-barriers.h: New file.
16746 * sysdeps/generic/math_private.h [!math_opt_barrier]
16747 (math_opt_barrier): Move to math-barriers.h.
16748 [!math_opt_barrier] (math_force_eval): Likewise.
16749 * sysdeps/aarch64/fpu/math-barriers.h: New file.
16750 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
16751 math-barriers.h.
16752 (math_force_eval): Likewise.
16753 * sysdeps/alpha/fpu/math-barriers.h: New file.
16754 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
16755 math-barriers.h.
16756 (math_force_eval): Likewise.
16757 * sysdeps/x86/fpu/math-barriers.h: New file.
16758 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
16759 math-barriers.h.
16760 (math_force_eval): Likewise.
16761 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
16762 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
16763 multiple-include guard for rename.
16764 * sysdeps/powerpc/fpu/math-barriers.h: New file.
16765 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
16766 math-barriers.h.
16767 (math_force_eval): Likewise.
16768
16769 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
16770
16771 [BZ #22786]
16772 CVE-2018-11236
16773 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
16774 computation.
16775 * stdlib/Makefile (test-bz22786): New test.
16776 * stdlib/test-bz22786.c: New test.
16777
16778 2018-05-09 Joseph Myers <joseph@codesourcery.com>
16779
16780 * include/math-narrow-eval.h: New file. Contents moved from ....
16781 * sysdeps/generic/math_private.h: ... here.
16782 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
16783 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
16784 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
16785 * stdlib/strtod_l.c: Likewise.
16786 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
16787 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
16788 * sysdeps/i386/fpu/s_fdim.c: Likewise.
16789 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
16790 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
16791 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
16792 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
16793 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
16794 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
16795 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
16796 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
16797 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
16798 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
16799 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
16800 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
16801 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
16802 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
16803 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
16804 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
16805 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
16806 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16807 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
16808 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
16809 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
16810 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
16811 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
16812 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
16813 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
16814 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
16815
16816 2018-05-08 Andreas Schwab <schwab@suse.de>
16817
16818 * sysdeps/nptl/internaltypes.h: Fix comment.
16819
16820 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
16821
16822 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
16823 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
16824 hidden.
16825
16826 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
16827
16828 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
16829 of I into loop header.
16830 * benchtests/bench-memmove-walk.c
16831 (test_main): Likewise.
16832
16833 2018-05-07 Alexandre Oliva <oliva@gnu.org>
16834
16835 Revert:
16836 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
16837 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
16838
16839 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
16840
16841 [BZ #20419]
16842 * elf/dl-load.c (open_verify): Fix stack overflow.
16843 * elf/Makefile (tst-big-note): New test.
16844 * elf/tst-big-note-lib.S: New.
16845 * elf/tst-big-note.c: New.
16846
16847 2018-05-04 Joseph Myers <joseph@codesourcery.com>
16848
16849 * scripts/abilist.awk: Ignore absolute symbols.
16850 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
16851 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
16852 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
16853 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
16854 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
16855 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
16856 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
16857 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
16858 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
16859 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
16860 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
16861 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
16862 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
16863 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
16864 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
16865 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
16866 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
16867 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
16868 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
16869 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
16870 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
16871 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
16872 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
16873 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
16874 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
16875 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
16876 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
16877 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
16878 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
16879 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
16880 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
16881 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
16882 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
16883 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
16884 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
16885 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
16886 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
16887 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
16888 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
16889 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
16890 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
16891 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
16892 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
16893 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
16894 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
16895 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
16896 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
16897 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
16898 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
16899 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
16900 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
16901 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
16902 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
16903 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
16904 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
16905 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
16906 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
16907 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
16908 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
16909 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
16910 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
16911 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
16912 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
16913 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
16914 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
16915 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
16916 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
16917 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
16918 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
16919 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
16920 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
16921 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
16922 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
16923 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
16924 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
16925 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
16926 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
16927 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
16928 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
16929 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
16930 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
16931 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
16932 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
16933 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
16934 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
16935 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
16936 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
16937 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
16938 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
16939 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
16940 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
16941 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
16942 Likewise.
16943 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
16944 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
16945 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
16946 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
16947 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
16948 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
16949 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
16950 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
16951 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
16952 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
16953 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
16954 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
16955 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
16956 Likewise.
16957 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
16958 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
16959 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
16960 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
16961 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
16962 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
16963 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
16964 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
16965 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
16966 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
16967 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
16968 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
16969 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
16970 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
16971 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
16972 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
16973 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
16974 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
16975 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
16976 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
16977 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
16978 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
16979 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
16980 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
16981 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
16982 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
16983 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
16984 Likewise.
16985 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
16986 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
16987 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
16988 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
16989 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
16990 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
16991 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
16992 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
16993 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
16994 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
16995 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
16996 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
16997 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
16998 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
16999 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
17000 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
17001 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
17002 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
17003 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
17004 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
17005 Likewise.
17006 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
17007 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
17008 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
17009 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17010 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
17011 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
17012 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
17013 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
17014 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
17015 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
17016 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
17017 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
17018 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
17019 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
17020 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
17021 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
17022 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
17023 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
17024 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
17025 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
17026 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
17027 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17028 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
17029 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
17030 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
17031 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
17032 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
17033 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
17034 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
17035 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17036 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
17037 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
17038 Likewise.
17039 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
17040 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
17041 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
17042 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
17043 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
17044 Likewise.
17045 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
17046 Likewise.
17047 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
17048 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
17049 Likewise.
17050 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
17051 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
17052 Likewise.
17053 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
17054 Likewise.
17055 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
17056 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
17057 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
17058 Likewise.
17059 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
17060 Likewise.
17061 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
17062 Likewise.
17063 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
17064 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
17065 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
17066 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
17067 Likewise.
17068 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
17069 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
17070 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
17071 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17072 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17073 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
17074 Likewise.
17075 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
17076 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
17077 Likewise.
17078 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
17079 Likewise.
17080 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
17081 Likewise.
17082 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
17083 Likewise.
17084 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
17085 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
17086 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
17087 Likewise.
17088 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
17089 Likewise.
17090 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
17091 Likewise.
17092 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
17093 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
17094 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
17095 Likewise.
17096 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
17097 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
17098 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
17099 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
17100 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17101 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
17102 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
17103 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
17104 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
17105 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
17106 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
17107 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
17108 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
17109 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
17110 Likewise.
17111 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
17112 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
17113 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
17114 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17115 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
17116 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
17117 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
17118 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
17119 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
17120 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
17121 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
17122 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
17123 Likewise.
17124 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
17125 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
17126 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
17127 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17128 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
17129 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
17130 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
17131 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
17132 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
17133 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
17134 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
17135 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
17136 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
17137 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
17138 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
17139 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
17140 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
17141 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
17142 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
17143 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
17144 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
17145 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
17146 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
17147 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
17148 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
17149 Likewise.
17150 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
17151 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
17152 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
17153 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
17154 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17155 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
17156 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
17157 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
17158 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
17159 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
17160 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
17161 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
17162 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
17163 Likewise.
17164 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
17165 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
17166 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
17167 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
17168 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17169 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
17170 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
17171 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
17172 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
17173 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
17174 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
17175 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
17176 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
17177 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
17178 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
17179 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
17180 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
17181 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17182 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
17183 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
17184 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
17185 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
17186 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
17187 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
17188 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
17189 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
17190 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
17191 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
17192 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
17193 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
17194 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
17195 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
17196 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
17197 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
17198 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
17199 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
17200 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
17201 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
17202
17203 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
17204
17205 [BZ #23137]
17206 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
17207 Use atomic_load_acquire to load __tid.
17208
17209 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
17210
17211 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
17212 Restore the pointer into %rdx, after syscall and use %rdx,
17213 instead of %rsi, to restore context.
17214
17215 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
17216
17217 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
17218 Pop the pointer into %rdx after syscall and use %rdx, instead
17219 of %rsi, to restore context.
17220
17221 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
17222
17223 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
17224 handlers after setjmp.
17225 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
17226 defined.
17227 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
17228 <libc-pointer-arith.h>.
17229 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
17230 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
17231 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
17232 _JUMP_BUF_SIGSET_BITS_PER_WORD.
17233 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
17234 * sysdeps/x86/__longjmp_cancel.S: New file.
17235 * sysdeps/x86/longjmp.c: Likewise.
17236 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
17237
17238 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17239
17240 * NEWS: Add ustat.h deprecation entry.
17241 * bits/ustat.h: Remove file.
17242 * misc/sys/ustat.h: Likewise.
17243 * misc/ustat.h: Likewise.
17244 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
17245 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
17246 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
17247 compatibility mode.
17248 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
17249 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
17250 generic Linux implementation.
17251
17252 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
17253
17254 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
17255 * math/w_expl_compat.c: Likewise.
17256 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
17257
17258 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
17259
17260 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
17261
17262 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17263
17264 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
17265 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
17266 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
17267 Remove.
17268 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
17269 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
17270 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
17271 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
17272 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
17273 and SYSCALL_LL64.
17274
17275 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
17276
17277 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
17278
17279 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
17280 * math/w_asin_template.c: Likewise.
17281 * math/w_atanh_template.c: Likewise.
17282
17283 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
17284
17285 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
17286 to powerpc/powerpc64/be for big-endian.
17287 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
17288 little-endian.
17289
17290 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
17291 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
17292 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
17293 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
17294 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
17295 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
17296 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
17297 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
17298 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
17299 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
17300 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
17301 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
17302 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
17303 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
17304 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
17305 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
17306 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
17307 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
17308 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
17309 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
17310 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
17311 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
17312 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
17313 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
17314 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
17315 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
17316 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
17317 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
17318 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
17319 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
17320 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
17321 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
17322
17323 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
17324 adjusted to imply powerpc64 and older processors on powerpc64/be.
17325 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
17326 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
17327 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
17328 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
17329 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
17330 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
17331 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
17332 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
17333 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
17334 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
17335 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
17336 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
17337 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
17338 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
17339 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
17340 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
17341 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
17342 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
17343 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
17344 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
17345 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
17346 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
17347 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
17348 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
17349 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
17350 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
17351 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
17352 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
17353 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
17354 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
17355 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
17356
17357 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
17358 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
17359 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
17360 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
17361
17362 * sysdeps/powerpc/powerpc64/be/Implies: New file.
17363 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
17364 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
17365 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
17366
17367 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
17368 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
17369 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
17370 * sysdeps/powerpc/powerpc64le/configure: Likewise.
17371 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
17372 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
17373 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
17374 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
17375 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
17376 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
17377 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
17378
17379 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
17380 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
17381 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
17382 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
17383 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
17384 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
17385 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
17386 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
17387 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
17388 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
17389 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
17390
17391 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
17392 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
17393 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
17394 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
17395 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
17396 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
17397 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
17398 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
17399 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
17400 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
17401 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
17402 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
17403
17404 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
17405 and adjusted to imply olders processors.
17406 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
17407 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
17408 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
17409 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
17410 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
17411 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
17412 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
17413 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
17414 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
17415 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
17416 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
17417
17418 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
17419 powerpc64/le.
17420 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
17421 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
17422
17423 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
17424 powerpc64le.
17425 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
17426 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
17427
17428 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
17429 powerpc64/be.
17430 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
17431 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
17432 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
17433
17434 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
17435 powerpc64 and adjusted.
17436 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
17437 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
17438 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
17439 Likewise.
17440
17441 2018-04-27 Joseph Myers <joseph@codesourcery.com>
17442
17443 * sysdeps/tile: Remove.
17444 * sysdeps/unix/sysv/linux/tile: Likewise.
17445 * README (tilegx-*-linux-gnu): Remove from list of supported
17446 configurations.
17447 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
17448 contribution of support for generic Linux kernel syscall
17449 interface.
17450 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
17451 tilegx configurations.
17452 (Config.install_linux_headers): Do not handle tile.
17453 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
17454 in comment.
17455 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
17456 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
17457 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
17458 conditional undefine and redefine.
17459 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
17460 in comment.
17461 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
17462 conditional undefine and redefine.
17463
17464 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
17465
17466 * signal/tst-sigaction.c: New file to test BZ #23069.
17467 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
17468
17469 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
17470
17471 [BZ #22766]
17472 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
17473 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
17474 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
17475 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
17476
17477 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17478
17479 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
17480 _DIRENT_MATCHES_DIRENT64 is not defined.
17481 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
17482 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
17483 is defined.
17484 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
17485 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
17486
17487 2018-04-25 Joseph Myers <joseph@codesourcery.com>
17488
17489 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
17490 version to GCC 8 branch.
17491
17492 2018-04-24 Joseph Myers <joseph@codesourcery.com>
17493
17494 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
17495 (check_no_hidden): Use type of original function when declaring
17496 alias.
17497
17498 * sysdeps/unix/sysv/linux/sys/ptrace.h
17499 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
17500 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
17501 (struct __ptrace_seccomp_metadata): New type.
17502 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
17503 (PTRACE_SECCOMP_GET_METADATA): Likewise.
17504 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
17505 (PTRACE_SECCOMP_GET_METADATA): Likewise.
17506 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
17507 (PTRACE_SECCOMP_GET_METADATA): Likewise.
17508 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
17509 (PTRACE_SECCOMP_GET_METADATA): Likewise.
17510 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
17511 (PTRACE_SECCOMP_GET_METADATA): Likewise.
17512 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
17513 (PTRACE_SECCOMP_GET_METADATA): Likewise.
17514 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
17515 (PTRACE_SECCOMP_GET_METADATA): Likewise.
17516 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
17517 (PTRACE_SECCOMP_GET_METADATA): Likewise.
17518
17519 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17520
17521 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
17522 defined.
17523 * dirent/versionsort.c (versionsort): Likewise.
17524 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
17525 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
17526 * dirent/versionsort64.c (versionsort64): Likewise.
17527 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
17528 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
17529 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
17530 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
17531 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
17532 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
17533 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
17534 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
17535 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
17536 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
17537 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
17538 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
17539 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
17540 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
17541
17542 2018-04-23 Joseph Myers <joseph@codesourcery.com>
17543
17544 * elf/elf.h (NT_PPC_PKEY): New macro.
17545
17546 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
17547
17548 [BZ #23094]
17549 * localedata/locales/hr_HR: fix thousands_sep and
17550 mon_thousands_sep
17551
17552 2018-04-20 Joseph Myers <joseph@codesourcery.com>
17553
17554 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
17555 (XTABS): Define to TAB3.
17556
17557 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17558
17559 * sysdeps/hppa/fpu/libm-test-ulps: Update.
17560
17561 * dirent/scandir-tail-common.c: New file.
17562 * dirent/scandir-tail.c: Use scandir-tail-common.c.
17563 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
17564 * dirent/scandir.c: Use scandir-tail-common.c.
17565 * dirent/scandirat.c: Likewise.
17566 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
17567 * dirent/scandir64.c (scandir64): Always build and alias to scandir
17568 if _DIRENT_MATCHES_DIRENT64 is defined.
17569 * dirent/scandirat64.c (scandirat64): Likewise.
17570 * include/dirent.h (__scandir_tail): Only define iff
17571 _DIRENT_MATCHES_DIRENT64 is not defined.
17572 (__scandir64_tail): Define regardless.
17573 (__scandirat, scandirat64): Remove libc_hidden_proto.
17574 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
17575 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
17576 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
17577 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
17578 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
17579 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
17580 * sysdeps/unix/sysv/linux/scandir64.c: New file.
17581
17582 2018-04-20 Joseph Myers <joseph@codesourcery.com>
17583
17584 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
17585 New macro.
17586 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
17587 Increase to 24.
17588 (_dl_aarch64_cap_flags): Add asimdfhm.
17589
17590 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
17591
17592 * sysdeps/nios2/libm-test-ulps: Update.
17593
17594 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17595
17596 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
17597 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
17598
17599 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
17600 requirements.
17601 (_DIRENT_MATCHES_DIRENT64): Undef
17602 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
17603 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
17604 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
17605 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
17606 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
17607 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
17608 use getdents64 syscalls as base.
17609 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
17610 symbol if required.
17611 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
17612 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
17613 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
17614 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
17615 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
17616 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
17617 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
17618 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
17619 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
17620 (__get_clockfreq_via_proc_openprom): Use __getdents64.
17621 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
17622
17623 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
17624
17625 * scripts/test_printers_common.py (init_test): Disable lock elision.
17626
17627 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
17628
17629 * math/test-tgmath.c (count_double, count_float,
17630 count_ldouble, count_cdouble, count_cfloat,
17631 count_cldouble): Use volatile int.
17632
17633 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
17634
17635 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
17636 (conformtest-xfail-conds): Add i386-gnu.
17637 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
17638 i386-gnu.
17639 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
17640 ipc_perm.cuid, ipc_perm.cgid): Likewise.
17641 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
17642 msqid_ds.msg_lrpid): Likewise.
17643 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
17644 Likewise.
17645 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
17646 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
17647 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
17648 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
17649 unsigned int.
17650 (struct statvfs64): Likewise.
17651 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
17652 Likewise.
17653 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
17654 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
17655 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
17656 instead of wait_queue.
17657 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
17658 instead of vm_area_struct.
17659 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
17660 struct sched_param definition to it.
17661 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
17662 * bits/types/struct_sched_param.h: New file.
17663 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
17664 <bits/types/struct_sched_param.h> instead of <sched.h>.
17665 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
17666 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
17667 generic version but include <bits/pthreadtypes.h> to make struct
17668 sigevent's sigev_notify_attributes field a pthread_attr_t*.
17669 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
17670 non-compliant.
17671 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
17672 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
17673 [__USE_XOPEN] (OFDEL): New macro.
17674 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
17675 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
17676 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
17677 prototypes.
17678 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
17679 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
17680 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
17681 non-compliant.
17682 * sysdeps/i386/sys/ucontext.h: Likewise.
17683 * sysdeps/m68k/sys/ucontext.h: Likewise.
17684 * sysdeps/mips/sys/ucontext.h: Likewise.
17685 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
17686 * sysdeps/mach/hurd/i386/Makefile
17687 (test-xfail-POSIX/fcntl.h/conform): Add.
17688 (test-xfail-POSIX/signal.h/conform): Add.
17689 (test-xfail-POSIX/semaphore.h/conform): Add.
17690 (test-xfail-POSIX/regex.h/conform): Add.
17691 (test-xfail-POSIX/aio.h/conform): Add.
17692 (test-xfail-POSIX/mqueue.h/conform): Add.
17693 (test-xfail-POSIX/sys/types.h/conform): Add.
17694 (test-xfail-UNIX98/fcntl.h/conform): Add.
17695 (test-xfail-UNIX98/netdb.h/conform): Add.
17696 (test-xfail-UNIX98/signal.h/conform): Add.
17697 (test-xfail-UNIX98/semaphore.h/conform): Add.
17698 (test-xfail-UNIX98/regex.h/conform): Add.
17699 (test-xfail-UNIX98/aio.h/conform): Add.
17700 (test-xfail-UNIX98/ftw.h/conform): Add.
17701 (test-xfail-UNIX98/mqueue.h/conform): Add.
17702 (test-xfail-UNIX98/netinet/in.h/conform): Add.
17703 (test-xfail-UNIX98/sys/wait.h/conform): Add.
17704 (test-xfail-UNIX98/sys/sem.h/conform): Add.
17705 (test-xfail-UNIX98/sys/uio.h/conform): Add.
17706 (test-xfail-UNIX98/sys/socket.h/conform): Add.
17707 (test-xfail-UNIX98/sys/types.h/conform): Add.
17708 (test-xfail-UNIX98/stdlib.h/conform): Add.
17709 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
17710 (test-xfail-POSIX2008/fcntl.h/conform): Add.
17711 (test-xfail-POSIX2008/netdb.h/conform): Add.
17712 (test-xfail-POSIX2008/signal.h/conform): Add.
17713 (test-xfail-POSIX2008/semaphore.h/conform): Add.
17714 (test-xfail-POSIX2008/regex.h/conform): Add.
17715 (test-xfail-POSIX2008/aio.h/conform): Add.
17716 (test-xfail-POSIX2008/mqueue.h/conform): Add.
17717 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
17718 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
17719 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
17720 (test-xfail-POSIX2008/sys/types.h/conform): Add.
17721 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
17722 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
17723 (test-xfail-XOPEN2K/netdb.h/conform): Add.
17724 (test-xfail-XOPEN2K/signal.h/conform): Add.
17725 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
17726 (test-xfail-XOPEN2K/regex.h/conform): Add.
17727 (test-xfail-XOPEN2K/aio.h/conform): Add.
17728 (test-xfail-XOPEN2K/ftw.h/conform): Add.
17729 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
17730 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
17731 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
17732 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
17733 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
17734 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
17735 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
17736 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
17737 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
17738 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
17739 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
17740 (test-xfail-XOPEN2K8/signal.h/conform): Add.
17741 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
17742 (test-xfail-XOPEN2K8/regex.h/conform): Add.
17743 (test-xfail-XOPEN2K8/aio.h/conform): Add.
17744 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
17745 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
17746 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
17747 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
17748 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
17749 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
17750 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
17751 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
17752 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
17753 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
17754 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
17755 i386-gnu.
17756 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
17757 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
17758
17759 2018-04-18 Joseph Myers <joseph@codesourcery.com>
17760
17761 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
17762 --enable-obsolete for powerpc-linux-gnuspe.
17763
17764 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
17765
17766 * conform/data/sys/un.h-data: Allow sun_ prefix.
17767 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
17768 prototypes.
17769 * sysdeps/mach/include/mach.h: Likewise.
17770 * sysdeps/mach/include/mach/mig_support.h: Likewise.
17771 * sysdeps/mach/include/mach_error.h: Likewise.
17772
17773 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17774
17775 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
17776 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
17777 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
17778 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
17779
17780 2018-04-16 Andreas Schwab <schwab@suse.de>
17781
17782 [BZ #19527]
17783 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
17784
17785 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17786
17787 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
17788 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
17789
17790 2018-04-12 DJ Delorie <dj@redhat.com>
17791
17792 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
17793 version to 4.16.
17794
17795 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
17796
17797 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
17798 (struct kernel_sigaction): Use the same definition on 31bit as is used
17799 on 64bit.
17800
17801 2018-04-09 Florian Weimer <fweimer@redhat.com>
17802
17803 [BZ #23037]
17804 * resolv/res_send.c (send_dg): Use designated initializers instead
17805 of assignment to zero-initialize other fields of struct mmsghdr.
17806
17807 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17808
17809 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
17810 __READDIR_ALIAS): Undefine after usage.
17811 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
17812 __READDIR_R_ALIAS): Likewise.
17813 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
17814 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
17815 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
17816 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
17817 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
17818 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
17819 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
17820 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
17821 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
17822 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
17823 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
17824 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
17825 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
17826 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
17827 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
17828 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
17829 * sysdeps/unix/sysv/linux/readdir.c: New file.
17830 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
17831 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
17832 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
17833
17834 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
17835
17836 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
17837
17838 * manual/charset.texi (Converting a Character): Fix typo.
17839
17840 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17841
17842 * sysdeps/sparc/fpu/libm-test-ulps: Update.
17843
17844 * sysdeps/arm/libm-test-ulps: Update.
17845
17846 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
17847 as base implementation.
17848 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
17849 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
17850 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
17851 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
17852 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
17853 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
17854 remove unrequired definitions and update comments.
17855 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
17856 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
17857 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
17858 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
17859 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
17860 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
17861 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
17862 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
17863 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
17864 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
17865 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
17866 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
17867 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
17868 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
17869 and RESET_SA_RESTORER hooks.
17870
17871 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
17872
17873 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
17874
17875 2018-04-05 Florian Weimer <fweimer@redhat.com>
17876
17877 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
17878 integer overflow, memory leak on error, and indeterminate errno
17879 value. Add a null wide character to terminate the result string.
17880 * manual/charset.texi (Converting a Character): Mention embedded
17881 null bytes in the mbrtowc input string. Explain what happens in
17882 the -2 result case. Do not claim that mbrtowc is simple or
17883 obvious to use. Adjust the description of the code example. Use
17884 @code, not @var, for concrete variables.
17885
17886 2018-04-05 Florian Weimer <fweimer@redhat.com>
17887
17888 * manual/examples/mbstouwcs.c: New file.
17889 * manual/charset.texi (Converting a Character): Include it.
17890
17891 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
17892
17893 * include/dirent.h (dirfd): Add hidden proto.
17894 * dirent/dirfd.c (dirfd): Add hidden def.
17895 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
17896 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
17897
17898 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
17899
17900 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
17901 sin, cos and sincos to 1 ULP.
17902
17903 2018-04-04 Maciej W. Rozycki <macro@mips.com>
17904
17905 [BZ #19818]
17906 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
17907 symbols.
17908 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
17909 * elf/tst-absolute-sym.c: New file.
17910 * elf/tst-absolute-sym-lib.c: New file.
17911 * elf/tst-absolute-sym-lib.lds: New file.
17912 * elf/Makefile (tests): Add `tst-absolute-sym'.
17913 (modules-names): Add `tst-absolute-sym-lib'.
17914 (LDLIBS-tst-absolute-sym-lib.so): New variable.
17915 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
17916 ($(objpfx)tst-absolute-sym): New dependency.
17917
17918 [BZ #19818]
17919 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
17920 parameter.
17921 (SYMBOL_ADDRESS): New macro.
17922 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
17923 SYMBOL_ADDRESS for symbol address calculation.
17924 * elf/dl-runtime.c (_dl_fixup): Likewise.
17925 (_dl_profile_fixup): Likewise.
17926 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
17927 * elf/rtld.c (dl_main): Likewise.
17928 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
17929 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
17930 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
17931 (elf_machine_rela): Likewise.
17932 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
17933 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
17934 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
17935 (elf_machine_rela): Likewise.
17936 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
17937 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
17938 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
17939 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
17940 Likewise.
17941 (elf_machine_reloc): Likewise.
17942 (elf_machine_got_rel): Likewise.
17943 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
17944 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
17945 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
17946 Likewise.
17947 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17948 Likewise.
17949 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
17950 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
17951 Likewise.
17952 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
17953 Likewise.
17954 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
17955 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
17956 Likewise.
17957 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
17958 Likewise.
17959 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
17960 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
17961
17962 2018-04-04 Zack Weinberg <zackw@panix.com>
17963
17964 * sysdeps/generic/internal-signals.h: Include signal.h,
17965 sigsetops.h, and stdbool.h.
17966 (__libc_signal_block_all): Actually block all signals.
17967 (__libc_signal_block_app): Likewise.
17968 (__libc_signal_restore_set): Actually restore the signal mask.
17969
17970 2018-04-04 Florian Weimer <fweimer@redhat.com>
17971
17972 inet: Actually build and run tst-deadline.
17973 * inet/Makefile (tests-internal): Add tst-deadline and do not
17974 overwrite the variable.
17975 (tests-static-internal): Remove variable.
17976
17977 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
17978
17979 [BZ #22947]
17980 * bits/uio-ext.h (RWF_APPEND): New.
17981 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
17982 * manual/llio.texi: Document RWF_APPEND.
17983 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
17984 (RWF_SUPPORTED): Add RWF_APPEND.
17985
17986 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17987
17988 [BZ #22391]
17989 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
17990 check for internal nptl signals.
17991 * nptl/sigaction.c (__sigaction): Likewise.
17992 * signal/sigaddset.c (sigaddset): Likewise.
17993 * signal/sigdelset.c (sigdelset): Likewise.
17994 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
17995 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
17996 value.
17997 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
17998 to filter out internal nptl signals.
17999 * signal/tst-sigset.c (do_test): Check ech signal indidually and
18000 also check realtime signals using standard macros.
18001 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
18002 __is_internal_signal, __libc_signal_block_all,
18003 __libc_signal_block_app, __libc_signal_restore_set): New functions.
18004 * sysdeps/nptl/sigfillset.c: Remove file.
18005 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
18006 Change return to bool.
18007 (__clear_internal_signals): Remove SIGTIMER clean since it is
18008 equal to SIGCANEL on Linux.
18009 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
18010 signal set was constructed using standard functions.
18011
18012 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
18013
18014 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
18015 ifname is too long.
18016 * hurd/hurdsig.c (interrupted_reply_port_location): Use
18017 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
18018 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
18019 hidden def.
18020 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
18021 * signal/sigaddset.c: Include <sigsetopts.h>.
18022 * signal/sigdelset.c: Likewise.
18023
18024 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18025
18026 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
18027 (__cos): Likewise.
18028 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
18029 logic as sin and cos.
18030
18031 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18032
18033 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
18034 inputs. Return correct sign.
18035 (do_sincos): Remove small input check before do_sin, let do_sin set
18036 the sign.
18037 (__sin): Likewise.
18038 (__cos): Likewise.
18039
18040 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18041
18042 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
18043 (do_cos_slow): Likewise.
18044 (do_sin_slow): Likewise.
18045 (reduce_and_compute): Likewise.
18046 (slow): Likewise.
18047 (slow1): Likewise.
18048 (slow2): Likewise.
18049 (sloww): Likewise.
18050 (sloww1): Likewise.
18051 (sloww2): Likewise.
18052 (bslow): Likewise.
18053 (bslow1): Likewise.
18054 (bslow2): Likewise.
18055 (cslow2): Likewise.
18056
18057 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18058
18059 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
18060 (do_cos): Remove corp parameter and calculations.
18061 (do_sin): Likewise.
18062 (do_sincos): Remove cor variable.
18063 (__sin): Use do_sincos for huge inputs.
18064 (__cos): Likewise.
18065 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
18066 (reduce_and_compute_sincos): Remove unused function.
18067
18068 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18069
18070 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
18071 reduce_sincos, improve accuracy to 136 bits.
18072 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
18073 (__sin): Use improved reduction and simplified do_sincos calculation.
18074 (__cos): Likewise.
18075 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
18076
18077 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18078
18079 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
18080 (do_sincos_2): Likewise.
18081 (__sin): Remove middle range reduction case.
18082 (__cos): Likewise.
18083 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
18084 reduction case.
18085
18086 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18087
18088 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
18089 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
18090 inputs.
18091 (__cos): Likewise.
18092 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
18093
18094 2018-04-03 Joseph Myers <joseph@codesourcery.com>
18095
18096 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
18097 version to 4.16
18098
18099 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18100
18101 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
18102 Remove definitions.
18103 (opendir_oflags): Use O_DIRECTORY regardless.
18104 (__opendir, __opendirat): Remove need_isdir_precheck usage.
18105 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
18106
18107 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
18108
18109 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
18110 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
18111 macros.
18112 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
18113 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
18114 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
18115 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
18116 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
18117 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
18118
18119 * htl/Makefile: Bump licence to LGPL 2.1+.
18120 * htl/alloca_cutoff.c: Likewise.
18121 * htl/cthreads-compat.c: Likewise.
18122 * htl/lockfile.c: Likewise.
18123 * htl/pt-alloc.c: Likewise.
18124 * htl/pt-cancel.c: Likewise.
18125 * htl/pt-cleanup.c: Likewise.
18126 * htl/pt-create.c: Likewise.
18127 * htl/pt-dealloc.c: Likewise.
18128 * htl/pt-detach.c: Likewise.
18129 * htl/pt-exit.c: Likewise.
18130 * htl/pt-getattr.c: Likewise.
18131 * htl/pt-initialize.c: Likewise.
18132 * htl/pt-internal.h: Likewise.
18133 * htl/pt-join.c: Likewise.
18134 * htl/pt-self.c: Likewise.
18135 * htl/pt-setcancelstate.c: Likewise.
18136 * htl/pt-setcanceltype.c: Likewise.
18137 * htl/pt-sigmask.c: Likewise.
18138 * htl/pt-spin-inlines.c: Likewise.
18139 * htl/pt-testcancel.c: Likewise.
18140 * htl/pt-yield.c: Likewise.
18141 * htl/tests/test-1.c: Likewise.
18142 * htl/tests/test-10.c: Likewise.
18143 * htl/tests/test-11.c: Likewise.
18144 * htl/tests/test-12.c: Likewise.
18145 * htl/tests/test-13.c: Likewise.
18146 * htl/tests/test-14.c: Likewise.
18147 * htl/tests/test-15.c: Likewise.
18148 * htl/tests/test-16.c: Likewise.
18149 * htl/tests/test-17.c: Likewise.
18150 * htl/tests/test-2.c: Likewise.
18151 * htl/tests/test-3.c: Likewise.
18152 * htl/tests/test-4.c: Likewise.
18153 * htl/tests/test-5.c: Likewise.
18154 * htl/tests/test-6.c: Likewise.
18155 * htl/tests/test-7.c: Likewise.
18156 * htl/tests/test-8.c: Likewise.
18157 * htl/tests/test-9.c: Likewise.
18158 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
18159 * sysdeps/htl/bits/cancelation.h: Likewise.
18160 * sysdeps/htl/bits/pthread-np.h: Likewise.
18161 * sysdeps/htl/bits/pthread.h: Likewise.
18162 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
18163 * sysdeps/htl/bits/semaphore.h: Likewise.
18164 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
18165 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
18166 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
18167 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
18168 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
18169 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
18170 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
18171 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
18172 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
18173 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
18174 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
18175 * sysdeps/htl/old_pt-atfork.c: Likewise.
18176 * sysdeps/htl/pt-atfork.c: Likewise.
18177 * sysdeps/htl/pt-attr-destroy.c: Likewise.
18178 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
18179 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
18180 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
18181 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
18182 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
18183 * sysdeps/htl/pt-attr-getscope.c: Likewise.
18184 * sysdeps/htl/pt-attr-getstack.c: Likewise.
18185 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
18186 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
18187 * sysdeps/htl/pt-attr-init.c: Likewise.
18188 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
18189 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
18190 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
18191 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
18192 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
18193 * sysdeps/htl/pt-attr-setscope.c: Likewise.
18194 * sysdeps/htl/pt-attr-setstack.c: Likewise.
18195 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
18196 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
18197 * sysdeps/htl/pt-attr.c: Likewise.
18198 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
18199 * sysdeps/htl/pt-barrier-init.c: Likewise.
18200 * sysdeps/htl/pt-barrier-wait.c: Likewise.
18201 * sysdeps/htl/pt-barrier.c: Likewise.
18202 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
18203 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
18204 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
18205 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
18206 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
18207 * sysdeps/htl/pt-cond-destroy.c: Likewise.
18208 * sysdeps/htl/pt-cond-init.c: Likewise.
18209 * sysdeps/htl/pt-cond-signal.c: Likewise.
18210 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
18211 * sysdeps/htl/pt-cond-wait.c: Likewise.
18212 * sysdeps/htl/pt-cond.c: Likewise.
18213 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
18214 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
18215 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
18216 * sysdeps/htl/pt-condattr-init.c: Likewise.
18217 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
18218 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
18219 * sysdeps/htl/pt-destroy-specific.c: Likewise.
18220 * sysdeps/htl/pt-equal.c: Likewise.
18221 * sysdeps/htl/pt-getconcurrency.c: Likewise.
18222 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
18223 * sysdeps/htl/pt-getschedparam.c: Likewise.
18224 * sysdeps/htl/pt-getspecific.c: Likewise.
18225 * sysdeps/htl/pt-init-specific.c: Likewise.
18226 * sysdeps/htl/pt-key-create.c: Likewise.
18227 * sysdeps/htl/pt-key-delete.c: Likewise.
18228 * sysdeps/htl/pt-key.h: Likewise.
18229 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
18230 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
18231 * sysdeps/htl/pt-mutex-init.c: Likewise.
18232 * sysdeps/htl/pt-mutex-lock.c: Likewise.
18233 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
18234 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
18235 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
18236 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
18237 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
18238 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
18239 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
18240 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
18241 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
18242 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
18243 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
18244 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
18245 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
18246 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
18247 * sysdeps/htl/pt-mutexattr.c: Likewise.
18248 * sysdeps/htl/pt-once.c: Likewise.
18249 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
18250 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
18251 * sysdeps/htl/pt-rwlock-init.c: Likewise.
18252 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
18253 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
18254 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
18255 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
18256 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
18257 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
18258 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
18259 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
18260 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
18261 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
18262 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
18263 * sysdeps/htl/pt-setconcurrency.c: Likewise.
18264 * sysdeps/htl/pt-setschedparam.c: Likewise.
18265 * sysdeps/htl/pt-setschedprio.c: Likewise.
18266 * sysdeps/htl/pt-setspecific.c: Likewise.
18267 * sysdeps/htl/pt-spin.c: Likewise.
18268 * sysdeps/htl/pt-startup.c: Likewise.
18269 * sysdeps/htl/pthread.h: Likewise.
18270 * sysdeps/htl/sem-close.c: Likewise.
18271 * sysdeps/htl/sem-destroy.c: Likewise.
18272 * sysdeps/htl/sem-getvalue.c: Likewise.
18273 * sysdeps/htl/sem-init.c: Likewise.
18274 * sysdeps/htl/sem-open.c: Likewise.
18275 * sysdeps/htl/sem-post.c: Likewise.
18276 * sysdeps/htl/sem-timedwait.c: Likewise.
18277 * sysdeps/htl/sem-trywait.c: Likewise.
18278 * sysdeps/htl/sem-unlink.c: Likewise.
18279 * sysdeps/htl/sem-wait.c: Likewise.
18280 * sysdeps/hurd/htl/pt-kill.c: Likewise.
18281 * sysdeps/i386/htl/pt-machdep.h: Likewise.
18282 * sysdeps/mach/htl/pt-block.c: Likewise.
18283 * sysdeps/mach/htl/pt-spin.c: Likewise.
18284 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
18285 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
18286 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
18287 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
18288 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
18289 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
18290 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
18291 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
18292 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
18293 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
18294 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
18295 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
18296 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
18297 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
18298 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
18299 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
18300 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
18301 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
18302 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
18303 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
18304 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
18305 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
18306 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
18307 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
18308 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
18309 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
18310 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
18311 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
18312 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
18313 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
18314 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
18315 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
18316 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
18317 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
18318 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
18319 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
18320 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
18321 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
18322 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
18323 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
18324 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
18325 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
18326 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
18327
18328 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
18329 * README: Remove the mention of out-of-tree patches needed for
18330 GNU/Hurd.
18331
18332 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
18333 (UTIME_NOW, UTIME_OMIT): Define macros.
18334
18335 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
18336 instead of pthread_detach.
18337 (__cthread_fork): Call __pthread_create instead of pthread_create.
18338 (__cthread_keycreate): Call __pthread_key_create instead of
18339 pthread_key_create.
18340 (__cthread_getspecific): Call __pthread_getspecific instead of
18341 pthread_getspecific.
18342 (__cthread_setspecific): Call __pthread_setspecific instead of
18343 pthread_setspecific.
18344 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
18345 __pthread_mutex_unlock instead of pthread_mutex_lock and
18346 pthread_mutex_unlock.
18347 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
18348 ___pthread_get_cleanup_stack.
18349 (__pthread_get_cleanup_stack): New strong alias.
18350 * htl/pt-create.c: Include <pthreadP.h>.
18351 (entry_point): Call __pthread_exit instead of pthread_exit.
18352 (pthread_create): Rename to __pthread_create.
18353 (pthread_create): New strong alias.
18354 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
18355 (pthread_detach): New strong alias.
18356 (__pthread_detach): Call __pthread_cond_broadcast instead of
18357 pthread_cond_broadcast.
18358 * htl/pt-exit.c: Include <pthreadP.h>.
18359 (__pthread_exit): Call __pthread_setcancelstate and
18360 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
18361 __pthread_get_cleanup_stack.
18362 * htl/pt-testcancel.c: Include <pthreadP.h>.
18363 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
18364 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
18365 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
18366 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
18367 pthread_attr_getstacksize.
18368 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
18369 Rename to __pthread_attr_getstackaddr.
18370 (pthread_attr_getstackaddr): New strong alias.
18371 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
18372 Rename to __pthread_attr_getstacksize.
18373 (pthread_attr_getstacksize): New strong alias.
18374 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
18375 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
18376 (pthread_attr_setstack): New strong alias.
18377 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
18378 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
18379 pthread_attr_getstacksize, pthread_attr_setstacksize and
18380 pthread_attr_setstackaddr.
18381 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
18382 Rename to __pthread_attr_setstackaddr.
18383 (pthread_attr_setstackaddr): New strong alias.
18384 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
18385 Rename to __pthread_attr_setstacksize.
18386 (pthread_attr_setstacksize): New strong alias.
18387 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
18388 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
18389 pthread_exit.
18390 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
18391 (__pthread_key_create): New hidden def.
18392 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
18393 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
18394 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
18395 __pthread_exit, __pthread_key_create, __pthread_getspecific,
18396 __pthread_setspecific, __pthread_setcancelstate,
18397 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
18398 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
18399 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
18400 declarations.
18401 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
18402 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
18403 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
18404 (pthread_attr_setstackaddr): New strong alias.
18405 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
18406 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
18407 (pthread_attr_setstacksize): New strong alias.
18408 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
18409 (call_exit): Call __pthread_exit instead of pthread_exit.
18410 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
18411 (_pthread_mutex_init): New hidden definition.
18412 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
18413 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
18414 instead of pthread_attr_init and pthread_attr_setstack.
18415
18416 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
18417 __vm_deallocate instead of vm_allocate and vm_deallocate.
18418 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
18419 setenv.
18420 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
18421 of geteuid.
18422 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
18423 strdup.
18424 * hurd/siginfo.c: Include <libioP.h>.
18425 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
18426 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
18427 munmap.
18428 * mach/devstream.c: Include <libioP.h>.
18429 (dealloc_ref): Call __mach_port_deallocate instead of
18430 mach_port_deallocate.
18431 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
18432 Call __mach_port_deallocate instead of mach_port_deallocate.
18433 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
18434 pathconf.
18435 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
18436 munmap.
18437 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
18438 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
18439 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
18440 of munmap.
18441 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
18442 of close.
18443 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
18444 instead of sysconf.
18445 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
18446 __clock_gettime instead of clock_gettime.
18447 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
18448 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
18449 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
18450 * sysdeps/unix/bsd/stty.c (stty): Likewise.
18451 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
18452 tcgetattr.
18453 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
18454 __clock_gettime and __nanosleep instead of clock_gettime and
18455 nanosleep.
18456 * hurd/catch-signal.c (hurd_catch_signal): Rename to
18457 __hurd_catch_signal.
18458 (hurd_catch_signal): New strong alias.
18459 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
18460 __hurd_catch_signal instead of hurd_catch_signal.
18461 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
18462 * hurd/hurdexec.c (_hurd_init): Add hidden def.
18463 * hurd/hurdinit.c (_hurd_init): Add hidden def.
18464 * hurd/hurdsig.c: Include <mach/mig_support.h>.
18465 (_hurd_thread_sigstate): Add hidden def.
18466 (_hurd_internal_post_signal): Use __mutex_unlock instead of
18467 mutex_unlock.
18468 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
18469 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
18470 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
18471 __hurd_file_name_path_lookup.
18472 (hurd_file_name_path_lookup): New strong alias.
18473 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
18474 hurd_file_name_path_lookup.
18475 * mach/errstring.c (mach_error_type): Add hidden def.
18476 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
18477 * mach/mutex-init.c (__mutex_init): Add hidden def.
18478 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
18479 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
18480 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
18481 * sysdeps/mach/hurd/getcwd.c
18482 (_hurd_canonicalize_directory_name_internal): Rename to
18483 __hurd_canonicalize_directory_name_internal.
18484 (_hurd_canonicalize_directory_name_internal): New strong alias.
18485 (__canonicalize_directory_name_internal, __getcwd): Call
18486 __hurd_canonicalize_directory_name_internal instead of
18487 _hurd_canonicalize_directory_name_internal.
18488 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
18489 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
18490 hidden defs.
18491 * sysdeps/hurd/include/hurd.h: New file.
18492 * sysdeps/hurd/include/hurd/fd.h: New file.
18493 * sysdeps/hurd/include/hurd/signal.h: New file.
18494 * sysdeps/mach/include/lock-intern.h: New file.
18495 * sysdeps/mach/include/mach.h: New file.
18496 * sysdeps/mach/include/mach/mig_support.h: New file.
18497 * sysdeps/mach/include/mach_error.h: New file.
18498 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
18499 prototype.
18500 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
18501 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
18502 _HEADER_H_HIDDEN_DEF macro.
18503 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
18504 _hurd_fd_error_signal): Add hidden prototype.
18505 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
18506 hidden def.
18507 * libio/iolibio.h (_IO_puts): New hidden prototype.
18508 * libio/ioputs.c (_IO_puts): New hidden def.
18509 * sysdeps/mach/hurd/localplt.data: New file.
18510
18511 2018-04-02 Agustina Arzille <avarzille@riseup.net>
18512 Amos Jeffries <squid3@treenet.co.nz>
18513 David Michael <fedora.dm0@gmail.com>
18514 Marco Gerards <marco@gnu.org>
18515 Marcus Brinkmann <marcus@gnu.org>
18516 Neal H. Walfield <neal@gnu.org>
18517 Pino Toscano <toscano.pino@tiscali.it>
18518 Richard Braun <rbraun@sceen.net>
18519 Roland McGrath <roland@gnu.org>
18520 Samuel Thibault <samuel.thibault@ens-lyon.org>
18521 Thomas DiModica <ricinwich@yahoo.com>
18522 Thomas Schwinge <tschwinge@gnu.org>
18523
18524 * htl: New directory.
18525 * sysdeps/htl: New directory.
18526 * sysdeps/hurd/htl: New directory.
18527 * sysdeps/i386/htl: New directory.
18528 * sysdeps/mach/htl: New directory.
18529 * sysdeps/mach/hurd/htl: New directory.
18530 * sysdeps/mach/hurd/i386/htl: New directory.
18531 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
18532 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
18533 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
18534
18535 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
18536
18537 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
18538 signals in thread created for runing timers.
18539
18540 2018-04-01 Florian Weimer <fweimer@redhat.com>
18541
18542 * support/support_format_addrinfo.c (support_format_addrinfo):
18543 Include unknown error number in formatted result.
18544
18545 2018-03-29 Florian Weimer <fweimer@redhat.com>
18546
18547 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
18548 capture SIGBUS.
18549
18550 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18551
18552 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
18553 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
18554 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
18555 (__ASSUME_CLONE_BACKWARDS): Define.
18556
18557 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
18558
18559 [BZ #23024]
18560 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
18561 early when linux sentinel value is set.
18562
18563 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
18564
18565 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
18566
18567 2018-03-27 Andreas Schwab <schwab@suse.de>
18568
18569 [BZ #23005]
18570 * resolv/res_send.c (__res_context_send): Return ENOMEM if
18571 allocation of private copy of nsaddr_list fails.
18572
18573 2018-03-26 Joseph Myers <joseph@codesourcery.com>
18574
18575 [BZ #16552]
18576 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
18577 * sysdeps/unix/sysv/linux/umount.c: ... here.
18578 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
18579 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
18580 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
18581 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
18582 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
18583 * sysdeps/unix/sysv/linux/umount.S: Likewise.
18584 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
18585
18586 2018-03-26 Andreas Schwab <schwab@suse.de>
18587
18588 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
18589 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
18590 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
18591 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
18592 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
18593 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
18594 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
18595 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
18596 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
18597 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
18598 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
18599 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
18600 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
18601 (R_RISCV_NUM): Define.
18602
18603 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
18604
18605 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
18606 TLS declaration of errno.
18607 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
18608 __libc_setup_tls.
18609 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
18610 (ARCH_SETUP_TLS): Likewise.
18611 * sysdeps/mach/hurd/libc-start.h: New file copied from
18612 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
18613 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
18614 instead of __libc_setup_tls.
18615 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
18616 __libc_setup_tls before initializing libpthread and running _hurd_init
18617 which starts the signal thread.
18618 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
18619 Declare function.
18620 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
18621
18622 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
18623
18624 [BZ #22998]
18625 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
18626 after it is defined.
18627
18628 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
18629 Max Horn <max@quendi.de>
18630
18631 [BZ #22644]
18632 CVE-2017-18269
18633 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
18634 branch conditions.
18635 * string/test-memmove.c (do_test2): New testcase.
18636
18637 2018-03-22 Joseph Myers <joseph@codesourcery.com>
18638
18639 * sysdeps/generic/frame.h: Remove file.
18640 * sysdeps/arm/frame.h: Likewise.
18641 * sysdeps/hppa/frame.h: Likewise.
18642 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
18643 macro.
18644 (GET_FRAME): Likewise.
18645 (GET_STACK): Likewise.
18646 (CALL_SIGHANDLER): Likewise.
18647 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
18648 Likewise.
18649 (GET_FRAME): Likewise.
18650 (GET_STACK): Likewise.
18651 (CALL_SIGHANDLER): Likewise.
18652 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
18653 (SIGCONTEXT_EXTRA_ARGS): Likewise.
18654 (GET_FRAME): Likewise.
18655 (GET_STACK): Likewise.
18656 (CALL_SIGHANDLER): Likewise.
18657 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
18658 (SIGCONTEXT_EXTRA_ARGS): Likewise.
18659 (GET_FRAME): Likewise.
18660 (GET_STACK): Likewise.
18661 (ADVANCE_STACK_FRAME): Likewise.
18662 (CALL_SIGHANDLER): Likewise.
18663 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
18664 (SIGCONTEXT_EXTRA_ARGS): Likewise.
18665 (GET_FRAME): Likewise.
18666 (GET_STACK): Likewise.
18667 (CALL_SIGHANDLER): Likewise.
18668 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
18669 (SIGCONTEXT_EXTRA_ARGS): Likewise.
18670 (GET_FRAME): Likewise.
18671 (GET_STACK): Likewise.
18672 (CALL_SIGHANDLER): Likewise.
18673 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
18674 (SIGCONTEXT_EXTRA_ARGS): Likewise.
18675 (GET_FRAME): Likewise.
18676 (GET_STACK): Likewise.
18677 (CALL_SIGHANDLER): Likewise.
18678 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
18679 (SIGCONTEXT_EXTRA_ARGS): Likewise.
18680 (GET_FRAME): Likewise.
18681 (GET_STACK): Likewise.
18682 (CALL_SIGHANDLER): Likewise.
18683 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
18684 (SIGCONTEXT_EXTRA_ARGS): Likewise.
18685 (GET_FRAME): Likewise.
18686 (GET_STACK): Likewise.
18687 (CALL_SIGHANDLER): Likewise.
18688 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
18689 (SIGCONTEXT_EXTRA_ARGS): Likewise.
18690 (GET_FRAME): Likewise.
18691 (GET_STACK): Likewise.
18692 (CALL_SIGHANDLER): Likewise.
18693 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
18694 (SIGCONTEXT_EXTRA_ARGS): Likewise.
18695 (GET_FRAME): Likewise.
18696 (GET_STACK): Likewise.
18697 (CALL_SIGHANDLER): Likewise.
18698 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
18699 (SIGCONTEXT_EXTRA_ARGS): Likewise.
18700 (GET_FRAME): Likewise.
18701 (GET_STACK): Likewise.
18702 (CALL_SIGHANDLER): Likewise.
18703 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
18704 (SIGCONTEXT_EXTRA_ARGS): Likewise.
18705 (GET_FRAME): Likewise.
18706 (GET_STACK): Likewise.
18707 (CALL_SIGHANDLER): Likewise.
18708 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
18709 (SIGCONTEXT_EXTRA_ARGS): Likewise.
18710 (FIRST_FRAME_POINTER): Likewise.
18711 (ADVANCE_STACK_FRAME): Likewise.
18712 (GET_STACK): Likewise.
18713 (GET_FRAME): Likewise.
18714 (CALL_SIGHANDLER): Likewise.
18715 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
18716 (SIGCONTEXT_EXTRA_ARGS): Likewise.
18717 (ADVANCE_STACK_FRAME): Likewise.
18718 (GET_STACK): Likewise.
18719 (GET_FRAME): Likewise.
18720 (CALL_SIGHANDLER): Likewise.
18721 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
18722 (SIGCONTEXT_EXTRA_ARGS): Likewise.
18723 (GET_FRAME): Likewise.
18724 (GET_STACK): Likewise.
18725 (CALL_SIGHANDLER): Likewise.
18726 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
18727 (SIGCONTEXT_EXTRA_ARGS): Likewise.
18728 (GET_FRAME): Likewise.
18729 (GET_STACK): Likewise.
18730 (CALL_SIGHANDLER): Likewise.
18731
18732 2018-03-21 Joseph Myers <joseph@codesourcery.com>
18733
18734 * sysdeps/x86_64/backtrace.c: Move to ....
18735 * debug/backtrace.c: ... here.
18736 * sysdeps/aarch64/backtrace.c: Remove file.
18737 * sysdeps/alpha/backtrace.c: Likewise.
18738 * sysdeps/hppa/backtrace.c: Likewise.
18739 * sysdeps/ia64/backtrace.c: Likewise.
18740 * sysdeps/mips/backtrace.c: Likewise.
18741 * sysdeps/nios2/backtrace.c: Likewise.
18742 * sysdeps/riscv/backtrace.c: Likewise.
18743 * sysdeps/sh/backtrace.c: Likewise.
18744 * sysdeps/tile/backtrace.c: Likewise.
18745
18746 2018-03-20 Joseph Myers <joseph@codesourcery.com>
18747
18748 [BZ #22987]
18749 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
18750 function.
18751 (fdimf): Likewise.
18752 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
18753
18754 [BZ #17343]
18755 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
18756 possibly overflowing computations.
18757
18758 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
18759
18760 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
18761 values from Linux-specific section now that it is in the GNU section.
18762 * sysdeps/gnu/errlist.c: Regenerate.
18763
18764 2018-03-20 Joseph Myers <joseph@codesourcery.com>
18765
18766 * math/Makefile (libm-narrow-fns): Add sub.
18767 (libm-test-funcs-narrow): Likewise.
18768 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
18769 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
18770 * math/gen-auto-libm-tests.c (test_functions): Add sub.
18771 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
18772 (NARROW_SUB_ROUND_TO_ODD): Likewise.
18773 (NARROW_SUB_TRIVIAL): Likewise.
18774 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
18775 macro.
18776 (__dsubl): Likewise.
18777 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
18778 dsub.
18779 (CFLAGS-nldbl-dsub.c): New variable.
18780 (CFLAGS-nldbl-fsub.c): Likewise.
18781 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
18782 __nldbl_dsubl.
18783 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
18784 prototype.
18785 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
18786 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
18787 * math/auto-libm-test-in: Add tests of sub.
18788 * math/auto-libm-test-out-narrow-sub: New generated file.
18789 * math/libm-test-narrow-sub.inc: New file.
18790 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
18791 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
18792 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
18793 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
18794 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
18795 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
18796 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
18797 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
18798 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
18799 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
18800 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
18801 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
18802 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
18803 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
18804 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
18805 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
18806 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
18807 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
18808 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18809 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
18810 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18811 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18812 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18813 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18814 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18815 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18816 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18817 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18818 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18819 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18820 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18821 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18822 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
18823 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
18824 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
18825 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
18826 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
18827 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18828 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18829 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18830 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18831 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18832 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
18833 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
18834 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18835 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18836
18837 2018-03-19 Joseph Myers <joseph@codesourcery.com>
18838
18839 [BZ #20079]
18840 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
18841
18842 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
18843
18844 * benchtests/bench-timing.h (attribute_hidden): Undefine.
18845
18846 2018-03-18 Richard Braun <rbraun@sceen.net>
18847
18848 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
18849 thread reference.
18850
18851 2018-03-18 Agustina Arzille <avarzille@riseup.net>
18852
18853 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
18854 (__libc_cleanup_fct): Define function.
18855 (__libc_cleanup_region_start, __libc_cleanup_region_end,
18856 __libc_cleanup_end): Rewrite implementation using
18857 __attribute__ ((__cleanup__)).
18858 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
18859 * hurd/Makefile (routines): Add hurdlock.
18860 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
18861 interface.
18862 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
18863 * hurd/hurdpid.c: Include <lowlevellock.h>
18864 (_S_msg_proc_newids): Use lll_wait to synchronize.
18865 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
18866 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
18867 * mach/Makefile (lock-headers): Remove machine-lock.h.
18868 * mach/lock-intern.h: Include <lowlevellock.h> instead of
18869 <machine-lock.h>.
18870 (__spin_lock_t): New type.
18871 (__SPIN_LOCK_INITIALIZER): New macro.
18872 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
18873 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
18874 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
18875 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
18876 (__mutex_init): Initialize with lll.
18877 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
18878 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
18879 needing lll.
18880 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
18881 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
18882 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
18883 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
18884 (__setpgid): Use lll for synchronization.
18885 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
18886 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
18887 instead of <cthreads.h>.
18888 (_IO_lock_inexpensive): New macro
18889 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
18890 (__libc_lock_self0): New declaration.
18891 (__libc_lock_owner_self): New macro.
18892 (__libc_key_t): Remove type.
18893 (_LIBC_LOCK_INITIALIZER): New macro.
18894 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
18895 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
18896 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
18897 __libc_lock_define_initialized_recursive,
18898 __rtld_lock_define_initialized_recursive,
18899 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
18900 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
18901 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
18902 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
18903 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
18904 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
18905 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
18906 New macros.
18907 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
18908 * hurd/hurdlock.c: New file.
18909 * hurd/hurdlock.h: New file.
18910 * mach/lowlevellock.h: New file
18911
18912 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
18913
18914 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
18915 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
18916 when opening a symlink with O_NOFOLLOW.
18917 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
18918 path when flags contains O_NOFOLLOW.
18919 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
18920 if flags contains O_DIRECTORY and the result is a directory.
18921 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
18922 oneself when the pointer given in D is nul (as set by ext2fs).
18923 * sysdeps/mach/hurd/mlockall.c: New file.
18924 * sysdeps/mach/hurd/munlockall.c: New file.
18925
18926 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
18927
18928 * hurd/hurdsig.c: Include <pthread.h>.
18929 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
18930 get the signal thread stack layout.
18931 * hurd/Makefile (headers): Remove threadvar.h.
18932 (inline-headers): Remove threadvar.h.
18933 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
18934 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
18935 __hurd_threadvar_max, __hurd_errno_location.
18936 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
18937 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
18938 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
18939 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
18940 unless TLS is not initialized yet, in which case we do not need a
18941 critical section yet anyway.
18942 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
18943 <machine-sp.h>.
18944 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
18945 declarations.
18946 (__hurd_threadvar_index): Remove enum.
18947 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
18948 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
18949 inlines.
18950 (__hurd_reply_port0): New variable declaration.
18951 (__hurd_local_reply_port): New macro.
18952 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
18953 (interrupted_reply_port_location): Add thread_t parameter. Use it
18954 with THREAD_TCB to access thread-local variables.
18955 (_hurdsig_abort_rpcs): Pass ss->thread to
18956 interrupted_reply_port_location.
18957 (_hurd_internal_post_signal): Likewise.
18958 (_hurdsig_init): Use presence of cthread_fork instead of
18959 __hurd_threadvar_stack_mask to start signal thread by hand.
18960 Remove signal thread threadvar initialization.
18961 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
18962 * hurd/sigunwind.c: Include <hurd/threadvar.h>
18963 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
18964 of threadvar.
18965 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
18966 __libc_lock_self0.
18967 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
18968 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
18969 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
18970 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
18971 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
18972 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
18973 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
18974 define variables.
18975 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
18976 <hurd/threadvar.h>.
18977 [IS_IN(rtld)] (rtld_errno): New variable.
18978 [IS_IN(rtld)] (__errno_location): New weak function.
18979 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
18980 * sysdeps/mach/hurd/errno.c: Remove file.
18981 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
18982 (__fork): Remove THREADVAR_SPACE macro and its use.
18983 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
18984 variable.
18985 (init): Do not initialize threadvar.
18986 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
18987 symbol.
18988 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
18989 __hurd_local_reply_port instead of threadvar.
18990 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
18991 _hurd_sigstate fields.
18992 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
18993 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
18994 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
18995 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
18996 instead of threadvar.
18997 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
18998 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
18999 (use_threadvar, global_reply_port): Remove variables.
19000 (__hurd_reply_port0): New variable.
19001 (__mig_get_reply_port): Use __hurd_local_reply_port and
19002 __hurd_reply_port0 instead of threadvar.
19003 (__mig_dealloc_reply_port): Likewise.
19004 (__mig_init): Do not initialize threadvar.
19005 * sysdeps/mach/hurd/profil.c: Fix comment.
19006 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
19007 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
19008 cthread_keycreate, cthread_getspecific, cthread_setspecific to
19009 __cthread_fork, __cthread_detach, __pthread_getattr_np,
19010 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
19011 __cthread_setspecific.
19012 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
19013 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
19014 __cthread_t instead of cthread_fork, cthread_detach,
19015 pthread_getattr_np, pthread_attr_getstack.
19016 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
19017 __cthread_keycreate.
19018 (cthread_getspecific): Rename to __cthread_getspecific.
19019 (cthread_setspecific): Rename to __cthread_setspecific.
19020 (__libc_getspecific): Use __cthread_getspecific instead of
19021 cthread_getspecific.
19022 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
19023 __cthread_keycreate instead of cthread_keycreate.
19024 (__libc_setspecific): Use __cthread_setspecific instead of
19025 cthread_setspecific.
19026 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
19027 Likewise.
19028 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
19029 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
19030 testing whether it is defined.
19031
19032 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
19033
19034 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
19035 Define macro.
19036 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
19037 * sysdeps/mach/i386/thread_state.h
19038 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
19039 i386_THREAD_STATE.
19040 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
19041 i386_THREAD_STATE.
19042 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
19043
19044 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
19045 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
19046
19047 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
19048 macros.
19049 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
19050 descriptor instead of creating a new one.
19051 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
19052
19053 * mach/setup-thread.c: Include <ldsodefs.h>.
19054 (__mach_setup_thread): Call _dl_allocate_tls, pass
19055 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
19056 MACHINE_THREAD_STATE_FLAVOR, before getting
19057 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
19058 MACHINE_THREAD_STATE_FLAVOR with the result.
19059 * hurd/hurdfault.c (_hurdsig_fault_init): Call
19060 MACHINE_THREAD_STATE_FIX_NEW.
19061 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
19062 too. Add original thread parameter.
19063
19064 2018-03-16 Joseph Myers <joseph@codesourcery.com>
19065
19066 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
19067 Remove inline function.
19068
19069 * sysdeps/i386/fpu/libm-test-ulps: Update.
19070 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19071
19072 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
19073
19074 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
19075 commit.
19076
19077 2018-03-15 Joseph Myers <joseph@codesourcery.com>
19078
19079 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
19080 (__sincos_code): Remove define and undefine.
19081 [__FAST_MATH__] (__sincos): Remove inline function.
19082 [__FAST_MATH__] (__sincosf): Remove inline function.
19083 [__FAST_MATH__] (__sincosl): Remove inline function.
19084 (__atan2l): Remove inline functions.
19085 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
19086 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
19087 function.
19088 (floor): Remove inline function.
19089 (ceil): Likewise.
19090 [__FAST_MATH__] (__ldexp_code): Remove macro.
19091 [__FAST_MATH__] (ldexp): Remove inline function.
19092 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
19093 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
19094 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
19095 [__USE_ISOC99] (__lrint_code): Remove macro.
19096 [__USE_ISOC99] (__llrint_code): Likewise.
19097 [__USE_ISOC99] (lrintf): Remove inline function.
19098 [__USE_ISOC99] (lrint): Likewise.
19099 [__USE_ISOC99] (lrintl): Likewise.
19100 [__USE_ISOC99] (llrint): Likewise.
19101 [__USE_ISOC99] (llrintf): Likewise.
19102 [__USE_ISOC99] (llrintl): Likewise.
19103
19104 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
19105
19106 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
19107 (__ieee754_sqrtf): Remove.
19108 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
19109 (__ieee754_sqrtf): Remove.
19110 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
19111 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
19112 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
19113 (__ieee754_sqrtf): Remove.
19114 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
19115 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
19116 (sqrtf): Remove.
19117 (sqrtl): Remove.
19118 (__ieee754_sqrt): Remove.
19119 (__ieee754_sqrtf): Remove.
19120 (__ieee754_sqrtl): Remove.
19121 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
19122 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
19123 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
19124 (__ieee754_sqrtf): Remove.
19125 (__ieee754_sqrtl): Remove.
19126
19127 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
19128
19129 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
19130 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
19131 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
19132 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
19133 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
19134 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
19135 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
19136 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
19137 Likewise.
19138 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
19139 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
19140 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
19141 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
19142 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
19143 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
19144 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
19145 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
19146 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
19147 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
19148 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
19149 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
19150 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
19151 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
19152 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
19153 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
19154 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
19155 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
19156 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
19157 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
19158 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
19159 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
19160 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
19161 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
19162 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
19163 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
19164 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
19165 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
19166 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
19167 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
19168 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
19169 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
19170 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
19171 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
19172 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
19173 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
19174 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
19175 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
19176 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
19177 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
19178
19179 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
19180
19181 * include/math.h (sqrt): Declare with asm redirect.
19182 (sqrtf): Likewise.
19183 (sqrtl): Likewise.
19184 (sqrtf128): Likewise.
19185 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
19186 nonlib and libnldbl with -fmath-errno.
19187 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
19188 * math/w_sqrt_template.c: Likewise.
19189 * math/w_sqrtf_compat.c: Likewise.
19190 * math/w_sqrtl_compat.c: Likewise.
19191 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
19192 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
19193 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
19194 complex.h.
19195
19196 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
19197
19198 * benchtests/Makefile: Define _ISOMAC.
19199 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
19200 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
19201 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
19202 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
19203 * benchtests/bench-timing.h: Define attribute_hidden.
19204
19205 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
19206
19207 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
19208 mov + lsr.
19209
19210 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
19211
19212 [BZ #22963]
19213 * localedata/locales/cs_CZ (mon): Rename to...
19214 (alt_mon): This.
19215 (mon): Import from CLDR (genitive case).
19216
19217 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
19218
19219 [BZ #22937]
19220 * localedata/locales/el_CY (abmon): Rename to...
19221 (ab_alt_mon): This.
19222 (abmon): Import from CLDR (abbreviated genitive case).
19223 * localedata/locales/el_GR (abmon): Rename to...
19224 (ab_alt_mon): This.
19225 (abmon): Import from CLDR (abbreviated genitive case).
19226
19227 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
19228
19229 [BZ #22932]
19230 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
19231
19232 2018-03-15 Robert Buj <robert.buj@gmail.com>
19233
19234 [BZ #22848]
19235 * localedata/locales/ca_ES (abmon): Rename to...
19236 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
19237 (mon): Rename to...
19238 (alt_mon): This.
19239 (abmon): Import from CLDR (genitive case, month names preceded by
19240 "de" or "d’").
19241 (mon): Likewise.
19242 (abday): Synchronize with CLDR.
19243 (d_t_fmt): Likewise.
19244 (d_fmt): Likewise.
19245 (am_pm): Likewise.
19246
19247 (LC_TIME): Improve indentation.
19248 (LC_TELEPHONE): Likewise.
19249 (LC_NAME): Likewise.
19250 (LC_ADDRESS): Likewise.
19251
19252 2018-03-14 Joseph Myers <joseph@codesourcery.com>
19253
19254 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
19255 (lrintf): Remove definitions used only with old GCC.
19256 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
19257 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
19258 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
19259 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
19260 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
19261 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
19262 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
19263 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
19264 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
19265 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
19266 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
19267 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
19268 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
19269 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
19270 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
19271 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
19272 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
19273 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
19274 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
19275 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
19276 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
19277 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
19278 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
19279 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
19280 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
19281 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
19282 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
19283 [__FAST_MATH__] (__M_SQRT2): Remove macro.
19284
19285 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
19286
19287 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
19288 instruction to unbreak builds with binutils 2.26 and older.
19289
19290 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
19291
19292 * sysdeps/aarch64/strncmp.S (count): New macro.
19293 (strncmp): Store misaligned length in SRC1 in COUNT.
19294 (mutual_align): Adjust.
19295 (misaligned8): Load dword at a time when it is safe.
19296
19297 2018-03-12 Zack Weinberg <zackw@panix.com>
19298
19299 [BZ #1190]
19300 [BZ #19476]
19301 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
19302 if the _IO_EOF_SEEN bit is already set; update commentary.
19303 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
19304 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
19305
19306 * support/support_openpty.c, support/tty.h: New files.
19307 * support/Makefile (libsupport-routines): Add support_openpty.
19308
19309 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
19310 New test cases.
19311 * libio/Makefile (tests): Add tst-fgetc-after-eof.
19312 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
19313
19314 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
19315
19316 * po/pt_BR.po: Update translations.
19317
19318 2018-03-12 David Michael <fedora.dm0@gmail.com>
19319
19320 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
19321 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
19322 get a port to the startup server.
19323
19324 2018-03-11 Zack Weinberg <zackw@panix.com>
19325
19326 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
19327 before nldbl-compat.h.
19328
19329 2018-03-10 Zack Weinberg <zackw@panix.com>
19330
19331 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
19332 math.h or math_private.h.
19333
19334 * sysdeps/alpha/fpu/s_isnan.c
19335 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
19336 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
19337 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
19338 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
19339 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
19340 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
19341 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
19342 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
19343 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
19344 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
19345 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
19346 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
19347 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
19348 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
19349 Include math_private.h.
19350
19351 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
19352 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
19353 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
19354 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
19355 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
19356 * sysdeps/powerpc/power7/fpu/s_logb.c:
19357 Include math.h and math_private.h.
19358
19359 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
19360 uses of $at in .set noat / .set at.
19361
19362 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
19363
19364 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
19365 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
19366 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
19367 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
19368 Likewise.
19369
19370 2018-03-09 Florian Weimer <fweimer@redhat.com>
19371
19372 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
19373 in comment.
19374
19375 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
19376
19377 [BZ #22919]
19378 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
19379 Add nop before __startcontext, add explaining comments.
19380
19381 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19382
19383 [BZ #22926]
19384 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
19385 empty for __SPE__.
19386 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
19387 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
19388 Do not build hardware transactional code for __SPE__.
19389 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
19390 (__lll_trylock_elision): Likewise.
19391 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
19392 (__lll_unlock_elision): Likewise.
19393
19394 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
19395 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
19396 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
19397 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
19398 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
19399 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
19400 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
19401 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
19402 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
19403 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
19404 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
19405 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
19406 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
19407 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
19408 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
19409 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
19410 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
19411 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
19412 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
19413 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
19414 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
19415 * sysdeps/unix/sysv/linux/arm/kernel-features.h
19416 (__ASSUME_CLONE_BACKWARDS): Define.
19417 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
19418 __clone2 if __NR_clone2 is defined.
19419 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
19420 (__ASSUME_CLONE_BACKWARDS): Likewise.
19421 * sysdeps/unix/sysv/linux/i386/kernel-features.h
19422 (__ASSUME_CLONE_BACKWARDS): Likewise.
19423 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
19424 (__ASSUME_CLONE2): Likewise.
19425 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
19426 (__ASSUME_CLONE_BACKWARDS3): Likewise.
19427 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
19428 variants and the define architecture can use.
19429 (__ASSUME_CLONE_DEFAULT): Define as default.
19430 * sysdeps/unix/sysv/linux/mips/kernel-features.h
19431 (__ASSUME_CLONE_BACKWARDS): Likewise.
19432 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
19433 (__ASSUME_CLONE_BACKWARDS): Likewise.
19434 * sysdeps/unix/sysv/linux/s390/kernel-features.h
19435 (__ASSUME_CLONE_BACKWARDS2): Likewise.
19436
19437 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
19438
19439 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
19440
19441 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
19442 time.
19443
19444 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
19445 (do_test_limit): Likewise.
19446
19447 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
19448 for every implementation.
19449 (do_test): Likewise.
19450
19451 * benchtests/bench-strncmp.c: Convert output to json.
19452
19453 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
19454
19455 * io/futimens.c: Add missing start-of-file descriptive comment.
19456 * io/utime.c: Likewise.
19457 * misc/futimesat.c: Likewise.
19458 * misc/utimes.c: Likewise.
19459 * sysdeps/mach/hurd/futimesat.c: Likewise.
19460 * sysdeps/mach/hurd/utimes.c: Likewise.
19461 * sysdeps/posix/utime.c: Likewise.
19462 * sysdeps/posix/utimes.c: Likewise.
19463 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
19464 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
19465 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
19466 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
19467
19468 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
19469
19470 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
19471 hurd_futimes.
19472 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
19473 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
19474 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
19475 (__futimens): Move implementation to...
19476 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
19477 utime_tvalue_from_tspec): ... new helper functions.
19478 (hurd_futimens): New function.
19479 * sysdeps/mach/hurd/futimesat.c: New file.
19480 * sysdeps/mach/hurd/utimensat.c: New file.
19481
19482 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
19483
19484 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
19485 UTIME_OMIT): New macros.
19486 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
19487 before reverting to converting time spec to time value and calling
19488 __file_utimes.
19489 * sysdeps/mach/hurd/utime-helper.c: New file.
19490 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
19491 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
19492 reverting to utime_tvalue_from_tval and __file_utimes.
19493 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
19494 (__lutimes): Just call hurd_futimens after lookup.
19495 * sysdeps/mach/hurd/utimes.c: Likewise.
19496
19497 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
19498
19499 * bits/sigaction.h: Add include guard.
19500 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
19501 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
19502 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
19503 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
19504 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
19505 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
19506 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
19507 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
19508 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
19509
19510 2018-03-05 Joseph Myers <joseph@codesourcery.com>
19511
19512 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
19513 -Wmaybe-uninitialized for -Os.
19514 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
19515 this disabling.
19516
19517 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19518
19519 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
19520 __INO_T_MATCHES_INO64_T is defined.
19521 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
19522 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
19523 of definition.
19524 * dirent/alphasort64.c: Likewise.
19525 * dirent/scandir.c: Likewise.
19526 * dirent/scandir64-tail.c: Likewise.
19527 * dirent/scandir64.c: Likewise.
19528 * dirent/scandirat.c: Likewise.
19529 * dirent/scandirat64.c: Likewise.
19530 * dirent/versionsort.c: Likewise.
19531 * dirent/versionsort64.c: Likewise.
19532 * include/dirent.h: Likewise.
19533
19534 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
19535 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
19536 for socketpair endpoint.
19537 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
19538 WRITE_BUFFER_SIZE as buffer size for sending socket.
19539 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
19540 issue on system where send is implemented with sendto syscall.
19541 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
19542 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
19543 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
19544 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
19545
19546 [BZ #21269]
19547 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
19548 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
19549 sa_restorer for vDSO case.
19550 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
19551
19552 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
19553
19554 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
19555 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
19556 * hurd/hurd/ioctl.h: Include <mach/port.h>
19557 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
19558 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
19559 <mach/mach_types.h> and <mach/message.h>.
19560 (headers): Move mach/param.h to bits/mach/param.h.
19561 * sysdeps/mach/i386/mach/param.h: Move file to ...
19562 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
19563 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
19564 of <mach/param.h>.
19565 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
19566 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
19567 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
19568 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
19569 trivial, for C++ conformity.
19570 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
19571 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
19572 Process mig output through $(migheadersed).
19573 * hurd/Makefile (migheadersed): Define variable.
19574 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
19575 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
19576 headers.
19577 * hurd/hurd.h: Include <bits/types/sigset_t.h>
19578 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
19579 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
19580 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
19581 <bits/types/sigset_t.h>.
19582 [!defined __USE_GNU]: Do not #error out.
19583 (struct hurd_sigstate): Use _NSIG instead of NSIG.
19584 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
19585 Include <stddef.h> and <bits/types/sigset_t.h>
19586 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
19587 instead of sighandler_t.
19588 * stdlib/errno.h (error_t): Move definition to...
19589 * bits/types/error_t.h: ... new header.
19590 * stdlib/Makefile (headers): Add bits/types/error_t.h.
19591 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
19592 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
19593 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
19594 * hurd/hurd.h: Include <bits/types/error_t.h>
19595 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
19596 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
19597 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
19598 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
19599 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
19600 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
19601 * sysdeps/mach/hurd/futimens.c: New file.
19602
19603 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
19604
19605 [BZ #22918]
19606 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
19607 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
19608 * nscd/gai.c (__nss_hosts_database): Readd definition.
19609 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
19610 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
19611 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
19612
19613 2018-03-02 Joseph Myers <joseph@codesourcery.com>
19614
19615 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
19616 (ifunc_one): Likewise.
19617
19618 2018-03-01 DJ Delorie <dj@delorie.com>
19619
19620 [BZ #22342]
19621 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
19622 key value.
19623
19624 2018-03-01 Maciej W. Rozycki <macro@mips.com>
19625
19626 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
19627 `match_pid' parameter.
19628 (td_ta_thr_iter): Update accordingly.
19629
19630 2018-03-01 Florian Weimer <fweimer@redhat.com>
19631
19632 * nptl/Makefile (install-lib-ldscripts): Remove.
19633 (install): Remove rule.
19634 ($(inst_libdir)/libpthread.so): Likewise.
19635
19636 2018-03-01 Mike FABIAN <mfabian@redhat.com>
19637
19638 [BZ #22896]
19639 * localedata/locales/an_ES: update month and day names,
19640 improve d_fmt, improve postal_fmt, add country_post,
19641 add country_isbn
19642
19643 2018-03-01 Mike FABIAN <mfabian@redhat.com>
19644
19645 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
19646 Ukrainian instead of Bulgarian.
19647
19648 2018-03-01 Florian Weimer <fweimer@redhat.com>
19649
19650 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
19651 reference.
19652
19653 2018-03-01 Florian Weimer <fweimer@redhat.com>
19654
19655 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
19656 * nptl/Makefile (routines): Add pthread_atfork.
19657 (static-only-routines): Set to pthread_atfork.
19658 (libpthread-routines): Remove pthread_atfork.
19659 (libpthread-static-only-routines): Remove.
19660 (install): Update comment.
19661 (libpthread.so): Do not install libpthread_nonshared.a.
19662 (tests): Do not link with libpthread_nonshared.a.
19663 (generated): Remove libpthread_nonshared.a.
19664 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
19665 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
19666 with libpthread_nonshared.a.
19667
19668 2018-02-28 Joseph Myers <joseph@codesourcery.com>
19669
19670 [BZ #22902]
19671 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
19672 (libc_feholdexcept_setroundf128): New macro.
19673 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
19674
19675 [BZ #15105]
19676 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
19677 libc_hidden_def.
19678 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
19679 * include/inttypes.h: New file.
19680
19681 2018-02-27 Joseph Myers <joseph@codesourcery.com>
19682
19683 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
19684 -Os in two more places.
19685
19686 2018-02-27 Mike FABIAN <mfabian@redhat.com>
19687
19688 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
19689 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
19690 be sorted correctly at the moment because of a bug.
19691
19692 2018-02-27 Mike FABIAN <mfabian@redhat.com>
19693
19694 [BZ #22550] - es_ES locale (and other es_* locales): collation should
19695 treat ñ as a primary different character, sync the collation
19696 for Spanish with CLDR.
19697 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
19698 * localedata/Makefile: Add new test files.
19699 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
19700 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
19701 collation order.
19702 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
19703 * localedata/am_ET.UTF-8.in: New test file.
19704 * localedata/az_AZ.UTF-8.in: Likewise.
19705 * localedata/be_BY.UTF-8.in: Likewise.
19706 * localedata/ber_DZ.UTF-8.in: Likewise.
19707 * localedata/ber_MA.UTF-8.in: Likewise.
19708 * localedata/bg_BG.UTF-8.in: Likewise.
19709 * localedata/br_FR.UTF-8.in: Likewise.
19710 * localedata/cmn_TW.UTF-8.in: Likewise.
19711 * localedata/crh_UA.UTF-8.in: Likewise.
19712 * localedata/csb_PL.UTF-8.in: Likewise.
19713 * localedata/cv_RU.UTF-8.in: Likewise.
19714 * localedata/cy_GB.UTF-8.in: Likewise.
19715 * localedata/dz_BT.UTF-8.in: Likewise.
19716 * localedata/eo.UTF-8.in: Likewise.
19717 * localedata/es_ES.UTF-8.in: Likewise.
19718 * localedata/fa_IR.UTF-8.in: Likewise.
19719 * localedata/fi_FI.UTF-8.in: Likewise.
19720 * localedata/fil_PH.UTF-8.in: Likewise.
19721 * localedata/fur_IT.UTF-8.in: Likewise.
19722 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
19723 * localedata/ha_NG.UTF-8.in: Likewise.
19724 * localedata/ig_NG.UTF-8.in: Likewise.
19725 * localedata/ik_CA.UTF-8.in: Likewise.
19726 * localedata/kk_KZ.UTF-8.in: Likewise.
19727 * localedata/ku_TR.UTF-8.in: Likewise.
19728 * localedata/ky_KG.UTF-8.in: Likewise.
19729 * localedata/ln_CD.UTF-8.in: Likewise.
19730 * localedata/mi_NZ.UTF-8.in: Likewise.
19731 * localedata/ml_IN.UTF-8.in: Likewise.
19732 * localedata/mn_MN.UTF-8.in: Likewise.
19733 * localedata/mr_IN.UTF-8.in: Likewise.
19734 * localedata/mt_MT.UTF-8.in: Likewise.
19735 * localedata/nb_NO.UTF-8.in: Likewise.
19736 * localedata/om_KE.UTF-8.in: Likewise.
19737 * localedata/os_RU.UTF-8.in: Likewise.
19738 * localedata/ps_AF.UTF-8.in: Likewise.
19739 * localedata/ro_RO.UTF-8.in: Likewise.
19740 * localedata/ru_RU.UTF-8.in: Likewise.
19741 * localedata/sc_IT.UTF-8.in: Likewise.
19742 * localedata/se_NO.UTF-8.in: Likewise.
19743 * localedata/sq_AL.UTF-8.in: Likewise.
19744 * localedata/sv_SE.UTF-8.in: Likewise.
19745 * localedata/szl_PL.UTF-8.in: Likewise.
19746 * localedata/tg_TJ.UTF-8.in: Likewise.
19747 * localedata/tk_TM.UTF-8.in: Likewise.
19748 * localedata/tt_RU.UTF-8.in: Likewise.
19749 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
19750 * localedata/ug_CN.UTF-8.in: Likewise.
19751 * localedata/uz_UZ.UTF-8.in: Likewise.
19752 * localedata/vi_VN.UTF-8.in: Likewise.
19753 * localedata/yi_US.UTF-8.in: Likewise.
19754 * localedata/yo_NG.UTF-8.in: Likewise.
19755 * localedata/zh_CN.UTF-8.in: Likewise.
19756 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
19757 file and fix bugs in the collation.
19758 * localedata/locales/az_AZ: Likewise.
19759 * localedata/locales/be_BY: Likewise.
19760 * localedata/locales/ber_DZ: Likewise.
19761 * localedata/locales/ber_MA: Likewise.
19762 * localedata/locales/bg_BG: Likewise.
19763 * localedata/locales/br_FR: Likewise.
19764 * localedata/locales/br_FR@euro: Likewise.
19765 * localedata/locales/ca_ES: Likewise.
19766 * localedata/locales/cns11643_stroke: Likewise.
19767 * localedata/locales/crh_UA: Likewise.
19768 * localedata/locales/cs_CZ: Likewise.
19769 * localedata/locales/csb_PL: Likewise.
19770 * localedata/locales/cv_RU: Likewise.
19771 * localedata/locales/cy_GB: Likewise.
19772 * localedata/locales/da_DK: Likewise.
19773 * localedata/locales/dz_BT: Likewise.
19774 * localedata/locales/en_CA: Likewise.
19775 * localedata/locales/eo: Likewise.
19776 * localedata/locales/es_CU: Likewise.
19777 * localedata/locales/es_EC: Likewise.
19778 * localedata/locales/es_ES: Likewise.
19779 * localedata/locales/es_US: Likewise.
19780 * localedata/locales/et_EE: Likewise.
19781 * localedata/locales/fa_IR: Likewise.
19782 * localedata/locales/fi_FI: Likewise.
19783 * localedata/locales/fil_PH: Likewise.
19784 * localedata/locales/fur_IT: Likewise.
19785 * localedata/locales/gez_ER@abegede: Likewise.
19786 * localedata/locales/ha_NG: Likewise.
19787 * localedata/locales/hr_HR: Likewise.
19788 * localedata/locales/hsb_DE: Likewise.
19789 * localedata/locales/hu_HU: Likewise.
19790 * localedata/locales/ig_NG: Likewise.
19791 * localedata/locales/ik_CA: Likewise.
19792 * localedata/locales/is_IS: Likewise.
19793 * localedata/locales/iso14651_t1_pinyin: Likewise.
19794 * localedata/locales/kk_KZ: Likewise.
19795 * localedata/locales/ku_TR: Likewise.
19796 * localedata/locales/ky_KG: Likewise.
19797 * localedata/locales/ln_CD: Likewise.
19798 * localedata/locales/lt_LT: Likewise.
19799 * localedata/locales/lv_LV: Likewise.
19800 * localedata/locales/mi_NZ: Likewise.
19801 * localedata/locales/ml_IN: Likewise.
19802 * localedata/locales/mn_MN: Likewise.
19803 * localedata/locales/mr_IN: Likewise.
19804 * localedata/locales/mt_MT: Likewise.
19805 * localedata/locales/nb_NO: Likewise.
19806 * localedata/locales/om_KE: Likewise.
19807 * localedata/locales/os_RU: Likewise.
19808 * localedata/locales/pl_PL: Likewise.
19809 * localedata/locales/ps_AF: Likewise.
19810 * localedata/locales/ro_RO: Likewise.
19811 * localedata/locales/ru_RU: Likewise.
19812 * localedata/locales/ru_UA: Likewise.
19813 * localedata/locales/sc_IT: Likewise.
19814 * localedata/locales/se_NO: Likewise.
19815 * localedata/locales/si_LK: Likewise.
19816 * localedata/locales/sq_AL: Likewise.
19817 * localedata/locales/sv_FI: Likewise.
19818 * localedata/locales/sv_FI@euro: Likewise.
19819 * localedata/locales/sv_SE: Likewise.
19820 * localedata/locales/szl_PL: Likewise.
19821 * localedata/locales/tg_TJ: Likewise.
19822 * localedata/locales/ti_ER: Likewise.
19823 * localedata/locales/tk_TM: Likewise.
19824 * localedata/locales/tl_PH: Likewise.
19825 * localedata/locales/tr_TR: Likewise.
19826 * localedata/locales/tt_RU: Likewise.
19827 * localedata/locales/tt_RU@iqtelif: Likewise.
19828 * localedata/locales/ug_CN: Likewise.
19829 * localedata/locales/uk_UA: Likewise.
19830 * localedata/locales/uz_UZ: Likewise.
19831 * localedata/locales/uz_UZ@cyrillic: Likewise.
19832 * localedata/locales/vi_VN: Likewise.
19833 * localedata/locales/yi_US: Likewise.
19834 * localedata/locales/yo_NG: Likewise.
19835
19836 2018-02-27 Mike FABIAN <mfabian@redhat.com>
19837
19838 * gen-locales.mk: Make test files which contain @ modifiers in their
19839 name work.
19840 * localedata/gen-locale.sh: Likewise.
19841
19842 2018-02-27 Mike FABIAN <mfabian@redhat.com>
19843
19844 * posix/tst-fnmatch.input: Fix results for range expressions
19845 for non C locales.
19846 * posix/tst-regexloc.c: Do not use a range expression for
19847 de_DE.ISO-8859-1 locale.
19848
19849 2018-02-27 Mike FABIAN <mfabian@redhat.com>
19850
19851 * posix/bug-regex5.c: Fix test case because with the new
19852 iso14651_t1_common file, the da_DK locale now has 6 collating elements
19853 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
19854 file.
19855
19856 2018-02-27 Mike FABIAN <mfabian@redhat.com>
19857
19858 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
19859 downloaded from ISO, the collation order of @-. and space has changed.
19860 Therefore, this test file needed to be adapted.
19861 * localedata/fr_CA.UTF-8.in: Likewise.
19862 * localedata/fr_FR.UTF-8.in: Likewise.
19863 * localedata/uk_UA.UTF-8.in: Likewise.
19864
19865 2018-02-27 Mike FABIAN <mfabian@redhat.com>
19866
19867 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
19868 order of ȥ in the new iso14651_t1_common file.
19869 * localedata/pl_PL.UTF-8.in: Likewise.
19870
19871 2018-02-27 Mike FABIAN <mfabian@redhat.com>
19872
19873 * localedata/locales/iso14651_t1_common: Add sections for various
19874 scripts to the iso14651_t1_common file.
19875
19876 2018-02-27 Mike FABIAN <mfabian@redhat.com>
19877
19878 * localedata/locales/iso14651_t1_common: Use the code point of a
19879 character in the fourth collation level instead of IGNORE for all
19880 entries which have IGNORE on all 4 levels.
19881
19882 2018-02-27 Mike FABIAN <mfabian@redhat.com>
19883
19884 * localedata/locales/iso14651_t1_common: Add some convenient collation
19885 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
19886 rules similar to those in CLDR.
19887
19888 2018-02-27 Mike FABIAN <mfabian@redhat.com>
19889
19890 * localedata/locales/iso14651_t1_common: The new version of this
19891 file downloaded from ISO contained several syntax errors which
19892 are fixed by this patch.
19893
19894 2018-02-27 Mike FABIAN <mfabian@redhat.com>
19895
19896 * localedata/locales/iso14651_t1_common: replace all <U.....>
19897 with <U000.....> because glibc understands only 4 digit or 8 digit
19898
19899 2018-02-27 Mike FABIAN <mfabian@redhat.com>
19900
19901 * localedata/locales/iso14651_t1_common: Necessary changes
19902 to make the file downloaded from ISO usable by glibc.
19903
19904 2018-02-27 Mike FABIAN <mfabian@redhat.com>
19905
19906 [BZ #14095]
19907 * localedata/locales/iso14651_t1_common: Update file to
19908 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
19909
19910 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
19911
19912 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
19913 of <nptl/pthreadP.h>
19914 (thread_attr_compare): Move function to...
19915 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
19916 * sysdeps/nptl/timer_routines.h: ... new header.
19917 * sysdeps/mach/hurd/gai_misc.h: New file.
19918
19919 2018-02-26 Joseph Myers <joseph@codesourcery.com>
19920
19921 * string/strcoll_l.c: Include <libc-diag.h>.
19922 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
19923 declarations of seq1 and seq2.
19924
19925 [BZ #15105]
19926 * stdlib/atoi.c (atoi): Use libc_hidden_def.
19927 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
19928
19929 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
19930
19931 [BZ #22433]
19932 [BZ #22807]
19933 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
19934 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
19935 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
19936 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
19937 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
19938 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
19939
19940 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19941
19942 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
19943 macros used in __ptrace_request.
19944
19945 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
19946
19947 [BZ #22792]
19948 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
19949 to $(CC).
19950 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
19951 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
19952 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
19953 <tcb-offsets.h>.
19954
19955 2018-02-23 Joseph Myers <joseph@codesourcery.com>
19956
19957 [BZ #15105]
19958 * ctype/ctype.c (tolower): Use libc_hidden_def.
19959 (toupper): Likewise.
19960 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
19961 [!_ISOMAC] (toupper): Likewise.
19962
19963 2018-02-23 Mike FABIAN <mfabian@redhat.com>
19964
19965 * localedata/Makefile: Remove --quiet argument when
19966 installing locales
19967
19968 2018-02-23 Mike FABIAN <mfabian@redhat.com>
19969
19970 [BZ #17438]
19971 * localedata/locales/pt_BR (LC_TIME): use / instead of -
19972 in d_fmt.
19973 * localedata/locales/pt_PT (LC_TIME): likewise
19974
19975 2018-02-23 Mike FABIAN <mfabian@redhat.com>
19976
19977 [BZ #22646]
19978 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
19979 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
19980 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
19981
19982 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19983
19984 * sysdeps/sparc/fpu/libm-test-ulps: Update.
19985
19986 * nptl/Makefile (routines): Remove unregister-atfork.
19987 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
19988 (fork_handler_alloc): Remove function.
19989 (fork_handlers, fork_handler_init): New variables.
19990 (__fork_lock): Rename to atfork_lock.
19991 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
19992 to use a dynamic array to add/remove atfork handlers.
19993 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
19994 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
19995 Remove declaration.
19996 (fork_handler): Remove next, refcntr, and need_signal member.
19997 (__run_fork_handler_type): New enum.
19998 (__run_fork_handlers): New prototype.
19999 * nptl/register-atfork.c: Remove file.
20000 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
20001
20002 * sysdeps/nptl/nptl-signals.h: Move to ...
20003 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
20004 comments.
20005 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
20006 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
20007 unnecessary check for SIGTIMER.
20008 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
20009 remove unnecessary removal of SIGTIMER.
20010 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
20011 include-signals.h rename.
20012 * nptl/pthreadP.h: Likewise.
20013 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
20014 __is_internal_signal instead of __nptl_is_internal_signal.
20015
20016 2018-02-22 Andrew Waterman <andrew@sifive.com>
20017
20018 [BZ # 22884]
20019 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
20020 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
20021 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
20022 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
20023
20024 2018-02-22 DJ Delorie <dj@delorie.com>
20025
20026 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
20027
20028 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
20029
20030 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
20031 do_misaligned, not misaligned8.
20032
20033 2018-02-22 Steve Ellcey <sellcey@cavium.com>
20034
20035 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
20036 Add memcpy_thunderx2.
20037 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
20038 Increment to 4.
20039 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
20040 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
20041 and IS_THUNDERX2PA checks.
20042 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
20043 Use macro to set name appropriately.
20044 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
20045 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
20046 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
20047 New macro.
20048 (IS_THUNDERX2): New macro.
20049
20050 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
20051
20052 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
20053
20054 2018-02-21 Zack Weinberg <zackw@panix.com>
20055
20056 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
20057 Define here, unconditionally.
20058 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
20059 * libio/libioP.h: Remove #if 0 blocks.
20060 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
20061 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
20062 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
20063
20064 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
20065 Assume weak_alias is always defined.
20066
20067 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
20068 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
20069 Remove #if 0 and #ifdef TODO blocks.
20070 Assume text_set_element is always defined.
20071
20072 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
20073 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
20074 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
20075
20076 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
20077 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
20078 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
20079 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
20080 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
20081 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
20082 Reformat bit flags for _flags field to make occupancy clearer.
20083 Update commentary.
20084 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
20085 Keep definitions consistent with those in libio/libio.h.
20086
20087 * libio/libio.h (_IO_file_flags): Remove macro.
20088 All uses changed to _flags.
20089
20090 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
20091 (__HAVE_COLUMN, _IO_BE): Don't define.
20092 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
20093 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
20094 * libio/libioP.h (EOF): Don't define.
20095 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
20096 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
20097 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
20098 testing _IO_UNIFIED_JUMPTABLES.
20099
20100 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
20101 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
20102 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
20103 (_IO_size_t): Delete; all uses changed to size_t.
20104 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
20105 (_IO_off_t): Delete; all uses changed to off_t.
20106 (_IO_off64_t): Delete; all uses changed to off64_t.
20107 (_IO_pid_t): Delete; all uses changed to pid_t.
20108 (_IO_uid_t): Delete; all uses changed to uid_t.
20109 (_IO_wint_t): Delete; all uses changed to wint_t.
20110 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
20111 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
20112 (_IO_cookie_io_functions_t): Delete; all uses changed to
20113 cookie_io_functions_t.
20114 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
20115 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
20116 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
20117 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
20118
20119 * libio/iofopncook.c: Remove unnecessary forward declarations.
20120 * libio/iolibio.h: Correct outdated commentary.
20121 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
20122 * stdio-common/fxprintf.c (__fxprintf_nocancel):
20123 Remove unnecessary casts.
20124 * stdio-common/getline.c: Use _IO_getdelim directly.
20125 Don't redefine ssize_t.
20126 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
20127 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
20128 Remove outdated comments.
20129 * stdio-common/vfscanf.c: Don't redefine va_list.
20130
20131 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
20132 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
20133 Remove preprocessor conditionals on _LIBC and __USE_GNU,
20134 which are always true, and __cplusplus, which is always false.
20135
20136 2018-02-21 Joseph Myers <joseph@codesourcery.com>
20137
20138 [BZ #15105]
20139 [BZ #19463]
20140 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
20141 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
20142 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
20143 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
20144 libc_hidden_proto.
20145 [!_ISOMAC] (putc_unlocked): Likewise.
20146 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
20147 define inline if [__USE_EXTERN_INLINES].
20148 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
20149 putc_unlocked.
20150
20151 [BZ #15105]
20152 [BZ #19463]
20153 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
20154 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
20155 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
20156 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
20157 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
20158 getc_unlocked.
20159 * time/tzfile.c (__tzfile_read): Likewise.
20160
20161 2018-02-21 Mike FABIAN <mfabian@redhat.com>
20162
20163 [BZ #22517]
20164 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
20165
20166 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
20167
20168 * io/fcntl.h: Fix a typo in a comment.
20169
20170 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
20171
20172 [BZ #22862]
20173 * include/features.h: Add _ISOC11_SOURCE to test for whether to
20174 define _DEFAULT_SOURCE.
20175 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
20176
20177 2018-02-21 Florian Weimer <fweimer@redhat.com>
20178
20179 [BZ #20890]
20180 * elf/cache.c (save_cache): Call fsync on temporary file before
20181 renaming it.
20182 (save_aux_cache): Call fdatasync on temporary file before renaming
20183 it.
20184
20185 2018-02-21 Florian Weimer <fweimer@redhat.com>
20186
20187 [BZ #22787]
20188 * include/caller.h: Remove file.
20189 * elf/dl-caller.c: Likewise.
20190 * elf/Makefile (dl-routines): Remove dl-caller.
20191 (shared-only-routines): Do not add dl-caller.
20192 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
20193 __check_caller.
20194 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
20195 member.
20196 (dl_open_worker): Do not call __check_caller.
20197 (_dl_open): Do not set caller_dl_open member.
20198 * elf/rtld.c (_rtld_global_ro): Do not initialize
20199 _dl_check_caller member.
20200 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
20201 _dl_check_caller member.
20202 (_dl_check_caller): Remove declaration.
20203 * sysdeps/unix/sysv/linux/dl-execstack.c
20204 (_dl_make_stack_executable): Do not call __check_caller.
20205
20206 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
20207
20208 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
20209 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
20210
20211 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
20212
20213 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
20214 description.
20215
20216 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
20217
20218 [BZ #16335]
20219 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
20220 of 199606L, 200112L, and 200809L.
20221 (_XOPEN_SOURCE): Document special values of 600 and 700.
20222 (_ISOC11_SOURCE): Document macro.
20223 (_ATFILE_SOURCE): Likewise.
20224 (_FORTIFY_SOURCE): Likewise.
20225
20226 2018-02-19 Joseph Myers <joseph@codesourcery.com>
20227
20228 [BZ #15105]
20229 [BZ #19463]
20230 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
20231 and define as weak alias of __ferror_unlocked. Use
20232 libc_hidden_weak.
20233 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
20234 libc_hidden_proto.
20235 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
20236 function if [__USE_EXTERN_INLINES].
20237 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
20238 ferror_unlocked.
20239
20240 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
20241
20242 [BZ #6889]
20243 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
20244
20245 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
20246
20247 [BZ #22818]
20248 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
20249 the GLIBC_2.1 version.
20250
20251 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
20252
20253 [BZ #21508]
20254 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
20255 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
20256 intl/tst-gettext-de.po from po/de.po by removing the
20257 POT-Creation-Date line.
20258 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
20259 ../po/de.po.
20260 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
20261 ../po/de.po.
20262
20263 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
20264
20265 * mach/Makefile (headers): Add mach/param.h.
20266 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
20267 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
20268 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
20269 (__ptsname_r): Move implementation to...
20270 (__ptsname_internal): ... new function. Add filling the STP
20271 structure.
20272
20273 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
20274
20275 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
20276 idouble to 1 ULP.
20277
20278 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
20279
20280 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
20281 syntax.
20282
20283 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
20284
20285 * nptl/Makefile (tst-mutex8-ENV): Delete.
20286 * nptl/tst-mutex8.c (check_type):
20287 Add runtime check if mutex will be elided.
20288
20289 2018-02-15 Joseph Myers <joseph@codesourcery.com>
20290
20291 [BZ #20980]
20292 [BZ #21234]
20293 * manual/install.texi (Configuring and compiling): Describe
20294 passing CC and CFLAGS on configure command line, not as
20295 environment variables. Use @code markup on those variables.
20296 Specify what options go in CC and what go in CFLAGS. Note the
20297 requirement to compile with optimization.
20298 * INSTALL: Regenerated.
20299
20300 [BZ #18124]
20301 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
20302 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
20303 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
20304 __sigprocmask instead of sigprocmask.
20305 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
20306 Likewise.
20307 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
20308 __sigsetjmp and sigprocmask.
20309
20310 [BZ #15105]
20311 * include/argz.h (argz_next): Use libc_hidden_proto.
20312 (__argz_next): Likewise.
20313 * string-argz-next.c (__argz_next): Use libc_hidden_def.
20314 (argz_next): Use libc_hidden_weak.
20315
20316 [BZ #15105]
20317 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
20318 libc_hidden_proto.
20319 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
20320 libc_hidden_def.
20321
20322 [BZ #15105]
20323 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
20324 libc_hidden_proto.
20325 * libio/iofputs.c (fputs): Use libc_hidden_weak.
20326
20327 [BZ #15105]
20328 [BZ #19463]
20329 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
20330 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
20331 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
20332 (__feof_unlocked): New declaration, and inline function if
20333 [__USE_EXTERN_INLINES].
20334 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
20335 instead of feof_unlocked.
20336 * intl/localealias.c [_LIBC] (FEOF): Likewise.
20337 * nss/nsswitch.c (nss_parse_file): Likewise.
20338 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
20339 Likewise.
20340 * time/getdate.c (__getdate_r): Likewise.
20341 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
20342 Define as macro to call __feof_unlocked.
20343
20344 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
20345
20346 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
20347
20348 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
20349
20350 * math/Makefile: Remove mpexp.c and mplog.c
20351 * sysdeps/i386/fpu/mpexp.c: Delete file.
20352 * sysdeps/i386/fpu/mplog.c: Likewise.
20353 * sysdeps/ia64/fpu/mpexp.c: Likewise.
20354 * sysdeps/ia64/fpu/mplog.c: Likewise.
20355 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
20356 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
20357 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
20358 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
20359 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
20360 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
20361 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
20362 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
20363 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
20364 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
20365 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
20366 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
20367 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
20368 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
20369 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
20370 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
20371
20372 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
20373
20374 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
20375
20376 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20377
20378 * sysdeps/sh/libm-test-ulps: Update.
20379
20380 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
20381
20382 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
20383 idouble to 1 ULP.
20384
20385 2018-02-12 Zack Weinberg <zackw@panix.com>
20386
20387 [BZ #19239]
20388 * posix/sys/types.h: Don't include sys/sysmacros.h.
20389 * misc/sys/sysmacros.h: Remove the conditional deprecation
20390 warnings for the macros defined by this header.
20391
20392 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
20393
20394 * manual/probes.texi: Remove slowexp probes.
20395 * math/Makefile: Remove slowexp.
20396 * sysdeps/generic/math_private.h (__slowexp): Remove.
20397 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
20398 document error bounds.
20399 * sysdeps/i386/fpu/slowexp.c: Remove.
20400 * sysdeps/ia64/fpu/slowexp.c: Remove.
20401 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
20402 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
20403 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
20404 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
20405 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
20406 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
20407 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
20408 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
20409 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
20410 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
20411 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
20412
20413 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
20414
20415 [BZ #13932]
20416 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
20417 * benchtests/pow-inputs: Update comment for slow path cases.
20418 * manual/probes.texi (slowpow_p10): Delete removed probe.
20419 (slowpow_p10): Likewise.
20420 * math/Makefile: Remove halfulp.c and slowpow.c.
20421 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
20422 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
20423 (__halfulp): Remove.
20424 (__slowpow): Remove.
20425 * sysdeps/i386/fpu/halfulp.c: Delete file.
20426 * sysdeps/i386/fpu/slowpow.c: Likewise.
20427 * sysdeps/ia64/fpu/halfulp.c: Likewise.
20428 * sysdeps/ia64/fpu/slowpow.c: Likewise.
20429 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
20430 improve comments and add error analysis.
20431 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
20432 (power1): Remove function:
20433 (log1): Remove error argument, add error analysis.
20434 (my_log2): Remove function.
20435 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
20436 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
20437 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
20438 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
20439 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
20440 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
20441 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
20442 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
20443 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
20444 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
20445 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
20446 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
20447 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
20448 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
20449
20450 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
20451
20452 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
20453 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
20454
20455 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
20456
20457 [BZ #22433]
20458 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
20459 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
20460 and PTRACE_SETHBPREGS.
20461
20462 2018-02-10 Zack Weinberg <zackw@panix.com>
20463
20464 [BZ #22830]
20465 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
20466 correctly.
20467 * malloc/tst-malloc-stats-cancellation.c: New test case.
20468 * malloc/Makefile: Add new test case.
20469
20470 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
20471
20472 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
20473
20474 2018-02-10 Joseph Myers <joseph@codesourcery.com>
20475
20476 * math/Makefile (libm-narrow-fns): Add add.
20477 (libm-test-funcs-narrow): Likewise.
20478 * math/Versions (GLIBC_2.28): Add narrowing add functions.
20479 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
20480 * math/gen-auto-libm-tests.c (test_functions): Add add.
20481 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
20482 (NARROW_ADD_ROUND_TO_ODD): Likewise.
20483 (NARROW_ADD_TRIVIAL): Likewise.
20484 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
20485 macro.
20486 (__daddl): Likewise.
20487 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
20488 dadd.
20489 (CFLAGS-nldbl-dadd.c): New variable.
20490 (CFLAGS-nldbl-fadd.c): Likewise.
20491 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
20492 __nldbl_daddl.
20493 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
20494 prototype.
20495 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
20496 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
20497 * math/auto-libm-test-in: Add tests of add.
20498 * math/auto-libm-test-out-narrow-add: New generated file.
20499 * math/libm-test-narrow-add.inc: New file.
20500 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
20501 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
20502 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
20503 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
20504 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
20505 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
20506 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
20507 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
20508 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
20509 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
20510 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
20511 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
20512 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
20513 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
20514 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
20515 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
20516 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
20517 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
20518 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20519 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
20520 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
20521 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
20522 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
20523 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
20524 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
20525 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
20526 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
20527 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
20528 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
20529 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
20530 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
20531 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
20532 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
20533 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
20534 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
20535 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
20536 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
20537 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
20538 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
20539 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
20540 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
20541 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
20542 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
20543 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
20544 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
20545 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
20546
20547 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
20548 (f128-pairs): New variable.
20549 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
20550 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
20551 to CFLAGS.
20552 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
20553 Also make tests add $(f128-loader-link) to gnulib-tests.
20554
20555 2018-02-09 DJ Delorie <dj@redhat.com>
20556
20557 [BZ #22827]
20558 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
20559 64-bit ELF type for 64-bit ELF objects.
20560
20561 2018-02-09 Joseph Myers <joseph@codesourcery.com>
20562
20563 * math/libm-test-driver.c (snan_tests_arg): New variable.
20564 * math/libm-test-support.h (snan_tests_arg): New declaration.
20565 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
20566
20567 * math/Makefile (test-type-pairs): New variable.
20568 (test-type-pairs-f64xf128-yes): Likewise.
20569 (tests): Add test-narrow-macros.
20570 (libm-test-funcs-narrow): New variable.
20571 (libm-test-c-narrow): Likewise.
20572 (generated): Add $(libm-test-c-narrow).
20573 (libm-tests-base-narrow): New variable.
20574 (libm-tests-narrow): Likewise.
20575 (libm-tests): Add $(libm-tests-narrow).
20576 (libm-tests-for-type): Handle $(libm-tests-narrow).
20577 (libm-test-c-narrow-obj): New variable.
20578 ($(libm-test-c-narrow-obj)): New rule.
20579 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
20580 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
20581 $(o-iterator) to set dependencies and CFLAGS.
20582 * math/gen-auto-libm-tests.c: Document use for narrowing
20583 functions.
20584 (output_for_one_input_case): Take argument NARROW.
20585 (generate_output): Likewise. Update call to
20586 output_for_one_input_case.
20587 (main): Take --narrow option. Update call to generate_output.
20588 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
20589 (apply_lit): Update call to _apply_lit.
20590 (apply_arglit): New function.
20591 (parse_args): Handle "a" arguments.
20592 (parse_auto_input): Handle format names using ":".
20593 * math/README.libm-test: Document "a" parameter type.
20594 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
20595 (ARG_TYPE_TRUE_MIN): Likewise.
20596 (ARG_TYPE_MAX): Likwise.
20597 (ARG_MIN_EXP): Likewise.
20598 (ARG_MAX_EXP): Likewise.
20599 (ARG_MANT_DIG): Likewise.
20600 (TEST_COND_arg_ibm128): Likewise.
20601 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
20602 (TEST_COND_arg_fmt): New macro.
20603 (init_max_error): Update prototype.
20604 * math/libm-test-support.c (test_ibm128): New variable.
20605 (init_max_error): Take argument testing_ibm128 and set test_ibm128
20606 instead of using [TEST_COND_ibm128] conditional.
20607 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
20608 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
20609 [TEST_NARROW] (TEST_MSG): New definition.
20610 (arg_plus_zero): New macro.
20611 (arg_minus_zero): Likewise.
20612 (arg_plus_infty): Likewise.
20613 (arg_minus_infty): Likewise.
20614 (arg_qnan_value_pl): Likewise.
20615 (arg_qnan_value): Likewise.
20616 (arg_snan_value_pl): Likewise.
20617 (arg_snan_value): Likewise.
20618 (arg_max_value): Likewise.
20619 (arg_min_value): Likewise.
20620 (arg_min_subnorm_value): Likewise.
20621 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
20622 (RUN_TEST_LOOP_aa_f): New macro.
20623 (TEST_SUFF): New macro.
20624 (TEST_SUFF_STR): Likewise.
20625 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
20626 (TEST_COND_any_ibm128): New macro.
20627 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
20628 this_func. Update call to init_max_error.
20629 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
20630 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
20631 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
20632 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
20633 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
20634 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
20635 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
20636 * math/test-math-scalar.h (TEST_NARROW): Likewise.
20637 * math/test-math-vector.h (TEST_NARROW): Likewise.
20638 * math/test-arg-double.h: New file.
20639 * math/test-arg-float128.h: Likewise.
20640 * math/test-arg-float32x.h: Likewise.
20641 * math/test-arg-float64.h: Likewise.
20642 * math/test-arg-float64x.h: Likewise.
20643 * math/test-arg-ldouble.h: Likewise.
20644 * math/test-math-narrow.h: Likewise.
20645 * math/test-narrow-macros.c: Likewise.
20646 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
20647 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
20648 test-narrow-macros-ldbl-64.
20649 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
20650
20651 * math/bits/mathcalls-narrow.h: New file.
20652 * include/bits/mathcalls-narrow.h: Likewise.
20653 * math/math-narrow.h: Likewise.
20654 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
20655 (__MATHCALL_NARROW_ARGS_2): Likewise.
20656 (__MATHCALL_NARROW_ARGS_3): Likewise.
20657 (__MATHCALL_NARROW_NORMAL): Likewise.
20658 (__MATHCALL_NARROW_REDIR): Likewise.
20659 (__MATHCALL_NARROW): Likewise.
20660 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
20661 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
20662 defined.
20663 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
20664 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
20665 (libm-narrow-fns): New variable.
20666 (libm-narrow-types-basic): Likewise.
20667 (libm-narrow-types-ldouble-yes): Likewise.
20668 (libm-narrow-types-float128-yes): Likewise.
20669 (libm-narrow-types-float128-alias-yes): Likewise.
20670 (libm-narrow-types): Likewise.
20671 (libm-routines): Add narrowing functions.
20672 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
20673 (libc_feholdexcept_setroundf128): New macro.
20674 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
20675 * sysdeps/ieee754/float128/float128_private.h: Include
20676 <math/math-narrow.h>.
20677 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
20678 Undefine and redefine.
20679 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
20680 (libm_alias_float_ldouble): Undefine and redefine.
20681 (libm_alias_double_ldouble): Likewise.
20682
20683 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
20684
20685 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
20686
20687 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
20688 FPCR/FPSR.
20689
20690 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
20691
20692 * manual/creature.texi: Convert references to gcc.info to gcc.
20693 * manual/stdio.texi: Likewise.
20694 * manual/string.texi: Likewise.
20695
20696 2018-02-07 Joseph Myers <joseph@codesourcery.com>
20697
20698 [BZ #17979]
20699 * posix/bits/types.h (__int_least8_t): New typedef.
20700 (__uint_least8_t): Likewise.
20701 (__int_least16_t): Likewise.
20702 (__uint_least16_t): Likewise.
20703 (__int_least32_t): Likewise.
20704 (__uint_least32_t): Likewise.
20705 (__int_least64_t): Likewise.
20706 (__uint_least64_t): Likewise.
20707 * sysdeps/generic/stdint.h (int_least8_t): Define using
20708 __int_least8_t.
20709 (int_least16_t): Define using __int_least16_t.
20710 (int_least32_t): Define using __int_least32_t.
20711 (int_least64_t): Define using __int_least64_t.
20712 (uint_least8_t): Define using __uint_least8_t.
20713 (uint_least16_t): Define using __uint_least16_t.
20714 (uint_least32_t): Define using __uint_least32_t.
20715 (uint_least64_t): Define using __uint_least64_t.
20716 * wcsmbs/uchar.h: Include <bits/types.h>.
20717 (char16_t): Define using __uint_least16_t conditional only on
20718 [!__USE_ISOCXX11].
20719 (char32_t): Define using __uint_least32_t conditional only on
20720 [!__USE_ISOCXX11].
20721 * wcsmbs/test-char-types.c: New file.
20722 * wcsmbs/Makefile (tests): Add test-char-types.
20723
20724 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
20725 version to 4.0.1.
20726
20727 2018-02-07 Zack Weinberg <zackw@panix.com>
20728
20729 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
20730 Delete all contents except for definitions of _G_HAVE_MMAP and
20731 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
20732 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
20733 sysdeps/unix/sysv/linux/_G_config.h. Make same content
20734 change as above.
20735
20736 * libio/libio.h: Don't include bits/_G_config.h here.
20737 Include stddef.h with __need_wchar_t defined. Include
20738 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
20739 Define _IO_iconv_t here, directly.
20740 Don't define _IO_HAVE_ST_BLKSIZE.
20741 * libio/libioP.h: Include _G_config.h here. Move include of
20742 shlib-compat.h up with rest of includes. Simplify conditionals
20743 controlling definition of _IO_JUMPS_OFFSET.
20744
20745 * csu/init.c: Remove always-true #if around entire file.
20746 Don't include stdio.h. Set _IO_stdin_used to hardwired
20747 constant 0x20001, and update commentary.
20748 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
20749 Replace all uses of _G_va_list with __gnuc_va_list.
20750 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
20751 instead of #if _IO_HAVE_ST_BLKSIZE.
20752 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
20753 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
20754 not #ifdef.
20755
20756 * libio/bits/libio.h: Move back to libio/libio.h and adjust
20757 multiple-include guard to match.
20758 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
20759 into this file.
20760 Remove preprocessor conditionals that are always true and/or
20761 redundant to other preprocessor conditionals in the same nest.
20762 Include shlib-compat.h unconditionally.
20763 Error out if _LIBC is not defined, or if _ISOMAC is defined,
20764 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
20765 defined after including stdio.h.
20766 Use __BEGIN_DECLS/__END_DECLS.
20767
20768 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
20769 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
20770 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
20771
20772 2018-02-07 Zack Weinberg <zackw@panix.com>
20773
20774 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
20775 New single-type headers split from _G_config.h.
20776 * libio/bits/types/cookie_io_functions_t.h
20777 * libio/bits/types/struct_FILE.h
20778 New single-type headers split from libio.h.
20779
20780 * libio/Makefile: Install the above new headers. Don't install
20781 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
20782 bits/libio-ldbl.h.
20783 * libio/_G_config.h, libio/libio.h: Delete file.
20784
20785 * libio/bits/libio.h: Remove improper-inclusion guard.
20786 Include stdio.h and don't repeat anything that it does.
20787 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
20788 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
20789 __io_read_fn as cookie_read_function_t,
20790 __io_write_fn as cookie_write_function_t,
20791 __io_seek_fn as cookie_seek_function_t,
20792 __io_close_fn as cookie_close_function_t,
20793 and _IO_cookie_io_functions_t as cookie_io_functions_t.
20794 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
20795 here, in the "compatibility defines" section. Remove an #if 0
20796 block. Use the "body" macros from bits/types/struct_FILE.h to
20797 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
20798 and _IO_ferror_unlocked.
20799 Move prototypes of __uflow and __overflow...
20800
20801 * libio/stdio.h: ...here. Don't include bits/libio.h.
20802 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
20803 directly from stdarg.h. Include bits/types/__fpos_t.h,
20804 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
20805 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
20806 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
20807 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
20808 cookie_io_functions_t, not _IO_cookie_io_functions_t;
20809 __ssize_t, not _IO_ssize_t. Unconditionally define
20810 BUFSIZ as 8192 and EOF as (-1).
20811
20812 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
20813 macros from bits/types/struct_FILE.h instead of _IO_* macros
20814 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
20815 instead of _IO_ssize_t.
20816 * libio/bits/stdio2.h: Similarly.
20817
20818 * libio/iolibio.h: Add multiple-include guard.
20819 Include bits/libio.h after stdio.h.
20820 * libio/libioP.h: Add multiple-include guard.
20821 Include stdio.h and bits/libio.h before iolibio.h.
20822
20823 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
20824 * include/bits/types/cookie_io_functions_t.h
20825 * include/bits/types/struct_FILE.h: New wrappers.
20826
20827 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
20828 Get definitions of _G_fpos_t and _G_fpos64_t from
20829 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
20830 respectively. Remove improper-inclusion guards.
20831
20832 * conform/data/stdio.h-data: Update expectations of va_list.
20833 * scripts/check-installed-headers.sh: Remove special case for
20834 libio.h and _G_config.h.
20835
20836 2018-02-07 Joseph Myers <joseph@codesourcery.com>
20837
20838 [BZ #15105]
20839 [BZ #19463]
20840 * include/sys/sysmacros.h [!_ISOMAC]
20841 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
20842 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
20843 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
20844 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
20845 libc_hidden_proto.
20846 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
20847 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
20848 Likewise.
20849 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
20850 Undefine and redefine to add use __gnu_dev_ prefix.
20851 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
20852 Likewise.
20853 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
20854 and define as hidden inline function.
20855 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
20856 Likewise.
20857 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
20858 Likewise.
20859 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
20860 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
20861 (gnu_dev_minor): Likewise.
20862 (gnu_dev_makedev): Likewise.
20863 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
20864 makedev.
20865 * posix/wordexp.c (exec_comm_child): Likewise.
20866 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
20867 instead of minor and __gnu_dev_major instead of major.
20868 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
20869 __gnu_dev_major instead of major.
20870 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
20871 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
20872 instead of gnu_dev_minor.
20873 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
20874 (SLAVE_P): Likewise.
20875 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
20876 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
20877 instead of major.
20878
20879 [BZ #21313]
20880 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
20881 in another place.
20882 * locale/weightwc.h (findidx): Likewise.
20883
20884 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
20885
20886 * manual/probes.texi (slowlog): Delete documentation of removed probe.
20887 (slowlog_inexact): Likewise
20888 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
20889 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
20890
20891 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
20892
20893 [BZ #22797]
20894 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
20895 missing second underscore to parameter name.
20896
20897 2018-02-06 Joseph Myers <joseph@codesourcery.com>
20898
20899 [BZ #14508]
20900 [BZ #15512]
20901 [BZ #17082]
20902 [BZ #20530]
20903 * bits/byteswap.h: Update file comment. Do not include
20904 <bits/byteswap-16.h>.
20905 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
20906 constant.
20907 (__bswap_16): Define as inline function.
20908 (__bswap_constant_32): Reformat definition.
20909 (__bswap_32): Always define as inline function, not macro, using
20910 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
20911 otherwise __bswap_constant_32.
20912 (__bswap_constant_64): Reformat definition. Do not use
20913 __extension__ here.
20914 (__bswap_64): Always define as inline function, not macro. Use
20915 __extension__ on function definition. Use __builtin_bswap64 if
20916 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
20917 * string/test-endian-file-scope.c: New file.
20918 * string/test-endian-sign-conversion.c: Likewise.
20919 * string/Makefile (headers): Remove bits/byteswap-16.h.
20920 (tests): Add test-endian-file-scope and
20921 test-endian-sign-conversion.
20922 (CFLAGS-test-endian-sign-conversion.c): New variable.
20923 * bits/byteswap-16.h: Remove file.
20924 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
20925 * sysdeps/ia64/bits/byteswap.h: Likewise.
20926 * sysdeps/m68k/bits/byteswap.h: Likewise.
20927 * sysdeps/s390/bits/byteswap-16.h: Likewise.
20928 * sysdeps/s390/bits/byteswap.h: Likewise.
20929 * sysdeps/tile/bits/byteswap.h: Likewise.
20930 * sysdeps/x86/bits/byteswap-16.h: Likewise.
20931 * sysdeps/x86/bits/byteswap.h: Likewise.
20932
20933 [BZ #17721]
20934 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
20935 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
20936 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
20937 199901L] (__restrict): Define to restrict.
20938
20939 [BZ #19667]
20940 * string/testcopy.c: Include <support/support.h>. Do not include
20941 <malloc.h>. Use <support/test-driver.c>.
20942 (main): Rename to do_test. Make static. Use xmalloc instead of
20943 malloc.
20944
20945 [BZ #13575]
20946 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
20947 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
20948 (SSIZE_MAX): Define to INT_MAX.
20949 * posix/test-ssize-max.c: New file.
20950 * posix/Makefile (tests): Add test-ssize-max.
20951
20952 [BZ #19668]
20953 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
20954 <support/support.h>. Do not include <malloc.h>.
20955 (query_auxv): Use xmalloc instead of malloc.
20956
20957 [BZ #14553]
20958 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
20959 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
20960 instead of loff_t.
20961
20962 2018-02-06 Florian Weimer <fweimer@redhat.com>
20963
20964 [BZ #18023]
20965 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20966 Use scratch_buffer instead of extend_alloca.
20967
20968 2018-02-06 Zack Weinberg <zackw@panix.com>
20969
20970 * libio/stdio.h: Don't define getc or putc as macros.
20971 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
20972 not _IO_getc and _IO_putc.
20973
20974 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
20975 * stdio-common/tstgetln.c: Don't redefine ssize_t.
20976
20977 2018-02-06 Joseph Myers <joseph@codesourcery.com>
20978
20979 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
20980 (TCP_FASTOPEN_NO_COOKIE): Likewise.
20981
20982 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
20983
20984 [BZ #14890]
20985 * elf/elf.h (NT_PRFPREG): New macro.
20986 (NT_S390_VXRS_LOW): Likewise.
20987 (NT_S390_VXRS_HIGH): Likewise.
20988 (NT_S390_GS_CB): Likewise.
20989 (NT_S390_GS_BC): Likewise.
20990 (NT_S390_RI_CB): Likewise.
20991
20992 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
20993 (MAP_SYNC): New macro.
20994 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
20995 Likewise.
20996 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
20997 (MAP_SYNC): Likewise.
20998 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
20999 (MAP_SYNC): Likewise.
21000 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
21001 (MAP_SYNC): Likewise.
21002 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
21003 (MAP_SYNC): Likewise.
21004 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
21005 (MAP_SYNC): Likewise.
21006 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
21007 (MAP_SYNC): Likewise.
21008 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
21009 Likewise.
21010 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
21011 Likewise.
21012
21013 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
21014 (MAP_SHARED_VALIDATE): New macro.
21015 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
21016 (MAP_SHARED_VALIDATE): Likewise.
21017
21018 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21019
21020 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
21021 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
21022 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
21023
21024 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21025
21026 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
21027 (DT_NUM): Updated to 35.
21028
21029 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21030
21031 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
21032 __builtin_expect with __glibc_likely and __glibc_unlikely.
21033 (elf_machine_rela): Likewise.
21034 (elf_machine_lazy_rel): Likewise.
21035
21036 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21037
21038 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
21039 __builtin_expect with __glibc_likely and __glibc_unlikely.
21040 (elf_machine_lazy_rel): Likewise.
21041
21042 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21043
21044 [BZ #22638]
21045 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
21046 SHARED.
21047 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
21048
21049 2018-02-05 Andreas Schwab <schwab@suse.de>
21050
21051 [BZ #22761]
21052 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
21053 string.
21054
21055 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
21056
21057 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
21058 not check against PTHREAD_STACK_MIN.
21059
21060 2018-02-02 Sean McKean <smckean83@gmail.com>
21061
21062 [BZ #22735]
21063 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
21064
21065 2018-02-02 Florian Weimer <fweimer@redhat.com>
21066
21067 [BZ #22753]
21068 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
21069 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
21070 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
21071 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
21072 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
21073 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
21074 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
21075 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
21076 * manual/llio.texi (Scatter-Gather): Mention offset -1.
21077 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
21078 * misc/tst-preadvwritev2.c (do_test): Call it.
21079 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
21080
21081 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
21082
21083 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
21084
21085 * benchtests/bench-memcmp.c: Print json instead of plain text.
21086
21087 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
21088 every test run.
21089
21090 2018-02-01 Joseph Myers <joseph@codesourcery.com>
21091
21092 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
21093 version to 4.15.
21094 (s390_sthyi): New syscall.
21095
21096 * sysdeps/generic/ldbl-classify-compat.h: New file.
21097 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
21098 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
21099 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
21100 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
21101 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
21102 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
21103 * sysdeps/ieee754/dbl-64/s_finite.c: Include
21104 <ldbl-classify-compat.h>.
21105 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
21106 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
21107 <ldbl-classify-compat.h>.
21108 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
21109 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
21110 <ldbl-classify-compat.h>.
21111 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
21112 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
21113 <ldbl-classify-compat.h>.
21114 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
21115 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
21116 <ldbl-classify-compat.h>.
21117 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
21118 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
21119 <ldbl-classify-compat.h>.
21120 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
21121 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
21122 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
21123 * sysdeps/m68k/coldfire/math_private.h: Remove file.
21124 * sysdeps/microblaze/math_private.h: Likewise.
21125 * sysdeps/nios2/math_private.h: Likewise.
21126 * sysdeps/sh/math_private.h: Likewise.
21127
21128 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
21129 * sysdeps/m68k/coldfire/math_private.h: ... here.
21130 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
21131 * sysdeps/tile/math_private.h: Likewise.
21132 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
21133 Remove macro.
21134 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
21135 Likewise.
21136
21137 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
21138 Remove macro.
21139 (libc_fetestexcept): Likewise.
21140 (libc_feupdateenv_test): Likewise.
21141 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
21142 (libc_fetestexcept): Likewise.
21143 (libc_feupdateenv_test): Likewise.
21144 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
21145 (libc_fetestexcept): Likewise.
21146 (libc_feupdateenv_test): Likewise.
21147 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
21148 (libc_fetestexcept): Likewise.
21149 (libc_feupdateenv_test): Likewise.
21150
21151 * sysdeps/generic/math_private.h
21152 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
21153 New inline function.
21154 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
21155 Likewise.
21156
21157 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
21158 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
21159 * sysdeps/generic/math_private.h
21160 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
21161 inline function.
21162 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
21163 Likewise.
21164 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
21165 Likewise.
21166 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
21167 Likewise.
21168 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
21169 Likewise.
21170 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
21171 Likewise.
21172 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
21173 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
21174 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
21175 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
21176 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
21177 (__fegetenv): Likewise.
21178 (fesetenv): Likewise.
21179 (__fesetenv): Likewise.
21180 (feupdateenv): Likewise.
21181 (__feupdateenv): Likewise.
21182 (fegetround): Likewise.
21183 (__fegetround): Likewise.
21184 (fesetround): Likewise.
21185 (__fesetround): Likewise.
21186
21187 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
21188 (feraiseexcept): New macro.
21189 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
21190 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
21191 Remove macro.
21192 (__feraiseexcept): Likewise.
21193 (feclearexcept): Likewise.
21194 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
21195 (__feraiseexcept): Likewise.
21196 (feclearexcept): Likewise.
21197 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
21198 (__feraiseexcept): Likewise.
21199 (feclearexcept): Likewise.
21200 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
21201 (__feraiseexcept): Likewise.
21202 (feclearexcept): Likewise.
21203 (fetestexcept): Likewise.
21204
21205 * sysdeps/m68k/coldfire/math-tests.h: New file.
21206
21207 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
21208 * sysdeps/m68k/bits/fenv.h: ... here.
21209 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
21210 not define.
21211 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
21212 Likewise.
21213 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
21214 Likewise.
21215 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
21216 Likewise.
21217 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
21218 Likewise.
21219 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
21220 Define to 0.
21221 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
21222 (__FE_UNDEFINED): New enum constant.
21223 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
21224 Do not define.
21225 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
21226 Likewise.
21227 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
21228 Likewise.
21229 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
21230 to match generic bits/fenv.h.
21231 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
21232 Do not define.
21233
21234 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
21235 packed on bits.
21236 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
21237 * soft-fp/half.h (union _FP_UNION_H): Likewise.
21238 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
21239 * soft-fp/single.h (union _FP_UNION_S): Likewise.
21240
21241 2018-02-01 Carlos O'Donell <carlos@redhat.com>
21242 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
21243 Joseph Myers <joseph@codesourcery.com>
21244
21245 [BZ #21314]
21246 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
21247 (__log1p): Disable -Wmaybe-uninitialized for -Os around
21248 computation using c.
21249 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
21250 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
21251 computation using c.
21252
21253 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
21254
21255 * version.h (RELEASE): Set to "development".
21256 (VERSION): Set to "2.27.9000".
21257 * NEWS (2.28): New section.
21258
21259 * version.h (RELEASE): Set to "stable".
21260 (VERSION): Set to "2.27".
21261 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
21262
21263 * NEWS: Add the list of bugs fixed in 2.27.
21264
21265 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21266
21267 * stdlib/test-atexit-race-common.c (do_test): Check stack size
21268 against PTHREAD_STACK_MIN.
21269
21270 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
21271
21272 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
21273 New entries.
21274 (Rafal Luzynski, Andreas Schwab): Update.
21275
21276 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
21277
21278 [BZ #10871]
21279 * NEWS: List the languages which actually use the alternative
21280 months feature in this release. Also explain that "alt_mon" and
21281 "ab_alt_mon" are optional.
21282
21283 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
21284
21285 [BZ #22765]
21286 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
21287
21288 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
21289
21290 * manual/install.texi (Tools for Compilation): Update the newest
21291 versions of gcc, binutils, texinfo, gawk, bison, and sed.
21292 * INSTALL: Regenerated.
21293
21294 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
21295
21296 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
21297 instead of __builtin_expect.
21298
21299 2018-01-30 Florian Weimer <fweimer@redhat.com>
21300
21301 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
21302 data.
21303 * nss/tst-nss-getpwent.c (do_test): Likewise.
21304
21305 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
21306
21307 [BZ #10871]
21308 * localedata/locales/hr_HR (mon): Rename to...
21309 (alt_mon): This.
21310 (mon): Import from CLDR (genitive case).
21311 (d_t_fmt): Update the comment.
21312
21313 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
21314
21315 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
21316 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
21317 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
21318
21319 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
21320
21321 * mach/Versions: Fix version when __mach_host_self_ was added.
21322 * hurd/Versions: Fix version when _hurd_exec_paths was added.
21323 * sysdeps/mach/hurd/i386/ld.abilist: New file.
21324 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
21325 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
21326 * sysdeps/mach/hurd/i386/libc.abilist: New file.
21327 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
21328 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
21329 * sysdeps/mach/hurd/i386/libm.abilist: New file.
21330 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
21331 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
21332 * sysdeps/mach/hurd/i386/librt.abilist: New file.
21333 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
21334 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
21335 || to respect codestyle.
21336 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
21337 (do_test_bz20181): Rename accordingly.
21338 * malloc/malloc.c: Include <assert.h>.
21339 (assert): Do not define.
21340 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
21341 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
21342 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
21343 * sysdeps/mach/hurd/hp-timing.h: New file.
21344 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
21345
21346 2018-01-29 Darius Rad <darius@bluespec.com>
21347
21348 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
21349
21350 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
21351
21352 * sysdeps/init_array/crti.S (.section .init_array): Add
21353 PREINIT_FUNCTION when defined.
21354 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
21355 * config.h.in: Regenerate.
21356 * manual/platform.texi: Add RISC-V documenation for
21357 __riscv_flush_icache.
21358 * sysdeps/riscv/__longjmp.S: New file.
21359 * sysdeps/riscv/backtrace.c: Likewise.
21360 * sysdeps/riscv/bits/endian.h: Likewise.
21361 * sysdeps/riscv/bits/setjmp.h: Likewise.
21362 * sysdeps/riscv/bits/wordsize.h: Likewise.
21363 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
21364 * sysdeps/riscv/bsd-setjmp.c: Likewise.
21365 * sysdeps/riscv/dl-trampoline.S: Likewise.
21366 * sysdeps/riscv/gccframe.h: Likewise.
21367 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
21368 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
21369 * sysdeps/riscv/machine-gmon.h: Likewise.
21370 * sysdeps/riscv/memusage.h: Likewise.
21371 * sysdeps/riscv/setjmp.S: Likewise.
21372 * sysdeps/riscv/sys/asm.h: Likewise.
21373 * sysdeps/riscv/tls-macros.h: Likewise.
21374 * sysdeps/riscv/dl-tls.h: New file.
21375 * sysdeps/riscv/libc-tls.c: Likewise.
21376 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
21377 * sysdeps/riscv/nptl/tls.h: Likewise.
21378 * sysdeps/riscv/stackinfo.h: Likewise.
21379 * sysdeps/riscv/bits/fenv.h: New file.
21380 * sysdeps/riscv/e_sqrtl.c: Likewise.
21381 * sysdeps/riscv/fpu_control.h: Likewise.
21382 * sysdeps/riscv/math-tests.h: Likewise.
21383 * sysdeps/riscv/nofpu/Implies: Likewise.
21384 * sysdeps/riscv/sfp-machine.h: Likewise.
21385 * sysdeps/riscv/tininess.h: Likewise.
21386 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
21387 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
21388 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
21389 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
21390 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
21391 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
21392 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
21393 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
21394 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
21395 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
21396 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
21397 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
21398 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
21399 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
21400 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
21401 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
21402 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
21403 * sysdeps/riscv/rvd/s_finite.c: Likewise.
21404 * sysdeps/riscv/rvd/s_fma.c: Likewise.
21405 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
21406 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
21407 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
21408 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
21409 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
21410 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
21411 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
21412 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
21413 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
21414 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
21415 * sysdeps/riscv/rvf/fegetround.c: Likewise.
21416 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
21417 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
21418 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
21419 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
21420 * sysdeps/riscv/rvf/fesetround.c: Likewise.
21421 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
21422 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
21423 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
21424 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
21425 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
21426 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
21427 * sysdeps/riscv/rvf/math_private.h: Likewise.
21428 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
21429 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
21430 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
21431 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
21432 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
21433 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
21434 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
21435 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
21436 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
21437 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
21438 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
21439 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
21440 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
21441 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
21442 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
21443 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
21444 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
21445 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
21446 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
21447 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
21448 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
21449 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
21450 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
21451 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
21452 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
21453 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
21454 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
21455 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
21456 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
21457 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
21458 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
21459 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
21460 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
21461 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
21462 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
21463 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
21464 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
21465 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
21466 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
21467 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
21468 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
21469 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
21470 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
21471 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
21472 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
21473 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
21474 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
21475 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
21476 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
21477 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
21478 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
21479 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
21480 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
21481 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
21482 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
21483 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
21484 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
21485 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
21486 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
21487 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
21488 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
21489 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
21490 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
21491 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
21492 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
21493 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
21494 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
21495 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
21496 * sysdeps/riscv/Implies: New file.
21497 * sysdeps/riscv/Makefile: Likewise.
21498 * sysdeps/riscv/configure: Likewise.
21499 * sysdeps/riscv/configure.ac: Likewise.
21500 * sysdeps/riscv/nptl/Makefile: Likewise.
21501 * sysdeps/riscv/preconfigure: Likewise.
21502 * sysdeps/riscv/rv64/Implies-after: Likewise.
21503 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
21504 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
21505 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
21506 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
21507 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
21508 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
21509 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
21510 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
21511 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
21512 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
21513 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
21514 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
21515 (Config): Likewise.
21516
21517 2018-01-29 Florian Weimer <fweimer@redhat.com>
21518
21519 [BZ #22701]
21520 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
21521 libnsl_hidden_proto.
21522 * include/rpcsvc/yp.h (yp_xdrall): Declare with
21523 libnsl_hidden_proto.
21524 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
21525 * nis/Makefile (libnsl-routines): Add nss-default only for
21526 build-obsolete-nsl.
21527 * nis/nis_defaults.c (__nis_default_ttl): Add
21528 libnsl_hidden_nolink_def.
21529 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
21530 declaration.
21531 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
21532 * nis/ypclnt.c (yp_maplist): Likewise.
21533
21534 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
21535
21536 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
21537 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
21538
21539 2018-01-29 Joseph Myers <joseph@codesourcery.com>
21540
21541 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
21542 clean -dxfq for git updates when replacing sources.
21543
21544 * scripts/build-many-glibcs.py (Config.build_gcc): Use
21545 --disable-libcilkrts unconditionally, not just for the final GCC
21546 build for Hurd.
21547
21548 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
21549 version to 4.15.
21550
21551 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
21552
21553 [BZ #10871]
21554 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
21555 case).
21556
21557 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
21558
21559 [BZ #10871]
21560 * localedata/locales/be_BY (mon): Rename to...
21561 (alt_mon): This, then synchronize with CLDR (nominative case).
21562 (abmon): Rename to...
21563 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
21564 (mon): Import from CLDR (genitive case).
21565 (abmon): Likewise.
21566 * localedata/locales/be_BY@latin (mon): Rename to...
21567 (alt_mon): This.
21568 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
21569
21570 * localedata/locales/be_BY@latin (lang_name): Reworded to
21571 "biełaruskaja mova".
21572
21573 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
21574
21575 [BZ #10871]
21576 * localedata/locales/el_CY (mon): Renamed to...
21577 (alt_mon): This.
21578 (mon): Import from CLDR (genitive case).
21579 * localedata/locales/el_GR: Likewise.
21580
21581 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
21582
21583 [BZ #10871]
21584 * localedata/locales/ru_RU (mon): Rename to...
21585 (alt_mon): This.
21586 (abmon): Rename to...
21587 (ab_alt_mon): This.
21588 (mon): Import from CLDR (genitive case).
21589 (abmon): Copy from the old content except the 5th month which is
21590 now in the genitive case, even when abbreviated.
21591 * localedata/locales/ru_UA: Likewise.
21592 * time/tst-strptime.c (day_tests): Add an actual example of
21593 a difference between %b and %Ob in Russian.
21594
21595 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
21596
21597 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
21598 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
21599 a `c' variable.
21600 * resolv/res-close.c: Include <stdlib.h>.
21601 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
21602 <sys/wait.h>, <time.h>, <sys/uio.h>.
21603 (NOT_CANCEL_H): Add inclusion guard.
21604 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
21605 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
21606 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
21607 return 0.
21608 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
21609 vm_address_t * to ElfW(Addr) * for dl_main parameter.
21610 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
21611 instead of void *.
21612 * sysdeps/pthread/timer_create.c (timer_create): Do not use
21613 timer_ptr2id to cast struct timer_node * to void *.
21614 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
21615 --disable-libcilkrts to gcc configure.
21616 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
21617 and make them the default for now.
21618 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
21619 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
21620 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
21621 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
21622 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
21623 MACH_IPC_COMPAT.
21624 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
21625 __task_terminate would ever return successfully.
21626 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
21627 to global scope.
21628 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
21629 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
21630 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
21631 critical section to make code simpler and avoid warning.
21632 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
21633 critical section to make code simpler and avoid warning.
21634 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
21635 const char * instead of char *.
21636 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
21637 __hurd_file_name_split, hurd_file_name_split,
21638 __hurd_directory_name_split, hurd_directory_name_split,
21639 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
21640 hurd_file_name_path_lookup): Make lookup function parameter take a
21641 const char *name instead of char *name.
21642 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
21643 __hurd_directory_name_split): Likewise.
21644 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
21645 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
21646 * sysdeps/mach/hurd/check_native.c: New file.
21647 * sysdeps/mach/hurd/check_pf.c: New file.
21648 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
21649 (__freeifaddrs): Define macro to freeifaddrs.
21650 * sysdeps/mach/hurd/libhurduser.abilist: New file.
21651 * sysdeps/mach/libmachuser.abilist: New file.
21652 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
21653 (do_test_bz20181): Rename accordingly.
21654 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
21655 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
21656 <sys/mount.h>.
21657 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
21658 version only if __USE_EXTERN_INLINES is defined.
21659 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
21660 __hurd_sockfail): Likewise.
21661 (_hurd_fd_get): Always declare functions, and provide inline versions
21662 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
21663 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
21664 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
21665 _hurd_port_set): Always declare functions, and provide inline versions
21666 only if __USE_EXTERN_INLINES and _LIBC are defined and
21667 IS_IN(libc).
21668 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
21669 _hurd_critical_section_unlock): Likewise.
21670 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
21671 * __hurd_threadvar_location): Likewise.
21672 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
21673 _hurd_userlink_clear): Likewise.
21674 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
21675 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
21676 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
21677 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
21678 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
21679 __spin_lock_locked): Likewise.
21680 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
21681 __spin_lock_locked): Likewise.
21682 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
21683 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
21684 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
21685 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
21686 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
21687 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
21688 _POSIX_NO_TRUNC): Define to 0.
21689 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
21690 check size against PTHREAD_STACK_MIN.
21691 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
21692 IS_IN(libpthread)]: Include <sigsetops.h>.
21693 * mach/Makefile (user-interfaces): Add mach/gnumach.
21694 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
21695 * sysdeps/mach/configure (mach_interface_list): Regenerate.
21696 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
21697 instead of invalid -1.
21698 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
21699 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
21700 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
21701 <net/ppp_defs.h>.
21702
21703 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
21704
21705 * hurd/fcntl-internal.h: New file.
21706
21707 2018-01-27 James Clarke <jrtc27@jrtc27.com>
21708
21709 * sysdeps/hppa/fpu/libm-test-ulps: Update.
21710
21711 * sysdeps/alpha/fpu/libm-test-ulps: Update.
21712
21713 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
21714
21715 [BZ #22701]
21716 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
21717 Build only shared objects.
21718
21719 2018-01-26 Carlos O'Donell <carlos@redhat.com>
21720
21721 * README: Update for hppa.
21722
21723 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
21724
21725 * sysdeps/sparc/fpu/libm-test-ulps: Update
21726 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
21727
21728 2018-01-26 Carlos O'Donell <carlos@redhat.com>
21729
21730 Revert:
21731
21732 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
21733
21734 [BZ #22563]
21735 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
21736 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
21737 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
21738 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
21739 to feature_1.
21740
21741 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
21742
21743 [BZ #22563]
21744 * bits/types/__cancel_jmp_buf_tag.h: New file.
21745 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
21746 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
21747 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
21748 * nptl/Makefile (headers): Add
21749 bits/types/__cancel_jmp_buf_tag.h.
21750 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
21751 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
21752 * sysdeps/nptl/pthread.h: Include
21753 <bits/types/__cancel_jmp_buf_tag.h>.
21754 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
21755 __cancel_jmp_buf.
21756 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
21757
21758 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
21759
21760 [BZ #10871]
21761 * localedata/locales/uk_UA (mon): Renamed to...
21762 (alt_mon): This.
21763 (alt_digits): "0" removed and then renamed to...
21764 (mon): This.
21765 (date_fmt): Definition changed not to use the alternative
21766 digits hack.
21767
21768 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
21769
21770 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
21771 FLAG_RISCV_FLOAT_ABI_DOUBLE.
21772 * elf/elf.h (EF_RISCV_RVC): New define.
21773 (EF_RISCV_FLOAT_ABI): Likewise.
21774 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
21775 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
21776 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
21777 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
21778 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
21779 define.
21780 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
21781
21782 2018-01-25 Andreas Schwab <schwab@suse.de>
21783
21784 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
21785 single quotes.
21786 * sysdeps/gnu/configure: Regenerate.
21787 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
21788 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
21789 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
21790 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
21791 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
21792 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
21793 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
21794 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
21795
21796 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
21797
21798 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
21799 URL, and run autoconf, make it the default for now.
21800
21801 2018-01-24 Joseph Myers <joseph@codesourcery.com>
21802
21803 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
21804 soft-float ColdFire configuration.
21805
21806 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
21807 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
21808 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
21809
21810 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
21811 MicroBlaze file.
21812
21813 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
21814 ....
21815 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
21816 ... here.
21817 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
21818 New file.
21819
21820 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
21821 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
21822 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
21823 file.
21824
21825 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
21826
21827 [BZ #22742]
21828 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
21829 Rename to __reserved and add comment.
21830 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
21831 Rename to __reserved.
21832
21833 2018-01-24 Joseph Myers <joseph@codesourcery.com>
21834
21835 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
21836 i686-gnu configurations.
21837 (Context.run_builds): Include mig, gnumach and hurd in components
21838 considered.
21839 (Context.checkout): Add mig, gnumach and hurd to components.
21840 (Context.checkout_tar): Add URL mappings for mig, gnumach and
21841 hurd.
21842 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
21843 (Config.build): Install gnumach headers, build mig and install
21844 hurd headers for 'gnu' OS.
21845 (Config.install_gnumach_headers): New function.
21846 (Config.install_hurd_headers): Likewise.
21847 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
21848 when building for 'gnu' OS.
21849
21850 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
21851
21852 * manual/tunables.texi (Hardware Capability Tunables): Fix
21853 spelling.
21854
21855 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
21856
21857 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
21858 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
21859 (ALTMON_11, ALTMON_12): Improve documentation.
21860 * manual/time.texi (strftime): Likewise.
21861
21862 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
21863
21864 [BZ #10871]
21865 * localedata/locales/pl_PL: Alternative month names added,
21866 primary month names are genitive now.
21867 * time/tst-strptime.c (day_tests): Actually use a genitive case
21868 of a month name in Polish language.
21869
21870 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
21871
21872 [BZ #10871]
21873 * manual/locale.texi: Document ALTMON_1..12 constants for
21874 nl_langinfo. Specify when to use ALTMON instead of MON.
21875 * manual/time.texi (strftime, strptime): Document GNU extension
21876 permitting O modifier with %B and %b. Specify when to use
21877 %OB instead of %B.
21878
21879 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
21880
21881 [BZ #10871]
21882 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
21883 names, define them as the same as abbreviated month names explicitly.
21884 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
21885 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
21886 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
21887 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
21888 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
21889 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
21890 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
21891 _NL_WABALTMON_12): New enum constants.
21892 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
21893 wab_alt_mon, and ab_alt_mon_defined members.
21894 (time_output): Output ab_alt_mon and wab_alt_mon members.
21895 (time_read): Read them, initialize them as copies of abmon and wabmon
21896 respectively if they are missing, initialize ab_alt_mon_defined.
21897 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
21898 * locale/programs/locfile-kw.h: Regenerate.
21899 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
21900 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
21901 and ru_RU.UTF-8.
21902 * time/strftime_l.c (a_altmonth, aam_len): New macros.
21903 [!COMPILE_WIDE] (ABALTMON_1): New macro.
21904 (__strftime_internal): Handle %Ob and %Oh formats.
21905 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
21906 (__strptime_internal): Handle %Ob and %Oh formats.
21907 * time/tst-strptime.c (day_tests): Add more tests to parse different
21908 forms of month names including the new %Ob format specifier.
21909
21910 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
21911
21912 [BZ #10871]
21913 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
21914 define them as the same as primary full month names explicitly.
21915 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
21916 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
21917 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
21918 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
21919 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
21920 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
21921 _NL_WALTMON_12): New enum constants.
21922 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
21923 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
21924 macros.
21925 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
21926 walt_mon, and alt_mon_defined members.
21927 (time_output): Output alt_mon and walt_mon members.
21928 (time_read): Read them, initialize them as copies of mon and wmon
21929 respectively if they are missing, initialize alt_mon_defined.
21930 * locale/programs/locfile-kw.gperf (alt_mon): Define.
21931 * locale/programs/locfile-kw.h: Regenerate.
21932 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
21933 * localedata/tst-langinfo.c (map): Add tests for the new constants
21934 ALTMON_1 .. ALTMON_12.
21935 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
21936 and pl_PL.UTF-8.
21937 * time/strftime_l.c (f_altmonth): New macro.
21938 (__strftime_internal): Handle %OB format.
21939 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
21940 (__strptime_internal): Handle %OB format.
21941 * time/tst-strptime.c (day_tests): Add tests to parse different forms
21942 of month names including the new %OB format specifier.
21943
21944 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21945
21946 [BZ #22685]
21947 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
21948 from ABORT_TRANSACTION.
21949 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
21950 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
21951 ABORT_TRANSACTION_IMPL): Likewise.
21952 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
21953 Linux code, but remove the code that aborts transactions.
21954
21955 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
21956
21957 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
21958
21959 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
21960
21961 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
21962 in date: "2004-14-09" should be "2004-09-14".
21963 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
21964 "2003-15-09" should be "2003-09-15".
21965
21966 2018-01-18 Arjun Shankar <arjun@redhat.com>
21967
21968 [BZ #22343]
21969 [BZ #22774]
21970 CVE-2018-6485
21971 CVE-2018-6551
21972 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
21973 after padding.
21974 (_int_memalign): check for integer overflow before calling
21975 _int_malloc.
21976 * malloc/tst-malloc-too-large.c: New test.
21977 * malloc/Makefile: Add tst-malloc-too-large.
21978
21979 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
21980
21981 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
21982 in date: "2017-24-07" should be "2017-07-24".
21983 * localedata/locales/mai_IN: Likewise.
21984 * localedata/locales/mai_NP: Likewise.
21985
21986 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
21987
21988 * po/ru.po: Update translations.
21989
21990 2018-01-17 Joseph Myers <joseph@codesourcery.com>
21991
21992 [BZ #22719]
21993 * sysdeps/hppa/backtrace.c: New file.
21994
21995 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
21996
21997 [BZ #22715]
21998 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
21999 align La_x86_64_retval to VEC_SIZE.
22000
22001 2018-01-16 Joseph Myers <joseph@codesourcery.com>
22002
22003 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
22004 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
22005
22006 2018-01-16 Florian Weimer <fweimer@redhat.com>
22007
22008 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
22009 Move tst-thread-exit-clobber ...
22010 [$(CXX)] (tests-unsupported): ... to here.
22011
22012 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
22013
22014 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
22015 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
22016 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
22017 (_dl_aarch64_cap_flags): Update.
22018 (_DL_HWCAP_COUNT): Update.
22019
22020 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
22021
22022 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
22023 (_DL_HWCAP_LAST): Remove.
22024 (_DL_HWCAP_COUNT): Move to ...
22025 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
22026 (_DL_HWCAP_COUNT): ... here.
22027
22028 2018-01-16 Florian Weimer <fweimer@redhat.com>
22029
22030 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
22031 mode with GNU extensions.
22032
22033 2018-01-15 Alan Hayward <alan.hayward@arm.com>
22034
22035 * elf/elf.h (NT_ARM_SVE): Define.
22036
22037 2018-01-15 Florian Weimer <fweimer@redhat.com>
22038
22039 [BZ #22636]
22040 * nptl/tst-minstack-throw.cc: New file.
22041 * nptl/Makefile (tests): Add tst-minstack-throw.
22042 (LDLIBS-tst-minstack-throw): Link with libstdc++.
22043 [!CXX] (tests-unsupported): Add tst-minstack-throw.
22044
22045 2018-01-15 Joseph Myers <joseph@codesourcery.com>
22046
22047 * scripts/build-many-glibcs.py (Context.checkout): Default
22048 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
22049 version to 1.1.0.
22050
22051 2018-01-13 Carlos O'Donell <carlos@redhat.com>
22052
22053 [BZ #22707]
22054 * elf/elf.h (DF_1_STUB): Define.
22055 (DF_1_PIE): Define.
22056
22057 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22058
22059 [BZ #22697]
22060 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
22061 Do not add 0.5 to integer or out-of-range arguments.
22062
22063 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
22064
22065 * po/bg.po: Update translations.
22066 * po/cs.po: Likewise.
22067 * po/de.po: Likewise.
22068 * po/ko.po: Likewise.
22069 * po/pl.po: Likewise.
22070 * po/sv.po: Likewise.
22071 * po/uk.po: Likewise.
22072 * po/vi.po: Likewise.
22073
22074 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
22075
22076 * aarch64/start.S (_start): Use __wrap_main.
22077 (__wrap_main): New local symbol.
22078
22079 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
22080
22081 [BZ #22679]
22082 CVE-2018-1000001
22083 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
22084 generic_getcwd if the path returned by getcwd syscall is not absolute.
22085 * io/tst-getcwd-abspath.c: New test.
22086 * io/Makefile (tests): Add tst-getcwd-abspath.
22087
22088 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
22089
22090 * malloc/malloc.c (malloc_consolidate): Add size check.
22091
22092 2018-01-12 Florian Weimer <fweimer@redhat.com>
22093
22094 * support/write_message.c (write_message): Preserve errno.
22095 * support/check.c (print_failure): Likewise.
22096 * support/support_test_verify_impl.c (support_test_verify_impl):
22097 Likewise.
22098 * support/support_test_compare_failure.c
22099 (support_test_compare_failure): Likewise.
22100
22101 2018-01-12 Florian Weimer <fweimer@redhat.com>
22102
22103 [BZ #22701]
22104 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
22105 Prevent installation of libnsl.so.
22106 (libnsl-inhibit-o): Do not build (or install) static libraries.
22107
22108 2018-01-12 Egmont Koblinger <egmont@gmail.com>
22109
22110 [BZ #22657]
22111 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
22112 before the day number which may produce a double space.
22113 (date_fmt): Likewise.
22114
22115 2018-01-12 Joseph Myers <joseph@codesourcery.com>
22116
22117 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
22118 instead of fegetenv.
22119
22120 2018-01-11 Joseph Myers <joseph@codesourcery.com>
22121
22122 [BZ #22702]
22123 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
22124 comment to say exceptions are discarded.
22125 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
22126 __fegetenv.
22127 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
22128 be enabled.
22129
22130 2018-01-11 Florian Weimer <fweimer@redhat.com>
22131
22132 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
22133 and error message.
22134
22135 2018-01-11 Florian Weimer <fweimer@redhat.com>
22136
22137 [BZ #22636]
22138 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
22139 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
22140
22141 2018-01-10 Joseph Myers <joseph@codesourcery.com>
22142
22143 [BZ #22693]
22144 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
22145 negative arguments in test for NaN or infinity argument.
22146
22147 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
22148
22149 * po/libc.pot: Regenerate.
22150
22151 2018-01-10 Florian Weimer <fweimer@redhat.com>
22152
22153 [BZ #22636]
22154 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
22155 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
22156
22157 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
22158
22159 * hurd/hurd/fd.h: Include <fcntl.h>
22160 (__hurd_at_flags): New function.
22161 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
22162 with call to __hurd_at_flags.
22163 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
22164 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
22165 __faccessat
22166 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
22167 (__access_noerrno): Use __faccessat_common instead of access_common.
22168 (__access): Likewise.
22169 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
22170 with a call to __faccessat.
22171 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
22172 (__faccessat_common): ... this. Move implementation of __access into it when
22173 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
22174 reauthenticate_cwdir_at helper to implement AT mechanism.
22175 (__faccessat_noerrno): New function, just calls __faccessat_common.
22176 (__faccessat): New function, just calls __faccessat_common.
22177 (faccessat): Define weak alias.
22178
22179 2018-01-10 Joseph Myers <joseph@codesourcery.com>
22180
22181 [BZ #22691]
22182 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
22183 (CFLAGS-s_fmaxmagl.c): New variable.
22184 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
22185
22186 [BZ #22690]
22187 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
22188 long int for arguments of possibly overflowing addition or
22189 subtraction.
22190 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
22191
22192 2018-01-09 Joseph Myers <joseph@codesourcery.com>
22193
22194 [BZ #22688]
22195 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
22196 (CFLAGS-e_remainderl.c): New variable.
22197
22198 [BZ #22687]
22199 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
22200 variable.
22201 (CFLAGS-s_cacoshl.c): Likewise.
22202 (CFLAGS-s_casinhl.c): Likewise.
22203 (CFLAGS-s_catanl.c): Likewise.
22204 (CFLAGS-s_catanhl.c): Likewise.
22205 (CFLAGS-s_cexpl.c): Likewise.
22206 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
22207 (CFLAGS-s_csinhl.c): Likewise.
22208 (CFLAGS-s_clogl.c): Likewise.
22209 (CFLAGS-s_clog10l.c): Likewise.
22210 (CFLAGS-s_csinl.c): Likewise.
22211 (CFLAGS-s_csqrtl.c): Likewise.
22212
22213 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
22214 2017-01-09 Svante Signell <svante.signell@gmail.com>
22215
22216 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
22217 (_hurd_exec_paths): New function.
22218 * hurd/hurd.h (_hurd_exec): Deprecate function.
22219 (_hurd_exec_paths): Declare function.
22220 * hurd/Versions: Export _hurd_exec_paths.
22221 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
22222 (__execve): Use __getcwd to build absolute path, and use
22223 _hurd_exec_paths instead of _hurd_exec.
22224 * sysdeps/mach/hurd/spawni.c: Likewise.
22225 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
22226 _hurd_exec.
22227
22228 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
22229
22230 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
22231 test instead of failing in case of ENOENT returned by posix_openpt.
22232
22233 2018-01-08 Florian Weimer <fweimer@redhat.com>
22234
22235 resolv: Support binary labels in test framework.
22236 * support/resolv_test.c (struct to_be_freed): Remove.
22237 (struct compressed_name): New.
22238 (allocate_compressed_name, ascii_tolower)
22239 (compare_compressed_name): New functions.
22240 (struct resolv_response_builder): Update type of
22241 compression_offsets for use with tsearch. Rempve to_be_freed.
22242 (response_push_pointer_to_free): Remove function.
22243 (resolv_response_add_name): Rewrite using struct compressed_name
22244 and tsearch instead of hsearch_r.
22245 (response_builder_allocate): Remove initialization of
22246 compression_offsets.
22247 (response_builder_free): Update for removal of to_be_freed. Use
22248 tdestroy instead of hdestroy_r.
22249 * resolv/Makefile (tests): Add tst-resolv-binary.
22250 (tst-resolv-binary): Link with -lresolv -lpthread.
22251
22252 2018-01-08 Florian Weimer <fweimer@redhat.com>
22253
22254 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
22255 time. Pass positive flag instead of negative flag to
22256 support_test_compare_failure.
22257 (support_test_compare_failure): Change negative parameter to
22258 positive.
22259 * support/support_test_compare_failure.c (report)
22260 (support_test_compare_failure): Likewise.
22261 * support/tst-test_compare.c (return_ssize_t, return_int): New.
22262 (do_test): Check int/size_t, ssize_t/size_t comparisons.
22263
22264 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
22265
22266 [BZ #22637]
22267 * nptl/descr.h (stackblock, stackblock_size): Update comments.
22268 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
22269 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
22270 stacksize.
22271 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
22272
22273 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
22274
22275 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
22276 Add s_sincosf-sse2 and s_sincosf-fma.
22277 (CFLAGS-s_sincosf-fma.c): New.
22278 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
22279 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
22280 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
22281 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
22282 __sincosf is defined.
22283
22284 2018-01-08 Florian Weimer <fweimer@redhat.com>
22285
22286 * nptl/tst-thread-exit-clobber.cc: New file.
22287 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
22288 C++11 mode.
22289 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
22290 (tests): Add tst-thread-exit-clobber.
22291 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
22292
22293 2018-01-08 Florian Weimer <fweimer@redhat.com>
22294
22295 * support/check.h (support_static_assert): Define.
22296 (TEST_COMPARE): Use it.
22297
22298 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
22299
22300 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
22301 [!__RLIM_T_MATCHES_RLIM64_T]
22302 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
22303 __getrlimit64. Add libc_hidden_weak.
22304
22305 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
22306
22307 * elf/elf.h (R_RISCV_NONE): New define.
22308 (R_RISCV_32): Likewise.
22309 (R_RISCV_64): Likewise.
22310 (R_RISCV_RELATIVE): Likewise.
22311 (R_RISCV_COPY): Likewise.
22312 (R_RISCV_JUMP_SLOT): Likewise.
22313 (R_RISCV_TLS_DTPMOD32): Likewise.
22314 (R_RISCV_TLS_DTPMOD64): Likewise.
22315 (R_RISCV_TLS_DTPREL32): Likewise.
22316 (R_RISCV_TLS_DTPREL64): Likewise.
22317 (R_RISCV_TLS_TPREL32): Likewise.
22318 (R_RISCV_TLS_TPREL64): Likewise.
22319 * Makerules (make-link-multidir): Make directories before linking into
22320 them.
22321 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
22322 define.
22323 (VDSO_HASH_LINUX_4_15): Likewise.
22324 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
22325 in subdirectories of lib.
22326 * nptl/Makefile (/librt.so): Always depend on
22327 "$(shared-thread-library)".
22328
22329 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
22330
22331 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
22332 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
22333 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
22334 (___tls_get_addr).
22335 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
22336 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
22337 "-O2 -march=i686".
22338 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
22339 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
22340 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
22341 * sysdeps/gnu/glob-lstat-compat.c: New file.
22342 * sysdeps/gnu/glob64-lstat-compat.c: New file.
22343 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
22344
22345 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22346
22347 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
22348 Reserve 16 chars to reloc_addr before calling _itoa_word.
22349
22350 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
22351
22352 [BZ #22678]
22353 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
22354 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
22355
22356 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
22357 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
22358
22359 * resource/tst-getrlimit.c: Add copyright header.
22360
22361 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
22362 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22363
22364 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
22365 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
22366 Define __GI_getrlimit64 as weak alias of __getrlimit64.
22367 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
22368 instead.
22369 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
22370 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
22371 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
22372 RLIM64_INFINITY): Fix values to match the kernel ones.
22373 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
22374 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
22375 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
22376 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
22377 getrlimit64@@GLIBC_2_27.
22378 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
22379 and setrlimit64.
22380 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
22381 getrlimit, setrlimit, getrlimit64 and setrlimit64.
22382 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
22383 setrlimit, getrlimit64 and setrlimit64.
22384
22385 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
22386
22387 [BZ #22648]
22388 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
22389 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
22390
22391 2018-01-04 Joseph Myers <joseph@codesourcery.com>
22392
22393 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
22394 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
22395 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
22396
22397 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22398
22399 [BZ #15479]
22400 [BZ #22666]
22401 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
22402 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
22403
22404 [BZ #15479]
22405 [BZ #22665]
22406 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
22407 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
22408 * sysdeps/alpha/fpu/s_floor.c: Likewise.
22409 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
22410
22411 2018-01-04 Florian Weimer <fweimer@redhat.com>
22412
22413 [BZ #22667]
22414 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
22415 Align the stack before calling exit.
22416 * stdlib/tst-makecontext-align.c: New file.
22417 * stdlib/Makefile (tests): Add tst-makecontext-align.
22418
22419 2018-01-04 Florian Weimer <fweimer@redhat.com>
22420
22421 Add support for calling dlvsym from libc.so.
22422 * include/dlfcn.h (__libc_dlvsym): Declare.
22423 * elf/Makefile (tests-static-internal): Add
22424 tst-libc_dlvsym-static.
22425 (tests-internal): Add tst-libc_dlvsym.
22426 (modules-names): Add tst-libc_dlvsym-dso.
22427 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
22428 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
22429 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
22430 object tst-libc_dlvsym-dso.so needs to be built before running
22431 these tests.
22432 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
22433 * elf/Versions: Export __libc_dlvsym.
22434 * elf/dl-libc.c (struct do_dlvsym_args): New.
22435 (do_dlvsym, __libc_dlvsym): New functions.
22436 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
22437 (_dl_open_hook2): New variable.
22438 (__libc_register_dl_open_hook): Set it.
22439 * elf/tst-libc_dlvsym-dso.c: New file.
22440 * elf/tst-libc_dlvsym-static.c: Likewise.
22441 * elf/tst-libc_dlvsym.c: Likewise.
22442 * elf/tst-libc_dlvsym.h: Likewise.
22443
22444 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
22445
22446 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
22447 include <sys/mount.h>.
22448
22449 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
22450
22451 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
22452 Add __NO_MATH_ERRNO__ check.
22453
22454 2018-01-02 Joseph Myers <joseph@codesourcery.com>
22455
22456 * sysdeps/mips/mips32/libm-test-ulps: Update.
22457 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
22458
22459 2018-01-02 Florian Weimer <fweimer@redhat.com>
22460
22461 * misc/tst-pselect.c: Add copyright header.
22462
22463 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
22464
22465 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
22466 comment.
22467 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
22468 comment.
22469 (settrlimit): Rename into setrlimit.
22470 (__sttrlimit): Rename into __setrlimit.
22471
22472 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
22473 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
22474 never defined in that case.
22475
22476 2018-01-02 Joseph Myers <joseph@codesourcery.com>
22477
22478 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
22479
22480 * sysdeps/arm/libm-test-ulps: Update.
22481
22482 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
22483 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
22484
22485 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
22486
22487 * NEWS: Add cosf and sincosf to list of optimized functions.
22488
22489 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
22490
22491 [BZ #22660]
22492 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
22493 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
22494 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
22495 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
22496
22497 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
22498
22499 [BZ #22433]
22500 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
22501
22502 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
22503 making a copy of it.
22504
22505 2018-01-01 Joseph Myers <joseph@codesourcery.com>
22506
22507 * manual/texinfo.tex: Update to version 2017-12-26.21 with
22508 trailing whitespace removed.
22509 * scripts/config.guess: Update to version 2018-01-01.
22510 * scripts/config.sub: Update to version 2018-01-01.
22511 * scripts/move-if-change: Update from gnulib.
22512
22513 * NEWS: Update copyright dates.
22514 * catgets/gencat.c (print_version): Likewise.
22515 * csu/version.c (banner): Likewise.
22516 * debug/catchsegv.sh: Likewise.
22517 * debug/pcprofiledump.c (print_version): Likewise.
22518 * debug/xtrace.sh (do_version): Likewise.
22519 * elf/ldconfig.c (print_version): Likewise.
22520 * elf/ldd.bash.in: Likewise.
22521 * elf/pldd.c (print_version): Likewise.
22522 * elf/sotruss.sh: Likewise.
22523 * elf/sprof.c (print_version): Likewise.
22524 * iconv/iconv_prog.c (print_version): Likewise.
22525 * iconv/iconvconfig.c (print_version): Likewise.
22526 * locale/programs/locale.c (print_version): Likewise.
22527 * locale/programs/localedef.c (print_version): Likewise.
22528 * login/programs/pt_chown.c (print_version): Likewise.
22529 * malloc/memusage.sh (do_version): Likewise.
22530 * malloc/memusagestat.c (print_version): Likewise.
22531 * malloc/mtrace.pl: Likewise.
22532 * manual/libc.texinfo: Likewise.
22533 * nptl/version.c (banner): Likewise.
22534 * nscd/nscd.c (print_version): Likewise.
22535 * nss/getent.c (print_version): Likewise.
22536 * nss/makedb.c (print_version): Likewise.
22537 * posix/getconf.c (main): Likewise.
22538 * scripts/test-installation.pl: Likewise.
22539 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
22540
22541 * All files with FSF copyright notices: Update copyright dates
22542 using scripts/update-copyrights.
22543 * locale/programs/charmap-kw.h: Regenerated.
22544 * locale/programs/locfile-kw.h: Likewise.
22545
22546 2017-12-31 Zack Weinberg <zackw@panix.com>
22547
22548 * libio/bits/libio-ldbl.h: Correct check for improper
22549 inclusion. Add own multiple include guard.
22550
22551 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
22552 Dmitry V. Levin <ldv@altlinux.org>
22553
22554 [BZ #22625]
22555 CVE-2017-16997
22556 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
22557 string token expansion. Check for NULL pointer or empty string possibly
22558 returned by expand_dynamic_string_token.
22559 (decompose_rpath): Check for empty path after dynamic string
22560 token expansion.
22561
22562 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
22563
22564 [BZ #22433]
22565 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
22566
22567 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
22568 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
22569 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
22570 and PTRACE_SYSCALL.
22571 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
22572 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
22573 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
22574 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
22575 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
22576 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
22577
22578 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
22579 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
22580 __ptrace_peeksiginfo_flags, ptrace): Move to ...
22581 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
22582 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
22583 bits/ptrace-shared.h.
22584 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
22585 <bits/ptrace-shared.h>.
22586 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
22587 __ptrace_peeksiginfo_flags, ptrace): Remove.
22588 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
22589 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
22590 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
22591 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
22592 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
22593
22594 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
22595
22596 [BZ #17804]
22597 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
22598 end of the loop. Improve comments.
22599
22600 2017-12-29 Zack Weinberg <zackw@panix.com>
22601
22602 [BZ #22615]
22603 * manual/errno.texi (Checking for Errors): Explicitly say that errno
22604 might be set on success.
22605
22606 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
22607
22608 [BZ #22611]
22609 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
22610 is unchanged on success.
22611
22612 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
22613
22614 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
22615 updated.
22616 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
22617 expand_dynamic_string_token): Likewise.
22618 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
22619 is_path argument.
22620
22621 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
22622 contains ':'.
22623
22624 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
22625 is set and name contains ':', and all code depending on these checks.
22626
22627 2017-12-24 Zack Weinberg <zackw@panix.com>
22628
22629 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
22630 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
22631 respectively.
22632 * libio/libio.h: Rename the original version of this file to
22633 libio/bits/libio.h. Error out if not included by stdio.h or the
22634 stub libio.h.
22635 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
22636 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
22637 if not included by bits/libio.h or the stub _G_config.h.
22638 * sysdeps/unix/sysv/linux/_G_config.h: Move to
22639 sysdeps/unix/sysv/linux/bits. Error out if not included by
22640 bits/libio.h or the stub _G_config.h.
22641 * libio/stdio.h: Include bits/libio.h, not libio.h.
22642 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
22643 well as libio.h and _G_config.h.
22644
22645 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
22646 * libio/strfile.h, stdio-common/vfscanf.c
22647 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
22648 Include stdio.h, not _G_config.h nor libio.h.
22649 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
22650 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
22651
22652 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
22653
22654 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
22655
22656 [BZ #22347]
22657 * stdlib/getrandom.c (getrandom): Fix comment.
22658 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
22659
22660 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
22661
22662 [BZ #21161]
22663 * manual/arith.texi (strtoul): Fix a typo.
22664
22665 [BZ #22596]
22666 * manual/arith.texi (finite): Fix the description of the return
22667 value.
22668
22669 2017-12-22 Eric Blake <ebb9@byu.net>
22670
22671 Avoid gcc warnings on cygwin
22672 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
22673 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
22674 Avoid unused variable.
22675
22676 2017-12-22 Florian Weimer <fweimer@redhat.com>
22677
22678 * io/Makefile (routines): Add copy_file_range.
22679 (tests): Add tst-copy_file_range.
22680 (tests-static, tests-internal): Add tst-copy_file_range-compat.
22681 * io/Versions (GLIBC_2.27): Export copy_file_range.
22682 * io/copy_file_range-compat.c: New file.
22683 * io/copy_file_range.c: Likewise.
22684 * io/tst-copy_file_range-compat.c: Likewise.
22685 * io/tst-copy_file_range.c: Likewise.
22686 * manual/llio.texi (Copying File Data): New section.
22687 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
22688 * support/Makefile (libsupport-routines): Add support-xfstat,
22689 xftruncate, xlseek.
22690 * support/support-xfstat.c: New file.
22691 * support/xftruncate.c: Likewise.
22692 * support/xlseek.c: Likewise.
22693 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
22694 * sysdeps/unix/sysv/linux/**.abilist: Update.
22695 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
22696
22697 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
22698
22699 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
22700 disable-multi-arch variant to aarch64-linux-gnu.
22701
22702 2017-12-20 Joseph Myers <joseph@codesourcery.com>
22703
22704 * manual/texinfo.tex: Update to version 2017-12-18.20 with
22705 trailing whitespace removed.
22706 * scripts/config.guess: Update to version 2017-12-17.
22707 * scripts/config.sub: Update to version 2017-11-23.
22708 * scripts/install-sh: Update to version 2017-09-23.17.
22709 * scripts/move-if-change: Update to version 2017-09-13 06:45.
22710
22711 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22712
22713 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
22714 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
22715 * sysdeps/tile/_mcount.S (__mcount): Likewise.
22716 * sysdeps/tile/crti.S (_init, _fini): Likewise.
22717 * sysdeps/tile/crtn.S: Likewise.
22718 * sysdeps/tile/dl-start.S (_start): Likewise.
22719 * sysdeps/tile/dl-trampoline.S: Likewise.
22720 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
22721 * sysdeps/tile/start.S (_start): Likewise.
22722 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
22723 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
22724 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
22725 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
22726 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
22727 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
22728 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
22729
22730 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
22731 comment.
22732 * sysdeps/tile/preconfigure: Remove tilegx folder.
22733 * sysdeps/tile/tilegx/Implies: Move definitions to ...
22734 * sysdeps/tile/Implies: ... here.
22735 * sysdeps/tile/tilegx/Makefile: Move rules to ...
22736 * sysdeps/tile/Makefile: ... here.
22737 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
22738 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
22739 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
22740 * sysdeps/tile/bits/wordsize.h: ... here.
22741 * sysdeps/tile/tilegx/*: Move to ...
22742 * sysdeps/tile/*: ... here.
22743 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
22744 * sysdeps/tile/tilegx32/Implies: ... here.
22745 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
22746 * sysdeps/tile/tilegx64/Implies: ... here.
22747 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
22748 to ...
22749 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
22750 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
22751 * sysdeps/unix/sysv/linux/tile/*: ... here.
22752 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
22753 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
22754 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
22755 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
22756
22757 * README: Remove tilepro-*-linux-gnu from supported architecture.
22758 * scripts/build-many-glibcs.py: Likewise.
22759 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
22760 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
22761 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
22762 elf_machine_matches_host, elf_machine_dynamic,
22763 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
22764 howto, elf_machine_rela): Likewise.
22765 * sysdeps/tile/dl-start.S (_start): Likewise.
22766 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
22767 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
22768 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
22769 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
22770 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
22771 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
22772 Likewise.
22773 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
22774 * sysdeps/tile/preconfigure: Likewise.
22775 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
22776 POINTER_CHK_GUARD): Likewise.
22777 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
22778 * sysdeps/tile/start.S (_start): Likewise.
22779 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
22780 Likewise.
22781 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
22782 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
22783 CMOVNEZ): Remove.
22784 * sysdeps/unix/sysv/linux/tile/bits/environments.h
22785 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
22786 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
22787 Likewise.
22788 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
22789 * sysdeps/tile/tilepro/Implies: Remove file.
22790 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
22791 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
22792 * sysdeps/tile/tilepro/memchr.c: Likewise.
22793 * sysdeps/tile/tilepro/memcpy.S: Likewise.
22794 * sysdeps/tile/tilepro/memset.c: Likewise.
22795 * sysdeps/tile/tilepro/memusage.h: Likewise.
22796 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
22797 * sysdeps/tile/tilepro/strchr.c: Likewise.
22798 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
22799 * sysdeps/tile/tilepro/strlen.c: Likewise.
22800 * sysdeps/tile/tilepro/strrchr.c: Likewise.
22801 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
22802 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
22803 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
22804 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
22805 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
22806 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
22807 Likewise.
22808 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
22809 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
22810 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
22811 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
22812 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
22813 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
22814 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
22815 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
22816 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
22817 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
22818 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
22819 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
22820 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
22821 tilepro mention in comment.
22822
22823 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
22824 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
22825 * nptl/pthread_join_common.c: New file: common function used on
22826 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
22827 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
22828 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
22829 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
22830 (cleanup): Move definition to pthread_join_common.c.
22831 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
22832 Remove superflous checks.
22833 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
22834 Likewise.
22835
22836 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
22837
22838 * sysdeps/aarch64/libm-test-ulps: Update.
22839
22840 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22841
22842 * sysdeps/aarch64/memset.S (MEMSET): Define.
22843
22844 2017-12-20 Florian Weimer <fweimer@redhat.com>
22845
22846 [BZ #22635]
22847 nptl: Provide full implementation of pthread_self in libc.so.
22848 * nptl/Makefile (routines): Add pthread_self.
22849 (libpthread-routines): Replace pthread_self with
22850 compat-pthread_self.
22851 * nptl/forward.c (pthread_self): Remove.
22852 * nptl/nptl-init.c (pthread_functions): Do not initialize
22853 ptr_pthread_self.
22854 * nptl/pthread_self.c (pthread_self): Remove weak alias.
22855 * nptl/compat-pthread_self.c: New file.
22856 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
22857 Remove ptr_pthread_self.
22858
22859 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
22860
22861 * posix/regcomp.c: Fix spelling in comments.
22862 * posix/regex.h: Likewise.
22863 * posix/regex_internal.c: Likewise.
22864 * posix/regexec.c: Likewise.
22865
22866 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
22867
22868 [BZ #22377]
22869 * math/Makefile [C++] (tests): Add test for iseqsig.
22870 * math/math.h [C++] (iseqsig): New implementation, which does
22871 not rely on __MATH_TG/__builtin_types_compatible_p.
22872 * math/test-math-iseqsig.cc: New file.
22873 * sysdeps/powerpc/powerpc64le/Makefile
22874 (CFLAGS-test-math-iseqsig.cc): New variable.
22875
22876 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
22877
22878 * elf/dl-load.c (is_trusted_path): Remove.
22879 (fillin_rpath): Remove check_trusted argument and its use,
22880 all callers changed.
22881
22882 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
22883
22884 [BZ #22630]
22885 * Makeconfig (link-pie-before-libc): Replace -pie with
22886 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
22887 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
22888 (tst-dlopen-aout-no-pie): New.
22889 (LDFLAGS-tst-prelink): Removed.
22890 (tst-prelink-no-pie): New.
22891 (LDFLAGS-tst-main1): Removed.
22892 (tst-main1-no-pie): New.
22893 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
22894 (tst-gmon-no-pie): New.
22895
22896 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
22897
22898 * manual/install.texi: Document that --enable-static-pie
22899 implies PIE.
22900 * INSTALL: Regenerated.
22901
22902 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
22903
22904 [BZ #21309]
22905 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
22906 unsigned.
22907
22908 2017-12-19 Joseph Myers <joseph@codesourcery.com>
22909
22910 Revert:
22911
22912 2017-12-19 Joseph Myers <joseph@codesourcery.com>
22913
22914 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
22915
22916 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
22917
22918 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
22919 <errno.h>. Include "eexp.tbl".
22920 (half): New constant.
22921 (one): Likewise.
22922 (__ieee754_exp): Rewrite.
22923 (__slowexp): Remove prototype.
22924 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
22925 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
22926 * sysdeps/i386/fpu/slowexp.c: Likewise.
22927 * sysdeps/ia64/fpu/slowexp.c: Likewise.
22928 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
22929 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
22930 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
22931 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
22932 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
22933 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
22934 comment.
22935 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
22936 (CPPFLAGS-slowexp.c): Remove variable.
22937 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
22938 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
22939 (CFLAGS-slowexp-fma.c): Remove variable.
22940 (CFLAGS-slowexp-fma4.c): Likewise.
22941 (CFLAGS-slowexp-avx.c): Likewise.
22942 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
22943 define as macro.
22944 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
22945 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
22946 * math/Makefile (type-double-routines): Remove slowexp.
22947 * manual/probes.texi (slowexp_p6): Remove.
22948 (slowexp_p32): Likewise.
22949
22950 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22951
22952 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
22953 arithmetic.
22954
22955 * lib/glob.c (glob): Do not pass NULL to mempcpy.
22956
22957 2017-12-19 Joseph Myers <joseph@codesourcery.com>
22958
22959 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
22960
22961 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
22962
22963 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
22964 <errno.h>. Include "eexp.tbl".
22965 (half): New constant.
22966 (one): Likewise.
22967 (__ieee754_exp): Rewrite.
22968 (__slowexp): Remove prototype.
22969 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
22970 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
22971 * sysdeps/i386/fpu/slowexp.c: Likewise.
22972 * sysdeps/ia64/fpu/slowexp.c: Likewise.
22973 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
22974 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
22975 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
22976 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
22977 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
22978 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
22979 comment.
22980 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
22981 (CPPFLAGS-slowexp.c): Remove variable.
22982 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
22983 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
22984 (CFLAGS-slowexp-fma.c): Remove variable.
22985 (CFLAGS-slowexp-fma4.c): Likewise.
22986 (CFLAGS-slowexp-avx.c): Likewise.
22987 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
22988 define as macro.
22989 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
22990 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
22991 * math/Makefile (type-double-routines): Remove slowexp.
22992 * manual/probes.texi (slowexp_p6): Remove.
22993 (slowexp_p32): Likewise.
22994
22995 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22996 James Clarke <jrtc27@jrtc27.com>
22997
22998 [BZ #22603]
22999 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
23000 addition.
23001
23002 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23003
23004 [BZ #22605]
23005 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
23006 code.
23007
23008 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23009
23010 [BZ #22563]
23011 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
23012 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
23013 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
23014 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
23015 to feature_1.
23016
23017 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23018
23019 [BZ #22563]
23020 * bits/types/__cancel_jmp_buf_tag.h: New file.
23021 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
23022 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
23023 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
23024 * nptl/Makefile (headers): Add
23025 bits/types/__cancel_jmp_buf_tag.h.
23026 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
23027 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
23028 * sysdeps/nptl/pthread.h: Include
23029 <bits/types/__cancel_jmp_buf_tag.h>.
23030 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
23031 __cancel_jmp_buf.
23032 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
23033
23034 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
23035
23036 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
23037 --enable-static-pie variants to x86_64, x32 and i686.
23038
23039 2017-12-19 Joseph Myers <joseph@codesourcery.com>
23040
23041 [BZ #22631]
23042 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
23043 argument for attrubutes. All callers changed.
23044 (__inline_mathop1): Likewise. All callers changed.
23045 (__inline_mathop): Likewise. All callers changed.
23046 [__USE_MISC] (scalbn): Use __inline_forward instead of
23047 __inline_forward_c.
23048 [__USE_ISOC99] (scalbln): Likewise.
23049 [__USE_ISOC99] (nearbyint): Likewise.
23050 [__USE_ISOC99] (lrint): Likewise.
23051 [__USE_MISC] (scalbnf): Likewise.
23052 [__USE_ISOC99] (scalblnf): Likewise.
23053 [__USE_ISOC99] (nearbyintf): Likewise.
23054 [__USE_ISOC99] (lrintf): Likewise.
23055 [__USE_MISC] (scalbnl): Likewise.
23056 [__USE_ISOC99] (scalblnl): Likewise.
23057 [__USE_ISOC99] (nearbyintl): Likewise.
23058 [__USE_ISOC99] (lrintl): Likewise.
23059 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
23060 __inline_mathop and __m81_defun changed.
23061
23062 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
23063 CPU or FPU for ARM hard-float configurations.
23064
23065 2017-12-18 Joseph Myers <joseph@codesourcery.com>
23066
23067 * nptl/tst-attr3.c: Include <libc-diag.h>.
23068 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
23069
23070 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
23071
23072 * string/tester.c (test_strncat): Also disable -Warray-bounds
23073 warnings for two tests.
23074
23075 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
23076
23077 [BZ #22614]
23078 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
23079 $(cc-pie-default) == yes.
23080 * config.make.in (cc-pie-default): New.
23081 * configure.ac (libc_cv_pie_default): Renamed to ...
23082 (libc_cv_cc_pie_default): This.
23083 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
23084 * configure: Regenerated.
23085
23086 2017-12-18 Florian Weimer <fweimer@redhat.com>
23087
23088 [BZ #20204]
23089 ld.so: Harden dl-libc/libdl hooks.
23090 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
23091 (rtld_active): New function.
23092 * dlfcn/dladdr.c (__dladdr): Call it.
23093 * dlfcn/dladdr1.c (__dladdr1): Likewise.
23094 * dlfcn/dlclose.c (__dlcose): Likewise.
23095 * dlfcn/dlerror.c (__dlerror): Likewise.
23096 * dlfcn/dlinfo.c (__dlinfo): Likewise.
23097 * dlfcn/dlmopen.c (__dlmopen): Likewise.
23098 * dlfcn/dlopen.c (__dlopen): Likewise.
23099 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
23100 * dlfcn/dlsym.c (__dlsym): Likewise.
23101 * dlfcn/dlvsym.c (__dlvsym): Likewise.
23102 * libio/vtables.c (_IO_vtable_check): Likewise.
23103 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
23104 (__libc_dlclose): Likewise.
23105 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
23106 assignment.
23107
23108 2017-12-18 Joseph Myers <joseph@codesourcery.com>
23109
23110 [BZ #22446]
23111 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
23112 buffers for readlink input and output.
23113
23114 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
23115
23116 [BZ #22624]
23117 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
23118 inhibit_stack_protector.
23119
23120 [BZ #22624]
23121 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
23122 inhibit_stack_protector.
23123
23124 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
23125
23126 [BZ #22627]
23127 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
23128 code and invocation.
23129
23130 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
23131
23132 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
23133
23134 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
23135
23136 [BZ #22505]
23137 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
23138
23139 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23140
23141 * sysdeps/s390/fpu/libm-test-ulps: Update.
23142
23143 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23144
23145 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23146
23147 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23148
23149 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
23150 constants to s_sincosf.h file.
23151 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
23152 * sysdeps/ieee754/flt-32/s_sincosf.c: New
23153 implementation.
23154 * sysdeps/ieee754/flt-32/s_sincosf.h:
23155 New file.
23156
23157 2017-12-12 Carlos O'Donell <carlos@redhat.com>
23158
23159 [BZ #14681]
23160 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
23161 before mtrace.
23162
23163 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
23164
23165 [BZ #19574]
23166 * INSTALL: Regenerated.
23167 * Makeconfig (real-static-start-installed-name): New.
23168 (pic-default): Updated for --enable-static-pie.
23169 (pie-default): New for --enable-static-pie.
23170 (default-pie-ldflag): Likewise.
23171 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
23172 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
23173 Replace $(static-start-installed-name) with
23174 $(real-static-start-installed-name).
23175 (+prectorT): Updated for --enable-static-pie.
23176 (+postctorT): Likewise.
23177 (CFLAGS-.o): Add $(pie-default).
23178 (CFLAGS-.op): Likewise.
23179 * NEWS: Mention --enable-static-pie.
23180 * config.h.in (ENABLE_STATIC_PIE): New.
23181 * configure.ac (--enable-static-pie): New configure option.
23182 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
23183 (have-static-pie): Likewise.
23184 Enable static PIE if linker supports --no-dynamic-linker.
23185 (ENABLE_STATIC_PIE): New AC_DEFINE.
23186 (enable-static-pie): New LIBC_CONFIG_VAR.
23187 * configure: Regenerated.
23188 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
23189 gr$(start-installed-name) for --enable-static-pie.
23190 (extra-objs): Likewise.
23191 (install-lib): Likewise.
23192 (extra-objs): Add static-reloc.o and static-reloc.os
23193 ($(objpfx)$(start-installed-name)): Also depend on
23194 $(objpfx)static-reloc.o.
23195 ($(objpfx)r$(start-installed-name)): New.
23196 ($(objpfx)g$(start-installed-name)): Also depend on
23197 $(objpfx)static-reloc.os.
23198 ($(objpfx)gr$(start-installed-name)): New.
23199 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
23200 in libc.a.
23201 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
23202 initimage.
23203 * csu/static-reloc.c: New file.
23204 * elf/Makefile (routines): Add dl-reloc-static-pie.
23205 (elide-routines.os): Likewise.
23206 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
23207 (tst-tls1-static-non-pie-no-pie): New.
23208 * elf/dl-reloc-static-pie.c: New file.
23209 * elf/dl-support.c (_dl_get_dl_main_map): New function.
23210 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
23211 STATIC_PIE_BOOTSTRAP.
23212 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
23213 * gmon/Makefile (tests): Add tst-gmon-static-pie.
23214 (tests-static): Likewise.
23215 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
23216 (tst-gmon-static-no-pie): New.
23217 (CFLAGS-tst-gmon-static-pie.c): Likewise.
23218 (CRT-tst-gmon-static-pie): Likewise.
23219 (tst-gmon-static-pie-ENV): Likewise.
23220 (tests-special): Likewise.
23221 ($(objpfx)tst-gmon-static-pie.out): Likewise.
23222 (clean-tst-gmon-static-pie-data): Likewise.
23223 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
23224 * gmon/tst-gmon-static-pie.c: New file.
23225 * manual/install.texi: Document --enable-static-pie.
23226 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
23227 (_dl_get_dl_main_map): Likewise.
23228 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
23229 * sysdeps/x86_64/configure.ac: Likewise.
23230 * sysdeps/i386/configure: Regenerated.
23231 * sysdeps/x86_64/configure: Likewise.
23232 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
23233 (ASFLAGS-.op): Likewise.
23234
23235 2017-12-15 Joseph Myers <joseph@codesourcery.com>
23236
23237 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
23238 * posix/tst-mmap-offset.c (fname): Use /tmp.
23239 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
23240
23241 2017-12-15 Steve Ellcey <sellcey@cavium.com>
23242
23243 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
23244
23245 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
23246
23247 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
23248 errno.
23249
23250 2017-12-15 Joseph Myers <joseph@codesourcery.com>
23251
23252 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
23253 --with-float=hard for arm-linux-gnueabihf configurations.
23254
23255 [BZ #14121]
23256 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
23257 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
23258 ($(mo-installed)): Use $(objpfx)%.mo.
23259 (realclean): Remove rule.
23260
23261 * po/Makefile (linguas): Remove rule and dependencies.
23262 (linguas.mo): Likewise.
23263 (.PHONY): Do not depend on linguas and linguas.mo.
23264 (podir): Remove variable.
23265 (pofiles): Likewise.
23266 [$(pofiles)] (%.po): Remove rule.
23267
23268 * sysdeps/sparc/sparc32/Makefile
23269 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
23270 start-of-line whitespace in argument of echo.
23271 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
23272 with whitespace. Generate __wrap_.udiv alias.
23273 * sysdeps/sparc/sparc32/rem.S: Regenerated.
23274 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
23275 * sysdeps/sparc/sparc32/udiv.S: Likewise.
23276 * sysdeps/sparc/sparc32/urem.S: Likewise.
23277
23278 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23279
23280 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
23281 for aligned inputs.
23282
23283 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
23284
23285 * benchtests/bench-strcmp.c: Print output in JSON format.
23286
23287 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
23288
23289 2017-12-14 Florian Weimer <fweimer@redhat.com>
23290
23291 [BZ #22607]
23292 CVE-2017-1000409
23293 * elf/dl-load.c (_dl_init_paths): Compute number of components in
23294 the expanded path string.
23295
23296 2017-12-14 Florian Weimer <fweimer@redhat.com>
23297
23298 [BZ #22606]
23299 CVE-2017-1000408
23300 * elf/dl-load.c (system_dirs): Update comment.
23301 (nsystem_dirs_len): Use array_length.
23302 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
23303
23304 2017-12-14 Florian Weimer <fweimer@redhat.com>
23305
23306 Simplify compiling most of support/ outside of glibc.
23307 * support/check_addrinfo.c: Include <string.h>.
23308 * support/check_dns_packet.c: Likewise.
23309 * support/check_hostent.c: Likewise.
23310 * support/support_can_chroot.c: Include <support/xunistd.h>.
23311 * support/support_format_addrinfo.c: Include <stdlib.h>
23312 * support/support_format_dns_packet.c: Include <stdbool.h>.
23313 * support/support_format_hostent.c: Include <stdlib.h>.
23314 * support/support_format_netent.c: Likewise.
23315 * support/support_write_string.c: Include <support/xunistd.h>.
23316 * support/xdlfcn.c: Include <stddef.h>.
23317
23318 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
23319
23320 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
23321
23322 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
23323 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23324
23325 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
23326 (sysdeps_routines): Add memset-niagara7.
23327 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
23328 Likewise.
23329 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
23330 file.
23331 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
23332 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
23333 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
23334 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
23335 Add niagara7 option.
23336 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
23337 memset.
23338
23339 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
23340 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
23341 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
23342 Likewise.
23343 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
23344 New file.
23345 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
23346 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
23347 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
23348 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
23349 and __memmove_niagara7.
23350 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
23351 Add niagara7 option.
23352 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
23353 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
23354 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
23355 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
23356 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
23357
23358 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
23359
23360 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
23361 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
23362 * sysdeps/sparc/sparc64/memmove.S: Likewise.
23363 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
23364
23365 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
23366 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
23367 _dl_sparc_cap_flags array.
23368 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
23369
23370 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
23371
23372 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
23373 time whenever possible.
23374
23375 2017-12-12 Carlos O'Donell <carlos@redhat.com>
23376
23377 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
23378 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
23379
23380 2017-12-12 Joseph Myers <joseph@codesourcery.com>
23381
23382 * soft-fp/fmadf4.c: Move to ....
23383 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
23384 * soft-fp/fmasf4.c: Move to ....
23385 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
23386 * soft-fp/fmatf4.c: Move to ....
23387 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
23388 * sysdeps/ieee754/soft-fp/Makefile: New file.
23389 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
23390 * sysdeps/arm/preconfigure: Regenerated.
23391 * sysdeps/arm/nofpu/Implies: New file.
23392 * sysdeps/arm/s_fma.c: Remove file.
23393 * sysdeps/arm/s_fmaf.c: Likewise.
23394 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
23395 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
23396 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
23397 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
23398 * sysdeps/microblaze/s_fma.c: Remove file.
23399 * sysdeps/microblaze/s_fmaf.c: Likewise.
23400 * sysdeps/mips/mips32/nofpu/Implies: New file.
23401 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
23402 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
23403 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
23404 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
23405 * sysdeps/mips/ieee754/s_fma.c: Remove file.
23406 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
23407 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
23408 implementation.
23409 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
23410 * sysdeps/nios2/s_fma.c: Remove file.
23411 * sysdeps/nios2/s_fmaf.c: Likewise.
23412 * sysdeps/sh/nofpu/Implies: New file.
23413 * sysdeps/sh/s_fma.c: Remove file.
23414 * sysdeps/sh/s_fmaf.c: Likewise.
23415 * sysdeps/tile/Implies: Add ieee754/soft-fp.
23416 * sysdeps/tile/s_fma.c: Remove file.
23417 * sysdeps/tile/s_fmaf.c: Likewise.
23418
23419 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
23420
23421 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23422 Add s_cosf-sse2 and s_cosf-fma.
23423 (CFLAGS-s_cosf-fma.c): New.
23424 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
23425 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
23426 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
23427
23428 2017-12-12 Steve Ellcey <sellcey@cavium.com>
23429
23430 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
23431
23432 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23433
23434 * libio/Makefile (tests): Add tst-bz22415.
23435 (tst-bz22415-ENV): New rule.
23436 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
23437 (tests-special): Add tst-bz22415-mem.out.
23438 ($(objpfx)tst-bz22415-mem.out): New rule.
23439 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
23440 in case of a successful seek operation.
23441 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
23442 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
23443 buffer is required.
23444 * libio/tst-bz22415.c: New test.
23445
23446 * sysdeps/ia64/fpu/libm-test-ulps: Update.
23447
23448 2017-12-12 James Clarke <jrtc27@jrtc27.com>
23449
23450 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
23451 __IPC_64 to 0 to avoid IPC_64 being set.
23452
23453 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
23454
23455 [BZ #22593]
23456 * math/bits/mathcalls.h (nextafter): Remove const.
23457 (nexttoward): Likewise.
23458
23459 2017-12-12 Joseph Myers <joseph@codesourcery.com>
23460
23461 * configure.ac (--with-fp): Remove configure option.
23462 (with_fp_cond): New variable.
23463 (libc_cv_with_fp): New configure test. Use this variable instead
23464 of with_fp.
23465 * configure: Regenerated.
23466 * config.make.in (with-fp): Use @libc_cv_with_fp@.
23467 * manual/install.texi (Configuring and compiling): Remove
23468 --without-fp.
23469 * INSTALL: Regenerated.
23470 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
23471 * sysdeps/mips/preconfigure (with_fp_cond): Define.
23472 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
23473 * sysdeps/sh/preconfigure (with_fp_cond): Define.
23474 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
23475 use --without-fp to configure glibc.
23476
23477 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
23478
23479 * manual/locale.texi (nl_langinfo): Fix a typo.
23480
23481 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
23482
23483 [BZ #22588]
23484 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
23485
23486 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
23487
23488 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
23489 (CFLAGS-argp-parse.c): Likewise.
23490 (CFLAGS-argp-fmtstream.c): Likewise.
23491 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
23492 (CPPFLAGS-sha512-crypt.c): Likewise.
23493 (CPPFLAGS-md5-crypt.c): Likewise.
23494 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
23495 (CFLAGS-stack_chk_fail_local.c): Likewise.
23496 (CFLAGS-backtrace.c): Likewise.
23497 (CFLAGS-sprintf_chk.c): Likewise.
23498 (CFLAGS-snprintf_chk.c): Likewise.
23499 (CFLAGS-vsprintf_chk.c): Likewise.
23500 (CFLAGS-vsnprintf_chk.c): Likewise.
23501 (CFLAGS-asprintf_chk.c): Likewise.
23502 (CFLAGS-vasprintf_chk.c): Likewise.
23503 (CFLAGS-obprintf_chk.c): Likewise.
23504 (CFLAGS-dprintf_chk.c): Likewise.
23505 (CFLAGS-vdprintf_chk.c): Likewise.
23506 (CFLAGS-printf_chk.c): Likewise.
23507 (CFLAGS-fprintf_chk.c): Likewise.
23508 (CFLAGS-vprintf_chk.c): Likewise.
23509 (CFLAGS-vfprintf_chk.c): Likewise.
23510 (CFLAGS-gets_chk.c): Likewise.
23511 (CFLAGS-fgets_chk.c): Likewise.
23512 (CFLAGS-fgets_u_chk.c): Likewise.
23513 (CFLAGS-fread_chk.c): Likewise.
23514 (CFLAGS-fread_u_chk.c): Likewise.
23515 (CFLAGS-swprintf_chk.c): Likewise.
23516 (CFLAGS-vswprintf_chk.c): Likewise.
23517 (CFLAGS-wprintf_chk.c): Likewise.
23518 (CFLAGS-fwprintf_chk.c): Likewise.
23519 (CFLAGS-vwprintf_chk.c): Likewise.
23520 (CFLAGS-vfwprintf_chk.c): Likewise.
23521 (CFLAGS-fgetws_chk.c): Likewise.
23522 (CFLAGS-fgetws_u_chk.c): Likewise.
23523 (CFLAGS-read_chk.c): Likewise.
23524 (CFLAGS-pread_chk.c): Likewise.
23525 (CFLAGS-pread64_chk.c): Likewise.
23526 (CFLAGS-recv_chk.c): Likewise.
23527 (CFLAGS-recvfrom_chk.c): Likewise.
23528 (CFLAGS-tst-longjmp_chk.c): Likewise.
23529 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
23530 (CFLAGS-tst-longjmp_chk2.c): Likewise.
23531 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
23532 (CFLAGS-tst-longjmp_chk3.c): Likewise.
23533 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
23534 (CFLAGS-tst-chk1.c): Likewise.
23535 (CFLAGS-tst-chk2.c): Likewise.
23536 (CFLAGS-tst-chk3.c): Likewise.
23537 (CFLAGS-tst-chk4.cc): Likewise.
23538 (CFLAGS-tst-chk5.cc): Likewise.
23539 (CFLAGS-tst-chk6.cc): Likewise.
23540 (CFLAGS-tst-lfschk1.c): Likewise.
23541 (CFLAGS-tst-lfschk2.c): Likewise.
23542 (CFLAGS-tst-lfschk3.c): Likewise.
23543 (CFLAGS-tst-lfschk4.cc): Likewise.
23544 (CFLAGS-tst-lfschk5.cc): Likewise.
23545 (CFLAGS-tst-lfschk6.cc): Likewise.
23546 (CFLAGS-tst-ssp-1.c): Likewise.
23547 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
23548 (CFLAGS-scandir64.c): Likewise.
23549 (CFLAGS-scandir-tail.c): Likewise.
23550 (CFLAGS-scandir64-tail.c): Likewise.
23551 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
23552 (CFLAGS-dl-tunables.c): Likewise.
23553 (CFLAGS-dl-runtime.c): Likewise.
23554 (CFLAGS-dl-lookup.c): Likewise.
23555 (CFLAGS-dl-iterate-phdr.c): Likewise.
23556 (CFLAGS-vismain.c): Likewise.
23557 (CFLAGS-tst-linkall-static.c): Likewise.
23558 (CFLAGS-tst-linkall-static.c): Likewise.
23559 (CPPFLAGS-dl-load.c): Likewise.
23560 (CFLAGS-ldconfig.c): Likewise.
23561 (CFLAGS-dl-cache.c): Likewise.
23562 (CFLAGS-cache.c): Likewise.
23563 (CFLAGS-rtld.c): Likewise.
23564 (CFLAGS-multiload.c): Likewise.
23565 (CFLAGS-filtmod1.c): Likewise.
23566 (CFLAGS-tst-align.c): Likewise.
23567 (CFLAGS-tst-align2.c): Likewise.
23568 (CFLAGS-tst-alignmod.c): Likewise.
23569 (CFLAGS-tst-alignmod2.c): Likewise.
23570 (CPPFLAGS-tst-execstack.c): Likewise.
23571 (CFLAGS-tst-ptrguard1-static.c): Likewise.
23572 (CFLAGS-tst-latepthreadmod.c): Likewise.
23573 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
23574 (CFLAGS-getgrnam_r.c): Likewise.
23575 (CFLAGS-getgrent_r.c): Likewise.
23576 (CFLAGS-getgrent.c): Likewise.
23577 (CFLAGS-fgetgrent.c): Likewise.
23578 (CFLAGS-fgetgrent_r.c): Likewise.
23579 (CFLAGS-putgrent.c): Likewise.
23580 (CFLAGS-initgroups.c): Likewise.
23581 (CFLAGS-getgrgid.c): Likewise.
23582 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
23583 (CFLAGS-getsgent.c): Likewise.
23584 (CFLAGS-fgetsgent.c): Likewise.
23585 (CFLAGS-fgetsgent_r.c): Likewise.
23586 (CFLAGS-putsgent.c): Likewise.
23587 (CFLAGS-getsgnam.c): Likewise.
23588 (CFLAGS-getsgnam_r.c): Likewise.
23589 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
23590 (CFLAGS-iconv_charmap.c): Likewise.
23591 (CFLAGS-dummy-repertoire.c): Likewise.
23592 (CFLAGS-charmap.c): Likewise.
23593 (CFLAGS-linereader.c): Likewise.
23594 (CFLAGS-simple-hash.c): Likewise.
23595 (CFLAGS-gconv_conf.c): Likewise.
23596 (CFLAGS-iconvconfig.c): Likewise.
23597 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
23598 (CFLAGS-gethstbyad.c): Likewise.
23599 (CFLAGS-gethstbynm_r.c): Likewise.
23600 (CFLAGS-gethstbynm.c): Likewise.
23601 (CFLAGS-gethstbynm2_r.c): Likewise.
23602 (CFLAGS-gethstbynm2.c): Likewise.
23603 (CFLAGS-gethstent_r.c): Likewise.
23604 (CFLAGS-gethstent.c): Likewise.
23605 (CFLAGS-rcmd.c): Likewise.
23606 (CFLAGS-getnetbynm_r.c): Likewise.
23607 (CFLAGS-getnetbynm.c): Likewise.
23608 (CFLAGS-getnetbyad_r.c): Likewise.
23609 (CFLAGS-getnetbyad.c): Likewise.
23610 (CFLAGS-getnetent_r.c): Likewise.
23611 (CFLAGS-getnetent.c): Likewise.
23612 (CFLAGS-getaliasent_r.c): Likewise.
23613 (CFLAGS-getaliasent.c): Likewise.
23614 (CFLAGS-getrpcent_r.c): Likewise.
23615 (CFLAGS-getrpcent.c): Likewise.
23616 (CFLAGS-getservent_r.c): Likewise.
23617 (CFLAGS-getservent.c): Likewise.
23618 (CFLAGS-getprtent_r.c): Likewise.
23619 (CFLAGS-getprtent.c): Likewise.
23620 (CFLAGS-either_ntoh.c): Likewise.
23621 (CFLAGS-either_hton.c): Likewise.
23622 (CFLAGS-getnetgrent.c): Likewise.
23623 (CFLAGS-getnetgrent_r.c): Likewise.
23624 (CFLAGS-tst-checks-posix.c): Likewise.
23625 (CFLAGS-tst-sockaddr.c): Likewise.
23626 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
23627 (CFLAGS-tst-translit.c): Likewise.
23628 (CFLAGS-tst-gettext2.c): Likewise.
23629 (CFLAGS-tst-codeset.c): Likewise.
23630 (CFLAGS-tst-gettext3.c): Likewise.
23631 (CFLAGS-tst-gettext4.c): Likewise.
23632 (CFLAGS-tst-gettext5.c): Likewise.
23633 (CFLAGS-tst-gettext6.c): Likewise.
23634 * io/Makefile (CFLAGS-open.c): Likewise.
23635 (CFLAGS-open64.c): Likewise.
23636 (CFLAGS-creat.c): Likewise.
23637 (CFLAGS-creat64.c): Likewise.
23638 (CFLAGS-fcntl.c): Likewise.
23639 (CFLAGS-poll.c): Likewise.
23640 (CFLAGS-ppoll.c): Likewise.
23641 (CFLAGS-lockf.c): Likewise.
23642 (CFLAGS-statfs.c): Likewise.
23643 (CFLAGS-fstatfs.c): Likewise.
23644 (CFLAGS-statvfs.c): Likewise.
23645 (CFLAGS-fstatvfs.c): Likewise.
23646 (CFLAGS-fts.c): Likewise.
23647 (CFLAGS-fts64.c): Likewise.
23648 (CFLAGS-ftw.c): Likewise.
23649 (CFLAGS-ftw64.c): Likewise.
23650 (CFLAGS-lockf.c): Likewise.
23651 (CFLAGS-posix_fallocate.c): Likewise.
23652 (CFLAGS-posix_fallocate64.c): Likewise.
23653 (CFLAGS-fallocate.c): Likewise.
23654 (CFLAGS-fallocate64.c): Likewise.
23655 (CFLAGS-read.c): Likewise.
23656 (CFLAGS-write.c): Likewise.
23657 (CFLAGS-test-stat.c): Likewise.
23658 (CFLAGS-test-lfs.c): Likewise.
23659 * libio/Makefile (CFLAGS-fileops.c): Likewise.
23660 (CFLAGS-fputc.c): Likewise.
23661 (CFLAGS-fputwc.c): Likewise.
23662 (CFLAGS-freopen64.c): Likewise.
23663 (CFLAGS-freopen.c): Likewise.
23664 (CFLAGS-fseek.c): Likewise.
23665 (CFLAGS-fseeko64.c): Likewise.
23666 (CFLAGS-fseeko.c): Likewise.
23667 (CFLAGS-ftello64.c): Likewise.
23668 (CFLAGS-ftello.c): Likewise.
23669 (CFLAGS-fwide.c): Likewise.
23670 (CFLAGS-genops.c): Likewise.
23671 (CFLAGS-getc.c): Likewise.
23672 (CFLAGS-getchar.c): Likewise.
23673 (CFLAGS-getwc.c): Likewise.
23674 (CFLAGS-getwchar.c): Likewise.
23675 (CFLAGS-iofclose.c): Likewise.
23676 (CFLAGS-iofflush.c): Likewise.
23677 (CFLAGS-iofgetpos64.c): Likewise.
23678 (CFLAGS-iofgetpos.c): Likewise.
23679 (CFLAGS-iofgets.c): Likewise.
23680 (CFLAGS-iofgetws.c): Likewise.
23681 (CFLAGS-iofputs.c): Likewise.
23682 (CFLAGS-iofputws.c): Likewise.
23683 (CFLAGS-iofread.c): Likewise.
23684 (CFLAGS-iofsetpos64.c): Likewise.
23685 (CFLAGS-iofsetpos.c): Likewise.
23686 (CFLAGS-ioftell.c): Likewise.
23687 (CFLAGS-iofwrite.c): Likewise.
23688 (CFLAGS-iogetdelim.c): Likewise.
23689 (CFLAGS-iogetline.c): Likewise.
23690 (CFLAGS-iogets.c): Likewise.
23691 (CFLAGS-iogetwline.c): Likewise.
23692 (CFLAGS-ioputs.c): Likewise.
23693 (CFLAGS-ioseekoff.c): Likewise.
23694 (CFLAGS-ioseekpos.c): Likewise.
23695 (CFLAGS-iosetbuffer.c): Likewise.
23696 (CFLAGS-iosetvbuf.c): Likewise.
23697 (CFLAGS-ioungetc.c): Likewise.
23698 (CFLAGS-ioungetwc.c): Likewise.
23699 (CFLAGS-oldfileops.c): Likewise.
23700 (CFLAGS-oldiofclose.c): Likewise.
23701 (CFLAGS-oldiofgetpos64.c): Likewise.
23702 (CFLAGS-oldiofgetpos.c): Likewise.
23703 (CFLAGS-oldiofsetpos64.c): Likewise.
23704 (CFLAGS-oldiofsetpos.c): Likewise.
23705 (CFLAGS-peekc.c): Likewise.
23706 (CFLAGS-putc.c): Likewise.
23707 (CFLAGS-putchar.c): Likewise.
23708 (CFLAGS-putwc.c): Likewise.
23709 (CFLAGS-putwchar.c): Likewise.
23710 (CFLAGS-rewind.c): Likewise.
23711 (CFLAGS-wfileops.c): Likewise.
23712 (CFLAGS-wgenops.c): Likewise.
23713 (CFLAGS-oldiofopen.c): Likewise.
23714 (CFLAGS-iofopen.c): Likewise.
23715 (CFLAGS-iofopen64.c): Likewise.
23716 (CFLAGS-oldtmpfile.c): Likewise.
23717 (CFLAGS-tst_putwc.c): Likewise.
23718 * locale/Makefile (CFLAGS-md5.c): Likewise.
23719 (CFLAGS-charmap.c): Likewise.
23720 (CFLAGS-locfile.c): Likewise.
23721 (CFLAGS-charmap-dir.c): Likewise.
23722 * login/Makefile (CFLAGS-grantpt.c): Likewise.
23723 (CFLAGS-getpt.c): Likewise.
23724 (CFLAGS-pt_chown.c): Likewise.
23725 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
23726 (CFLAGS-obstack.c): Likewise.
23727 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
23728 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
23729 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
23730 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
23731 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
23732 (CFLAGS-test-tgmath.c): Likewise.
23733 (CFLAGS-test-tgmath2.c): Likewise.
23734 (CFLAGS-test-tgmath-ret.c): Likewise.
23735 (CFLAGS-test-powl.c): Likewise.
23736 (CFLAGS-test-snan.c): Likewise.
23737 (CFLAGS-test-signgam-finite.c): Likewise.
23738 (CFLAGS-test-signgam-finite-c99.c): Likewise.
23739 (CFLAGS-test-signgam-finite-c11.c): Likewise.
23740 (CFLAGS-test-signgam-uchar.c): Likewise.
23741 (CFLAGS-test-signgam-uchar-init.c): Likewise.
23742 (CFLAGS-test-signgam-uchar-static.c): Likewise.
23743 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
23744 (CFLAGS-test-signgam-uint.c): Likewise.
23745 (CFLAGS-test-signgam-uint-init.c): Likewise.
23746 (CFLAGS-test-signgam-uint-static.c): Likewise.
23747 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
23748 (CFLAGS-test-signgam-ullong.c): Likewise.
23749 (CFLAGS-test-signgam-ullong-init.c): Likewise.
23750 (CFLAGS-test-signgam-ullong-static.c): Likewise.
23751 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
23752 (CFLAGS-test-math-cxx11.cc): Likewise.
23753 (CFLAGS-test-math-isinff.cc): Likewise.
23754 (CFLAGS-test-math-iszero.cc): Likewise.
23755 (CFLAGS-test-math-issignaling.cc): Likewise.
23756 (CFLAGS-test-math-iscanonical.cc): Likewise.
23757 (CFLAGS-test-iszero-excess-precision.c): Likewise.
23758 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
23759 (CFLAGS-test-flt-eval-method.c): Likewise.
23760 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
23761 (CFLAGS-test-finite-macros.c): Likewise.
23762 * misc/Makefile (CFLAGS-select.c): Likewise.
23763 (CFLAGS-tsearch.c): Likewise.
23764 (CFLAGS-lsearch.c): Likewise.
23765 (CFLAGS-pselect.c): Likewise.
23766 (CFLAGS-readv.c): Likewise.
23767 (CFLAGS-writev.c): Likewise.
23768 (CFLAGS-preadv.c): Likewise.
23769 (CFLAGS-preadv64.c): Likewise.
23770 (CFLAGS-pwritev.c): Likewise.
23771 (CFLAGS-pwritev64.c): Likewise.
23772 (CFLAGS-preadv2.c): Likewise.
23773 (CFLAGS-preadv64v2.c): Likewise.
23774 (CFLAGS-pwritev2.c): Likewise.
23775 (CFLAGS-pwritev64v2.c): Likewise.
23776 (CFLAGS-usleep.c): Likewise.
23777 (CFLAGS-syslog.c): Likewise.
23778 (CFLAGS-error.c): Likewise.
23779 (CFLAGS-getpass.c): Likewise.
23780 (CFLAGS-mkstemp.c): Likewise.
23781 (CFLAGS-mkstemp64.c): Likewise.
23782 (CFLAGS-getsysstats.c): Likewise.
23783 (CFLAGS-getusershell.c): Likewise.
23784 (CFLAGS-err.c): Likewise.
23785 (CFLAGS-tst-tsearch.c): Likewise.
23786 (CFLAGS-msync.c): Likewise.
23787 (CFLAGS-fdatasync.c): Likewise.
23788 (CFLAGS-fsync.c): Likewise.
23789 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
23790 (CFLAGS-unwind.c): Likewise.
23791 (CFLAGS-unwind-forcedunwind.c): Likewise.
23792 (CFLAGS-pthread_cancel.c): Likewise.
23793 (CFLAGS-pthread_setcancelstate.c): Likewise.
23794 (CFLAGS-pthread_setcanceltype.c): Likewise.
23795 (CFLAGS-cancellation.c): Likewise.
23796 (CFLAGS-libc-cancellation.c): Likewise.
23797 (CFLAGS-pthread_exit.c): Likewise.
23798 (CFLAGS-forward.c): Likewise.
23799 (CFLAGS-pthread_testcancel.c): Likewise.
23800 (CFLAGS-pthread_join.c): Likewise.
23801 (CFLAGS-pthread_timedjoin.c): Likewise.
23802 (CFLAGS-pthread_once.c): Likewise.
23803 (CFLAGS-pthread_cond_wait.c): Likewise.
23804 (CFLAGS-sem_wait.c): Likewise.
23805 (CFLAGS-sem_timedwait.c): Likewise.
23806 (CFLAGS-fcntl.c): Likewise.
23807 (CFLAGS-lockf.c): Likewise.
23808 (CFLAGS-pread.c): Likewise.
23809 (CFLAGS-pread64.c): Likewise.
23810 (CFLAGS-pwrite.c): Likewise.
23811 (CFLAGS-pwrite64.c): Likewise.
23812 (CFLAGS-wait.c): Likewise.
23813 (CFLAGS-waitpid.c): Likewise.
23814 (CFLAGS-sigwait.c): Likewise.
23815 (CFLAGS-msgrcv.c): Likewise.
23816 (CFLAGS-msgsnd.c): Likewise.
23817 (CFLAGS-tcdrain.c): Likewise.
23818 (CFLAGS-open.c): Likewise.
23819 (CFLAGS-open64.c): Likewise.
23820 (CFLAGS-pause.c): Likewise.
23821 (CFLAGS-recv.c): Likewise.
23822 (CFLAGS-send.c): Likewise.
23823 (CFLAGS-accept.c): Likewise.
23824 (CFLAGS-sendto.c): Likewise.
23825 (CFLAGS-connect.c): Likewise.
23826 (CFLAGS-recvfrom.c): Likewise.
23827 (CFLAGS-recvmsg.c): Likewise.
23828 (CFLAGS-sendmsg.c): Likewise.
23829 (CFLAGS-close.c): Likewise.
23830 (CFLAGS-read.c): Likewise.
23831 (CFLAGS-write.c): Likewise.
23832 (CFLAGS-nanosleep.c): Likewise.
23833 (CFLAGS-sigsuspend.c): Likewise.
23834 (CFLAGS-msync.c): Likewise.
23835 (CFLAGS-fdatasync.c): Likewise.
23836 (CFLAGS-fsync.c): Likewise.
23837 (CFLAGS-pt-system.c): Likewise.
23838 (CFLAGS-tst-cleanup2.c): Likewise.
23839 (CFLAGS-tst-cleanupx2.c): Likewise.
23840 (CFLAGS-flockfile.c): Likewise.
23841 (CFLAGS-ftrylockfile.c): Likewise.
23842 (CFLAGS-funlockfile.c): Likewise.
23843 (CFLAGS-tst-initializers1.c): Likewise.
23844 (CFLAGS-tst-initializers1-c89.c): Likewise.
23845 (CFLAGS-tst-initializers1-c99.c): Likewise.
23846 (CFLAGS-tst-initializers1-c11.c): Likewise.
23847 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
23848 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
23849 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
23850 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
23851 (CFLAGS-nscd_getgr_r.c): Likewise.
23852 (CFLAGS-nscd_gethst_r.c): Likewise.
23853 (CFLAGS-nscd_getai.c): Likewise.
23854 (CFLAGS-nscd_initgroups.c): Likewise.
23855 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
23856 (CFLAGS-pause.c): Likewise.
23857 (CFLAGS-pread.c): Likewise.
23858 (CFLAGS-pread64.c): Likewise.
23859 (CFLAGS-pwrite.c): Likewise.
23860 (CFLAGS-pwrite64.c): Likewise.
23861 (CFLAGS-sleep.c): Likewise.
23862 (CFLAGS-wait.c): Likewise.
23863 (CFLAGS-waitid.c): Likewise.
23864 (CFLAGS-waitpid.c): Likewise.
23865 (CFLAGS-getopt.c): Likewise.
23866 (CFLAGS-wordexp.c): Likewise.
23867 (CFLAGS-sysconf.c): Likewise.
23868 (CFLAGS-pathconf.c): Likewise.
23869 (CFLAGS-fpathconf.c): Likewise.
23870 (CFLAGS-spawn.c): Likewise.
23871 (CFLAGS-spawnp.c): Likewise.
23872 (CFLAGS-spawni.c): Likewise.
23873 (CFLAGS-glob.c): Likewise.
23874 (CFLAGS-glob64.c): Likewise.
23875 (CFLAGS-getconf.c): Likewise.
23876 (CFLAGS-nanosleep.c): Likewise.
23877 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
23878 (CFLAGS-getpwent.c): Likewise.
23879 (CFLAGS-getpw.c): Likewise.
23880 (CFLAGS-fgetpwent_r.c): Likewise.
23881 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
23882 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
23883 (CFLAGS-mq_timedreceive.c): Likewise.
23884 (CFLAGS-mq_timedsend.c): Likewise.
23885 (CFLAGS-clock_nanosleep.c): Likewise.
23886 (CFLAGS-librt-cancellation.c): Likewise.
23887 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
23888 (CFLAGS-getspent.c): Likewise.
23889 (CFLAGS-fgetspent.c): Likewise.
23890 (CFLAGS-fgetspent_r.c): Likewise.
23891 (CFLAGS-putspent.c): Likewise.
23892 (CFLAGS-getspnam.c): Likewise.
23893 (CFLAGS-getspnam_r.c): Likewise.
23894 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
23895 (CFLAGS-sigsuspend.c): Likewise.
23896 (CFLAGS-sigtimedwait.c): Likewise.
23897 (CFLAGS-sigwait.c): Likewise.
23898 (CFLAGS-sigwaitinfo.c): Likewise.
23899 (CFLAGS-sigreturn.c): Likewise.
23900 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
23901 (CFLAGS-vfwprintf.c): Likewise.
23902 (CFLAGS-tmpfile.c): Likewise.
23903 (CFLAGS-tmpfile64.c): Likewise.
23904 (CFLAGS-tempname.c): Likewise.
23905 (CFLAGS-psignal.c): Likewise.
23906 (CFLAGS-vprintf.c): Likewise.
23907 (CFLAGS-cuserid.c): Likewise.
23908 (CFLAGS-errlist.c): Likewise.
23909 (CFLAGS-siglist.c): Likewise.
23910 (CFLAGS-scanf15.c): Likewise.
23911 (CFLAGS-scanf17.c): Likewise.
23912 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
23913 (CFLAGS-msort.c): Likewise.
23914 (CFLAGS-qsort.c): Likewise.
23915 (CFLAGS-system.c): Likewise.
23916 (CFLAGS-fmtmsg.c): Likewise.
23917 (CFLAGS-strfmon.c): Likewise.
23918 (CFLAGS-strfmon_l.c): Likewise.
23919 (CFLAGS-strfromd.c): Likewise.
23920 (CFLAGS-strfromf.c): Likewise.
23921 (CFLAGS-strfroml.c): Likewise.
23922 (CFLAGS-tst-bsearch.c): Likewise.
23923 (CFLAGS-tst-qsort.c): Likewise.
23924 (CFLAGS-tst-makecontext2.c): Likewise.
23925 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
23926 (CFLAGS-xnlm_prot.c): Likewise.
23927 (CFLAGS-xrstat.c): Likewise.
23928 (CFLAGS-xyppasswd.c): Likewise.
23929 (CFLAGS-xklm_prot.c): Likewise.
23930 (CFLAGS-xrex.c): Likewise.
23931 (CFLAGS-xsm_inter.c): Likewise.
23932 (CFLAGS-xmount.c): Likewise.
23933 (CFLAGS-xrusers.c): Likewise.
23934 (CFLAGS-xspray.c): Likewise.
23935 (CFLAGS-xnfs_prot.c): Likewise.
23936 (CFLAGS-xrquota.c): Likewise.
23937 (CFLAGS-xkey_prot.c): Likewise.
23938 (CFLAGS-auth_unix.c): Likewise.
23939 (CFLAGS-key_call.c): Likewise.
23940 (CFLAGS-pmap_rmt.c): Likewise.
23941 (CFLAGS-clnt_perr.c): Likewise.
23942 (CFLAGS-openchild.c): Likewise.
23943 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
23944 (CFLAGS-msgsnd.c): Likewise.
23945 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
23946 * time/Makefile (CFLAGS-tzfile.c): Likewise.
23947 (CFLAGS-tzset.c): Likewise.
23948 (CFLAGS-getdate.c): Likewise.
23949 (CFLAGS-test_time.c): Likewise.
23950 (CPPFLAGS-tst-tzname.c): Likewise.
23951 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
23952 (CFLAGS-zic.c): Likewise.
23953 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
23954 (CFLAGS-wcswidth.c): Likewise.
23955 (CFLAGS-wcstol.c): Likewise.
23956 (CFLAGS-wcstoul.c): Likewise.
23957 (CFLAGS-wcstoll.c): Likewise.
23958 (CFLAGS-wcstoull.c): Likewise.
23959 (CFLAGS-wcstod.c): Likewise.
23960 (CFLAGS-wcstold.c): Likewise.
23961 (CFLAGS-wcstof128.c): Likewise.
23962 (CFLAGS-wcstof.c): Likewise.
23963 (CFLAGS-wcstol_l.c): Likewise.
23964 (CFLAGS-wcstoul_l.c): Likewise.
23965 (CFLAGS-wcstoll_l.c): Likewise.
23966 (CFLAGS-wcstoull_l.c): Likewise.
23967 (CFLAGS-wcstod_l.c): Likewise.
23968 (CFLAGS-wcstold_l.c): Likewise.
23969 (CFLAGS-wcstof128_l.c): Likewise.
23970 (CFLAGS-wcstof_l.c): Likewise.
23971 (CPPFLAGS-tst-wchar-h.c): Likewise.
23972 (CPPFLAGS-wcstold_l.c): Likewise.
23973
23974 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
23975
23976 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
23977
23978 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
23979 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
23980
23981 * manual/tunables.texi (Hardware Capability Tunables): Document
23982 glibc.tune.cached_memopt.
23983 * sysdeps/powerpc/cpu-features.c: New file.
23984 * sysdeps/powerpc/cpu-features.h: New file.
23985 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
23986 _dl_powerpc_cpu_features.
23987 * sysdeps/powerpc/dl-tunables.list: New file.
23988 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
23989 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
23990 (INIT_ARCH): Initialize use_aligned_memopt.
23991 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
23992 IS_IN(rtld))]: Restrict dl_platform_init availability and
23993 initialize CPU features used by tunables.
23994 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
23995 Add memcpy-power8-cached.
23996 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
23997 __memcpy_power8_cached.
23998 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
23999 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
24000 New file.
24001
24002 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
24003
24004 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
24005 (CFLAGS-noinl-tester.c): Likewise.
24006 (CFLAGS-tst-strlen.c): Likewise.
24007 (CFLAGS-stratcliff.c): Likewise.
24008 (CFLAGS-test-ffs.c): Likewise.
24009 (CFLAGS-tst-inlcall.c): Likewise.
24010 (CFLAGS-tst-xbzero-opt.c): Likewise.
24011 (CFLAGS-memcpy.c): Likewise.
24012 (CFLAGS-wordcopy.c): Likewise.
24013
24014 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
24015
24016 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
24017 Store r15 on stack and add cfi rule.
24018 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
24019 Likewise.
24020
24021 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
24022
24023 [BZ #22577]
24024 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
24025 call.
24026
24027 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
24028
24029 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24030 Add s_sinf-sse2 and s_sinf-fma.
24031 (CFLAGS-s_sinf-fma.c): New.
24032 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
24033 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
24034 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
24035
24036 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
24037
24038 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
24039
24040 2017-12-07 Joseph Myers <joseph@codesourcery.com>
24041
24042 [BZ #22568]
24043 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
24044 part of result to imaginary part of argument if it is zero and the
24045 real part of the argument is not finite.
24046 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
24047 of result to real part of argument if it is zero and the imaginary
24048 part of the argument is not finite.
24049
24050 2017-12-07 Mike FABIAN <mfabian@redhat.com>
24051
24052 [BZ #22524]
24053 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
24054 and to the list of locales to be built for testing.
24055 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
24056 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
24057 and build the collation rules upon that.
24058
24059 2017-12-07 Joseph Myers <joseph@codesourcery.com>
24060
24061 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
24062 * manual/math.texi (Mathematics): Document support for _Float32.
24063 * math/Makefile (test-types): Add float32.
24064 * math/Versions (GLIBC_2.27): Add _Float32 functions.
24065 * stdlib/Versions (GLIBC_2.27): Likewise.
24066 * wcsmbs/Versions (GLIBC_2.27): Likewise.
24067 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24068 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24069 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24070 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24071 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
24072 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
24073 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
24074 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
24075 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
24076 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
24077 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
24078 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
24079 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
24080 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
24081 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
24082 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
24083 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
24084 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
24085 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
24086 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
24087 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
24088 Likewise.
24089 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24090 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24091 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24092 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
24093 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
24094 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
24095 Likewise.
24096 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
24097 Likewise.
24098 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
24099 Likewise.
24100 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
24101 Likewise.
24102
24103 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
24104 Likewise.
24105 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
24106 Likewise.
24107 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
24108 Likewise.
24109 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
24110 Likewise.
24111 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24112 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24113 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24114 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24115 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
24116 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
24117 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24118 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24119 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24120 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24121 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
24122 Likewise.
24123 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
24124 Likewise.
24125 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
24126 Likewise.
24127 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
24128 Likewise.
24129 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
24130 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
24131 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
24132 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
24133 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
24134 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
24135 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
24136 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24137
24138 2017-12-06 Joseph Myers <joseph@codesourcery.com>
24139
24140 * stdlib/strtof.c: Include <bits/floatn.h>
24141 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
24142 and later undefine as macro. Define as weak alias if
24143 [!USE_WIDE_CHAR].
24144 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
24145 and later undefine as macro. Define as weak alias if
24146 [USE_WIDE_CHAR].
24147 * stdlib/strtof_l.c: Include <bits/floatn.h>
24148 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
24149 and later undefine as macro. Define as weak alias if
24150 [!USE_WIDE_CHAR].
24151 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
24152 and later undefine as macro. Define as weak alias if
24153 [USE_WIDE_CHAR].
24154
24155 * stdlib/strfromf.c: Include <bits/floatn.h>.
24156 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
24157 and later undefine as macro and define as weak alias.
24158
24159 * math/test-float32.h: New file.
24160
24161 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
24162 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
24163 (libm_alias_float_other_r): Create f32 alias.
24164 (libm_alias_float_r): Use semicolon before call to
24165 libm_alias_float_other_r.
24166
24167 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
24168 second argument to libm_alias_float_other.
24169 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
24170 second argument to libm_alias_float_other.
24171 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
24172 argument to libm_alias_float_other.
24173
24174 [BZ #22561]
24175 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
24176 real part of result for argument 0 + i * NaN.
24177 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
24178 results for tests of 0 + i * NaN.
24179
24180 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24181
24182 * sysdeps/alpha/fpu/libm-test-ulps: Update.
24183
24184 2017-12-06 David S. Miller <davem@davemloft.net>
24185
24186 * sysdeps/sparc/fpu/libm-test-ulps: Update
24187 exp_{downward,towardzero,upward} ulps.
24188
24189 2017-12-06 Joseph Myers <joseph@codesourcery.com>
24190
24191 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
24192 variables static.
24193
24194 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
24195 (Y0_2D): Likewise.
24196 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
24197 (Y0_2D): Likewise.
24198 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
24199 (Y0_2D): Likewise.
24200 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
24201 (Y0_2D): Likewise.
24202
24203 2017-12-06 Mike FABIAN <mfabian@redhat.com>
24204
24205 [BZ #22515]
24206 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
24207 and to the list of locales to be built for testing.
24208 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
24209 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
24210 and build the collation rules upon that.
24211
24212 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24213
24214 * NEWS: Add sinf to list of optimized functions.
24215
24216 2017-12-06 Joseph Myers <joseph@codesourcery.com>
24217
24218 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
24219 (__HAVE_FLOAT32X): Likewise.
24220 * manual/math.texi (Mathematics): Document support for _Float64
24221 and _Float32x.
24222 * math/Makefile (test-types): Add float64 and float32x.
24223 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
24224 functions.
24225 * stdlib/Versions (GLIBC_2.27): Likewise.
24226 * wcsmbs/Versions (GLIBC_2.27): Likewise.
24227 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24228 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24229 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24230 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24231 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
24232 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
24233 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
24234 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
24235 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
24236 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
24237 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
24238 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
24239 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
24240 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
24241 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
24242 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
24243 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
24244 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
24245 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
24246 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
24247 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
24248 Likewise.
24249 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24250 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24251 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24252 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
24253 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
24254 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
24255 Likewise.
24256 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
24257 Likewise.
24258 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
24259 Likewise.
24260 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
24261 Likewise.
24262 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
24263 Likewise.
24264 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
24265 Likewise.
24266 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
24267 Likewise.
24268 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
24269 Likewise.
24270 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24271 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24272 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24273 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24274 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
24275 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
24276 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24277 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24278 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24279 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24280 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
24281 Likewise.
24282 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
24283 Likewise.
24284 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
24285 Likewise.
24286 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
24287 Likewise.
24288 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
24289 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
24290 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
24291 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
24292 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
24293 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
24294 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
24295 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24296
24297 2017-12-05 Joseph Myers <joseph@codesourcery.com>
24298
24299 * bits/floatn-common.h: Include <bits/long-double.h>.
24300 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
24301 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
24302 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
24303 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
24304 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
24305 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
24306 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
24307 (__builtin_huge_valf64): Use __builtin_huge_vall.
24308 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
24309 (__builtin_inff64): Use __builtin_infl.
24310 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
24311 (__builtin_nanf64): Use __builtin_nanl.
24312 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
24313 (__builtin_nansf64): Use __builtin_nansl.
24314
24315 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
24316 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
24317 Carlos O'Donnell <carlos@redhat.com>
24318
24319 * elf/dl-tunables.list: Add elision parameters.
24320 * manual/tunables.texi: Add entries about elision tunable.
24321 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
24322 Add callback functions to dynamically enable/disable elision.
24323 Add multiple callbacks functions to set elision parameters.
24324 Deleted __libc_enable_secure check.
24325 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
24326 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
24327 * configure: Regenerated.
24328 * configure.ac: Option enable_lock_elision was deleted.
24329 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
24330 * config.make.in: Remove references to enable_lock_elision.
24331 * manual/install.texi: Elision configure option was removed.
24332 * INSTALL: Regenerated to remove enable_lock_elision.
24333 * nptl/Makefile:
24334 Disable elision so it can verify error case for destroying a mutex.
24335 * sysdeps/powerpc/nptl/elide.h:
24336 Cleanup ENABLE_LOCK_ELISION check.
24337 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
24338 * sysdeps/s390/configure: Regenerated.
24339 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
24340 * nptl/tst-mutex8.c:
24341 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
24342 * sysdeps/powerpc/powerpc32/sysdep.h:
24343 Deleted all ENABLE_LOCK_ELISION checks.
24344 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
24345 * sysdeps/powerpc/sysdep.h: Likewise.
24346 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
24347 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
24348 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
24349 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
24350 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
24351 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
24352 enable-lock-elision.
24353
24354 2017-12-05 Joseph Myers <joseph@codesourcery.com>
24355
24356 * stdlib/strtod.c: Include <bits/floatn.h>.
24357 (BUILD_DOUBLE): New macro.
24358 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
24359 (strtof64): Define and later undefine as macro. Define as weak
24360 alias if [!USE_WIDE_CHAR].
24361 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
24362 (wcstof64): Define and later undefine as macro. Define as weak
24363 alias if [USE_WIDE_CHAR].
24364 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
24365 (strtof32x): Define and later undefine as macro. Define as weak
24366 alias if [!USE_WIDE_CHAR].
24367 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
24368 (wcstof32x): Define and later undefine as macro. Define as weak
24369 alias if [USE_WIDE_CHAR].
24370 * stdlib/strtod_l.c: Include <bits/floatn.h>.
24371 (BUILD_DOUBLE): New macro.
24372 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
24373 (strtof64_l): Define and later undefine as macro. Define as weak
24374 alias if [!USE_WIDE_CHAR].
24375 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
24376 (wcstof64_l): Define and later undefine as macro. Define as weak
24377 alias if [USE_WIDE_CHAR].
24378 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
24379 (strtof32x_l): Define and later undefine as macro. Define as weak
24380 alias if [!USE_WIDE_CHAR].
24381 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
24382 (wcstof32x_l): Define and later undefine as macro. Define as weak
24383 alias if [USE_WIDE_CHAR].
24384
24385 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24386
24387 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
24388 (reduced): Use ones as double instead of integer.
24389
24390 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
24391
24392 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
24393
24394 2017-12-05 Joseph Myers <joseph@codesourcery.com>
24395
24396 * stdlib/strfromd.c: Include <bits/floatn.h>.
24397 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
24398 and later undefine as macro and define as weak alias.
24399 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
24400 Likewise.
24401
24402 * math/test-float32x.h: New file.
24403 * math/test-float64.h: Likewise.
24404
24405 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
24406 (libm_alias_double_other_r_f64): New macro.
24407 (libm_alias_double_other_r_f32x): Likewise.
24408 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
24409 libm_alias_double_other_r_f32x.
24410 (libm_alias_double_r): Use semicolon before call to
24411 libm_alias_double_other_r.
24412 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
24413 <bits/floatn.h>.
24414 (libm_alias_double_other_r_f64): New macro.
24415 (libm_alias_double_other_r_f32x): Likewise.
24416 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
24417 libm_alias_double_other_r_f32x.
24418
24419 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
24420
24421 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
24422 int.
24423 (SINF_FUNC): Likewise. Replace floor with simple casts.
24424
24425 2017-12-05 Mike FABIAN <mfabian@redhat.com>
24426
24427 [BZ #22517]
24428 * localedata/Makefile: Add et_EE.UTF-8 to test-input
24429 and to the list of locales to be built for testing.
24430 * localedata/et_EE.UTF-8.in: New file for testing the collation.
24431 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
24432 and build the collation rules upon that.
24433
24434 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
24435
24436 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
24437 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
24438 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
24439 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
24440 instead of __insn__xxx.
24441 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
24442 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
24443 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
24444 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
24445 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
24446 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
24447
24448 2017-12-05 Florian Weimer <fweimer@redhat.com>
24449
24450 Linux: Implement interfaces for memory protection keys
24451 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
24452 xsignal, xsysconf.
24453 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
24454 * support/xunistd.h (xsysconf): Declare.
24455 * support/xraise.c: New file.
24456 * support/xsigaction.c: Likewise.
24457 * support/xsignal.c: Likewise.
24458 * support/xsysconf.c: Likewise.
24459 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
24460 pkey_set, pkey_get, pkey_mprotect.
24461 [misc] (tests): Add tst-pkey.
24462 (tst-pkey): Link with -lpthread.
24463 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
24464 pkey_free, pkey_set, pkey_get, pkey_mprotect.
24465 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
24466 (PKEY_DISABLE_WRITE): Define.
24467 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
24468 Declare.
24469 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
24470 (SEGV_PKUERR): Add.
24471 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
24472 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
24473 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
24474 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
24475 Add.
24476 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
24477 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
24478 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
24479 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
24480 * sysdeps/unix/sysv/linux/**.abilist: Update.
24481
24482 2017-12-05 Florian Weimer <fweimer@redhat.com>
24483
24484 * support/tst-test_compare.c (subprocess): Use long long instead
24485 of long argument for consistent type width across 32-bit and
24486 64-bit architectures.
24487 (do_test): Adjust expected output.
24488
24489 2017-12-05 Joseph Myers <joseph@codesourcery.com>
24490
24491 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
24492 (cosf): Define using libm_alias_float.
24493 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
24494 (fabsf): Define using libm_alias_float.
24495 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
24496 (fmaf): Define using libm_alias_float.
24497 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
24498 (rintf): Define using libm_alias_float.
24499 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
24500 (sinf): Define using libm_alias_float.
24501 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
24502 <libm-alias-float.h>.
24503 (modff): Define using libm_alias_float.
24504 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
24505 <libm-alias-float.h>.
24506 (logbf): Define using libm_alias_float.
24507 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
24508 <libm-alias-float.h>.
24509 (ceilf): Define using libm_alias_float.
24510 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
24511 <libm-alias-float.h>.
24512 (copysignf): Define using libm_alias_float.
24513 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
24514 <libm-alias-float.h>.
24515 (floorf): Define using libm_alias_float.
24516 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
24517 <libm-alias-float.h>.
24518 (llrintf): Define using libm_alias_float.
24519 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
24520 <libm-alias-float.h>.
24521 (llroundf): Define using libm_alias_float.
24522 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
24523 <libm-alias-float.h>.
24524 (lrintf): Define using libm_alias_float.
24525 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
24526 <libm-alias-float.h>.
24527 (lroundf): Define using libm_alias_float.
24528 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
24529 <libm-alias-float.h>.
24530 (nearbyintf): Define using libm_alias_float.
24531 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
24532 <libm-alias-float.h>.
24533 (rintf): Define using libm_alias_float.
24534 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
24535 <libm-alias-float.h>.
24536 (roundf): Define using libm_alias_float.
24537 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
24538 <libm-alias-float.h>.
24539 (truncf): Define using libm_alias_float.
24540 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
24541 Include <libm-alias-float.h>.
24542 (ceilf): Define using libm_alias_float.
24543 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
24544 Include <libm-alias-float.h>.
24545 (copysignf): Define using libm_alias_float.
24546 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
24547 Include <libm-alias-float.h>.
24548 (floorf): Define using libm_alias_float.
24549 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
24550 Include <libm-alias-float.h>.
24551 (llrintf): Define using libm_alias_float.
24552 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
24553 Include <libm-alias-float.h>.
24554 (llroundf): Define using libm_alias_float.
24555 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
24556 Include <libm-alias-float.h>.
24557 (logbf): Define using libm_alias_float.
24558 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
24559 Include <libm-alias-float.h>.
24560 (lrintf): Define using libm_alias_float.
24561 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
24562 Include <libm-alias-float.h>.
24563 (lroundf): Define using libm_alias_float.
24564 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
24565 Include <libm-alias-float.h>.
24566 (modff): Define using libm_alias_float.
24567 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
24568 Include <libm-alias-float.h>.
24569 (roundf): Define using libm_alias_float.
24570 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
24571 Include <libm-alias-float.h>.
24572 (truncf): Define using libm_alias_float.
24573 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
24574 <libm-alias-float.h>.
24575 (llrintf): Define using libm_alias_float.
24576 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
24577 <libm-alias-float.h>.
24578 (llroundf): Define using libm_alias_float.
24579 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
24580 <libm-alias-float.h>.
24581 (ceilf): Define using libm_alias_float.
24582 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
24583 <libm-alias-float.h>.
24584 (floorf): Define using libm_alias_float.
24585 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
24586 <libm-alias-float.h>.
24587 (llroundf): Define using libm_alias_float.
24588 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
24589 <libm-alias-float.h>.
24590 (lroundf): Define using libm_alias_float.
24591 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
24592 <libm-alias-float.h>.
24593 (roundf): Define using libm_alias_float.
24594 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
24595 <libm-alias-float.h>.
24596 (truncf): Define using libm_alias_float.
24597 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
24598 <libm-alias-float.h>.
24599 (copysignf): Define using libm_alias_float.
24600 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
24601 <libm-alias-float.h>.
24602 (llrintf): Define using libm_alias_float.
24603 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
24604 <libm-alias-float.h>.
24605 (llroundf): Define using libm_alias_float.
24606 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
24607 <libm-alias-float.h>.
24608 (lrintf): Define using libm_alias_float.
24609 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
24610 <libm-alias-float.h>.
24611 (lroundf): Define using libm_alias_float.
24612 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
24613 <libm-alias-float.h>.
24614 (ceilf): Define using libm_alias_float.
24615 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
24616 <libm-alias-float.h>.
24617 (copysignf): Define using libm_alias_float.
24618 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
24619 <libm-alias-float.h>.
24620 (cosf): Define using libm_alias_float.
24621 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
24622 <libm-alias-float.h>.
24623 (floorf): Define using libm_alias_float.
24624 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
24625 <libm-alias-float.h>.
24626 (llrintf): Define using libm_alias_float.
24627 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
24628 <libm-alias-float.h>.
24629 (llroundf): Define using libm_alias_float.
24630 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
24631 <libm-alias-float.h>.
24632 (logbf): Define using libm_alias_float.
24633 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
24634 <libm-alias-float.h>.
24635 (modff): Define using libm_alias_float.
24636 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
24637 <libm-alias-float.h>.
24638 (roundf): Define using libm_alias_float.
24639 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
24640 <libm-alias-float.h>.
24641 (sinf): Define using libm_alias_float.
24642 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
24643 <libm-alias-float.h>.
24644 (truncf): Define using libm_alias_float.
24645 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
24646 <libm-alias-float.h>.
24647 (ceilf): Define using libm_alias_float.
24648 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
24649 <libm-alias-float.h>.
24650 (copysignf): Define using libm_alias_float.
24651 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
24652 <libm-alias-float.h>.
24653 (floorf): Define using libm_alias_float.
24654 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
24655 <libm-alias-float.h>.
24656 (llrintf): Define using libm_alias_float.
24657 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
24658 <libm-alias-float.h>.
24659 (llroundf): Define using libm_alias_float.
24660 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
24661 <libm-alias-float.h>.
24662 (nearbyintf): Define using libm_alias_float.
24663 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
24664 <libm-alias-float.h>.
24665 (rintf): Define using libm_alias_float.
24666 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
24667 <libm-alias-float.h>.
24668 (roundf): Define using libm_alias_float.
24669 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
24670 <libm-alias-float.h>.
24671 (truncf): Define using libm_alias_float.
24672 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
24673 <libm-alias-float.h>.
24674 (ceilf): Define using libm_alias_float.
24675 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
24676 <libm-alias-float.h>.
24677 (floorf): Define using libm_alias_float.
24678 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
24679 <libm-alias-float.h>.
24680 (llroundf): Define using libm_alias_float.
24681 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
24682 <libm-alias-float.h>.
24683 (roundf): Define using libm_alias_float.
24684 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
24685 <libm-alias-float.h>.
24686 (truncf): Define using libm_alias_float.
24687 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
24688 <libm-alias-float.h>.
24689 (copysignf): Define using libm_alias_float.
24690 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
24691 <libm-alias-float.h>.
24692 (llrintf): Define using libm_alias_float.
24693 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
24694 <libm-alias-float.h>.
24695 (llroundf): Define using libm_alias_float.
24696 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
24697 <libm-alias-float.h>.
24698 (cosf): Define using libm_alias_float.
24699 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
24700 <libm-alias-float.h>.
24701 (llrintf): Define using libm_alias_float.
24702 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
24703 <libm-alias-float.h>.
24704 (llroundf): Define using libm_alias_float.
24705 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
24706 <libm-alias-float.h>.
24707 (sinf): Define using libm_alias_float.
24708
24709 2017-12-04 Florian Weimer <fweimer@redhat.com>
24710
24711 * support/check.h (TEST_COMPARE): Define.
24712 (support_test_compare_failure): Declare.
24713 * support/Makefile (libsupport-routines): Add
24714 support_test_compare_failure.
24715 (tests): Add tst-test_compare.
24716 * support /support_test_compare_failure.c: New file.
24717 * support/tst-test_compare.c: Likewise.
24718
24719 2017-12-04 Mike FABIAN <mfabian@redhat.com>
24720
24721 [BZ #22527]
24722 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
24723 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
24724 available, this rewrite of the collation rules does reproduce
24725 the test file in the same order.
24726
24727 2017-12-04 Mike FABIAN <mfabian@redhat.com>
24728
24729 [BZ #10580]
24730 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
24731 digraphs in the month and day names. Using single code points for
24732 digraphs is deprecated. While there are dedicated Unicode
24733 codepoints, for the digraphs, these are included for backwards
24734 compatibility and modern texts use a sequence of Basic Latin
24735 characters. See: https://www.unicode.org/faq/ligature_digraph.html
24736 This makes the month and day names agree exactly with CLDR now,
24737 CLDR does not use the single code points for the digraphs either.
24738
24739 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
24740
24741 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
24742
24743 2017-12-04 Joseph Myers <joseph@codesourcery.com>
24744
24745 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
24746 of floor.
24747
24748 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
24749
24750 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
24751 Define only for libc.so.
24752
24753 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
24754
24755 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
24756 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
24757 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
24758 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
24759 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
24760
24761 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24762
24763 [BZ #5997]
24764 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
24765
24766 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
24767
24768 [BZ libc/19170]
24769 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
24770 PREINIT_FUNCTION_WEAK is nonzero.
24771 (gmon_initializer): New function. Put procedure label for it in
24772 .init_array section.
24773 (_init): Don't call PREINIT_FUNCTION.
24774 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
24775 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
24776 value when map argument is null.
24777
24778 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
24779 depi instruction from PIC pc-relative sequence.
24780 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
24781 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
24782 (elf_machine_load_address): Likewise.
24783 (elf_machine_runtime_setup): Likewise.
24784
24785 2017-12-02 Joseph Myers <joseph@codesourcery.com>
24786
24787 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
24788 <libm-alias-double.h>.
24789 (logb): Define using libm_alias_double.
24790 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
24791 <libm-alias-double.h>.
24792 (copysign): Define using libm_alias_double.
24793 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
24794 <libm-alias-double.h>.
24795 (llrint): Define using libm_alias_double.
24796 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
24797 <libm-alias-double.h>.
24798 (llround): Define using libm_alias_double.
24799 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
24800 <libm-alias-double.h>.
24801 (lrint): Define using libm_alias_double.
24802 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
24803 <libm-alias-double.h>.
24804 (lround): Define using libm_alias_double.
24805 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
24806 Include <libm-alias-double.h>.
24807 (copysign): Define using libm_alias_double.
24808 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
24809 Include <libm-alias-double.h>.
24810 (llrint): Define using libm_alias_double.
24811 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
24812 Include <libm-alias-double.h>.
24813 (llround): Define using libm_alias_double.
24814 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
24815 <libm-alias-double.h>.
24816 (logb): Define using libm_alias_double.
24817 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
24818 Include <libm-alias-double.h>.
24819 (lrint): Define using libm_alias_double.
24820 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
24821 Include <libm-alias-double.h>.
24822 (lround): Define using libm_alias_double.
24823 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
24824 <libm-alias-double.h>.
24825 (llrint): Define using libm_alias_double.
24826 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
24827 <libm-alias-double.h>.
24828 (llround): Define using libm_alias_double.
24829 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
24830 <libm-alias-double.h>.
24831 (llround): Define using libm_alias_double.
24832 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
24833 <libm-alias-double.h>.
24834 (lround): Define using libm_alias_double.
24835 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
24836 <libm-alias-double.h>.
24837 (copysign): Define using libm_alias_double.
24838 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
24839 <libm-alias-double.h>.
24840 (llrint): Define using libm_alias_double.
24841 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
24842 <libm-alias-double.h>.
24843 (llround): Define using libm_alias_double.
24844 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
24845 <libm-alias-double.h>.
24846 (lrint): Define using libm_alias_double.
24847 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
24848 <libm-alias-double.h>.
24849 (lround): Define using libm_alias_double.
24850 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
24851 <libm-alias-double.h>.
24852 (copysign): Define using libm_alias_double.
24853 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
24854 <libm-alias-double.h>.
24855 (llrint): Define using libm_alias_double.
24856 (lrint): Likewise.
24857 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
24858 <libm-alias-double.h>.
24859 (llround): Define using libm_alias_double.
24860 (lround): Likewise.
24861 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
24862 <libm-alias-double.h>.
24863 (logb): Define using libm_alias_double.
24864 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
24865 <libm-alias-double.h>.
24866 (copysign): Define using libm_alias_double.
24867 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
24868 <libm-alias-double.h>.
24869 (llrint): Define using libm_alias_double.
24870 (lrint): Likewise.
24871 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
24872 <libm-alias-double.h>.
24873 (llround): Define using libm_alias_double.
24874 (lround): Likewise.
24875 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
24876 <libm-alias-double.h>.
24877 (llround): Define using libm_alias_double.
24878 (lround): Likewise.
24879 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
24880 <libm-alias-double.h>.
24881 (copysign): Define using libm_alias_double.
24882 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
24883 <libm-alias-double.h>.
24884 (llrint): Define using libm_alias_double.
24885 (lrint): Likewise.
24886 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
24887 <libm-alias-double.h>.
24888 (llround): Define using libm_alias_double.
24889 (lround): Likewise.
24890 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
24891 <libm-alias-double.h>.
24892 (llrint): Define using libm_alias_double.
24893 (lrint): Likewise.
24894 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
24895 <libm-alias-double.h>.
24896 (llround): Define using libm_alias_double.
24897 (lround): Likewise.
24898
24899 2017-12-01 Joseph Myers <joseph@codesourcery.com>
24900
24901 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
24902 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
24903 compat symbol based on llround.
24904
24905 * sysdeps/powerpc/power7/fpu/s_logb.c
24906 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
24907 symbol based on __logb, not on logb.
24908 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
24909 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
24910 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
24911 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
24912
24913 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
24914 (rint): Define using libm_alias_double.
24915 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
24916 <libm-alias-double.h>.
24917 (modf): Define using libm_alias_double.
24918 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
24919 <libm-alias-double.h>.
24920 (ceil): Define using libm_alias_double.
24921 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
24922 <libm-alias-double.h>.
24923 (floor): Define using libm_alias_double.
24924 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
24925 <libm-alias-double.h>.
24926 (nearbyint): Define using libm_alias_double.
24927 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
24928 <libm-alias-double.h>.
24929 (rint): Define using libm_alias_double.
24930 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
24931 <libm-alias-double.h>.
24932 (round): Define using libm_alias_double.
24933 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
24934 <libm-alias-double.h>.
24935 (trunc): Define using libm_alias_double.
24936 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
24937 <libm-alias-double.h>.
24938 (ceil): Define using libm_alias_double.
24939 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
24940 Include <libm-alias-double.h>.
24941 (floor): Define using libm_alias_double.
24942 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
24943 <libm-alias-double.h>.
24944 (modf): Define using libm_alias_double.
24945 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
24946 Include <libm-alias-double.h>.
24947 (round): Define using libm_alias_double.
24948 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
24949 Include <libm-alias-double.h>.
24950 (trunc): Define using libm_alias_double.
24951 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
24952 <libm-alias-double.h>.
24953 (ceil): Define using libm_alias_double.
24954 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
24955 <libm-alias-double.h>.
24956 (floor): Define using libm_alias_double.
24957 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
24958 <libm-alias-double.h>.
24959 (round): Define using libm_alias_double.
24960 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
24961 <libm-alias-double.h>.
24962 (trunc): Define using libm_alias_double.
24963 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
24964 <libm-alias-double.h>.
24965 (ceil): Define using libm_alias_double.
24966 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
24967 <libm-alias-double.h>.
24968 (floor): Define using libm_alias_double.
24969 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
24970 <libm-alias-double.h>.
24971 (modf): Define using libm_alias_double.
24972 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
24973 <libm-alias-double.h>.
24974 (round): Define using libm_alias_double.
24975 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
24976 <libm-alias-double.h>.
24977 (trunc): Define using libm_alias_double.
24978 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
24979 <libm-alias-double.h>.
24980 (ceil): Define using libm_alias_double.
24981 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
24982 <libm-alias-double.h>.
24983 (floor): Define using libm_alias_double.
24984 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
24985 <libm-alias-double.h>.
24986 (nearbyint): Define using libm_alias_double.
24987 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
24988 <libm-alias-double.h>.
24989 (rint): Define using libm_alias_double.
24990 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
24991 <libm-alias-double.h>.
24992 (round): Define using libm_alias_double.
24993 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
24994 <libm-alias-double.h>.
24995 (trunc): Define using libm_alias_double.
24996 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
24997 <libm-alias-double.h>.
24998 (ceil): Define using libm_alias_double.
24999 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
25000 <libm-alias-double.h>.
25001 (floor): Define using libm_alias_double.
25002 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
25003 <libm-alias-double.h>.
25004 (round): Define using libm_alias_double.
25005 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
25006 <libm-alias-double.h>.
25007 (trunc): Define using libm_alias_double.
25008
25009 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
25010 (fabs): Define using libm_alias_double.
25011 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
25012 (fma): Define using libm_alias_double.
25013 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
25014 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
25015 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
25016 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
25017
25018 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25019
25020 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
25021
25022 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
25023 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
25024 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
25025
25026 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
25027 due redirect macro.
25028
25029 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
25030
25031 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
25032
25033 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25034
25035 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
25036 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
25037 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
25038 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
25039
25040 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
25041 (libm-sysdep_routines): Add s_nearbyintf-generic and
25042 s_nearbyint-generic.
25043 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
25044 New file.
25045 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
25046 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
25047 Likewise.
25048 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
25049 Likewise.
25050 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
25051 file.
25052 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
25053 Likewise.
25054
25055 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
25056 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
25057 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
25058 file.
25059 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
25060 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
25061 Likewise.
25062 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
25063 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
25064 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
25065
25066 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
25067 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
25068 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
25069 file.
25070 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
25071 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
25072 Likewise.
25073 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
25074 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
25075 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
25076
25077 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
25078 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
25079 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
25080 file.
25081 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
25082 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
25083 Likewise.
25084 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
25085 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
25086 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
25087
25088 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
25089 (sysdep_calls): New rule.
25090 (sysdep_routines): Use sysdep_calls as base.
25091 (libm-sysdep_routines): Add generic rule for symbols shared with
25092 libc. Add s_copysign-generic and s_copysign-generic objects.
25093 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
25094 New file.
25095 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
25096 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
25097 Likewise.
25098 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
25099 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
25100 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
25101
25102 2017-12-01 Mike FABIAN <mfabian@redhat.com>
25103
25104 [BZ #22519]
25105 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
25106 the list of locales to be built for testing.
25107 * localedata/is_IS.UTF-8.in: New file.
25108 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
25109 on iso14651_t1.
25110
25111 2017-12-01 Joseph Myers <joseph@codesourcery.com>
25112
25113 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
25114 <libm-alias-float.h>.
25115 (fabsf): Define using libm_alias_float.
25116
25117 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
25118
25119 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
25120
25121 2017-11-30 Joseph Myers <joseph@codesourcery.com>
25122
25123 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
25124 <libm-alias-float.h>.
25125 (fabsf): Define using libm_alias_float.
25126 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
25127 <libm-alias-float.h>.
25128 (lrintf): Define using libm_alias_float.
25129 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
25130 <libm-alias-float.h>.
25131 (rintf): Define using libm_alias_float.
25132
25133 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
25134 <libm-alias-double.h>.
25135 (fabs): Define using libm_alias_double.
25136 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
25137 <libm-alias-double.h>.
25138 (lrint): Define using libm_alias_double.
25139 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
25140 <libm-alias-double.h>.
25141 (rint): Define using libm_alias_double.
25142
25143 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
25144 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
25145 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
25146 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
25147 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
25148 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
25149 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
25150 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
25151 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
25152 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
25153 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
25154 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
25155 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
25156 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
25157 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
25158 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
25159 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
25160 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
25161 s_atan_template.c.
25162 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
25163 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
25164 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
25165 s_ceil_template.c.
25166 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
25167 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
25168 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
25169 s_cos_template.c.
25170 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
25171 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
25172 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
25173 s_expm1_template.c.
25174 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
25175 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
25176 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
25177 s_fabs_template.c.
25178 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
25179 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
25180 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
25181 s_floor_template.c.
25182 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
25183 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
25184 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
25185 s_frexp_template.c.
25186 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
25187 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
25188 s_lrint_template.c.
25189 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
25190 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
25191 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
25192 s_modf_template.c.
25193 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
25194 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
25195 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
25196 s_nearbyint_template.c.
25197 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
25198 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
25199 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
25200 s_remquo_template.c.
25201 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
25202 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
25203 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
25204 s_rint_template.c.
25205 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
25206 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
25207 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
25208 s_sin_template.c.
25209 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
25210 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
25211 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
25212 s_sincos_template.c.
25213 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
25214 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
25215 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
25216 s_tan_template.c.
25217 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
25218 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
25219 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
25220 s_tanh_template.c.
25221 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
25222 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
25223 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
25224 s_trunc_template.c.
25225 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
25226 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
25227 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
25228 s_atan.c instead of including s_atan.c.
25229 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
25230 s_atanf.c instead of including s_atanf.c.
25231 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
25232 s_atanl.c instead of including s_atanl.c.
25233 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
25234 instead of s_atan.c.
25235 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
25236 instead of s_atanf.c.
25237 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
25238 instead of s_atanl.c.
25239
25240 * scripts/update-copyrights: Do not handle intl/plural.c
25241 specially.
25242
25243 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
25244
25245 [BZ #22432]
25246 * configure.ac (BISON): Require to be present.
25247 * configure: Regenerated.
25248 * intl/Makefile (generated): Add plural.c.
25249 [$(BISON) != no]: Make code unconditional.
25250 (plural.c): Change rule to $(objpfx)plural.c.
25251 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
25252 * intl/plural.c: Remove.
25253 * manual/install.texi (Tools for Compilation): Document bison as
25254 required.
25255 * INSTALL: Regenerated.
25256
25257 2017-11-30 Joseph Myers <joseph@codesourcery.com>
25258
25259 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
25260 <libm-alias-double.h>.
25261 (llrint): Define using libm_alias_double.
25262 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
25263 <libm-alias-float.h>.
25264 (llrintf): Define using libm_alias_float.
25265 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
25266 <libm-alias-ldouble.h>.
25267 (llrintl): Define using libm_alias_ldouble.
25268
25269 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
25270 declare_mgen_alias instead of weak_alias.
25271 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
25272 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
25273 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
25274
25275 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25276
25277 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
25278 Add add_n-generic.
25279 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
25280 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
25281 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
25282
25283 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
25284 Add submul_1-generic.
25285 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
25286 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
25287 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
25288
25289 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
25290 Add addmul_1-generic.
25291 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
25292 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
25293 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
25294
25295 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
25296 Add sub_n-generic.
25297 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
25298 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
25299 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
25300
25301 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
25302 Add mul_1-generic.
25303 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
25304 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
25305 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
25306
25307 2017-11-30 Mike FABIAN <mfabian@redhat.com>
25308
25309 According to CLDR, collation rules for Serbian and Bosnian
25310 should be the same as for Croatian.
25311
25312 [BZ #22534]
25313 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
25314 and to the list of locales to be built for testing.
25315 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
25316 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
25317 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
25318 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
25319
25320 2017-11-30 Mike FABIAN <mfabian@redhat.com>
25321
25322 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
25323 to make test case pass.
25324 * localedata/hr_HR.UTF-8.in: Add more test strings.
25325
25326 2017-11-30 Mike FABIAN <mfabian@redhat.com>
25327
25328 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
25329
25330 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
25331
25332 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
25333 the list of locales to built for testing.
25334 * localedata/hr_HR.UTF-8.in: New file.
25335
25336 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
25337
25338 [BZ #10580]
25339 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
25340 iso14651_t1.
25341 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
25342 CLDR (except use ligatures for the digraphs, CLDR does not use
25343 the ligatures), add first_workday, some fixes in the date and time
25344 formats.
25345 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
25346 for Đ and đ.
25347 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
25348 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
25349 Add int_p_cs_precedes and int_n_cs_precedes.
25350 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
25351 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
25352 LC_MONETARY now).
25353 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
25354 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
25355 name_miss.
25356 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
25357 and lang_lib. Change postal_fmt.
25358
25359 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
25360
25361 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
25362 <setjmp.h>.
25363 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
25364 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
25365 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
25366 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
25367 * sysdeps/generic/setjmpP.h: New file.
25368 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
25369 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
25370 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
25371 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
25372 Add jmp_buf-ssp.sym.
25373 (tests): Add tst-saved_mask-1.
25374
25375 2017-11-30 Arjun Shankar <arjun@redhat.com>
25376
25377 [BZ #22375]
25378 CVE-2017-17426
25379 * malloc/malloc.c (__libc_malloc): Use checked_request2size
25380 instead of request2size.
25381
25382 2017-11-30 Joseph Myers <joseph@codesourcery.com>
25383
25384 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
25385 (__lllrint): Remove alias.
25386 (lllrint): Likewise.
25387 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
25388 (__lllrintf): Likewise.
25389 (lllrintf): Likewise.
25390
25391 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
25392 <libm-alias-float.h>.
25393 (copysignf): Define using libm_alias_float.
25394 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
25395 <libm-alias-float.h>.
25396 (fabsf): Define using libm_alias_float.
25397 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
25398 Include <libm-alias-float.h>.
25399 (copysignf): Define using libm_alias_float.
25400 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
25401 <libm-alias-float.h>.
25402 (fabsf): Define using libm_alias_float.
25403 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
25404 <libm-alias-float.h>.
25405 (fdimf): Define using libm_alias_float.
25406 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
25407 <libm-alias-float.h>.
25408 (fmaf): Define using libm_alias_float.
25409 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
25410 <libm-alias-float.h>.
25411 (llrintf): Define using libm_alias_float.
25412 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
25413 Include <libm-alias-float.h>.
25414 (nearbyintf): Define using libm_alias_float.
25415 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
25416 <libm-alias-float.h>.
25417 (rintf): Define using libm_alias_float.
25418 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
25419 <libm-alias-float.h>.
25420 (llrintf): Define using libm_alias_float.
25421 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
25422 <libm-alias-float.h>.
25423 (lrintf): Define using libm_alias_float.
25424 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
25425 <libm-alias-float.h>.
25426 (nearbyintf): Define using libm_alias_float.
25427 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
25428 <libm-alias-float.h>.
25429 (rintf): Define using libm_alias_float.
25430 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
25431 <libm-alias-float.h>.
25432 (ceilf): Define using libm_alias_float.
25433 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
25434 <libm-alias-float.h>.
25435 (floorf): Define using libm_alias_float.
25436 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
25437 <libm-alias-float.h>.
25438 (fmaf): Define using libm_alias_float.
25439 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
25440 <libm-alias-float.h>.
25441 (lrintf): Define using libm_alias_float.
25442 (llrintf): Likewise.
25443 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
25444 <libm-alias-float.h>.
25445 (nearbyintf): Define using libm_alias_float.
25446 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
25447 <libm-alias-float.h>.
25448 (rintf): Define using libm_alias_float.
25449 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
25450 <libm-alias-float.h>.
25451 (truncf): Define using libm_alias_float.
25452 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
25453 <libm-alias-float.h>.
25454 (copysignf): Define using libm_alias_float.
25455 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
25456 <libm-alias-float.h>.
25457 (fabsf): Define using libm_alias_float.
25458 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
25459 <libm-alias-float.h>.
25460 (lrintf): Define using libm_alias_float.
25461 (llrintf): Likewise.
25462 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
25463 <libm-alias-float.h>.
25464 (nearbyintf): Define using libm_alias_float.
25465 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
25466 <libm-alias-float.h>.
25467 (rintf): Define using libm_alias_float.
25468
25469 2017-11-29 Joseph Myers <joseph@codesourcery.com>
25470
25471 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
25472 <libm-alias-double.h>.
25473 (copysign): Define using libm_alias_double.
25474 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
25475 <libm-alias-double.h>.
25476 (fabs): Define using libm_alias_double.
25477 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
25478 Include <libm-alias-double.h>.
25479 (copysign): Define using libm_alias_double.
25480 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
25481 <libm-alias-double.h>.
25482 (fabs): Define using libm_alias_double.
25483 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
25484 <libm-alias-double.h>.
25485 (fdim): Define using libm_alias_double.
25486 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
25487 <libm-alias-double.h>.
25488 (fma): Define using libm_alias_double.
25489 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
25490 <libm-alias-double.h>.
25491 (llrint): Define using libm_alias_double.
25492 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
25493 Include <libm-alias-double.h>.
25494 (nearbyint): Define using libm_alias_double.
25495 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
25496 <libm-alias-double.h>.
25497 (rint): Define using libm_alias_double.
25498 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
25499 <libm-alias-double.h>.
25500 (fabs): Define using libm_alias_double.
25501 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
25502 <libm-alias-double.h>.
25503 (llrint): Define using libm_alias_double.
25504 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
25505 <libm-alias-double.h>.
25506 (nearbyint): Define using libm_alias_double.
25507 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
25508 <libm-alias-double.h>.
25509 (rint): Define using libm_alias_double.
25510 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
25511 <libm-alias-double.h>.
25512 (ceil): Define using libm_alias_double.
25513 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
25514 <libm-alias-double.h>.
25515 (floor): Define using libm_alias_double.
25516 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
25517 <libm-alias-double.h>.
25518 (fma): Define using libm_alias_double.
25519 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
25520 <libm-alias-double.h>.
25521 (lrint): Define using libm_alias_double.
25522 (llrint): Likewise.
25523 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
25524 <libm-alias-double.h>.
25525 (nearbyint): Define using libm_alias_double.
25526 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
25527 <libm-alias-double.h>.
25528 (rint): Define using libm_alias_double.
25529 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
25530 <libm-alias-double.h>.
25531 (trunc): Define using libm_alias_double.
25532 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
25533 <libm-alias-double.h>.
25534 (copysign): Define using libm_alias_double.
25535 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
25536 <libm-alias-double.h>.
25537 (fabs): Define using libm_alias_double.
25538 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
25539 <libm-alias-double.h>.
25540 (lrint): Define using libm_alias_double.
25541 (llrint): Likewise.
25542 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
25543 <libm-alias-double.h>.
25544 (nearbyint): Define using libm_alias_double.
25545 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
25546 <libm-alias-double.h>.
25547 (rint): Define using libm_alias_double.
25548
25549 [BZ #22229]
25550 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
25551 <math_ldbl_opt.h>.
25552 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25553
25554 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
25555 SPARC --disable-multi-arch glibc variants.
25556
25557 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
25558 <libm-alias-float.h>.
25559 (exp2f): Define using libm_alias_float, or libm_alias_float_other
25560 if [SHARED].
25561 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
25562 <libm-alias-float.h>.
25563 (exp2f): Define using libm_alias_float, or libm_alias_float_other
25564 if [SHARED].
25565 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
25566 <libm-alias-float.h>.
25567 (exp2f): Define using libm_alias_float, or libm_alias_float_other
25568 if [SHARED].
25569 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
25570 <libm-alias-float.h>.
25571 (exp2f): Define using libm_alias_float, or libm_alias_float_other
25572 if [SHARED].
25573 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
25574 <libm-alias-float.h>.
25575 (exp2f): Define using libm_alias_float, or libm_alias_float_other
25576 if [SHARED].
25577 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
25578 <libm-alias-float.h>.
25579 (ceilf): Define using libm_alias_float.
25580 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
25581 <libm-alias-float.h>.
25582 (floorf): Define using libm_alias_float.
25583 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
25584 <libm-alias-float.h>.
25585 (fmaf): Define using libm_alias_float.
25586 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
25587 <libm-alias-float.h>.
25588 (nearbyintf): Define using libm_alias_float.
25589 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
25590 <libm-alias-float.h>.
25591 (rintf): Define using libm_alias_float.
25592 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
25593 <libm-alias-float.h>.
25594 (truncf): Define using libm_alias_float.
25595 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
25596 (copysignf): Define using libm_alias_float.
25597 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
25598 (cosf): Define using libm_alias_float.
25599 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
25600 (fabsf): Define using libm_alias_float.
25601 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
25602 (fmaxf): Define using libm_alias_float.
25603 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
25604 (fminf): Define using libm_alias_float.
25605 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
25606 (llrintf): Define using libm_alias_float.
25607 [!__ILP32__] (lrintf): Likewise.
25608 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
25609 (sincosf): Define using libm_alias_float.
25610 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
25611 (sinf): Define using libm_alias_float.
25612 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
25613 (lrintf): Define using libm_alias_float.
25614
25615 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
25616 <libm-alias-double.h>.
25617 (atan): Define using libm_alias_double.
25618 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
25619 <libm-alias-double.h>.
25620 (ceil): Define using libm_alias_double.
25621 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
25622 <libm-alias-double.h>.
25623 (floor): Define using libm_alias_double.
25624 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
25625 <libm-alias-double.h>.
25626 (fma): Define using libm_alias_double.
25627 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
25628 <libm-alias-double.h>.
25629 (nearbyint): Define using libm_alias_double.
25630 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
25631 <libm-alias-double.h>.
25632 (rint): Define using libm_alias_double.
25633 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
25634 <libm-alias-double.h>.
25635 (sin): Define using libm_alias_double.
25636 (cos): Likewise.
25637 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
25638 <libm-alias-double.h>.
25639 (tan): Define using libm_alias_double.
25640 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
25641 <libm-alias-double.h>.
25642 (trunc): Define using libm_alias_double.
25643 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
25644 (copysign): Define using libm_alias_double.
25645 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
25646 (fabs): Define using libm_alias_double.
25647 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
25648 (fmax): Define using libm_alias_double.
25649 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
25650 (fmin): Define using libm_alias_double.
25651 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
25652 (llrint): Define using libm_alias_double.
25653 [!__ILP32__] (lrint): Likewise.
25654 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
25655 (lrint): Define using libm_alias_double.
25656
25657 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25658
25659 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
25660 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
25661 objects.
25662 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
25663 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
25664 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
25665 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
25666 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
25667 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
25668
25669 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
25670 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
25671 objects.
25672 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
25673 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
25674 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
25675 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
25676 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
25677 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
25678
25679 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
25680 (libm-sysdep_routines): Add s_nearbyint-generic and
25681 s_nearbyintf-generic objects.
25682 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
25683 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
25684 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
25685 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
25686 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
25687 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
25688
25689 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
25690 Add s_finitef-generic and s_finite-generic objects.
25691 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
25692 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
25693 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
25694 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
25695 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
25696 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
25697
25698 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
25699 Add s_isinff-generic and s_isinf-generic objects.
25700 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
25701 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
25702 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
25703 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
25704 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
25705 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
25706
25707 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
25708 Add s_isnanf-generic and s_isnan-generic objects.
25709 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
25710 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
25711 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
25712 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
25713 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
25714 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
25715
25716 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
25717 macro.
25718 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
25719 rule.
25720 (sysdep_routines): Use sysdep_calls as base.
25721 (libm-sysdep_routines): Add generic rule for symbols shared with
25722 libc. Add s_signbit-generic and s_signbitf-generic objects.
25723 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
25724 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
25725 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
25726 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
25727 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
25728 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
25729
25730 2017-11-29 Joseph Myers <joseph@codesourcery.com>
25731
25732 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
25733 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
25734 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
25735 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
25736 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
25737 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
25738 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
25739 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
25740 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
25741 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
25742 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
25743 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
25744 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
25745 libm_alias_float_r.
25746 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
25747 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
25748 (logf): Likewise.
25749 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
25750 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
25751 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
25752 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
25753 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
25754 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
25755 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
25756 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
25757 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
25758 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
25759 libm_alias_float.
25760 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
25761 (cosf): Likewise.
25762 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
25763 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
25764 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
25765 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
25766 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
25767 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
25768 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
25769 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
25770 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
25771 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
25772 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
25773 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
25774 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
25775 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
25776 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
25777 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
25778 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
25779 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
25780 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
25781 libm_alias_float.
25782 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
25783 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
25784 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
25785 * sysdeps/ia64/fpu/w_lgammaf_main.c
25786 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
25787 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
25788
25789 2017-11-28 Mike FABIAN <mfabian@redhat.com>
25790 Alexandre Oliva <aoliva@redhat.com>
25791
25792 [BZ #17750]
25793 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
25794 * localedata/fr_CA.UTF-8.in: New file with test data for backward
25795 accents sorting.
25796 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
25797 sorting.
25798 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
25799 * localedata/locales/de_DE (LC_COLLATE): Likewise.
25800 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
25801 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
25802 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
25803 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
25804 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
25805 instead of “ifdef DIACRIT_BACKWARD”.
25806
25807 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25808
25809 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
25810 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
25811 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
25812 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
25813 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
25814 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
25815 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
25816 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
25817 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
25818 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
25819 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
25820 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
25821 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
25822 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
25823 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
25824 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
25825 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
25826 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
25827 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
25828 ($(have-as-vis3) == yes): Remove conditional.
25829 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
25830 Likewise.
25831 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
25832 file.
25833 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
25834 file.
25835 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
25836 file.
25837 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
25838 file.
25839 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
25840 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
25841 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
25842 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
25843 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
25844 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
25845 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
25846 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
25847
25848 2017-11-29 Joseph Myers <joseph@codesourcery.com>
25849
25850 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
25851 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
25852 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
25853 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
25854 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
25855 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
25856 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
25857 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
25858 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
25859 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
25860 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
25861 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
25862 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
25863 libm_alias_double_r.
25864 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
25865 (log): Likewise.
25866 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
25867 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
25868 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
25869 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
25870 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
25871 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
25872 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
25873 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
25874 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
25875 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
25876 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
25877 libm_alias_double.
25878 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
25879 (cos): Likewise.
25880 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
25881 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
25882 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
25883 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
25884 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
25885 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
25886 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
25887 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
25888 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
25889 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
25890 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
25891 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
25892 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
25893 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
25894 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
25895 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
25896 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
25897 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
25898 libm_alias_double.
25899 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
25900 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
25901 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
25902 * sysdeps/ia64/fpu/w_lgamma_main.c
25903 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
25904 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
25905
25906 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
25907
25908 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
25909 address of $global$ into %dp register earlier. Use pc-relative
25910 instruction sequence for PIC case.
25911
25912 2017-11-28 Joseph Myers <joseph@codesourcery.com>
25913
25914 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
25915 (asinhf): Define using libm_alias_float.
25916 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
25917 (atanf): Define using libm_alias_float.
25918 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
25919 (cbrtf): Define using libm_alias_float.
25920 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
25921 (ceilf): Define using libm_alias_float.
25922 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
25923 (copysignf): Define using libm_alias_float.
25924 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
25925 (expm1f): Define using libm_alias_float.
25926 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
25927 (fabsf): Define using libm_alias_float.
25928 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
25929 (floorf): Define using libm_alias_float.
25930 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
25931 (fmaxf): Define using libm_alias_float.
25932 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
25933 (fminf): Define using libm_alias_float.
25934 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
25935 (frexpf): Define using libm_alias_float.
25936 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
25937 (llrintf): Define using libm_alias_float.
25938 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
25939 (logbf): Define using libm_alias_float.
25940 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
25941 (lrintf): Define using libm_alias_float.
25942 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
25943 (nearbyintf): Define using libm_alias_float.
25944 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
25945 (remquof): Define using libm_alias_float.
25946 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
25947 (rintf): Define using libm_alias_float.
25948 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
25949 (truncf): Define using libm_alias_float.
25950 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
25951 <libm-alias-float.h>.
25952 (exp2f): Define using libm_alias_float, or libm_alias_float_other
25953 if [SHARED].
25954 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
25955 <libm-alias-float.h>.
25956 (expf): Define using libm_alias_float, or libm_alias_float_other
25957 if [SHARED].
25958 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
25959 <libm-alias-float.h>.
25960 (log2f): Define using libm_alias_float, or libm_alias_float_other
25961 if [SHARED].
25962 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
25963 <libm-alias-float.h>.
25964 (logf): Define using libm_alias_float, or libm_alias_float_other
25965 if [SHARED].
25966 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
25967 <libm-alias-float.h>.
25968 (powf): Define using libm_alias_float, or libm_alias_float_other
25969 if [SHARED].
25970 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
25971 <libm-alias-float.h>.
25972 (cosf): Define using libm_alias_float.
25973 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
25974 <libm-alias-float.h>.
25975 (sincosf): Define using libm_alias_float.
25976 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
25977 <libm-alias-float.h>.
25978 (sinf): Define using libm_alias_float.
25979 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
25980 (fmaxf): Define using libm_alias_float.
25981 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
25982 (fminf): Define using libm_alias_float.
25983 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
25984 <libm-alias-float.h>.
25985 (fmaf): Define using libm_alias_float.
25986
25987 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
25988 (asinh): Define using libm_alias_double.
25989 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
25990 (atan): Define using libm_alias_double.
25991 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
25992 (cbrt): Define using libm_alias_double.
25993 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
25994 (ceil): Define using libm_alias_double.
25995 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
25996 (copysign): Define using libm_alias_double.
25997 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
25998 (expm1): Define using libm_alias_double.
25999 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
26000 (fabs): Define using libm_alias_double.
26001 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
26002 (fdim): Define using libm_alias_double.
26003 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
26004 (floor): Define using libm_alias_double.
26005 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
26006 (fmax): Define using libm_alias_double.
26007 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
26008 (fmin): Define using libm_alias_double.
26009 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
26010 (frexp): Define using libm_alias_double.
26011 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
26012 (llrint): Define using libm_alias_double.
26013 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
26014 (logb): Define using libm_alias_double.
26015 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
26016 (lrint): Define using libm_alias_double.
26017 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
26018 (nearbyint): Define using libm_alias_double.
26019 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
26020 (remquo): Define using libm_alias_double.
26021 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
26022 (rint): Define using libm_alias_double.
26023 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
26024 (trunc): Define using libm_alias_double.
26025 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
26026 (fmax): Define using libm_alias_double.
26027 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
26028 (fmin): Define using libm_alias_double.
26029 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
26030 (fma): Define using libm_alias_double.
26031
26032 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
26033
26034 [BZ #22370]
26035 * elf/dl-hwcaps.c (ROUND): Removed.
26036 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
26037 and ELF_NOTE_NEXT_OFFSET.
26038 * elf/dl-load.c (ROUND): Removed.
26039 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
26040 * elf/readelflib.c (ROUND): Removed.
26041 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
26042 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
26043 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
26044 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
26045
26046 2017-11-28 Joseph Myers <joseph@codesourcery.com>
26047
26048 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
26049 [!__fmaf] (fmaf): Define using libm_alias_float.
26050
26051 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
26052 [!__fma] (fma): Define using libm_alias_double.
26053 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
26054
26055 2017-11-28 Mike FABIAN <mfabian@redhat.com>
26056
26057 [BZ #22336]
26058 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
26059 and implement the collation rules for cs from CLDR on top of that.
26060 * Makefile: Add cs_CZ.UTF-8 to test-input.
26061 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
26062
26063 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
26064
26065 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
26066
26067 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
26068 Icarus Sparry <icarus.w.sparry@intel.com>
26069
26070 * benchtests/Makefile:Add BENCHSET to allow subsets of
26071 benchmarks to be run.
26072 * benchtests/README: Add documentation for: Running subsets of
26073 benchmarks.
26074
26075 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
26076
26077 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
26078 range of tests names.
26079
26080 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
26081 result from property and remove "max", min" and "mean" from
26082 required properties based on benchtests/bench-skeleton.c.
26083
26084 2017-11-28 Florian Weimer <fweimer@redhat.com>
26085
26086 [BZ #20826]
26087 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
26088 due to Internet requirement.
26089 * posix/Makefile (tests): Remove tst-getaddrinfo4,
26090 tst-getaddrinfo5.
26091 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
26092
26093 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26094
26095 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
26096 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
26097 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
26098 (sysdep_routines): Add memset-ultra1.
26099 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
26100 file.
26101 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
26102 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
26103 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
26104 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
26105 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
26106 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
26107 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
26108 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
26109
26110 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
26111 file.
26112 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
26113 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
26114 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
26115 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
26116 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
26117 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
26118 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
26119 macro.
26120 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
26121 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
26122 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
26123 (sysdep_routines): Add memcpy-ultra1.
26124 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
26125 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
26126
26127 2017-11-28 Joseph Myers <joseph@codesourcery.com>
26128
26129 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
26130 (cfloat_versions): Take function argument without trailing 'f'.
26131 Call libm_alias_float_other.
26132 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
26133 * sysdeps/alpha/fpu/cargf.c: Likewise.
26134 * sysdeps/alpha/fpu/cimagf.c: Likewise.
26135 * sysdeps/alpha/fpu/conjf.c: Likewise.
26136 * sysdeps/alpha/fpu/crealf.c: Likewise.
26137 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
26138 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
26139 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
26140 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
26141 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
26142 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
26143 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
26144 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
26145 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
26146 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
26147 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
26148 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
26149 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
26150 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
26151 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
26152 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
26153 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
26154 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
26155 (clog10f): Use libm_alias_float_other.
26156 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
26157 (ceilf): Define using libm_alias_float.
26158 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
26159 (copysignf): Define using libm_alias_float.
26160 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
26161 (fabsf): Define using libm_alias_float.
26162 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
26163 (floorf): Define using libm_alias_float.
26164 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
26165 (fmaxf): Define using libm_alias_float.
26166 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
26167 (fminf): Define using libm_alias_float.
26168 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
26169 (lrintf): Define using libm_alias_float.
26170 (llrintf): Likewise.
26171 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
26172 (lroundf): Define using libm_alias_float.
26173 (llroundf): Likewise.
26174 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
26175 (rintf): Define using libm_alias_float.
26176 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
26177 (truncf): Define using libm_alias_float.
26178
26179 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
26180 (ceilf): Define using libm_alias_float.
26181 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
26182 (floorf): Define using libm_alias_float.
26183 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
26184 (fmaf): Define using libm_alias_float.
26185 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
26186 (fmaxf): Define using libm_alias_float.
26187 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
26188 (fminf): Define using libm_alias_float.
26189 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
26190 (llrintf): Define using libm_alias_float.
26191 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
26192 (llroundf): Define using libm_alias_float.
26193 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
26194 (lrintf): Define using libm_alias_float.
26195 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
26196 (lroundf): Define using libm_alias_float.
26197 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
26198 <libm-alias-float.h>.
26199 (nearbyintf): Define using libm_alias_float.
26200 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
26201 (rintf): Define using libm_alias_float.
26202 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
26203 (roundf): Define using libm_alias_float.
26204 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
26205 (truncf): Define using libm_alias_float.
26206
26207 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
26208 (ceil): Define using libm_alias_double.
26209 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
26210 (copysign): Define using libm_alias_double.
26211 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
26212 (fabs): Define using libm_alias_double.
26213 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
26214 (floor): Define using libm_alias_double.
26215 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
26216 (fmax): Define using libm_alias_double.
26217 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
26218 (fmin): Define using libm_alias_double.
26219 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
26220 (lrint): Define using libm_alias_double.
26221 (llrint): Likewise.
26222 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
26223 (lround): Define using libm_alias_double.
26224 (llround): Likewise.
26225 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
26226 (rint): Define using libm_alias_double.
26227 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
26228 (trunc): Define using libm_alias_double.
26229
26230 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
26231 (libm_alias_double_r): Add semicolon after weak_alias call.
26232
26233 2017-11-27 Joseph Myers <joseph@codesourcery.com>
26234
26235 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
26236 (ceil): Define using libm_alias_double.
26237 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
26238 (floor): Define using libm_alias_double.
26239 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
26240 (fma): Define using libm_alias_double.
26241 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
26242 (fmax): Define using libm_alias_double.
26243 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
26244 (fmin): Define using libm_alias_double.
26245 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
26246 (llrint): Define using libm_alias_double.
26247 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
26248 (llround): Define using libm_alias_double.
26249 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
26250 (lrint): Define using libm_alias_double.
26251 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
26252 (lround): Define using libm_alias_double.
26253 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
26254 (nearbyint): Define using libm_alias_double.
26255 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
26256 (rint): Define using libm_alias_double.
26257 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
26258 (round): Define using libm_alias_double.
26259 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
26260 (trunc): Define using libm_alias_double.
26261
26262 2017-11-27 Florian Weimer <fweimer@redhat.com>
26263
26264 * sysdeps/unix/sysv/linux/mlock2.c: New file.
26265 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
26266 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
26267 (tests): Add tst-mlock2.
26268 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
26269 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
26270 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
26271 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
26272 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
26273 for mlock. Document mlock2.
26274
26275 2017-11-27 Joseph Myers <joseph@codesourcery.com>
26276
26277 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
26278 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
26279 Likewise.
26280 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
26281 Likewise.
26282 * sysdeps/x86/Makeconfig: New file.
26283 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
26284 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
26285 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
26286 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
26287 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
26288 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
26289 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
26290 Likewise.
26291 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
26292 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
26293 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
26294 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
26295 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
26296 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
26297 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
26298 * manual/math.texi (Mathematics): Document support for _Float64x.
26299 * math/Versions (GLIBC_2.27): Add _Float64x functions.
26300 * stdlib/Versions (GLIBC_2.27): Likewise.
26301 * wcsmbs/Versions (GLIBC_2.27): Likewise.
26302 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
26303 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
26304 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
26305 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26306 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
26307 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
26308 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
26309 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
26310 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26311 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
26312 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
26313 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
26314 Likewise.
26315 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
26316 Likewise.
26317 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
26318 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26319 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
26320 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26321 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
26322 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26323 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
26324 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26325 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
26326 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
26327 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
26328 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
26329 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
26330 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26331
26332 2017-11-27 Andreas Schwab <schwab@suse.de>
26333
26334 * elf/Makefile (dl-routines): Add dl-sort-maps.
26335 * elf/dl-sort-maps.c: New file.
26336 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
26337 (_dl_sort_maps): Declare.
26338 * elf/dl-fini.c (_dl_sort_fini): Remove.
26339 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
26340 * elf/dl-close.c (_dl_close_worker): Likewise.
26341 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
26342 open-coding it.
26343 * elf/dl-open.c (dl_open_worker): Likewise.
26344
26345 2017-11-24 Joseph Myers <joseph@codesourcery.com>
26346
26347 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
26348 using libm_alias_float128.
26349 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
26350 Likewise.
26351 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
26352 Likewise.
26353 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
26354 (setpayloadsigf128): Likewise.
26355 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
26356 Likewise.
26357 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
26358 Likewise.
26359
26360 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
26361 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
26362 -mfloat128 to CFLAGS.
26363 ($(foreach
26364 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
26365 Likewise.
26366 (CFLAGS-libm-test-support-float64x.c): New variable.
26367 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
26368 $(f128-loader-link) to gnulib-tests.
26369
26370 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
26371 (libm_alias_float128_other_r): If
26372 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
26373 alias.
26374 (libm_alias_float128_r): Add semicolon after weak_alias call.
26375 * sysdeps/generic/libm-alias-ldouble.h
26376 (libm_alias_ldouble_other_r_f128): New macro.
26377 (libm_alias_ldouble_other_r_f64x): Likewise.
26378 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
26379 and libm_alias_ldouble_other_r_f64x.
26380 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
26381 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
26382 (libm_alias_ldouble_other_r_f128): New macro.
26383 (libm_alias_ldouble_other_r_f64x): Likewise.
26384 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
26385 and libm_alias_ldouble_other_r_f64x.
26386
26387 * stdlib/strfroml.c: Always include <stdlib.h>.
26388 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
26389 undefine as macro and define as weak alias.
26390 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
26391 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
26392 <stdlib.h>.
26393 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
26394 Define and later undefine as macro and define as weak alias.
26395
26396 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
26397 Define and later undefine as macro. Define as weak alias if
26398 [!USE_WIDE_CHAR].
26399 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
26400 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
26401 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
26402 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
26403 Define and later undefine as macro. Define as weak alias if
26404 [!USE_WIDE_CHAR].
26405 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
26406 Define and later undefine as macro. Define as weak alias if
26407 [USE_WIDE_CHAR].
26408 * sysdeps/ieee754/float128/strtof128_l.c
26409 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
26410 Define and later undefine as macro. Define as weak alias if
26411 [!USE_WIDE_CHAR].
26412 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
26413 Define and later undefine as macro. Define as weak alias if
26414 [USE_WIDE_CHAR].
26415 * sysdeps/ieee754/ldbl-128/strtold_l.c
26416 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
26417 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
26418 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
26419 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
26420 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
26421 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
26422 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
26423 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
26424 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
26425 * sysdeps/ieee754/ldbl-96/strtold_l.c
26426 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
26427 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
26428 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
26429 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
26430
26431 * math/test-float64x.h: New file.
26432 * math/Makefile (type-float64x-yes): New variable.
26433 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
26434
26435 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
26436 function-like macro.
26437 (min_of_type_): Likewise.
26438 (min_of_type_l): Likewise.
26439 (min_of_type_f128): Likewise.
26440 (min_of_type): Pass () as last argument of __MATH_TG.
26441
26442 * stdlib/tst-strtod-round-skeleton.c
26443 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
26444 headers.
26445
26446 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
26447 for combinations of long double with _Float64 and _Float64x.
26448
26449 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
26450 (__DECL_SIMD_cosf32): Likewise.
26451 (__DECL_SIMD_cosf64): Likewise.
26452 (__DECL_SIMD_cosf32x): Likewise.
26453 (__DECL_SIMD_cosf64x): Likewise.
26454 (__DECL_SIMD_cosf128x): Likewise.
26455 (__DECL_SIMD_sinf16): Likewise.
26456 (__DECL_SIMD_sinf32): Likewise.
26457 (__DECL_SIMD_sinf64): Likewise.
26458 (__DECL_SIMD_sinf32x): Likewise.
26459 (__DECL_SIMD_sinf64x): Likewise.
26460 (__DECL_SIMD_sinf128x): Likewise.
26461 (__DECL_SIMD_sincosf16): Likewise.
26462 (__DECL_SIMD_sincosf32): Likewise.
26463 (__DECL_SIMD_sincosf64): Likewise.
26464 (__DECL_SIMD_sincosf32x): Likewise.
26465 (__DECL_SIMD_sincosf64x): Likewise.
26466 (__DECL_SIMD_sincosf128x): Likewise.
26467 (__DECL_SIMD_logf16): Likewise.
26468 (__DECL_SIMD_logf32): Likewise.
26469 (__DECL_SIMD_logf64): Likewise.
26470 (__DECL_SIMD_logf32x): Likewise.
26471 (__DECL_SIMD_logf64x): Likewise.
26472 (__DECL_SIMD_logf128x): Likewise.
26473 (__DECL_SIMD_expf16): Likewise.
26474 (__DECL_SIMD_expf32): Likewise.
26475 (__DECL_SIMD_expf64): Likewise.
26476 (__DECL_SIMD_expf32x): Likewise.
26477 (__DECL_SIMD_expf64x): Likewise.
26478 (__DECL_SIMD_expf128x): Likewise.
26479 (__DECL_SIMD_powf16): Likewise.
26480 (__DECL_SIMD_powf32): Likewise.
26481 (__DECL_SIMD_powf64): Likewise.
26482 (__DECL_SIMD_powf32x): Likewise.
26483 (__DECL_SIMD_powf64x): Likewise.
26484 (__DECL_SIMD_powf128x): Likewise.
26485
26486 * stdlib/Versions (libc): Move entries for wcstof128 and
26487 wcstof128_l to ....
26488 * wcsmbs/Versions (libc): ... here.
26489 Include <float128-abi.h>.
26490
26491 2017-11-24 Florian Weimer <fweimer@redhat.com>
26492
26493 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
26494 bits/mman-shared.h.
26495 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
26496 <bits/mman-shared.h>.
26497 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
26498 to ...
26499 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
26500 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
26501 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
26502 <bits/mman-shared.h>.
26503
26504 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26505
26506 [BZ #22457]
26507 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
26508 posix_memalign/free.
26509 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
26510
26511 2017-11-22 Mike FABIAN <mfabian@redhat.com>
26512
26513 [BZ #22469]
26514 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
26515 and implement the collation rules for pl from CLDR on top of that.
26516 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
26517 of locales to be built for testing.
26518 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
26519
26520 2017-11-23 Joseph Myers <joseph@codesourcery.com>
26521
26522 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
26523 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
26524 libm_alias_ldouble_other.
26525 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
26526 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
26527 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
26528 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
26529 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
26530 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
26531 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
26532 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
26533 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
26534 libm_alias_ldouble_r.
26535 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
26536 libm_alias_ldouble_other.
26537 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
26538 (log10l): Likewise.
26539 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
26540 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
26541 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
26542 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
26543 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
26544 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
26545 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
26546 (atan2l): Likewise.
26547 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
26548 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
26549 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
26550 libm_alias_ldouble.
26551 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
26552 (cosl): Likewise.
26553 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
26554 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
26555 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
26556 (expl): Likewise.
26557 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
26558 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
26559 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
26560 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
26561 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
26562 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
26563 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
26564 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
26565 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
26566 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
26567 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
26568 libm_alias_ldouble.
26569 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
26570 libm_alias_ldouble_other.
26571 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
26572 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
26573 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
26574 libm_alias_ldouble.
26575 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
26576 libm_alias_ldouble_other.
26577 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
26578 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
26579 * sysdeps/ia64/fpu/w_lgammal_main.c
26580 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
26581 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
26582
26583 2017-11-23 Florian Weimer <fweimer@redhat.com>
26584
26585 * malloc/malloc.c (tcache_thread_shutdown): Rename from
26586 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
26587 alike. Remove freeres marker.
26588 * malloc/arena.c (arena_thread_freeres): Call
26589 tcache_thread_shutdown.
26590
26591 2017-11-23 Florian Weimer <fweimer@redhat.com>
26592
26593 [BZ #22459]
26594 Export nscd hash function as __nss_hash.
26595 * include/nss.h (__nss_hash): Declare.
26596 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
26597 symbol.
26598 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
26599 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
26600 of __nscd_hash.
26601 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
26602 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
26603 * nss/Makefiles (routines): Add nss_hash.
26604 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
26605 * nss/nss_hash.c: Rename from nis/nis_hash.c.
26606 (__nss_hash): Rename from __nis_hash. Define hidden alias.
26607 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
26608
26609 2017-11-23 Florian Weimer <fweimer@redhat.com>
26610
26611 [BZ #22478]
26612 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
26613 Return error code, not -1.
26614 * signal/tst-sigwait-eintr.c: New file.
26615 * signal/Makefile (tests): Add tst-sigwait-eintr.
26616
26617 2017-11-23 Florian Weimer <fweimer@redhat.com>
26618
26619 Linux: Add memfd_create system call wrapper
26620 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
26621 tst-memfd_create.
26622 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
26623 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
26624 [__USE_GNU] (memfd_create): Declare.
26625 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
26626 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
26627 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
26628 * sysdeps/unix/sysv/linux/**.abilist: Update.
26629 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
26630
26631 2017-11-22 Joseph Myers <joseph@codesourcery.com>
26632
26633 * localedata/gen-locale.sh: Fix typo in variable name.
26634
26635 * resolv/res_debug.c (p_secstodate): Condition definition on
26636 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
26637 directly as __p_secstodate, and as a compat symbol. Do not use
26638 libresolv_hidden_def.
26639 * resolv/resolv.h (p_secstodate): Remove macro and function
26640 declaration.
26641 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
26642 using p_secstodate.
26643 * include/resolv.h (__p_secstodate): Do not use
26644 libresolv_hidden_proto.
26645 * resolv/Makefile (tests): Move tst-p_secstodate to ....
26646 (tests-internal): ... here.
26647 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
26648 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
26649 and declare and use __p_secstodate and use compat_symbol_reference
26650 in that case.
26651 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
26652 implementation returning 77.
26653
26654 [BZ #22463]
26655 * resolv/res_debug.c: Include <libc-diag.h>.
26656 (p_secstodate): Assert time_t at least as wide as u_long. On
26657 overflow, use integer seconds since the epoch as output, or use
26658 "<overflow>" as output and set errno to EOVERFLOW if integer
26659 seconds since the epoch would be 14 or more characters.
26660 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
26661 for sprintf call.
26662 * resolv/tst-p_secstodate.c: New file.
26663 * resolv/Makefile (tests): Add tst-p_secstodate.
26664 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
26665
26666 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
26667 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
26668 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
26669
26670 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
26671
26672 * posix/regcomp.c (init_word_char): Add comments.
26673
26674 2017-11-22 Joseph Myers <joseph@codesourcery.com>
26675
26676 [BZ #22447]
26677 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
26678 strlen to compute length of ut_user and set trailing NUL byte of
26679 result explicitly.
26680
26681 2017-11-21 Mike FABIAN <mfabian@redhat.com>
26682
26683 [BZ #15537]
26684 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
26685 using “copy "iso14651_t1"” and then implementing the
26686 collation rules for lv from CLDR on top of that.
26687 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
26688 of locales to be built for testing.
26689 * lv_LV.UTF-8.in: New file with test data to test the Latvian
26690 sorting.
26691
26692 2017-11-21 Joseph Myers <joseph@codesourcery.com>
26693
26694 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
26695 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
26696 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
26697 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
26698 [__USE_MISC] (MADV_HWPOISON): New macro.
26699 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
26700
26701 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26702
26703 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
26704 -Wmissing-braces on GCC 4.9.
26705
26706 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
26707
26708 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
26709 * sysdeps/s390/s390-32/start.S (_start): Likewise
26710 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
26711 (thread_start): Likewise.
26712 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
26713 (thread_start): Likewise.
26714 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
26715 (__makecontext_ret): Likewise.
26716 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
26717 (__makecontext_ret): Likewise.
26718
26719 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
26720
26721 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
26722 __wcschrnul): Remove attribute_hidden.
26723
26724 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
26725
26726 regex: don't assume uint64_t or uint32_t
26727 This avoids -Werror=overflow errors for 32-bit systems in
26728 the 64-bit case. Problem reported by Joseph Myers in:
26729 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
26730 Also, when this code is used in Gnulib it ports to platforms
26731 that lack uint64_t and uint32_t. The C standard doesn't guarantee
26732 them, and on some 32-bit compilers there is no uint64_t.
26733 Problem reported by Gianluigi Tiesi in:
26734 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
26735 * posix/regcomp.c (init_word_char): Don't assume that the types
26736 uint64_t and uint32_t exist. Adapted from Gnulib patch
26737 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
26738 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
26739
26740 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
26741
26742 * sysdeps/aarch64/memset-reg.h: New file.
26743 * sysdeps/aarch64/memset.S: Use it.
26744 (__memset): Rename to MEMSET macro.
26745 [ZVA_MACRO]: Use zva_macro.
26746 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
26747 Add memset_generic and memset_falkor.
26748 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
26749 (__libc_ifunc_impl_list): Add memset ifuncs.
26750 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
26751 local variable zva_size.
26752 * sysdeps/aarch64/multiarch/memset.c: New file.
26753 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
26754 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
26755 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
26756 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
26757 (DCZID_DZP_MASK): New macro.
26758 (DCZID_BS_MASK): Likewise.
26759 (init_cpu_features): Read and set zva_size.
26760 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
26761 (struct cpu_features): New member zva_size.
26762
26763 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
26764 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
26765 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
26766
26767 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
26768 backwards. Fix timing computation.
26769 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
26770 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
26771 on memset by N at a time. Fix timing computation.
26772
26773 2017-11-20 Florian Weimer <fweimer@redhat.com>
26774
26775 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
26776 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
26777
26778 2017-11-19 Florian Weimer <fweimer@redhat.com>
26779
26780 manual: Document mprotect
26781 * manual/memory.texi (Memory Protection): New section.
26782 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
26783 documentation of PROT_* flags and reference the Memory Protection
26784 section instead.
26785
26786 2017-11-19 Florian Weimer <fweimer@redhat.com>
26787
26788 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
26789 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
26790 (Scatter-Gather): ... to here. Remove misleading comment.
26791
26792 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
26793
26794 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
26795 style.
26796
26797 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
26798 when /proc/<pid>/setgroups does not exist.
26799
26800 2017-11-18 Florian Weimer <fweimer@redhat.com>
26801
26802 * sysdeps/unix/sysv/linux/tst-ttyname.c
26803 (become_root_in_mount_ns): Remove.
26804 (do_in_chroot_1): Call support_enter_mount_namespace.
26805 (do_in_chroot_2): Likewise.
26806 (do_test): Call support_become_root early.
26807
26808 2017-11-18 Florian Weimer <fweimer@redhat.com>
26809
26810 * support/namespace.h (support_enter_mount_namespace): Declare.
26811 * support/support_enter_mount_namespace.c: New file.
26812 * support/Makefile (libsupport-routines): Add
26813 support_enter_mount_namespace.
26814
26815 2017-11-18 Florian Weimer <fweimer@redhat.com>
26816
26817 * support/temp_file.c (support_create_temp_directory): Use
26818 test_dir and do not rely on the presence of the XXXXXX suffix.
26819 * support/temp_file.h (support_create_temp_directory): Update
26820 comment.
26821 * support/tst-xreadlink.c (do_test): Adjust.
26822 * support/support_chroot.c (support_chroot_create): Likewise.
26823
26824 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
26825
26826 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
26827 macro.
26828 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
26829 htm-no-suspend.
26830
26831 2017-11-17 Joseph Myers <joseph@codesourcery.com>
26832
26833 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
26834 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
26835 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
26836 (ceill): Define using libm_alias_ldouble.
26837 * sysdeps/x86_64/fpu/s_copysignl.S: Include
26838 <libm-alias-ldouble.h>.
26839 (copysignl): Define using libm_alias_ldouble.
26840 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
26841 (fabsl): Define using libm_alias_ldouble.
26842 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
26843 (floorl): Define using libm_alias_ldouble.
26844 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
26845 (fmaxl): Define using libm_alias_ldouble.
26846 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
26847 (fminl): Define using libm_alias_ldouble.
26848 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
26849 (llrintl): Define using libm_alias_ldouble.
26850 (lrintl): Likewise.
26851 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
26852 <libm-alias-ldouble.h>.
26853 (nearbyintl): Define using libm_alias_ldouble.
26854 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
26855 (truncl): Define using libm_alias_ldouble.
26856 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
26857 <libm-alias-ldouble.h>.
26858 (lrintl): Define using libm_alias_ldouble.
26859
26860 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
26861 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
26862 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
26863 (asinhl): Define using libm_alias_ldouble.
26864 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
26865 (atanl): Define using libm_alias_ldouble.
26866 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
26867 (cbrtl): Define using libm_alias_ldouble.
26868 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
26869 (ceill): Define using libm_alias_ldouble.
26870 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
26871 (copysignl): Define using libm_alias_ldouble.
26872 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
26873 (fabsl): Define using libm_alias_ldouble.
26874 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
26875 (floorl): Define using libm_alias_ldouble.
26876 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
26877 (fmaxl): Define using libm_alias_ldouble.
26878 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
26879 (fminl): Define using libm_alias_ldouble.
26880 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
26881 (frexpl): Define using libm_alias_ldouble.
26882 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
26883 (llrintl): Define using libm_alias_ldouble.
26884 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
26885 (logbl): Define using libm_alias_ldouble.
26886 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
26887 (lrintl): Define using libm_alias_ldouble.
26888 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
26889 (nearbyintl): Define using libm_alias_ldouble.
26890 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
26891 (nextafterl): Define using libm_alias_ldouble.
26892 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
26893 (remquol): Define using libm_alias_ldouble.
26894 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
26895 (rintl): Define using libm_alias_ldouble.
26896 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
26897 (truncl): Define using libm_alias_ldouble.
26898 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
26899 (fmaxl): Define using libm_alias_ldouble.
26900 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
26901 (fminl): Define using libm_alias_ldouble.
26902
26903 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
26904 to C syntax instead of availability and properties of types.
26905 * bits/floatn.h [!__ASSEMBLER]: Likewise.
26906 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
26907 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
26908 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
26909 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
26910 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
26911
26912 2017-11-17 Florian Weimer <fweimer@redhat.com>
26913
26914 support_become_root: Enable file creation in namespaces.
26915 * support/support_become_root.c (setup_mapping): New function.
26916 (support_become_root): Call it.
26917
26918 2017-11-17 Joseph Myers <joseph@codesourcery.com>
26919
26920 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
26921 macro.
26922
26923 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26924
26925 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
26926 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
26927
26928 2017-11-16 Joseph Myers <joseph@codesourcery.com>
26929
26930 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
26931
26932 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
26933 version to 4.14.
26934
26935 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
26936
26937 * INSTALL: Fix botched up regeneration.
26938
26939 * NEWS: Update sourceare link to https.
26940 * configure.ac: Likewise.
26941 * crypt/md5test-giant.c: Likewise.
26942 * dlfcn/bug-atexit1.c: Likewise.
26943 * dlfcn/bug-atexit2.c: Likewise.
26944 * localedata/README: Likewise.
26945 * malloc/tst-mallocfork.c: Likewise.
26946 * manual/install.texi: Likewise.
26947 * nptl/tst-pthread-getattr.c: Likewise.
26948 * stdio-common/tst-fgets.c: Likewise.
26949 * stdio-common/tst-fwrite.c: Likewise.
26950 * sunrpc/Makefile: Likewise.
26951 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
26952 * wcsmbs/tst-mbrtowc2.c: Likewise.
26953 * configure: Regenerate.
26954 * INSTALL: Regenerate.
26955
26956 2017-11-15 Martin Sebor <msebor@redhat.com>
26957
26958 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
26959 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
26960 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
26961
26962 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
26963
26964 [BZ #22145]
26965 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
26966 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
26967
26968 [BZ #22145]
26969 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
26970 Defer is_pty check until end of the function.
26971 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
26972
26973 [BZ #22145]
26974 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
26975 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
26976 (ttyname): Likewise.
26977 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
26978 (__ttyname_r): Likewise.
26979
26980 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
26981 int to bool.
26982
26983 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
26984
26985 * manual/terminal.texi (Is It a Terminal):
26986 Mention ENODEV for ttyname and ttyname_r.
26987
26988 2017-11-15 Joseph Myers <joseph@codesourcery.com>
26989
26990 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
26991 constant and macro.
26992
26993 * sysdeps/unix/sysv/linux/bits/mman-linux.h
26994 [__USE_MISC] (MADV_WIPEONFORK): New macro.
26995 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
26996 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
26997 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
26998 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
26999
27000 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27001
27002 * signal/sigrelse.c (sigrelse): Optimize implementation.
27003
27004 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
27005 (__sigpause): Rely on __sigsuspend to implement single thread
27006 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
27007
27008 2017-11-15 Joseph Myers <joseph@codesourcery.com>
27009
27010 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
27011 kernel version to 4.14.
27012
27013 2017-11-15 Steve Ellcey <sellcey@cavium.com>
27014
27015 [BZ #22442]
27016 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
27017 Check if ifname is too long.
27018
27019 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
27020
27021 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
27022
27023 2017-11-15 Mike FABIAN <mfabian@redhat.com>
27024
27025 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
27026 was accidentally lost.
27027
27028 2017-11-15 Mike FABIAN <mfabian@redhat.com>
27029
27030 * localedata/locales/az_IR: Add standard copyright header.
27031
27032 2017-11-15 Florian Weimer <fweimer@redhat.com>
27033
27034 [BZ #22439]
27035 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
27036 not just the top one. Output a new "subheaps" statistic.
27037
27038 2017-11-15 Florian Weimer <fweimer@redhat.com>
27039
27040 [BZ #22408]
27041 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
27042 under the per-arena lock.
27043 * malloc/Makefile (tests): Add tst-malloc_info.
27044 (tst-malloc_info): Link with libpthread.
27045 * malloc/tst-malloc_info.c: New file.
27046
27047 2017-11-15 Joseph Myers <joseph@codesourcery.com>
27048
27049 [BZ #21660]
27050 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
27051 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
27052 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
27053 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
27054 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
27055 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
27056 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
27057 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
27058 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
27059 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
27060 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
27061 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
27062 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
27063 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
27064 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
27065 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
27066 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
27067 (__floating_type): Likewise.
27068 (__real_integer_type): Likewise.
27069 (__complex_integer_type): Likewise.
27070 (__expr_is_real): Likewise.
27071 (__tgmath_real_type_sub): Likewise.
27072 (__tgmath_real_type): Likewise.
27073 (__tgmath_complex_type_sub): Likewise.
27074 (__tgmath_complex_type): Likewise.
27075 (__TGMATH_F128): Likewise.
27076 (__TGMATH_CF128): Likewise.
27077 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
27078 new macros.
27079 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
27080 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
27081 Likewise.
27082 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
27083 Likewise.
27084 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
27085 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
27086 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
27087 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
27088 Likewise.
27089 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
27090 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
27091 Likewise.
27092 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
27093 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
27094 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
27095 Likewise.
27096 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
27097 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
27098 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
27099 (cimag): Likewise.
27100 (creal): Likewise.
27101
27102 2017-11-14 Joseph Myers <joseph@codesourcery.com>
27103
27104 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
27105 for stpncpy calls for GCC 8.
27106 (test_strncat): Disable -Wstringop-truncation warning for strncat
27107 calls for GCC 8. Disable -Wstringop-overflow= warning for one
27108 strncat call for GCC 7.
27109 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
27110 calls for GCC 8.
27111 (test_memcmp): Use memcpy instead of strncpy for calls not copying
27112 trailing NUL.
27113
27114 * string/bug-strncat1.c: Include <libc-diag.h>.
27115 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
27116
27117 2017-11-13 Claude Paroz <claude@2xlibre.net>
27118
27119 [BZ #22387]
27120 * localedata/locales/aa_DJ: Improved readibility by replacing
27121 <Uxxxx> sequences in the ASCII printable range by their ASCII
27122 character equivalents.
27123 * localedata/locales/aa_ER: Likewise.
27124 * localedata/locales/aa_ER@saaho: Likewise.
27125 * localedata/locales/aa_ET: Likewise.
27126 * localedata/locales/af_ZA: Likewise.
27127 * localedata/locales/agr_PE: Likewise.
27128 * localedata/locales/ak_GH: Likewise.
27129 * localedata/locales/am_ET: Likewise.
27130 * localedata/locales/anp_IN: Likewise.
27131 * localedata/locales/ar_AE: Likewise.
27132 * localedata/locales/ar_BH: Likewise.
27133 * localedata/locales/ar_DZ: Likewise.
27134 * localedata/locales/ar_EG: Likewise.
27135 * localedata/locales/ar_IN: Likewise.
27136 * localedata/locales/ar_IQ: Likewise.
27137 * localedata/locales/ar_JO: Likewise.
27138 * localedata/locales/ar_KW: Likewise.
27139 * localedata/locales/ar_LB: Likewise.
27140 * localedata/locales/ar_LY: Likewise.
27141 * localedata/locales/ar_MA: Likewise.
27142 * localedata/locales/ar_OM: Likewise.
27143 * localedata/locales/ar_QA: Likewise.
27144 * localedata/locales/ar_SA: Likewise.
27145 * localedata/locales/ar_SD: Likewise.
27146 * localedata/locales/ar_SS: Likewise.
27147 * localedata/locales/ar_SY: Likewise.
27148 * localedata/locales/ar_TN: Likewise.
27149 * localedata/locales/ar_YE: Likewise.
27150 * localedata/locales/as_IN: Likewise.
27151 * localedata/locales/ast_ES: Likewise.
27152 * localedata/locales/ayc_PE: Likewise.
27153 * localedata/locales/az_AZ: Likewise.
27154 * localedata/locales/az_IR: Likewise.
27155 * localedata/locales/be_BY: Likewise.
27156 * localedata/locales/be_BY@latin: Likewise.
27157 * localedata/locales/bem_ZM: Likewise.
27158 * localedata/locales/ber_DZ: Likewise.
27159 * localedata/locales/ber_MA: Likewise.
27160 * localedata/locales/bg_BG: Likewise.
27161 * localedata/locales/bhb_IN: Likewise.
27162 * localedata/locales/bho_IN: Likewise.
27163 * localedata/locales/bi_VU: Likewise.
27164 * localedata/locales/bn_BD: Likewise.
27165 * localedata/locales/bn_IN: Likewise.
27166 * localedata/locales/bo_CN: Likewise.
27167 * localedata/locales/bo_IN: Likewise.
27168 * localedata/locales/br_FR: Likewise.
27169 * localedata/locales/brx_IN: Likewise.
27170 * localedata/locales/bs_BA: Likewise.
27171 * localedata/locales/byn_ER: Likewise.
27172 * localedata/locales/ca_AD: Likewise.
27173 * localedata/locales/ca_ES: Likewise.
27174 * localedata/locales/ca_FR: Likewise.
27175 * localedata/locales/ca_IT: Likewise.
27176 * localedata/locales/ce_RU: Likewise.
27177 * localedata/locales/chr_US: Likewise.
27178 * localedata/locales/cmn_TW: Likewise.
27179 * localedata/locales/crh_UA: Likewise.
27180 * localedata/locales/cs_CZ: Likewise.
27181 * localedata/locales/csb_PL: Likewise.
27182 * localedata/locales/cv_RU: Likewise.
27183 * localedata/locales/cy_GB: Likewise.
27184 * localedata/locales/da_DK: Likewise.
27185 * localedata/locales/de_AT: Likewise.
27186 * localedata/locales/de_BE: Likewise.
27187 * localedata/locales/de_CH: Likewise.
27188 * localedata/locales/de_DE: Likewise.
27189 * localedata/locales/de_IT: Likewise.
27190 * localedata/locales/de_LI: Likewise.
27191 * localedata/locales/de_LU: Likewise.
27192 * localedata/locales/doi_IN: Likewise.
27193 * localedata/locales/dv_MV: Likewise.
27194 * localedata/locales/dz_BT: Likewise.
27195 * localedata/locales/el_CY: Likewise.
27196 * localedata/locales/el_GR: Likewise.
27197 * localedata/locales/en_AG: Likewise.
27198 * localedata/locales/en_AU: Likewise.
27199 * localedata/locales/en_BW: Likewise.
27200 * localedata/locales/en_CA: Likewise.
27201 * localedata/locales/en_DK: Likewise.
27202 * localedata/locales/en_GB: Likewise.
27203 * localedata/locales/en_HK: Likewise.
27204 * localedata/locales/en_IE: Likewise.
27205 * localedata/locales/en_IL: Likewise.
27206 * localedata/locales/en_IN: Likewise.
27207 * localedata/locales/en_NG: Likewise.
27208 * localedata/locales/en_NZ: Likewise.
27209 * localedata/locales/en_PH: Likewise.
27210 * localedata/locales/en_SG: Likewise.
27211 * localedata/locales/en_US: Likewise.
27212 * localedata/locales/en_ZA: Likewise.
27213 * localedata/locales/en_ZM: Likewise.
27214 * localedata/locales/en_ZW: Likewise.
27215 * localedata/locales/eo: Likewise.
27216 * localedata/locales/es_AR: Likewise.
27217 * localedata/locales/es_BO: Likewise.
27218 * localedata/locales/es_CL: Likewise.
27219 * localedata/locales/es_CO: Likewise.
27220 * localedata/locales/es_CR: Likewise.
27221 * localedata/locales/es_CU: Likewise.
27222 * localedata/locales/es_DO: Likewise.
27223 * localedata/locales/es_EC: Likewise.
27224 * localedata/locales/es_ES: Likewise.
27225 * localedata/locales/es_GT: Likewise.
27226 * localedata/locales/es_HN: Likewise.
27227 * localedata/locales/es_MX: Likewise.
27228 * localedata/locales/es_NI: Likewise.
27229 * localedata/locales/es_PA: Likewise.
27230 * localedata/locales/es_PE: Likewise.
27231 * localedata/locales/es_PR: Likewise.
27232 * localedata/locales/es_PY: Likewise.
27233 * localedata/locales/es_SV: Likewise.
27234 * localedata/locales/es_US: Likewise.
27235 * localedata/locales/es_UY: Likewise.
27236 * localedata/locales/es_VE: Likewise.
27237 * localedata/locales/et_EE: Likewise.
27238 * localedata/locales/eu_ES: Likewise.
27239 * localedata/locales/eu_ES@euro: Likewise.
27240 * localedata/locales/fa_IR: Likewise.
27241 * localedata/locales/ff_SN: Likewise.
27242 * localedata/locales/fi_FI: Likewise.
27243 * localedata/locales/fil_PH: Likewise.
27244 * localedata/locales/fo_FO: Likewise.
27245 * localedata/locales/fr_BE: Likewise.
27246 * localedata/locales/fr_CA: Likewise.
27247 * localedata/locales/fr_CH: Likewise.
27248 * localedata/locales/fr_FR: Likewise.
27249 * localedata/locales/fr_LU: Likewise.
27250 * localedata/locales/fur_IT: Likewise.
27251 * localedata/locales/fy_DE: Likewise.
27252 * localedata/locales/fy_NL: Likewise.
27253 * localedata/locales/ga_IE: Likewise.
27254 * localedata/locales/gd_GB: Likewise.
27255 * localedata/locales/gez_ER: Likewise.
27256 * localedata/locales/gez_ET: Likewise.
27257 * localedata/locales/gl_ES: Likewise.
27258 * localedata/locales/gu_IN: Likewise.
27259 * localedata/locales/gv_GB: Likewise.
27260 * localedata/locales/ha_NG: Likewise.
27261 * localedata/locales/hak_TW: Likewise.
27262 * localedata/locales/he_IL: Likewise.
27263 * localedata/locales/hi_IN: Likewise.
27264 * localedata/locales/hif_FJ: Likewise.
27265 * localedata/locales/hne_IN: Likewise.
27266 * localedata/locales/hr_HR: Likewise.
27267 * localedata/locales/hsb_DE: Likewise.
27268 * localedata/locales/ht_HT: Likewise.
27269 * localedata/locales/hu_HU: Likewise.
27270 * localedata/locales/hy_AM: Likewise.
27271 * localedata/locales/i18n: Likewise.
27272 * localedata/locales/ia_FR: Likewise.
27273 * localedata/locales/id_ID: Likewise.
27274 * localedata/locales/ig_NG: Likewise.
27275 * localedata/locales/ik_CA: Likewise.
27276 * localedata/locales/is_IS: Likewise.
27277 * localedata/locales/it_CH: Likewise.
27278 * localedata/locales/it_IT: Likewise.
27279 * localedata/locales/iu_CA: Likewise.
27280 * localedata/locales/ja_JP: Likewise.
27281 * localedata/locales/ka_GE: Likewise.
27282 * localedata/locales/kk_KZ: Likewise.
27283 * localedata/locales/kl_GL: Likewise.
27284 * localedata/locales/kn_IN: Likewise.
27285 * localedata/locales/ko_KR: Likewise.
27286 * localedata/locales/kok_IN: Likewise.
27287 * localedata/locales/ks_IN: Likewise.
27288 * localedata/locales/ks_IN@devanagari: Likewise.
27289 * localedata/locales/ku_TR: Likewise.
27290 * localedata/locales/kw_GB: Likewise.
27291 * localedata/locales/ky_KG: Likewise.
27292 * localedata/locales/lb_LU: Likewise.
27293 * localedata/locales/lg_UG: Likewise.
27294 * localedata/locales/li_BE: Likewise.
27295 * localedata/locales/li_NL: Likewise.
27296 * localedata/locales/lij_IT: Likewise.
27297 * localedata/locales/ln_CD: Likewise.
27298 * localedata/locales/lo_LA: Likewise.
27299 * localedata/locales/lt_LT: Likewise.
27300 * localedata/locales/lv_LV: Likewise.
27301 * localedata/locales/lzh_TW: Likewise.
27302 * localedata/locales/mag_IN: Likewise.
27303 * localedata/locales/mai_IN: Likewise.
27304 * localedata/locales/mg_MG: Likewise.
27305 * localedata/locales/mhr_RU: Likewise.
27306 * localedata/locales/mi_NZ: Likewise.
27307 * localedata/locales/mk_MK: Likewise.
27308 * localedata/locales/ml_IN: Likewise.
27309 * localedata/locales/mn_MN: Likewise.
27310 * localedata/locales/mni_IN: Likewise.
27311 * localedata/locales/mr_IN: Likewise.
27312 * localedata/locales/ms_MY: Likewise.
27313 * localedata/locales/mt_MT: Likewise.
27314 * localedata/locales/my_MM: Likewise.
27315 * localedata/locales/nan_TW: Likewise.
27316 * localedata/locales/nan_TW@latin: Likewise.
27317 * localedata/locales/nb_NO: Likewise.
27318 * localedata/locales/nds_DE: Likewise.
27319 * localedata/locales/nds_NL: Likewise.
27320 * localedata/locales/ne_NP: Likewise.
27321 * localedata/locales/nhn_MX: Likewise.
27322 * localedata/locales/niu_NU: Likewise.
27323 * localedata/locales/niu_NZ: Likewise.
27324 * localedata/locales/nl_AW: Likewise.
27325 * localedata/locales/nl_BE: Likewise.
27326 * localedata/locales/nl_NL: Likewise.
27327 * localedata/locales/nn_NO: Likewise.
27328 * localedata/locales/nr_ZA: Likewise.
27329 * localedata/locales/nso_ZA: Likewise.
27330 * localedata/locales/oc_FR: Likewise.
27331 * localedata/locales/om_ET: Likewise.
27332 * localedata/locales/om_KE: Likewise.
27333 * localedata/locales/or_IN: Likewise.
27334 * localedata/locales/os_RU: Likewise.
27335 * localedata/locales/pa_IN: Likewise.
27336 * localedata/locales/pa_PK: Likewise.
27337 * localedata/locales/pap_AW: Likewise.
27338 * localedata/locales/pap_CW: Likewise.
27339 * localedata/locales/pl_PL: Likewise.
27340 * localedata/locales/ps_AF: Likewise.
27341 * localedata/locales/pt_BR: Likewise.
27342 * localedata/locales/pt_PT: Likewise.
27343 * localedata/locales/quz_PE: Likewise.
27344 * localedata/locales/raj_IN: Likewise.
27345 * localedata/locales/ro_RO: Likewise.
27346 * localedata/locales/ru_RU: Likewise.
27347 * localedata/locales/ru_UA: Likewise.
27348 * localedata/locales/rw_RW: Likewise.
27349 * localedata/locales/sa_IN: Likewise.
27350 * localedata/locales/sat_IN: Likewise.
27351 * localedata/locales/sc_IT: Likewise.
27352 * localedata/locales/sd_IN: Likewise.
27353 * localedata/locales/sd_IN@devanagari: Likewise.
27354 * localedata/locales/se_NO: Likewise.
27355 * localedata/locales/sgs_LT: Likewise.
27356 * localedata/locales/shs_CA: Likewise.
27357 * localedata/locales/si_LK: Likewise.
27358 * localedata/locales/sid_ET: Likewise.
27359 * localedata/locales/sk_SK: Likewise.
27360 * localedata/locales/sl_SI: Likewise.
27361 * localedata/locales/sm_WS: Likewise.
27362 * localedata/locales/so_DJ: Likewise.
27363 * localedata/locales/so_ET: Likewise.
27364 * localedata/locales/so_KE: Likewise.
27365 * localedata/locales/so_SO: Likewise.
27366 * localedata/locales/sq_AL: Likewise.
27367 * localedata/locales/sq_MK: Likewise.
27368 * localedata/locales/sr_ME: Likewise.
27369 * localedata/locales/sr_RS: Likewise.
27370 * localedata/locales/sr_RS@latin: Likewise.
27371 * localedata/locales/ss_ZA: Likewise.
27372 * localedata/locales/st_ZA: Likewise.
27373 * localedata/locales/sv_FI: Likewise.
27374 * localedata/locales/sv_SE: Likewise.
27375 * localedata/locales/sw_KE: Likewise.
27376 * localedata/locales/sw_TZ: Likewise.
27377 * localedata/locales/szl_PL: Likewise.
27378 * localedata/locales/ta_IN: Likewise.
27379 * localedata/locales/ta_LK: Likewise.
27380 * localedata/locales/tcy_IN: Likewise.
27381 * localedata/locales/te_IN: Likewise.
27382 * localedata/locales/tg_TJ: Likewise.
27383 * localedata/locales/th_TH: Likewise.
27384 * localedata/locales/the_NP: Likewise.
27385 * localedata/locales/ti_ER: Likewise.
27386 * localedata/locales/ti_ET: Likewise.
27387 * localedata/locales/tig_ER: Likewise.
27388 * localedata/locales/tk_TM: Likewise.
27389 * localedata/locales/tl_PH: Likewise.
27390 * localedata/locales/tn_ZA: Likewise.
27391 * localedata/locales/to_TO: Likewise.
27392 * localedata/locales/tpi_PG: Likewise.
27393 * localedata/locales/tr_CY: Likewise.
27394 * localedata/locales/tr_TR: Likewise.
27395 * localedata/locales/ts_ZA: Likewise.
27396 * localedata/locales/tt_RU: Likewise.
27397 * localedata/locales/tt_RU@iqtelif: Likewise.
27398 * localedata/locales/ug_CN: Likewise.
27399 * localedata/locales/uk_UA: Likewise.
27400 * localedata/locales/unm_US: Likewise.
27401 * localedata/locales/ur_IN: Likewise.
27402 * localedata/locales/ur_PK: Likewise.
27403 * localedata/locales/uz_UZ: Likewise.
27404 * localedata/locales/uz_UZ@cyrillic: Likewise.
27405 * localedata/locales/ve_ZA: Likewise.
27406 * localedata/locales/vi_VN: Likewise.
27407 * localedata/locales/wa_BE: Likewise.
27408 * localedata/locales/wae_CH: Likewise.
27409 * localedata/locales/wal_ET: Likewise.
27410 * localedata/locales/wo_SN: Likewise.
27411 * localedata/locales/xh_ZA: Likewise.
27412 * localedata/locales/yi_US: Likewise.
27413 * localedata/locales/yo_NG: Likewise.
27414 * localedata/locales/yue_HK: Likewise.
27415 * localedata/locales/yuw_PG: Likewise.
27416 * localedata/locales/zh_CN: Likewise.
27417 * localedata/locales/zh_HK: Likewise.
27418 * localedata/locales/zh_SG: Likewise.
27419 * localedata/locales/zh_TW: Likewise.
27420 * localedata/locales/zu_ZA: Likewise.
27421
27422 2017-11-13 Florian Weimer <fweimer@redhat.com>
27423
27424 * support/next_to_fault.h, support/next_to_fault.c: New files.
27425 * support/Makefile (libsupport-routines): Add next_to_fault.
27426 * resolv/tst-inet_pton.c (struct next_to_fault)
27427 (next_to_fault_allocate, next_to_fault_free): Remove.
27428 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
27429
27430 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
27431
27432 * elf/dl-support.c: Include <dl-procruntime.c>.
27433 * include/link.h: Include <link_map.h>.
27434 * sysdeps/generic/dl-procruntime.c: New file.
27435 * sysdeps/generic/link_map.h: Likewise.
27436 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
27437 the writable ld.so namespace.
27438
27439 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
27440
27441 timezone: pacify GCC -Wstringop-truncation
27442 Problem reported by Martin Sebor in:
27443 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
27444 * timezone/zic.c (writezone): Use memcpy, not strncpy.
27445
27446 2017-11-12 Florian Weimer <fweimer@redhat.com>
27447
27448 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
27449 tst-xreadlink.
27450 (tests): Add tst-xreadlink.
27451 * support/support.h (xstrndup): Declare.
27452 * support/xunistd.h (xunlink, xreadlink): Declare.
27453 * support/temp_file.h (support_create_temp_directory): Declare.
27454 * support/temp_file.c (support_create_temp_directory): New function.
27455 * support/support_chroot.c (support_chroot_create): Use it.
27456 * support/xreadlink.c: New file.
27457 * support/xstrndup.c: Likewise.
27458 * support/xunlink.c: Likewise.
27459 * support/tst-xreadlink.c: Likewise.
27460
27461 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
27462
27463 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
27464
27465 2017-11-11 Florian Weimer <fweimer@redhat.com>
27466
27467 [BZ #22409]
27468 [BZ #22412]
27469 * resolv/res_comp.c (printable_string, binary_hnok)
27470 (binary_leading_dash): New functions.
27471 (res_hnok): Reimplement using these functions and ns_name_pton.
27472 (res_ownok): Likewise.
27473 (res_mailok): Reimplement using printable_string, ns_name_pton and
27474 binary_hnok.
27475 (res_dnok): Reimplement using printable_string and ns_name_pton.
27476 * resolv/tst-res_hnok.c (tests): Add additional tests.
27477 (LETTERDIGITS, PRINTABLE): Define.
27478 (do_test): Adjust one_char results.
27479
27480 2017-11-11 Florian Weimer <fweimer@redhat.com>
27481
27482 [BZ #22413]
27483 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
27484 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
27485
27486 2017-11-11 Florian Weimer <fweimer@redhat.com>
27487
27488 * resolv/tst-ns_name_pton.c: New file.
27489 * resolv/Makefile (tests): Add tst-ns_name_pton.
27490 (tst-ns_name_pton): Link against libresolv.
27491
27492 2017-11-11 Florian Weimer <fweimer@redhat.com>
27493
27494 * resolv/tst-res_hnok.c: New file.
27495 * resolv/Makefile (tests): Add tst-res_hnok.
27496 (tst-res_hnok): Link against libresolv.
27497
27498 2017-11-11 Florian Weimer <fweimer@redhat.com>
27499
27500 * resolv/tst-resolv-network.c: Use test framework instead explicit
27501 main function.
27502
27503 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
27504
27505 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
27506 <jmp_buf-macros.h>.
27507 [!_ISOMAC] (STR_HELPER): New.
27508 [!_ISOMAC] (STR): Likewise.
27509 [!_ISOMAC] (TEST_SIZE): Likewise.
27510 [!_ISOMAC] (TEST_ALIGN): Likewise.
27511 [!_ISOMAC] (TEST_OFFSET): Likewise.
27512 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
27513 field offsets of jmp_buf as well as sigjmp_buf.
27514 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
27515 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
27516 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
27517 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
27518 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
27519 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
27520 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
27521 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
27522 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
27523 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
27524 Likewise.
27525 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
27526 Likewise.
27527 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
27528 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
27529 Likewise.
27530 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
27531 Likewise.
27532 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
27533 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
27534 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
27535 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
27536 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
27537 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
27538 Likewise.
27539 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
27540 Likewise.
27541 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
27542 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
27543 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
27544
27545 2017-11-07 Joseph Myers <joseph@codesourcery.com>
27546
27547 * include/float.h
27548 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27549 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
27550 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27551 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
27552 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27553 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
27554 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27555 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
27556 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27557 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
27558 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27559 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
27560 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27561 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
27562 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27563 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
27564 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27565 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
27566 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27567 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
27568 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27569 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
27570 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27571 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
27572 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27573 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
27574 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27575 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
27576 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27577 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
27578 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27579 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
27580 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27581 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
27582 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27583 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
27584 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27585 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
27586 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27587 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
27588 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27589 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
27590 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27591 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
27592 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27593 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
27594 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27595 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
27596 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27597 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
27598 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27599 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
27600 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27601 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
27602 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27603 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
27604 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27605 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
27606 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27607 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
27608 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27609 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
27610 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27611 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
27612 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27613 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
27614 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27615 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
27616 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27617 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
27618 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27619 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
27620 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27621 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
27622 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27623 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
27624 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27625 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
27626 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27627 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
27628 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27629 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
27630 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27631 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
27632 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27633 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
27634 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27635 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
27636
27637 * stdlib/tst-strtod.h (F16): New macro.
27638 (F32): Likewise.
27639 (F64): Likewise.
27640 (F32X): Likewise.
27641 (F64X): Likewise.
27642 (F128X): Likewise.
27643 (IF_FLOAT16): Likewise.
27644 (IF_FLOAT32): Likewise.
27645 (IF_FLOAT64): Likewise.
27646 (IF_FLOAT32X): Likewise.
27647 (IF_FLOAT64X): Likewise.
27648 (IF_FLOAT128X): Likewise.
27649 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
27650 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
27651 (STRTOD_TEST_FOREACH): Likewise.
27652 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
27653 (CHOOSE_f64): Likewise.
27654 (CHOOSE_f32x): Likewise.
27655 (CHOOSE_f64x): Likewise.
27656
27657 2017-11-07 Andreas Schwab <schwab@suse.de>
27658
27659 * nptl/Makefile (tests-internal): Remove tst-typesizes.
27660
27661 2017-11-07 Mike FABIAN <mfabian@redhat.com>
27662
27663 [BZ #22403]
27664 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
27665 to be escaped.
27666 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
27667 to be escaped.
27668
27669 2017-11-07 Claude Paroz <claude@2xlibre.net>
27670
27671 [BZ #22403]
27672 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
27673 to be escaped.
27674 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
27675 to be escaped.
27676 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
27677 to be escaped.
27678
27679 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27680
27681 [BZ #22298]
27682 * nptl/allocatestack.c (allocate_stack): Check if
27683 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
27684 __PTHREAD_MUTEX_HAVE_PREV is defined.
27685 * nptl/descr.h (pthread): Likewise.
27686 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
27687 Likewise.
27688 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
27689 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
27690 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
27691 * sysdeps/nptl/bits/thread-shared-types.h
27692 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
27693 defines.
27694 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
27695 of __WORDSIZE for internal layout.
27696 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
27697 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
27698 instead of __WORDSIZE whether to use an union for __spins and __list
27699 fields.
27700 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
27701 case.
27702 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
27703 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
27704 defines.
27705 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
27706 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
27707 Likewise.
27708 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
27709 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
27710 Likewise.
27711 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
27712 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
27713 Likewise.
27714 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
27715 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
27716 Likewise.
27717 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
27718 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
27719 Likewise.
27720 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
27721 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
27722 Likewise.
27723 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
27724 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
27725 Likewise.
27726 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
27727 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
27728 Likewise.
27729 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
27730 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
27731 Likewise.
27732 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
27733 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
27734 Likewise.
27735 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
27736 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
27737 Likewise.
27738 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
27739 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
27740 Likewise.
27741 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
27742 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
27743 Likewise.
27744 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
27745 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
27746 Likewise.
27747
27748 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
27749 New macros.
27750 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
27751 checks for expected input type size.
27752 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
27753 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
27754 Likewise.
27755 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
27756 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
27757 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
27758 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
27759 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
27760 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
27761 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
27762 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
27763 superflous runtime assert check.
27764 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
27765 Likewise.
27766 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
27767 Likewise.
27768 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
27769 Likewise.
27770 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
27771 Likewise.
27772 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
27773 Likewise.
27774 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
27775 Likewise.
27776 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
27777 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
27778 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
27779 Likewise.
27780 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
27781 Likewise.
27782 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
27783 Likewise.
27784 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
27785 Likewise.
27786 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
27787 Likewise.
27788 * nptl/pthread_attr_setinheritsched.c
27789 (__pthread_attr_setinheritsched): Likewise.
27790 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
27791 Likewise.
27792 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
27793 Likewise.
27794 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
27795 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
27796 __old_pthread_attr_setstack): Likewise.
27797 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
27798 Likewise.
27799 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
27800 Likewise.
27801 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
27802 Likewise.
27803 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
27804 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
27805 Likewise.
27806 * nptl/tst-typesizes.c: Remove file.
27807
27808 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
27809 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
27810 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
27811 checks for internal pthread_mutex_t offsets.
27812 * sysdeps/aarch64/nptl/pthread-offsets.h
27813 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
27814 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
27815 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
27816 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
27817 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
27818 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
27819 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
27820 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
27821 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
27822 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
27823 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
27824 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
27825 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
27826 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
27827 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
27828 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
27829 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
27830 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
27831
27832 2017-11-07 Florian Weimer <fweimer@redhat.com>
27833
27834 * bits/mman-linux.h: Move ...
27835 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
27836 comment.
27837 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
27838 outdated comment.
27839
27840 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27841
27842 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
27843 Redefine STRNLEN as __strnlen_power8.
27844
27845 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27846
27847 * signal/sighold.c (sighold): Optimize implementation.
27848
27849 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
27850 __NR_rt_sigqueueinfo.
27851
27852 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
27853 __sigtimedwait.
27854 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
27855 assume __NR_rt_sigtimedwait.
27856 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
27857 and add LIBC_CANCEL_HANDLED for cancellation marking.
27858 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
27859
27860 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
27861 (sysdeps_routines): Add memchr_noneon.
27862 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
27863 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
27864 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
27865 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
27866 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
27867 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
27868 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
27869
27870 * sysdeps/arm/arm-ifunc.h: New file.
27871 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
27872 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
27873 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
27874 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
27875 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
27876 (__memcpy_neon): Avoid create hidden alias.
27877 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
27878 (__memcpy_vfp): Likewise.
27879 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
27880 (sysdep_routines): Add memcpy_arm.
27881 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
27882
27883 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
27884
27885 [BZ #22362]
27886 * Makerules (make-link-multidir): New.
27887 * config.make.in (multidir): New.
27888 * configure.ac (libc_cv_multidir): New. AC_SUBST.
27889 * configure: Regenerated.
27890 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
27891 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
27892 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
27893 New target.
27894
27895 2017-11-06 Joseph Myers <joseph@codesourcery.com>
27896
27897 [BZ #22402]
27898 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
27899 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
27900
27901 2017-11-04 Mike FABIAN <mfabian@redhat.com>
27902
27903 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
27904 to be escaped.
27905
27906 2017-11-04 Florian Weimer <fweimer@redhat.com>
27907
27908 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
27909
27910 2017-11-03 Joseph Myers <joseph@codesourcery.com>
27911
27912 * math/math.h [__HAVE_DISTINCT_FLOAT16
27913 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
27914 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
27915 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
27916 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
27917 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
27918 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
27919 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
27920 (__MATH_TG_F32): New macro.
27921 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
27922 (__MATH_TG_F64X): Likewise.
27923 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
27924 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
27925
27926 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
27927
27928 * po/de.po: Update translations.
27929 * po/ru.po: Likewise.
27930
27931 2017-11-03 Florian Weimer <fweimer@redhat.com>
27932
27933 * manual/filesys.texi (Hard Links): Document linkat.
27934
27935 2017-11-03 Joseph Myers <joseph@codesourcery.com>
27936
27937 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
27938 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
27939 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
27940 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
27941 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
27942 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
27943 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
27944 the same as _Float128.
27945 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
27946 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
27947 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
27948
27949 * stdlib/stdlib.h
27950 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
27951 Declare.
27952 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
27953 Likewise.
27954 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
27955 Likewise.
27956 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
27957 (strtof32x): Likewise.
27958 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
27959 (strtof64x): Likewise.
27960 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
27961 (strtof128x): Likewise.
27962 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
27963 (strfromf16): Likewise.
27964 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
27965 (strfromf32): Likewise.
27966 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
27967 (strfromf64): Likewise.
27968 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
27969 (strfromf32x): Likewise.
27970 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
27971 (strfromf64x): Likewise.
27972 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
27973 (strfromf128x): Likewise.
27974 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
27975 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
27976 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
27977 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
27978 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
27979 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
27980
27981 2017-11-03 Richard Henderson <rth@twiddle.net>
27982
27983 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
27984
27985 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
27986
27987 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
27988
27989 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
27990
27991 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
27992 DT_TLSDESC_GOT initialization.
27993 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
27994 (_dl_tlsdesc_resolve_hold): Likewise.
27995 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
27996 (_dl_tlsdesc_resolve_hold): Likewise.
27997 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
27998 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
27999
28000 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28001
28002 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
28003
28004 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28005
28006 [BZ #18572]
28007 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
28008 non-lazily for R_ARM_TLS_DESC.
28009
28010 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28011
28012 [BZ #17078]
28013 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
28014 R_ARM_TLS_DESC case.
28015 (elf_machine_lazy_rel): Remove the prelink check.
28016
28017 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28018
28019 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
28020 DT_TLSDESC_GOT initialization.
28021 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
28022 (_dl_tlsdesc_resolve_rela): Likewise.
28023 (_dl_tlsdesc_resolve_hold): Likewise.
28024 (_dl_tlsdesc_undefweak): Remove ldar.
28025 (_dl_tlsdesc_dynamic): Likewise.
28026 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
28027 (_dl_tlsdesc_resolve_rela): Likewise.
28028 (_dl_tlsdesc_resolve_hold): Likewise.
28029 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
28030 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
28031 (_dl_tlsdesc_resolve_rela): Likewise.
28032 (_dl_tlsdesc_resolve_hold): Likewise.
28033
28034 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28035
28036 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
28037 binding and initialization non-lazily for R_AARCH64_TLSDESC.
28038
28039 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28040
28041 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
28042 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
28043
28044 2017-11-02 Joseph Myers <joseph@codesourcery.com>
28045
28046 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
28047 Declare.
28048 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
28049 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
28050 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
28051 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
28052 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
28053 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
28054 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
28055 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
28056 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
28057 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
28058 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
28059
28060 2017-11-02 Mike FABIAN <mfabian@redhat.com>
28061
28062 [BZ #22382]
28063 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
28064 * localedata/locales/tpi_PG: Add standard header.
28065
28066 2017-11-02 Florian Weimer <fweimer@redhat.com>
28067
28068 test-errno-linux: quotactl can fail with EPERM in containers.
28069 * sysdeps/unix/sysv/linux/test-errno-linux.c
28070 (LIST, LIST_FORWARD): New macros.
28071 (check_error_in_list): New function.
28072 (test_wrp_rv): Accept list of permitted error codes.
28073 (test_wrp_rv2): Remove.
28074 (test_wrp): Call test_wrp_rv with list of error codes.
28075 (test_wrp2): Accept list of error codes.
28076 (do_test): Adjust. Allow EPERM for quotactl.
28077
28078 2017-11-02 Florian Weimer <fweimer@redhat.com>
28079
28080 * stdio-common/bug16.c (do_test): Use array_length.
28081 * stdio-common/errlist.c (_sys_nerr): Likewise.
28082 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
28083 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
28084 * stdio-common/psiginfo.c (psiginfo): Use array_length.
28085 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
28086 (do_test): Use array_length.
28087 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
28088 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
28089 * stdio-common/tst-printf-round.c (do_test): Likewise.
28090 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
28091 (CHECK): Use array_length.
28092 * stdio-common/tstdiomisc.c (t3, F): Likewise.
28093 * stdio-common/tstscanf.c (main): Likewise.
28094 * stdio-common/vfprintf.c (process_string_arg): Likewise.
28095
28096 2017-11-02 Florian Weimer <fweimer@redhat.com>
28097
28098 Add array_length and array_end macros.
28099 * include/array_length.h: New file.
28100
28101 2017-11-02 Florian Weimer <fweimer@redhat.com>
28102
28103 [BZ #22332]
28104 * posix/tst-glob-tilde.c (do_noescape): New variable.
28105 (one_test): Process it.
28106 (do_test): Set do_noescape. Add unescaping test case.
28107
28108 2017-11-01 Joseph Myers <joseph@codesourcery.com>
28109
28110 * math/complex.h
28111 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
28112 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
28113 with appropriate macros defined and undefined.
28114 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
28115 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
28116 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
28117 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
28118 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
28119 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
28120 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
28121 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
28122 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
28123 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
28124
28125 * math/complex.h
28126 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
28127 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
28128 that for long double. Do not condition define and undefine of
28129 _Mdouble_complex_ on [__CFLOAT128].
28130
28131 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
28132
28133 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
28134 of <sysdeps/generic/sysdep.h>.
28135 (ALIGNARG): Removed.
28136 (ASM_SIZE_DIRECTIVE): Likewise.
28137 (ENTRY): Likewise.
28138 (END): Likewise.
28139 (ENTRY_CHK): Likewise.
28140 (END_CHK): Likewise.
28141 (syscall_error): Likewise.
28142 (mcount): Likewise.
28143 (PSEUDO_END): Likewise.
28144 (L): Likewise.
28145 (atom_text_section): Likewise.
28146 * sysdeps/x86/sysdep.h: New file.
28147 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
28148 of <sysdeps/generic/sysdep.h>.
28149 (ALIGNARG): Removed.
28150 (ASM_SIZE_DIRECTIVE): Likewise.
28151 (ENTRY): Likewise.
28152 (END): Likewise.
28153 (ENTRY_CHK): Likewise.
28154 (END_CHK): Likewise.
28155 (syscall_error): Likewise.
28156 (mcount): Likewise.
28157 (PSEUDO_END): Likewise.
28158 (L): Likewise.
28159 (atom_text_section): Likewise.
28160
28161 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
28162
28163 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
28164 category of LC_CTYPE set to "i18n:2012".
28165 * localedata/locales/i18n_ctype: Regenerate.
28166
28167 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
28168
28169 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
28170 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
28171 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
28172 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
28173
28174 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
28175 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
28176 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
28177 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
28178
28179 2017-10-31 Joseph Myers <joseph@codesourcery.com>
28180
28181 * math/complex.h
28182 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
28183 New macro.
28184 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
28185 Likewise.
28186 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
28187 Likewise.
28188 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28189 (CMPLXF32X): Likewise.
28190 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28191 (CMPLXF64X): Likewise.
28192 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28193 (CMPLXF128X): Likewise.
28194
28195 * math/math.h
28196 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
28197 (__MATH_EVAL_FMT2): Define to add 0.0f.
28198
28199 2017-10-31 Alan Modra <amodra@gmail.com>
28200
28201 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
28202 include sysdep.h.
28203 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
28204 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
28205 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
28206 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
28207 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
28208 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
28209 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
28210 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
28211 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
28212 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
28213 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
28214 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
28215 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
28216 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
28217 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
28218 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
28219 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
28220 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
28221 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
28222 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
28223 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
28224 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
28225 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
28226 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
28227 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
28228 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
28229 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
28230 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
28231 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
28232 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
28233 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
28234 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
28235 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
28236 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
28237 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
28238 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
28239 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
28240 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
28241 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
28242 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
28243 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
28244 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
28245 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
28246 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
28247 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
28248 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
28249 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
28250 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
28251 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
28252 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
28253 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
28254 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
28255 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
28256 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
28257 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
28258 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
28259 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
28260 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
28261 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
28262 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
28263 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
28264 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
28265 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
28266 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
28267 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
28268 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
28269 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
28270 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
28271 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
28272
28273 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
28274 include sysdep.h and math_ldbl_opt.h.
28275
28276 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
28277 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
28278 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
28279 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
28280 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
28281 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
28282 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
28283 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
28284 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
28285 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
28286 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
28287 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
28288 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
28289 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
28290 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
28291 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
28292 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
28293 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
28294 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
28295 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
28296 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
28297 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
28298 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
28299 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
28300 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
28301 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
28302
28303 2017-10-31 Alan Modra <amodra@gmail.com>
28304
28305 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
28306 string/strncase_l.c, not string/strncase.c.
28307 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
28308 (libc_hidden_def): Redefine.
28309
28310 2017-10-31 Alan Modra <amodra@gmail.com>
28311
28312 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
28313 (__STRCMP, STRCMP, __strcasecmp_l): Define.
28314 (__strcasecmp): Don't define.
28315
28316 2017-10-31 Alan Modra <amodra@gmail.com>
28317
28318 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
28319 IS_IN (libc).
28320 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
28321 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
28322 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
28323
28324 2017-10-31 Alan Modra <amodra@gmail.com>
28325
28326 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
28327 USE_AS_STPNCPY.
28328
28329 2017-10-31 Alan Modra <amodra@gmail.com>
28330
28331 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
28332 Redefine only when SHARED.
28333
28334 2017-10-30 Joseph Myers <joseph@codesourcery.com>
28335
28336 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
28337 Include <bits/math-finite.h> with appropriate macros defined and
28338 undefined.
28339 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
28340 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
28341 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
28342 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
28343 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
28344
28345 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
28346 [!_Mlong_double_] (_Mlong_double_): Likewise.
28347 [!_Mfloat16_] (_Mfloat16_): Likewise.
28348 [!_Mfloat32_] (_Mfloat32_): Likewise.
28349 [!_Mfloat64_] (_Mfloat64_): Likewise.
28350 [!_Mfloat128_] (_Mfloat128_): Likewise.
28351 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
28352 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
28353 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
28354 (_Mdouble_): Define without indirection through those macros.
28355 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
28356 [!_Mfloat128_] (_Mfloat128_): Likewise.
28357 [_Mlong_double_] (_Mlong_double_): Likewise.
28358 (_Mdouble_): Define without indirection through those macros.
28359 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
28360 not add -D_Mlong_double_=double.
28361 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
28362 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
28363
28364 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
28365
28366 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
28367
28368 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
28369
28370 * sysdeps/x86/libc-start.c: Reformat.
28371
28372 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
28373
28374 [BZ #22353]
28375 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
28376 (1): Renamed to ...
28377 (L(Src0)): This.
28378 (L(Src1)): New.
28379 (L(Src2)): Likewise.
28380 (L(1)): Renamed to ...
28381 (L(Src3)): This.
28382
28383 2017-10-30 Joseph Myers <joseph@codesourcery.com>
28384
28385 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
28386 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
28387 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
28388 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
28389 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
28390 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
28391 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
28392 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
28393 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
28394 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
28395 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
28396 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
28397 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
28398 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
28399 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
28400 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
28401 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
28402 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
28403 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
28404 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
28405 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
28406 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
28407 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
28408 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
28409 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
28410 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
28411 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
28412 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
28413 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
28414 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
28415 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
28416 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
28417 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
28418 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
28419 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
28420 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
28421 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
28422 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
28423 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
28424 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
28425 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
28426 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
28427 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
28428 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
28429 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
28430 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
28431 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
28432 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
28433 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
28434 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
28435 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
28436 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
28437 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
28438 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
28439 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
28440 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
28441 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
28442 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
28443 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
28444 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
28445 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
28446 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
28447 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
28448 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
28449 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
28450 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
28451
28452 2017-10-30 Florian Weimer <fweimer@redhat.com>
28453
28454 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
28455 always defined.
28456 * io/tst-mkdirat.c (do_test): Likewise.
28457 * io/tst-mkfifoat.c (do_test): Likewise.
28458 * io/tst-mknodat.c (do_test): Likewise.
28459 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
28460 * locale/programs/locale.c (select_dirs): Likewise.
28461 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
28462 * posix/bug-glob2.c (my_readdir): Likewise.
28463 * posix/tst-dir.c (main): Likewise.
28464 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
28465 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
28466
28467 2017-10-30 Florian Weimer <fweimer@redhat.com>
28468
28469 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
28470 just __USE_GNU.
28471
28472 2017-10-30 Florian Weimer <fweimer@redhat.com>
28473
28474 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
28475 Convert to support/test-driver.c.
28476 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
28477 New macro parameters.
28478 (PRINTF): Remove macro. Use test_verbose conditionals instead.
28479 * posix/tst-gnuglob.c: New file.
28480 * posix/tst-gnuglob64.c: Likewise.
28481 * posix/Makefile (tests): Add tst-gnuglob64.
28482
28483 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
28484
28485 [BZ #19485]
28486 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
28487 and use a better translation for March in “mon”.
28488 * localedata/locales/csb_PL: Use more ASCII to improve the
28489 readability of the source.
28490
28491 2017-10-30 Mike FABIAN <mfabian@redhat.com>
28492
28493 [BZ #13953]
28494 * localedata/locales/km_KH: Use ASCII as much
28495 as possible for better readability of the source and
28496 remove useless comments.
28497 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
28498 was commented out and apparently wrong anyway because it was
28499 using Lao characters. If Buddhist era should be used
28500 for km_KH, a native speaker should write the correct formaat
28501 for Khmer.
28502 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
28503 (According to CLDR, the first weekday for Cambodia is Sunday).
28504 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
28505 (These were using Lao characters which must be wrong. If we get
28506 the correct data from a native speaker, we could add it back, until
28507 then it is better not to have name_mr and name_mrs at all than
28508 having it wrong).
28509
28510 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
28511
28512 * locale/loadlocale.c: Correct size of
28513 _nl_value_type_LC_<category> arrays.
28514
28515 2017-10-27 Joseph Myers <joseph@codesourcery.com>
28516
28517 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
28518 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
28519 with appropriate macros defined and undefined.
28520 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
28521 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
28522 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
28523 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
28524 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
28525
28526 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
28527
28528 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
28529 "-O2 -march=i586".
28530
28531 2017-10-27 Mike FABIAN <mfabian@redhat.com>
28532
28533 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
28534 with lowercase letters to make it agree with CLDR.
28535
28536 2017-10-27 Mike FABIAN <mfabian@redhat.com>
28537
28538 [BZ #15260]
28539 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
28540 first letters of yesstr and nostr in yesexpr and noexpr,
28541 not for the full words.
28542 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
28543 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
28544 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
28545 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
28546 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
28547 first letters of yesstr and nostr in yesexpr and noexpr,
28548 until now only English was matched in yesexpr and noexpr.
28549 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
28550 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
28551 fil but not for tl. As tl and fil are very similar, using fil
28552 is probably better than using English.
28553
28554 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
28555
28556 [BZ #21706]
28557 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
28558 in yesstr and nostr.
28559
28560 2017-10-26 Joseph Myers <joseph@codesourcery.com>
28561
28562 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
28563 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
28564 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
28565 Likewise.
28566 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
28567 Likewise.
28568 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
28569 Likewise.
28570 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
28571 Likewise.
28572 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28573 (SNANF128X): Likewise.
28574
28575 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
28576 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
28577 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28578 (HUGE_VAL_F32): Likewise.
28579 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28580 (HUGE_VAL_F64): Likewise.
28581 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28582 (HUGE_VAL_F32X): Likewise.
28583 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28584 (HUGE_VAL_F64X): Likewise.
28585 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28586 (HUGE_VAL_F128X): Likewise.
28587
28588 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
28589
28590 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
28591 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
28592 for the br_FR locale.
28593
28594 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
28595
28596 [BZ #21706]
28597 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
28598
28599 2017-10-25 Carlos O'Donell <carlos@redhat.com>
28600
28601 * locale/programs/record-status.h: Define globals, and function
28602 prototypes. Move function bodies...
28603 * locale/programs/record-status.c: ... to here. New file.
28604 * iconv/Makefile (iconv_prog-modules): Add record-status.
28605 * locale/Makefile (lib-modules): Likewise.
28606 * iconv/iconv_prog.c: Remove verbose.
28607 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
28608 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
28609 record a warning about ASCII compatibility.
28610 * locale/programs/ld-monetary.c (monetary_finish): If
28611 warn_int_curr_symbol is true then record a warning about the symbol
28612 not being in our ISO 4217 list.
28613 * locale/programs/locale.c: Include record-status.h. Remove verbose.
28614 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
28615 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
28616 (OPT_NO_WARN): Define.
28617 (OPT_WARN): Define.
28618 (options): Add entry for --no-warnings, and --warnings.
28619 (set_warnings): New function to enable/disable warnings.
28620 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
28621 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
28622 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
28623 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
28624 Pass flags to generate_locale.
28625 (generate_locale): Accept new flag argument and pass it to localedef
28626 invocation.
28627 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
28628 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
28629
28630 * localedata/Makefile (test-input-data): Use full file name.
28631 * localedata/da_DK.in: Rename to...
28632 * localedata/da_DK.ISO-8859-1.in: ...this.
28633 * localedata/de_DE.in: Rename to...
28634 * localedata/de_DE.ISO-8859-1.in: ...this.
28635 * localedata/en_US.in: Rename to...
28636 * localedata/en_US.ISO-8859-1.in: ...this.
28637 * localedata/fr_FR.in: Rename to...
28638 * localedata/fr_FR.UTF-8.in: ... this.
28639 * localedata/hr_HR.in: Rename to...
28640 * localedata/hr_HR.ISO-8859-2.in: ...this.
28641 * localedata/hu_HU.in: Rename to...
28642 * localedata/hu_HU.UTF-8.in: ...this.
28643 * localedata/si_LK.in: Rename to...
28644 * localedata/si_LK.UTF-8.in: ...this.
28645 * localedata/sv_SE.in: Rename to...
28646 * localedata/sv_SE.ISO-8859-1.in: ...this.
28647 * localedata/tr_TR.in: Rename to...
28648 * localedata/tr_TR.UTF-8.in: ...this.
28649 * localedata/uk_UA.in: Rename to...
28650 * localedata/uk_UA.UTF-8.in: ...this.
28651 * localedata/sort-test.sh: Test file is locale name with the
28652 suffix.
28653
28654 * localedata/unicode-gen/Makefile (check_i18n): Rename to
28655 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
28656 file.
28657 * localedata/locales/i18n_ctype: Regenerate.
28658 * localedata/locales/tr_TR: Likewise.
28659 * localedata/locales/translit_circle: Likewise.
28660 * localedata/locales/translit_cjk_compat: Likewise.
28661 * localedata/locales/translit_combining: Likewise.
28662 * localedata/locales/translit_compat: Likewise.
28663 * localedata/locales/translit_font: Likewise.
28664 * localedata/locales/translit_fraction: Likewise.
28665
28666 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
28667
28668 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
28669 lxvd2x/stxvd2x with lvx/stvx.
28670 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
28671
28672 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
28673
28674 * include/alloc_buffer.h: Replace "if if " with "if " in
28675 comments.
28676 * sysdeps/mips/memcpy.S: Likkewise.
28677 * sysdeps/mips/memset.S: Likewise.
28678 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
28679 Likewise.
28680 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
28681 Likewise.
28682 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
28683 Likewise.
28684
28685 2017-10-25 Mike FABIAN <mfabian@redhat.com>
28686
28687 [BZ #15261]
28688 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
28689 yesexpr and noexpr.
28690 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
28691 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
28692 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
28693 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
28694 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
28695 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
28696 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
28697
28698 2017-10-25 Mike FABIAN <mfabian@redhat.com>
28699
28700 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
28701 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
28702 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
28703 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
28704 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
28705 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
28706 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
28707 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
28708 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
28709 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
28710 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
28711 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
28712
28713 2017-10-25 Mike FABIAN <mfabian@redhat.com>
28714
28715 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
28716 as possible for better readability of the source.
28717 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
28718 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
28719 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
28720 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
28721 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
28722 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
28723 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
28724 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
28725 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
28726 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
28727 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
28728 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
28729 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
28730 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
28731 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
28732 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
28733 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
28734 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
28735 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
28736 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
28737 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
28738 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
28739 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
28740 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
28741 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
28742 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
28743 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
28744 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
28745 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
28746 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
28747 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
28748 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
28749 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
28750 * localedata/locales/en_US (LC_MESSAGES): Likewise.
28751 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
28752 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
28753 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
28754 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
28755 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
28756 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
28757 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
28758 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
28759 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
28760 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
28761 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
28762 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
28763 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
28764 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
28765 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
28766 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
28767 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
28768 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
28769 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
28770 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
28771 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
28772 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
28773 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
28774 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
28775 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
28776 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
28777 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
28778 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
28779 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
28780 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
28781 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
28782 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
28783 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
28784 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
28785 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
28786 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
28787 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
28788 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
28789 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
28790 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
28791 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
28792 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
28793 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
28794 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
28795 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
28796 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
28797 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
28798 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
28799 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
28800 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
28801 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
28802 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
28803 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
28804 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
28805 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
28806 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
28807 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
28808 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
28809 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
28810 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
28811 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
28812 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
28813 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
28814 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
28815 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
28816 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
28817 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
28818 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
28819 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
28820 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
28821 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
28822 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
28823 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
28824 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
28825 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
28826 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
28827 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
28828 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
28829 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
28830 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
28831 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
28832 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
28833 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
28834 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
28835 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
28836 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
28837 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
28838 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
28839 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
28840 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
28841 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
28842 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
28843 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
28844 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
28845 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
28846 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
28847 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
28848 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
28849 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
28850 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
28851 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
28852 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
28853 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
28854 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
28855 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
28856 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
28857 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
28858 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
28859 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
28860 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
28861 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
28862 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
28863 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
28864 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
28865 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
28866 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
28867 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
28868 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
28869 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
28870 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
28871 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
28872 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
28873 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
28874 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
28875 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
28876 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
28877 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
28878 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
28879 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
28880 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
28881 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
28882 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
28883 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
28884 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
28885 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
28886 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
28887 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
28888 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
28889 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
28890 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
28891
28892 2017-10-25 Mike FABIAN <mfabian@redhat.com>
28893
28894 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
28895 (Use first letters of yesstr and nostr correctly instead of using
28896 full words).
28897
28898 2017-10-25 Mike FABIAN <mfabian@redhat.com>
28899
28900 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
28901 (Use first letters of yesstr and nostr correctly).
28902
28903 2017-10-25 Mike FABIAN <mfabian@redhat.com>
28904
28905 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
28906 also check for the first characters of yesstr and nostr.
28907 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
28908 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
28909
28910 2017-10-25 Mike FABIAN <mfabian@redhat.com>
28911
28912 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
28913 also check for Chinese characters.
28914
28915 2017-10-25 Mike FABIAN <mfabian@redhat.com>
28916
28917 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
28918 match also for the contents of yesstr and nostr. As the first letter
28919 of yesstr and nostr is equal, checking only for the first letter
28920 is not enough.
28921
28922 2017-10-25 Mike FABIAN <mfabian@redhat.com>
28923
28924 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
28925 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
28926
28927 2017-10-25 Mike FABIAN <mfabian@redhat.com>
28928
28929 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
28930 of main contributor.
28931
28932 2017-10-25 Mike FABIAN <mfabian@redhat.com>
28933
28934 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
28935 instead of using English.
28936
28937 2017-10-25 Mike FABIAN <mfabian@redhat.com>
28938
28939 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
28940 by including the first letters of nostr and yesexpr in the regexp.
28941 Also make it more readable by using ASCII where possible.
28942
28943 2017-10-25 Mike FABIAN <mfabian@redhat.com>
28944
28945 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
28946 the first letter of nostr in the regexp. It agrees with CLDR now.
28947 Also make it more readable by using ASCII where possible.
28948
28949 2017-10-24 Mike FABIAN <mfabian@redhat.com>
28950
28951 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
28952 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
28953 these strings contain a U+17D6 (which somewhat looks like a colon)
28954 instead of a real colon to separate the full words for “yes”
28955 and “no” from the single letter responses.
28956
28957 2017-10-24 Mike FABIAN <mfabian@redhat.com>
28958
28959 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
28960 it agree with CLDR (include the first letter of yesstr).
28961 Also make it more readable by using ASCII where possible.
28962
28963 2017-10-24 Mike FABIAN <mfabian@redhat.com>
28964
28965 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
28966 and improve yesexpr and noexpr. The yesstr and nostr apparently
28967 came from CLDR. And CLDR has a bug there: these strings contain
28968 a U+0903 (which looks like a colon) instead of a real colon
28969 to separate the full words for “yes” and “no” from the single
28970 letter responses.
28971
28972 2017-10-24 Mike FABIAN <mfabian@redhat.com>
28973
28974 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
28975 letters of the full yesstr and nostr in yesexpr and noexpr.
28976
28977 2017-10-24 Mike FABIAN <mfabian@redhat.com>
28978
28979 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
28980 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
28981 * localedata/locales/an_ES: Make source more readable by using ASCII
28982 where possible.
28983
28984 2017-10-24 Mike FABIAN <mfabian@redhat.com>
28985
28986 [BZ #20952]
28987 * localedata/locales/yuw_PG: New file.
28988 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
28989 * locale/iso-639.def: Add Yau (Uruwa).
28990
28991 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
28992
28993 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
28994
28995 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
28996
28997 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
28998 (__libc_realloc): Likewise.
28999 (_mid_memalign): Likewise.
29000 (__libc_calloc): Likewise.
29001
29002 2017-10-23 Mike FABIAN <mfabian@redhat.com>
29003
29004 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
29005 by adding the generic +1 and -0 as in all other locales.
29006 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
29007 day names and make it more readable by using ASCII where possible.
29008
29009 2017-10-24 Joseph Myers <joseph@codesourcery.com>
29010
29011 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
29012 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
29013
29014 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29015
29016 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
29017 WNOHANG in waitpid call.
29018
29019 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
29020
29021 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
29022 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
29023
29024 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
29025 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
29026 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
29027 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
29028 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
29029 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
29030 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
29031 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
29032 variables.
29033
29034 2017-10-23 Michael Collison <michael.collison@arm.com>
29035
29036 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
29037 with __builtin_sqrt.
29038 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
29039 with __builtin_sqrtf.
29040 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
29041 with __builtin_ceil.
29042 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
29043 with __builtin_ceilf.
29044 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
29045 with __builtin_floor.
29046 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
29047 with __builtin_floorf.
29048 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
29049 with __builtin_fma.
29050 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
29051 with __builtin_fmaf.
29052 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
29053 with __builtin_fmax.
29054 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
29055 with __builtin_fmaxf.
29056 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
29057 with __builtin_fmin.
29058 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
29059 with __builtin_fminf.
29060 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
29061 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
29062 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
29063 with builtin_rint and conversion to int.
29064 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
29065 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
29066 with builtin_llround.
29067 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
29068 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
29069 with builtin_rint and conversion to long int.
29070 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
29071 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
29072 with builtin_lround.
29073 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
29074 with builtin_lroundf.
29075 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
29076 statements with __builtin_nearbyint.
29077 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
29078 statements with __builtin_nearbyintf.
29079 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
29080 with __builtin_rint.
29081 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
29082 with __builtin_rintf.
29083 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
29084 with __builtin_round.
29085 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
29086 with __builtin_roundf.
29087 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
29088 with __builtin_trunc.
29089 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
29090 with __builtin_truncf.
29091 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
29092 and s_l[l]round[f].c too.
29093
29094 2017-10-23 Alan Modra <amodra@gmail.com>
29095
29096 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
29097 Adjust stack after restoring regs. Add missing LR cfi_restore.
29098
29099 2017-10-23 Alan Modra <amodra@gmail.com>
29100
29101 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
29102 Move LR save and frame setup/teardown and LR restore to
29103 immediately around memset call. Provide cfi.
29104
29105 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29106
29107 * sysdeps/i386/fpu/e_powf.S: Removed.
29108 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
29109 * sysdeps/i386/fpu/w_powf.c: Likewise.
29110 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
29111 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29112 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
29113 Add e_powf-sse2.
29114 (CFLAGS-e_powf-sse2.c): New.
29115 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
29116 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
29117
29118 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29119
29120 * sysdeps/i386/fpu/e_log2f.S: Removed.
29121 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
29122 * sysdeps/i386/fpu/w_log2f.c: Likewise.
29123 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
29124 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29125 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
29126 Add e_log2f-sse2.
29127 (CFLAGS-e_log2f-sse2.c): New.
29128 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
29129 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
29130
29131 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29132
29133 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
29134 Add e_powf-fma.
29135 (CFLAGS-e_powf-fma.c): New.
29136 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
29137 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
29138
29139 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29140
29141 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
29142 Add e_log2f-fma.
29143 (CFLAGS-e_log2f-fma.c): New.
29144 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
29145 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
29146
29147 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29148
29149 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
29150 Add e_logf-fma.
29151 (CFLAGS-e_logf-fma.c): New.
29152 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
29153 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
29154
29155 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29156
29157 * sysdeps/i386/fpu/e_logf.S: Removed.
29158 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
29159 * sysdeps/i386/fpu/w_logf.c: Likewise.
29160 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
29161 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
29162 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29163 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
29164 Add e_logf-sse2.
29165 (CFLAGS-e_logf-sse2.c): New.
29166 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
29167 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
29168
29169 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29170
29171 * sysdeps/i386/fpu/e_exp2f.S: Removed.
29172 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
29173 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
29174 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29175 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
29176 Add e_exp2f-sse2.
29177 (CFLAGS-e_exp2f-sse2.c): New.
29178 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
29179 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
29180
29181 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29182
29183 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
29184 Add e_exp2f-fma.
29185 (CFLAGS-e_exp2f-fma.c): New.
29186 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
29187 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
29188
29189 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29190
29191 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
29192 * sysdeps/i386/fpu/e_expf.S: Likewise.
29193 * sysdeps/i386/fpu/math_errf.c: Likewise.
29194 * sysdeps/i386/fpu/w_expf.c: Likewise.
29195 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
29196 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
29197 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
29198 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
29199 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29200 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
29201 Remove e_expf-ia32.
29202 (CFLAGS-e_expf-sse2.c): New.
29203 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
29204 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
29205
29206 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29207
29208 * sysdeps/x86_64/fpu/e_expf.S: Removed.
29209 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
29210 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
29211 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
29212 e_expf.c.
29213 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
29214 New.
29215 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
29216 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
29217 Renamed to ...
29218 (__redirect_expf): This.
29219 (SYMBOL_NAME): Changed to expf.
29220 (__ieee754_expf): Renamed to ...
29221 (__expf): This.
29222 (__GI___expf): This.
29223 (__ieee754_expf): Add strong_alias.
29224 (__expf_finite): Likewise.
29225 (__expf): New.
29226 Include <sysdeps/ieee754/flt-32/e_expf.c>.
29227
29228 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
29229
29230 [BZ #22332]
29231 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
29232 unescaping.
29233
29234 2017-10-21 Florian Weimer <fweimer@redhat.com>
29235
29236 * posix/Makefile (tests): Add tst-glob-tilde.
29237 (tests-special): Add tst-glob-tilde-mem.out
29238 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
29239 (tst-glob-tilde-mem.out): Add mtrace check.
29240 * posix/tst-glob-tilde.c: New file.
29241
29242 2017-10-20 Joseph Myers <joseph@codesourcery.com>
29243
29244 * bits/floatn-common.h: New file.
29245 * math/Makefile (headers): Add bits/floatn-common.h.
29246 * bits/floatn.h: Include <bits/floatn-common.h>.
29247 * sysdeps/ia64/bits/floatn.h: Likewise.
29248 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
29249 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
29250 * sysdeps/powerpc/bits/floatn.h: Likewise.
29251 * sysdeps/x86/bits/floatn.h: Likewise.
29252
29253 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29254
29255 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
29256 indicates whether compiler emits an warning for alias for
29257 functions with incompatible types.
29258
29259 [BZ #22273]
29260 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
29261 the auxiliary process is terminated by a signal before calling _exit
29262 or execve.
29263
29264 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
29265
29266 [BZ #21265]
29267 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
29268 New.
29269 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
29270 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
29271 and bit_arch_XSAVEC_Usable if needed.
29272 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
29273 and bit_arch_Use_dl_runtime_resolve_opt.
29274 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
29275 Removed.
29276 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
29277 (bit_arch_Prefer_No_AVX512): Updated.
29278 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
29279 (bit_arch_XSAVEC_Usable): New.
29280 (STATE_SAVE_OFFSET): Likewise.
29281 (STATE_SAVE_MASK): Likewise.
29282 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
29283 (cpu_features): Add xsave_state_size and xsave_state_full_size.
29284 (index_arch_Use_dl_runtime_resolve_opt): Removed.
29285 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
29286 (index_arch_XSAVEC_Usable): New.
29287 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
29288 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
29289 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
29290 is enabled.
29291 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
29292 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
29293 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
29294 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
29295 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
29296 _dl_runtime_resolve_xsavec.
29297 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
29298 Removed.
29299 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
29300 instead of VEC_SIZE.
29301 (REGISTER_SAVE_BND0): Removed.
29302 (REGISTER_SAVE_BND1): Likewise.
29303 (REGISTER_SAVE_BND3): Likewise.
29304 (REGISTER_SAVE_RAX): Always defined to 0.
29305 (VMOV): Removed.
29306 (_dl_runtime_resolve_avx): Likewise.
29307 (_dl_runtime_resolve_avx_slow): Likewise.
29308 (_dl_runtime_resolve_avx_opt): Likewise.
29309 (_dl_runtime_resolve_avx512): Likewise.
29310 (_dl_runtime_resolve_avx512_opt): Likewise.
29311 (_dl_runtime_resolve_sse): Likewise.
29312 (_dl_runtime_resolve_sse_vex): Likewise.
29313 (USE_FXSAVE): New.
29314 (_dl_runtime_resolve_fxsave): Likewise.
29315 (USE_XSAVE): Likewise.
29316 (_dl_runtime_resolve_xsave): Likewise.
29317 (USE_XSAVEC): Likewise.
29318 (_dl_runtime_resolve_xsavec): Likewise.
29319 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
29320 Removed.
29321 (_dl_runtime_resolve_avx512_opt): Likewise.
29322 (_dl_runtime_resolve_avx): Likewise.
29323 (_dl_runtime_resolve_avx_opt): Likewise.
29324 (_dl_runtime_resolve_sse): Likewise.
29325 (_dl_runtime_resolve_sse_vex): Likewise.
29326 (_dl_runtime_resolve_fxsave): New.
29327 (_dl_runtime_resolve_xsave): Likewise.
29328 (_dl_runtime_resolve_xsavec): Likewise.
29329
29330 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
29331
29332 [BZ #22320]
29333 CVE-2017-15670
29334 * posix/glob.c (__glob): Fix one-byte overflow.
29335
29336 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
29337
29338 * malloc/malloc.c (sysdep-cancel.h): Add include.
29339
29340 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
29341
29342 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
29343
29344 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
29345
29346 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
29347 (tests): Remove $(objpfx)ga_test depdendency.
29348 * resolv/ga_test.c: Remove file.
29349
29350 2017-10-20 Mike FABIAN <mfabian@redhat.com>
29351
29352 [BZ #18812]
29353 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
29354 * localedata/locales/kab_DZ: New file.
29355
29356 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
29357
29358 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
29359 _dl_relocate_static_pie instead of _dl_start to compute load
29360 address in static PIE.
29361
29362 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
29363
29364 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
29365
29366 2017-10-20 Mike FABIAN <mfabian@redhat.com>
29367
29368 [BZ #13605]
29369 * localedata/SUPPORTED: Add shn_MM/UTF-8.
29370 * localedata/locales/shn_MM: New file.
29371
29372 2017-10-20 Florian Weimer <fweimer@redhat.com>
29373
29374 [BZ #22321]
29375 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
29376 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
29377 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
29378 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
29379 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
29380 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
29381
29382 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
29383
29384 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
29385
29386 2017-10-19 Joseph Myers <joseph@codesourcery.com>
29387
29388 * sysdeps/mips/ieee754/bits/floatn.h: New file.
29389
29390 [BZ #22322]
29391 * sysdeps/mips/bits/long-double.h: Move to ....
29392 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
29393
29394 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
29395
29396 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
29397
29398 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
29399 H.J. Lu <hongjiu.lu@intel.com>
29400
29401 [BZ #22299]
29402 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
29403 GLRO(dl_platform) to NULL.
29404 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
29405 (modules-names): Add tst-platformmod-1 and
29406 x86_64/tst-platformmod-2.
29407 (CFLAGS-tst-platform-1.c): New.
29408 (CFLAGS-tst-platformmod-1.c): Likewise.
29409 (CFLAGS-tst-platformmod-2.c): Likewise.
29410 (LDFLAGS-tst-platformmod-2.so): Likewise.
29411 ($(objpfx)tst-platform-1): Likewise.
29412 ($(objpfx)tst-platform-1.out): Likewise.
29413 (tst-platform-1-ENV): Likewise.
29414 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
29415 * sysdeps/x86_64/tst-platform-1.c: New file.
29416 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
29417 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
29418
29419 2017-10-19 Mike FABIAN <mfabian@redhat.com>
29420
29421 [BZ #13994]
29422 * locale/iso-639.def: Add Karbi.
29423 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
29424 * localedata/locales/mjw_IN: New file.
29425
29426 2017-10-18 Joseph Myers <joseph@codesourcery.com>
29427
29428 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
29429 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
29430 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
29431 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
29432 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
29433 (libm_alias_ldouble_other_r): Also create _Float128 alias.
29434 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
29435 <bits/floatn.h>.
29436 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
29437 (libm_alias_ldouble_other_r): Also create _Float128 alias.
29438 * manual/math.texi (Mathematics): Document additional architecture
29439 support for _Float128.
29440 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
29441 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
29442 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
29443 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
29444 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
29445 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
29446 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
29447 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
29448 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
29449 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
29450 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
29451 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
29452 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
29453 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
29454 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
29455
29456 2017-10-18 Renlin Li <renlin.li@arm.com>
29457
29458 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
29459 _DYNAMIC symbol to calculate load address.
29460
29461 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
29462
29463 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
29464 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
29465 summary bits.
29466 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
29467 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
29468
29469 2017-10-18 Mike FABIAN <mfabian@redhat.com>
29470
29471 [BZ #16777]
29472 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
29473 and improve readability by using more ASCII.
29474 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
29475 and improve readability by using more ASCII.
29476
29477 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
29478
29479 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
29480 not all targets support atomics on bool.
29481
29482 2017-10-17 Joseph Myers <joseph@codesourcery.com>
29483
29484 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
29485 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
29486 __f128.
29487 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
29488 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
29489 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
29490 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
29491 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
29492 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
29493
29494 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29495
29496 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
29497 defines.
29498
29499 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
29500
29501 [BZ #22159]
29502 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
29503 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
29504 (do_check_remalloced_chunk): Fix build bug.
29505 (do_check_malloc_state): Add assert that checks arena->top.
29506 (malloc_consolidate): Remove initialization.
29507 (int_mallinfo): Remove call to malloc_consolidate.
29508 (__libc_mallopt): Clarify why malloc_consolidate is needed.
29509
29510 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
29511
29512 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
29513 (have_fastchunks): Remove.
29514 (clear_fastchunks): Remove.
29515 (set_fastchunks): Remove.
29516 (malloc_state): Add have_fastchunks.
29517 (malloc_init_state): Use have_fastchunks.
29518 (do_check_malloc_state): Remove incorrect invariant checks.
29519 (_int_malloc): Use have_fastchunks.
29520 (_int_free): Likewise.
29521 (malloc_consolidate): Likewise.
29522
29523 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
29524
29525 * malloc/malloc.c (tcache_put): Inline.
29526 (tcache_get): Inline.
29527
29528 2017-10-17 Jordi Mallach <jordi@gnu.org>
29529
29530 Aurelien Jarno <aurelien@aurel32.net>
29531 [BZ #2522]
29532 * localedata/locales/ca_ES@valencia: New file.
29533 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
29534
29535 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
29536
29537 [BZ #22296]
29538 * math/math.h: Let signbit use the builtin in C++ mode with gcc
29539 < 6.x
29540
29541 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29542
29543 * scripts/build-many-glibcs.py (Context.add_all_configs):
29544 Add arm-linux-gnueabihf multiarch extra_glibcs.
29545
29546 * sysdeps/generic/ifunc-init.h: New file.
29547 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
29548
29549 2017-10-17 Mike FABIAN <mfabian@redhat.com>
29550
29551 [BZ #22019]
29552 * localedata/locales/el_GR: Set n_cs_precedes to 0.
29553 * localedata/locales/el_CY: copy "el_GR" because it is identical.
29554 * stdlib/tst-strfmon_l.c: adapt test case.
29555
29556 2017-10-16 Joseph Myers <joseph@codesourcery.com>
29557
29558 * sysdeps/generic/float128-abi.h: New file.
29559 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
29560 non-__prefixed symbols to ....
29561 * math/Versions: ... here. Include <float128-abi.h>.
29562 * stdlib/Versions ... and here. Include <float128-abi.h>
29563
29564 2017-10-16 Florian Weimer <fweimer@redhat.com>
29565
29566 * version.h (VERSION): Switch to ".9000" as the development
29567 version suffix.
29568
29569 2017-10-16 Florian Weimer <fweimer@redhat.com>
29570
29571 [BZ #22050]
29572 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
29573 compat_symbol_reference to access non-default version.
29574
29575 2017-10-16 Florian Weimer <fweimer@redhat.com>
29576
29577 * malloc/Makefile (others-extras): Set to mcheck-init.o.
29578
29579 2017-10-16 Carlos O'Donell <carlos@redhat.com>
29580
29581 * include/shlib-compat.h (compat_symbol_reference): Update
29582 comment.
29583
29584 2017-10-16 Joseph Myers <joseph@codesourcery.com>
29585
29586 * math/Makefile (test-types): Add
29587 $(type-float128-$(float128-alias-fcts)).
29588 * math/test-float128.h (TYPE_STR): Define conditional on
29589 [FLT128_MANT_DIG == LDBL_MANT_DIG].
29590 (ULP_IDX): Likewise.
29591 (ULP_I_IDX): Likewise.
29592
29593 * stdlib/strtold.c: Include <bits/floatn.h>
29594 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
29595 and later undefine as macro. Define as weak alias if
29596 [!USE_WIDE_CHAR].
29597 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
29598 and later undefine as macro. Define as weak alias if
29599 [USE_WIDE_CHAR].
29600 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
29601 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
29602 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
29603 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
29604 Define and later undefine as macro. Define as weak alias if
29605 [USE_WIDE_CHAR].
29606 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
29607 <bits/floatn.h>.
29608 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
29609 Define and later undefine as macro. Define as weak alias if
29610 [!USE_WIDE_CHAR].
29611 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
29612 Define and later undefine as macro. Define as weak alias if
29613 [USE_WIDE_CHAR].
29614
29615 2017-10-15 Carlos O'Donell <carlos@redhat.com>
29616
29617 * localedata/collate-test.c (allocate_arrays): Don't use \n in
29618 record_verbose messages.
29619
29620 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
29621
29622 [BZ #22052]
29623 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
29624 to silence -O3 -Wall warning with GCC 7.
29625
29626 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
29627
29628 * Makeconfig (+link-static-before-libc): Use the first of
29629 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
29630 * gmon/Makefile (tests): Add tst-gmon-static.
29631 (tests-static): Likewise.
29632 (CFLAGS-tst-gmon-static.c): New.
29633 (CRT-tst-gmon-static): Likewise.
29634 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
29635 (tst-gmon-static-ENV): Likewise.
29636 (tests-special): Likewise.
29637 ($(objpfx)tst-gmon-static.out): Likewise.
29638 (clean-tst-gmon-static-data): Likewise.
29639 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
29640 * gmon/tst-gmon-static-gprof.sh: New file.
29641 * gmon/tst-gmon-static.c: Likewise.
29642
29643 2017-10-13 Carlos O'Donell <carlos@redhat.com>
29644
29645 [BZ #22295]
29646 * locale/programs/linereader.c (get_string): Don't warn on
29647 non-symbolic character.
29648
29649 [BZ #22294]
29650 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
29651 int_curr_symbol.
29652
29653 [BZ #22292]
29654 * locale/programs/record-status.h: New file
29655 * locale/programs/locale.c: Add comment.
29656 * locale/programs/charmap-dir.c: Don't include error.h.
29657 (charmap_opendir): Use record_error.
29658 * locale/programs/charmap.c: Don't include error.h.
29659 (charmap_read): Use record_error, and record_warning.
29660 (parse_charmap): Likewise.
29661 * locale/programs/ld-address.c: Don't include error.h.
29662 (address_finish): Use record_error, and record_warning.
29663 * locale/programs/ld-collate.c: Don't include error.h.
29664 (collate_finish): Use record_error, and record_error_at_line.
29665 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
29666 (ctype_class_new): Likewise.
29667 (ctype_map_new): Likewise.
29668 (set_one_default): Likewise.
29669 (set_class_defaults): Likewise.
29670 (translit_flatten): Likewise.
29671 (allocate_arrays): Use record_error, and record_verbose.
29672 * locale/programs/ld-identification.c: Don't include error.h.
29673 (indentation_finish): Use record_error and record_warning.
29674 * locale/programs/ld-measurement.c: Don't include error.h.
29675 (measurement_finish): Use record_error.
29676 * locale/programs/ld-messages.c
29677 (message_finish): Likewise.
29678 * locale/programs/ld-monetary.c
29679 (monetary_finish): Likewise.
29680 * locale/programs/ld-name.c (name_finish): Use record_error
29681 and record_warning.
29682 * locale/programs/ld-numeric.c
29683 (numeric_finish): Use record_error.
29684 * locale/programs/ld-paper.c: Don't include error.h.
29685 (paper_finish): Use record_error.
29686 * locale/programs/ld-telephone.c: Don't include error.h.
29687 (telephone_finish): Use record_error.
29688 * locale/programs/ld-time.c (time_finish): Likewise.
29689 * locale/programs/linereader.h (lr_error): Make inline func.
29690 * locale/programs/localedef.c: Define recorded_warning_count,
29691 and recorded_error_count.
29692 (main): Use record_error. Use recorded_error_count and
29693 recorded_warning_count to issue correct error returns.
29694 (add_to_readlist): Use record_error.
29695 (find_locale): Likewise.
29696 (load_locale): Likewise.
29697 * locale/programs/localedef.h: Remove be_quiet
29698 and WITH_CUR_LOCALE.
29699 * locale/programs/locarchive.c (compare_from_file): Use
29700 record_error.
29701 * locale/programs/locfile.c (write_locale_data): Use
29702 record_error.
29703 * locale/programs/repertoire.c: Dont include error.h.
29704 (repertoire_complain): Use record_error.
29705 * localedata/tst-fmon.sh: Expect failures from localedef.
29706 * localedata/tst-locale.sh: Likewise.
29707 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
29708
29709 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
29710 (REPORTS): Likewise.
29711 (check): Likewise.
29712 (i18n): Rename to...
29713 (i18n_ctype): ...this.
29714 (i18n-report): Rename to...
29715 (i18n_ctype-report): ...this.
29716 * localedata/locales/i18n_ctype: Regenerate.
29717 * localedata/locales/i18n: copy i18n_ctype.
29718
29719 2017-10-13 Joseph Myers <joseph@codesourcery.com>
29720
29721 * stdlib/strfroml.c: Include <bits/floatn.h>.
29722 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
29723 Define before include of <stdlib.h> and undefine afterwards, then
29724 define as weak alias.
29725
29726 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
29727 Undefine and restore default definition. Use
29728 libm_alias_ldouble_other.
29729
29730 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
29731
29732 [BZ #22153]
29733 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
29734 in coredumps.
29735
29736 2017-10-13 James Clarke <jrtc27@jrtc27.com>
29737
29738 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
29739 Assign sym_map to be map for local symbols, as TLS relocations
29740 use sym_map to determine whether the symbol is defined and to
29741 extract the TLS information.
29742 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
29743 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
29744
29745 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
29746
29747 [BZ #22189]
29748 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
29749 (math_force_eval): Add powerpc version.
29750
29751 [BZ #22142]
29752 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
29753 -DBL_MAX.
29754 (do_test): Likewise.
29755 * stdio-common/tst-printf.sh: Likewise.
29756 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
29757 ifdef clause in order to set the carry bit right. Replace r0 by
29758 0 without changing the behavior.
29759
29760 2017-10-13 Joseph Myers <joseph@codesourcery.com>
29761
29762 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
29763 <libm-alias-ldouble.h>.
29764 (fabsl): Define using libm_alias_ldouble.
29765 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
29766 <libm-alias-ldouble.h>.
29767 (fabsl): Define using libm_alias_ldouble.
29768
29769 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
29770 Remove conditional code.
29771
29772 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
29773 Rename to __clog10_internal_l.
29774 (__clog10_internal_l): Define aliases using
29775 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
29776 with __clog10.
29777
29778 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
29779
29780 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
29781 * benchtests/sincosf-inputs: New file.
29782 * benchtests/cosf-inputs: New file.
29783 * benchtests/sinf-inputs: New file.
29784
29785 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
29786
29787 * posix/tst-spawn.c (do_test): Wait for both children.
29788
29789 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
29790
29791 [BZ #22284]
29792 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
29793 tests-pie): Add tst-gmon-pie.
29794 (CFLAGS-tst-gmon-pie.c): New.
29795 (CRT-tst-gmon-pie): Likewise.
29796 (tst-gmon-pie-ENV): Likewise.
29797 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
29798 ($(objpfx)tst-gmon-pie.out): Likewise.
29799 (clean-tst-gmon-pie-data): Likewise.
29800 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
29801 * gmon/gmon.c [PIC]: Include <link.h>.
29802 [PIC] (callback): New function.
29803 (write_hist): Add an argument for load address. Subtract load
29804 address from PCs.
29805 (write_call_graph): Likewise.
29806 (write_gmon): Call __dl_iterate_phdr to get load address, pass
29807 it to write_hist and write_call_graph.
29808 * gmon/tst-gmon-pie.c: New file.
29809
29810 2017-10-11 Joseph Myers <joseph@codesourcery.com>
29811
29812 * math/Makefile (test-types-basic): New variable.
29813 (test-types): Likewise.
29814 (libm-test-support): Use $(test-types) instead of $(types).
29815 (libm-tests-base-normal): Likewise.
29816 (libm-tests-base-finite): Likewise.
29817 (libm-tests-base-inline): Likewise.
29818 (generated): Likewise.
29819 ($(objpfx)libm-test-support-$(t).c): Likewise.
29820 (libm-tests-for-type iterator): Likewise.
29821 (libm-test-support iterator): Likewise.
29822 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
29823 (ulp_idx): Use ULP_IDX.
29824 * math/test-ldouble.h: Include <float.h>.
29825 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
29826 (ULP_IDX): New macro.
29827 (ULP_I_IDX): Likewise.
29828 * math/test-double.h (ULP_IDX): Likewise.
29829 (ULP_I_IDX): Likewise.
29830 * math/test-float.h (ULP_IDX): Likewise.
29831 (ULP_I_IDX): Likewise.
29832 * math/test-float128.h (ULP_IDX): Likewise.
29833 (ULP_I_IDX): Likewise.
29834
29835 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29836
29837 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
29838 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
29839 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
29840 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
29841 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
29842 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
29843 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
29844 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
29845 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
29846 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
29847 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
29848 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
29849 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
29850 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
29851 (SINGLE_THREAD_BY_GLOBAL): Define.
29852 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
29853 Likewise.
29854 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
29855 Likewise.
29856 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
29857 Likewise.
29858 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
29859 Likewise.
29860 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
29861 (SINGLE_THREAD_BY_GLOBAL): Likewise.
29862 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
29863 Likewise.
29864
29865 2017-10-11 Andreas Schwab <schwab@suse.de>
29866
29867 * nis/Makefile (aux): Remove.
29868 * nscd/Makefile (aux): Add nscd_hash.
29869 (nscd-modules): Likewise.
29870 ($(objpfx)nscd): Don't depend on libnsl.
29871 * nscd/nscd_hash.c: New file.
29872 * nscd/nscd_hash.h: Likewise.
29873 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
29874 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
29875 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
29876 instead of <nis/rpcsvc/nis.h>.
29877 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
29878
29879 2017-10-11 Florian Weimer <fweimer@redhat.com>
29880
29881 [BZ #22078]
29882 Avoid large NSS buffers with many addresses, aliases.
29883 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
29884 using dynarrays and struct alloc_buffer.
29885 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
29886 (tst-nss-files-hosts-multi): Link with -ldl.
29887 * nss/tst-nss-files-hosts-multi.c: New file.
29888
29889 2017-10-11 Florian Weimer <fweimer@redhat.com>
29890
29891 [BZ #18023]
29892 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
29893 scratch_buffer. Eliminate gotos.
29894
29895 2017-10-11 Joseph Myers <joseph@codesourcery.com>
29896
29897 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
29898 libm_alias_ldouble_other.
29899 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
29900 undefine and redefine.
29901 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
29902 (exp10l): Do not define here.
29903 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
29904 (weak_alias): Undefine and redefine.
29905 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
29906 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
29907 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
29908 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
29909
29910 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
29911 [!__fma] (fma): Define using libm_alias_double.
29912 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
29913 [!__fmaf] (fmaf): Define using libm_alias_float.
29914 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
29915 (fmal): Define using libm_alias_ldouble.
29916
29917 2017-10-10 Joseph Myers <joseph@codesourcery.com>
29918
29919 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
29920 New macro.
29921 (libm_alias_double_other): Likewise.
29922 (libm_alias_double_r): Use libm_alias_double_other_r.
29923 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
29924 New macro.
29925 (libm_alias_float_other): Likewise.
29926 (libm_alias_float_r): Use libm_alias_float_other_r.
29927 * sysdeps/generic/libm-alias-float128.h
29928 (libm_alias_float128_other_r): New macro.
29929 (libm_alias_float128_other): Likewise.
29930 (libm_alias_float128_r): Use libm_alias_float128_other_r.
29931 * sysdeps/generic/libm-alias-ldouble.h
29932 (libm_alias_ldouble_other_r): New macro.
29933 (libm_alias_ldouble_other): Likewise.
29934 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
29935 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
29936 (libm_alias_double_other_r): New macro.
29937 (libm_alias_double_other): Likewise.
29938 (libm_alias_double_r): Use libm_alias_double_other_r.
29939 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
29940 (libm_alias_ldouble_other_r): New macro.
29941 (libm_alias_ldouble_other): Likewise.
29942 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
29943 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
29944 [!USE_AS_COMPAT]: Use libm_alias_double_other.
29945 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
29946 [!USE_AS_COMPAT]: Use libm_alias_float_other.
29947 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
29948 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
29949 * math/w_exp2f.c: Use libm_alias_float_other.
29950 * math/w_expf.c: Likewise.
29951 * math/w_log2f.c: Likewise.
29952 * math/w_logf.c: Likewise.
29953 * math/w_powf.c: Likewise.
29954 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
29955 [!__exp2f]: Use libm_alias_float_other.
29956 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
29957 [!__expf]: Use libm_alias_float_other.
29958 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
29959 [!__log2f]: Use libm_alias_float_other.
29960 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
29961 [!__logf]: Use libm_alias_float_other.
29962 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
29963 [!__powf]: Use libm_alias_float_other.
29964
29965 2017-10-10 Florian Weimer <fweimer@redhat.com>
29966
29967 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
29968 function.
29969 (_nss_files_gethostbyname3_r): Call it.
29970
29971 2017-10-09 Joseph Myers <joseph@codesourcery.com>
29972
29973 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
29974 error. Remove default definition of declare_mgen_alias.
29975 [!declare_mgen_alias_r]: Likewise.
29976 * sysdeps/generic/math-type-macros-double.h
29977 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
29978 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
29979 (declare_mgen_alias_r): Likewise.
29980 * sysdeps/generic/math-type-macros-float128.h
29981 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
29982 * sysdeps/generic/math-type-macros-ldouble.h
29983 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
29984 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
29985 macro.
29986 (declare_mgen_alias_r_s): Likewise.
29987 (declare_mgen_alias_r): Likewise.
29988 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
29989 (lgamma_r): Define using libm_alias_double_r.
29990 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
29991 (lgammaf_r): Define using libm_alias_float_r.
29992 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
29993 (lgammal_r): Define using libm_alias_ldouble_r.
29994 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
29995 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
29996
29997 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29998
29999 * lib/glob.c (__glob_pattern_type): Remove now-spurious
30000 extern declaration.
30001
30002 2017-10-09 Joseph Myers <joseph@codesourcery.com>
30003
30004 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
30005
30006 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
30007
30008 [BZ #21326]
30009 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
30010 [__cplusplus >= 201103] (__USE_ISOC99): Define.
30011 * math/Makefile (test-math-cxx11): New test.
30012 * math/test-math-cxx11.cc: New file.
30013
30014 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
30015
30016 * login/openpty.c (openpty): Close slave pty file descriptor on error.
30017
30018 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
30019 call to allocate the slave pty file descriptor.
30020
30021 2017-10-06 Joseph Myers <joseph@codesourcery.com>
30022
30023 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
30024 [!__fma] (fma): Define using libm_alias_double.
30025 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
30026 [!__fma] (fma): Define using libm_alias_double.
30027
30028 * sysdeps/ieee754/float128/float128_private.h: Include
30029 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
30030 (libm_alias_ldouble_r): Undefine and redefine.
30031 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
30032 <libm-alias-ldouble.h>.
30033 (asinhl): Define using libm_alias_ldouble.
30034 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
30035 <libm-alias-ldouble.h>.
30036 (atanl): Define using libm_alias_ldouble.
30037 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
30038 <libm-alias-ldouble.h>.
30039 (cbrtl): Define using libm_alias_ldouble.
30040 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
30041 <libm-alias-ldouble.h>.
30042 (ceill): Define using libm_alias_ldouble.
30043 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
30044 <libm-alias-ldouble.h>.
30045 (copysignl): Define using libm_alias_ldouble.
30046 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
30047 <libm-alias-ldouble.h>.
30048 (cosl): Define using libm_alias_ldouble.
30049 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
30050 <libm-alias-ldouble.h>.
30051 (erfl): Define using libm_alias_ldouble.
30052 (erfcl): Likewise.
30053 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
30054 <libm-alias-ldouble.h>.
30055 (expm1l): Define using libm_alias_ldouble.
30056 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
30057 <libm-alias-ldouble.h>.
30058 (fabsl): Define using libm_alias_ldouble.
30059 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
30060 <libm-alias-ldouble.h>.
30061 (floorl): Define using libm_alias_ldouble.
30062 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
30063 <libm-alias-ldouble.h>.
30064 (fmal): Define using libm_alias_ldouble.
30065 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
30066 <libm-alias-ldouble.h>.
30067 (frexpl): Define using libm_alias_ldouble.
30068 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
30069 libm_alias_ldouble.
30070 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
30071 <libm-alias-ldouble.h>.
30072 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
30073 libm_alias_ldouble.
30074 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
30075 <libm-alias-ldouble.h>.
30076 (getpayloadl): Define using libm_alias_ldouble.
30077 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
30078 <libm-alias-ldouble.h>.
30079 (llrintl): Define using libm_alias_ldouble.
30080 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
30081 <libm-alias-ldouble.h>.
30082 (llroundl): Define using libm_alias_ldouble.
30083 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
30084 <libm-alias-ldouble.h>.
30085 (logbl): Define using libm_alias_ldouble.
30086 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
30087 <libm-alias-ldouble.h>.
30088 (lrintl): Define using libm_alias_ldouble.
30089 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
30090 <libm-alias-ldouble.h>.
30091 (lroundl): Define using libm_alias_ldouble.
30092 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
30093 <libm-alias-ldouble.h>.
30094 (modfl): Define using libm_alias_ldouble.
30095 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
30096 <libm-alias-ldouble.h>.
30097 (nearbyintl): Define using libm_alias_ldouble.
30098 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
30099 <libm-alias-ldouble.h>.
30100 (nextafterl): Define using libm_alias_ldouble.
30101 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
30102 <libm-alias-ldouble.h>.
30103 (nextupl): Define using libm_alias_ldouble.
30104 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
30105 <libm-alias-ldouble.h>.
30106 (remquol): Define using libm_alias_ldouble.
30107 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
30108 <libm-alias-ldouble.h>.
30109 (rintl): Define using libm_alias_ldouble.
30110 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
30111 <libm-alias-ldouble.h>.
30112 (roundevenl): Define using libm_alias_ldouble.
30113 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
30114 <libm-alias-ldouble.h>.
30115 (roundl): Define using libm_alias_ldouble.
30116 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
30117 using libm_alias_ldouble.
30118 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
30119 <libm-alias-ldouble.h>.
30120 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
30121 Define using libm_alias_ldouble.
30122 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
30123 <libm-alias-ldouble.h>.
30124 (sincosl): Define using libm_alias_ldouble.
30125 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
30126 <libm-alias-ldouble.h>.
30127 (sinl): Define using libm_alias_ldouble.
30128 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
30129 <libm-alias-ldouble.h>.
30130 (tanhl): Define using libm_alias_ldouble.
30131 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
30132 <libm-alias-ldouble.h>.
30133 (tanl): Define using libm_alias_ldouble.
30134 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
30135 <libm-alias-ldouble.h>.
30136 (totalorderl): Define using libm_alias_ldouble.
30137 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
30138 <libm-alias-ldouble.h>.
30139 (totalordermagl): Define using libm_alias_ldouble.
30140 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
30141 <libm-alias-ldouble.h>.
30142 (truncl): Define using libm_alias_ldouble.
30143 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
30144 libm_alias_ldouble.
30145 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
30146 libm_alias_ldouble.
30147 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
30148 <libm-alias-ldouble.h>.
30149 (weak_alias): Do not undefine and redefine.
30150 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
30151 (copysignl): Define with long_double_symbol only if [IS_IN
30152 (libc)].
30153 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
30154 <libm-alias-ldouble.h>.
30155 (weak_alias): Do not undefine and redefine.
30156 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
30157 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
30158 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
30159 <libm-alias-ldouble.h>.
30160 (weak_alias): Do not undefine and redefine.
30161 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
30162 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
30163 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
30164 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
30165 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
30166 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
30167 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
30168 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
30169 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
30170 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
30171 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
30172 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
30173 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
30174 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
30175 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
30176 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
30177 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
30178 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
30179 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
30180 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
30181 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
30182 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
30183 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
30184 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
30185 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
30186 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
30187
30188 2017-10-06 Carlos O'Donell <carlos@redhat.com>
30189
30190 [BZ #22111]
30191 * malloc/malloc.c (tcache_shutting_down): Use bool type.
30192 (tcache_thread_freeres): Set tcache_shutting_down before
30193 freeing the tcache.
30194 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
30195 * malloc/tst-malloc-tcache-leak.c: New file.
30196
30197 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
30198
30199 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
30200 back to powerpc32 file.
30201 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
30202 (memrchr): Add __memrchr_power8 to ifunc list.
30203 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
30204 extra bytes for unaligned inputs.
30205
30206 2017-10-06 Joseph Myers <joseph@codesourcery.com>
30207
30208 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
30209 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
30210 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
30211 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
30212 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
30213
30214 2017-10-05 Joseph Myers <joseph@codesourcery.com>
30215
30216 * sysdeps/arm/libm-test-ulps: Update.
30217
30218 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
30219 <libm-alias-ldouble.h>.
30220 (asinhl): Define using libm_alias_ldouble.
30221 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
30222 <libm-alias-ldouble.h>.
30223 (cbrtl): Define using libm_alias_ldouble.
30224 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
30225 <libm-alias-ldouble.h>.
30226 (copysignl): Define using libm_alias_ldouble.
30227 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
30228 <libm-alias-ldouble.h>.
30229 (cosl): Define using libm_alias_ldouble.
30230 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
30231 <libm-alias-ldouble.h>.
30232 (erfl): Define using libm_alias_ldouble.
30233 (erfcl): Likewise.
30234 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
30235 <libm-alias-ldouble.h>.
30236 (fmal): Define using libm_alias_ldouble.
30237 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
30238 <libm-alias-ldouble.h>.
30239 (frexpl): Define using libm_alias_ldouble.
30240 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
30241 libm_alias_ldouble.
30242 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
30243 <libm-alias-ldouble.h>.
30244 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
30245 libm_alias_ldouble.
30246 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
30247 <libm-alias-ldouble.h>.
30248 (getpayloadl): Define using libm_alias_ldouble.
30249 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
30250 <libm-alias-ldouble.h>.
30251 (llrintl): Define using libm_alias_ldouble.
30252 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
30253 <libm-alias-ldouble.h>.
30254 (llroundl): Define using libm_alias_ldouble.
30255 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
30256 <libm-alias-ldouble.h>.
30257 (lrintl): Define using libm_alias_ldouble.
30258 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
30259 <libm-alias-ldouble.h>.
30260 (lroundl): Define using libm_alias_ldouble.
30261 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
30262 <libm-alias-ldouble.h>.
30263 (modfl): Define using libm_alias_ldouble.
30264 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
30265 <libm-alias-ldouble.h>.
30266 (nextupl): Define using libm_alias_ldouble.
30267 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
30268 <libm-alias-ldouble.h>.
30269 (remquol): Define using libm_alias_ldouble.
30270 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
30271 <libm-alias-ldouble.h>.
30272 (roundevenl): Define using libm_alias_ldouble.
30273 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
30274 <libm-alias-ldouble.h>.
30275 (roundl): Define using libm_alias_ldouble.
30276 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
30277 using libm_alias_ldouble.
30278 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
30279 <libm-alias-ldouble.h>.
30280 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
30281 <libm-alias-ldouble.h>.
30282 (setpayloadsigl): Define using libm_alias_ldouble.
30283 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
30284 <libm-alias-ldouble.h>.
30285 (sincosl): Define using libm_alias_ldouble.
30286 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
30287 <libm-alias-ldouble.h>.
30288 (sinl): Define using libm_alias_ldouble.
30289 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
30290 <libm-alias-ldouble.h>.
30291 (tanhl): Define using libm_alias_ldouble.
30292 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
30293 <libm-alias-ldouble.h>.
30294 (tanl): Define using libm_alias_ldouble.
30295 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
30296 <libm-alias-ldouble.h>.
30297 (totalorderl): Define using libm_alias_ldouble.
30298 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
30299 <libm-alias-ldouble.h>.
30300 (totalordermagl): Define using libm_alias_ldouble.
30301 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
30302 libm_alias_ldouble.
30303 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
30304 libm_alias_ldouble.
30305
30306 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
30307
30308 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
30309 memmove_falkor.
30310 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
30311 (__libc_ifunc_impl_list): Likewise.
30312 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
30313 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
30314
30315 * benchtests/bench-memmove-walk.c: New file.
30316 * benchtests/Makefile (string-benchset): Add it.
30317
30318 * benchtests/bench-memset-walk.c: New file.
30319 * benchtests/Makefile (string-benchset): Add it.
30320
30321 * benchtests/bench-memcpy-walk.c: New file.
30322 * benchtests/Makefile (string-benchset): Add it.
30323
30324 2017-10-05 Florian Weimer <fweimer@redhat.com>
30325
30326 nscd: Eliminate compilation time dependency in the build output.
30327 * nscd/nscd_stat.c (STATDATA_VERSION)
30328 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
30329 (STATDATA_VERSION_FULL): New macro definitions.
30330 (compilation): Remove.
30331 (struct statdata): Adjust version member.
30332 (send_stats): Set version from STATDATA_VERSION_FULL.
30333 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
30334
30335 2017-10-05 Joseph Myers <joseph@codesourcery.com>
30336
30337 * configure.ac (--enable-add-ons): Remove option.
30338 (machine): Do not mention add-ons in comment.
30339 (LIBC_PRECONFIGURE): Likewise.
30340 (add_ons): Remove variable and sanity checks and logic to locate
30341 add-ons.
30342 (add_ons_automatic): Remove variable.
30343 (configured_add_ons): Likewise.
30344 (add_ons_sfx): Likewise.
30345 (add_ons_pfx): Likewise.
30346 (add_on_subdirs): Likewise.
30347 (sysnames_add_ons): Likewise. Remove loop over add-ons and
30348 consideration of add-ons in Implies handling.
30349 (sysdeps_add_ons): Likewise.
30350 * configure: Regenerated.
30351 * libidn/configure.ac: Remove.
30352 * libidn/configure: Likewise.
30353 * sysdeps/unix/inet/configure.ac: New file.
30354 * sysdeps/unix/inet/configure: New generated file.
30355 * sysdeps/unix/inet/Subdirs: Add libidn.
30356 * Makeconfig (sysdeps-srcdirs): Remove variable.
30357 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
30358 ($(common-objpfx)config.status): Do not depend on add-on files.
30359 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
30360 comment.
30361 (all-subdirs): Do not include $(add-on-subdirs).
30362 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
30363 * config.make.in (add-ons): Remove variable.
30364 (add-on-subdirs): Likewise.
30365 (sysdeps-add-ons): Likewise.
30366 * manual/Makefile (add-chapters): Remove.
30367 ($(objpfx)texis): Do not depend on $(add-chapters).
30368 (nonexamples): Do not handle $(add-chapters).
30369 (examples): Do not handle $(add-ons).
30370 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
30371 libc-texinfo.sh.
30372 * manual/install.texi (Installation): Do not mention add-ons.
30373 (--enable-add-ons): Do not document configure option.
30374 * INSTALL: Regenerated.
30375 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
30376 * manual/maint.texi (Hierarchy Conventions): Do not mention
30377 add-ons.
30378 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
30379 --enable-add-ons.
30380 * scripts/gen-sorted.awk: Do not handle Subdirs files from
30381 add-ons.
30382 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
30383 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
30384
30385 2017-10-05 Andreas Schwab <schwab@suse.de>
30386
30387 [BZ #15142]
30388 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
30389 (_IO_flush_all_lockp): Always lock list_all_lock.
30390 (_IO_flush_all_linebuffered): Likewise.
30391 (_IO_unbuffer_all): Likewise.
30392
30393 2017-10-05 Florian Weimer <fweimer@redhat.com>
30394
30395 [BZ #15436]
30396 Do not flush stdio streams on abort.
30397 * stdlib/abort.c (fflush): Remove macro definition.
30398 (abort): Remove stages related to stdio flushing.
30399
30400 2017-10-05 Florian Weimer <fweimer@redhat.com>
30401
30402 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
30403
30404 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
30405
30406 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
30407
30408 2017-10-05 Florian Weimer <fweimer@redhat.com>
30409
30410 * support/support_format_hostent.c (support_format_hostent): Add
30411 more error information for NETDB_INTERNAL.
30412
30413 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
30414
30415 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
30416 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
30417 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
30418 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
30419 AC_DEFINE if multi-arch is enabled.
30420 * sysdeps/i386/configure: Regenerated.
30421
30422 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
30423
30424 * Makeconfig (+link-static-before-libc): Use
30425 $(DEFAULT-LDFLAGS-$(@F)).
30426 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
30427 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
30428 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
30429
30430 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
30431
30432 * elf/Makefile (tests): Add tst-main1.
30433 (modules-names): Add tst-main1mod.
30434 ($(objpfx)tst-main1): New.
30435 (CRT-tst-main1): Likewise.
30436 (LDFLAGS-tst-main1): Likewise.
30437 (LDLIBS-tst-main1): Likewise.
30438 (tst-main1mod.so-no-z-defs): Likewise.
30439 * elf/tst-main1.c: New file.
30440 * elf/tst-main1mod.c: Likewise.
30441
30442 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
30443
30444 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
30445
30446 2017-10-04 Joseph Myers <joseph@codesourcery.com>
30447
30448 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
30449 (fma): Define using libm_alias_double.
30450 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
30451 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
30452 <math_ldbl_opt.h>.
30453 (fmal): Do not define as compat symbol here.
30454 * sysdeps/alpha/fpu/s_fma.c: New file.
30455
30456 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
30457
30458 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
30459
30460 2017-10-04 Joseph Myers <joseph@codesourcery.com>
30461
30462 [BZ #22229]
30463 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
30464 <math_ldbl_opt.h>
30465 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
30466 and libc.
30467 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
30468 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
30469 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
30470 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
30471 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
30472 Include <math_ldbl_opt.h>
30473 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
30474 and libc.
30475 (compat_symbol): Undefine and redefine.
30476 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
30477 <math_ldbl_opt.h>
30478 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
30479 (compat_symbol): Undefine and redefine.
30480 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
30481 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
30482 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
30483 GLIBC_2_1 for libm.
30484 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
30485 GLIBC_2.0 copysignl symbol.
30486 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
30487 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
30488
30489 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
30490
30491 2017-10-04 Florian Weimer <fweimer@redhat.com>
30492
30493 * scripts/check-local-headers.sh: Ignore nspr4 header file
30494 directory in addition to nspr.
30495
30496 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
30497
30498 [BZ #17956]
30499 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
30500 * configure: Regenerate.
30501 * crypt/Makefile (nss-cpp-flags): New variable.
30502 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
30503 (CPPFLAGS-md5-crypt.c): Use it.
30504 * scripts/check-local-headers.sh: Ignore nspr header file
30505 directory.
30506
30507 2017-10-04 Andreas Schwab <schwab@suse.de>
30508
30509 * nis/Makefile (services): Remove compat.
30510 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
30511 ($(objpfx)libnss_compat.so): Remove rule.
30512 * nis/Versions (libnss_compat): Remove.
30513 * nss/Makefile (services): Add compat.
30514 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
30515 * nss/Versions (libnss_compat): Define.
30516 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
30517 Don't include <rpc/types.h>. Replace bool_t by bool.
30518 * nss/nss_compat/compat-initgroups.c: Likewise.
30519 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
30520 instead of <rpcsrv/ypclnt.h>.
30521 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
30522 yp_get_default_domain.
30523 * nss/nss_compat/compat-pwd.c: Likewise.
30524 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
30525 yp_get_default_domain.
30526 * nss/nss_compat/nisdomain.c: New file.
30527 * nss/nss_compat/nisdomain.h: Likewise.
30528
30529 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
30530
30531 [BZ #22244]
30532 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
30533 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
30534
30535 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
30536
30537 [BZ #22243]
30538 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
30539 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
30540
30541 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
30542
30543 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
30544 "movl main@GOTOFF(%ebx), %eax".
30545
30546 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
30547
30548 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
30549 allow undefined _DYNAMIC in PIE libc.a.
30550 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
30551 Likewse.
30552
30553 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
30554
30555 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
30556 check _DYNAMIC.
30557
30558 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
30559
30560 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
30561 check _DYNAMIC.
30562
30563 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
30564
30565 * math/test-math-iscanonical.cc (error): Replace bool with int.
30566
30567 2017-10-03 Joseph Myers <joseph@codesourcery.com>
30568
30569 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
30570 (modf): Define using libm_alias_double, only if [!__modf].
30571 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
30572 <libm-alias-double.h>.
30573 (modf): Define using libm_alias_double, only if [!__modf].
30574 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
30575 compat symbol here.
30576 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
30577 (weak_alias): Do not undefine and redefine.
30578 (strong_alias): Likewise.
30579 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
30580 (weak_alias): Likewise.
30581 (strong_alias): Likewise.
30582
30583 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
30584 (logb): Define using libm_alias_double, only if [!__logb].
30585 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
30586 <libm-alias-double.h>.
30587 (logb): Define using libm_alias_double, only if [!__logb].
30588 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
30589 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
30590 (weak_alias): Do not undefine and redefine.
30591 (strong_alias): Likewise.
30592 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
30593 (weak_alias): Likewise.
30594 (strong_alias): Likewise.
30595
30596 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
30597
30598 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
30599 Check SHARED instead PIC.
30600
30601 2017-10-03 Joseph Myers <joseph@codesourcery.com>
30602
30603 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
30604 [!__fmaf] (fmaf): Define using libm_alias_float.
30605
30606 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
30607 (frexp): Define using libm_alias_double.
30608 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
30609 <libm-alias-double.h>.
30610 (frexp): Define using libm_alias_double.
30611 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
30612 compat symbol here.
30613
30614 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
30615
30616 [BZ #22235]
30617 * math/math.h: Trivial fix for unbalanced parentheses in comment.
30618 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
30619 (CFLAGS-test-math-iscanonical.cc): New variable.
30620 * math/test-math-iscanonical.cc: New file.
30621 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
30622 Provide a C++ implementation based on function overloading,
30623 rather than using __MATH_TG, which uses C-only builtins.
30624 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
30625 Likewise.
30626 * sysdeps/powerpc/powerpc64le/Makefile
30627 (CFLAGS-test-math-iscanonical.cc): New variable.
30628
30629 2017-10-03 Joseph Myers <joseph@codesourcery.com>
30630
30631 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
30632 (ceil): Define using libm_alias_double.
30633 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
30634 (floor): Define using libm_alias_double.
30635 * sysdeps/ieee754/dbl-64/s_llround.c: Include
30636 <libm-alias-double.h>.
30637 (llround): Define using libm_alias_double.
30638 * sysdeps/ieee754/dbl-64/s_lround.c: Include
30639 <libm-alias-double.h>.
30640 (lround): Define using libm_alias_double.
30641 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
30642 <libm-alias-double.h>.
30643 (nearbyint): Define using libm_alias_double.
30644 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
30645 <libm-alias-double.h>.
30646 (remquo): Define using libm_alias_double.
30647 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
30648 (rint): Define using libm_alias_double.
30649 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
30650 (round): Define using libm_alias_double.
30651 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
30652 (trunc): Define using libm_alias_double.
30653 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
30654 <libm-alias-double.h>.
30655 (ceil): Define using libm_alias_double.
30656 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
30657 <libm-alias-double.h>.
30658 (floor): Define using libm_alias_double.
30659 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
30660 <libm-alias-double.h>.
30661 (llround): Define using libm_alias_double.
30662 [_LP64] (lround): Likewise.
30663 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
30664 <libm-alias-double.h>.
30665 [!_LP64] (lround): Define using libm_alias_double.
30666 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
30667 <libm-alias-double.h>.
30668 (nearbyint): Define using libm_alias_double.
30669 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
30670 <libm-alias-double.h>.
30671 (remquo): Define using libm_alias_double.
30672 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
30673 <libm-alias-double.h>.
30674 (rint): Define using libm_alias_double.
30675 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
30676 <libm-alias-double.h>.
30677 (round): Define using libm_alias_double.
30678 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
30679 <libm-alias-double.h>.
30680 (trunc): Define using libm_alias_double.
30681 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
30682 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
30683 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
30684 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
30685 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
30686 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
30687 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
30688 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
30689 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
30690
30691 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
30692
30693 * math/w_remainder.c: New file.
30694 * math/w_remainderf.c: New file.
30695 * math/w_remainderl.c: New file.
30696
30697 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
30698
30699 * elf/rtld.c (BOOTSTRAP_MAP): New.
30700 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
30701 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
30702 Likewise.
30703 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
30704 Likewise.
30705 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
30706 Likewise.
30707
30708 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
30709
30710 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
30711 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
30712 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
30713 rtld_hidden_data_ver): Define to empty.
30714 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
30715 __assert_perror_fail): Likewise.
30716 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
30717 (__rewinddir): Likewise.
30718 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
30719 (__profile_frequency): Likewise.
30720 * include/setjmp.h (__sigsetjmp): Likewise.
30721 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
30722 __libc_sigaction): Likewise.
30723 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
30724 not set hidden attribute.
30725 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
30726 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
30727 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
30728 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
30729 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
30730 __fxstatat64): Likewise.
30731 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
30732 (__uname): Likewise.
30733 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
30734 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
30735 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
30736 (NO_RTLD_HIDDEN): Set.
30737 * sysdeps/mach/hurd/configure: Refresh.
30738 * config.h.in: Refresh.
30739
30740 2017-10-02 Joseph Myers <joseph@codesourcery.com>
30741
30742 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
30743 (atan): Define using libm_alias_double.
30744 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
30745 (tan): Define using libm_alias_double.
30746 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
30747 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
30748
30749 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
30750 define as weak alias of __atan. Do not define any aliases if
30751 [__atan].
30752 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
30753 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
30754 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
30755 as weak alias of __tan. Do not define any aliases if [__tan].
30756 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
30757 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
30758 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
30759 __atan.
30760 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
30761 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
30762 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
30763 and define as weak alias of __atan.
30764 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
30765 __atan.
30766 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
30767 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
30768 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
30769 define as weak alias of __tan.
30770
30771 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
30772
30773 * math/w_lgamma.c: New file.
30774 * math/w_lgammaf.c: New file.
30775 * math/w_lgammal.c: New file.
30776
30777 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
30778
30779 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
30780 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
30781 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
30782 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
30783 * sysdeps/ieee754/flt-32/w_logf.c: New file.
30784 * sysdeps/ieee754/flt-32/w_powf.c: New file.
30785 * sysdeps/i386/fpu/w_log2f.c: New file.
30786 * sysdeps/i386/fpu/w_logf.c: New file.
30787 * sysdeps/i386/fpu/w_powf.c: New file.
30788 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
30789 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
30790 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
30791
30792 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
30793 H.J. Lu <hongjiu.lu@intel.com>
30794
30795 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
30796 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
30797 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
30798 * sysdeps/ieee754/flt-32/w_expf.c: New file.
30799 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
30800 the new expf code.
30801 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
30802 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
30803 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
30804 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
30805 * sysdeps/i386/fpu/w_exp2f.c: New file.
30806 * sysdeps/i386/fpu/w_expf.c: New file.
30807 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
30808 * sysdeps/x86_64/fpu/w_expf.c: New file.
30809
30810 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
30811
30812 * math/Versions (logf): New libm symbol at GLIBC_2.27.
30813 (log2f): Likewise.
30814 (powf): Likewise.
30815 * math/w_log2f.c: New file.
30816 * math/w_logf.c: New file.
30817 * math/w_powf.c: New file.
30818 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
30819 * math/w_logf_compat.c (__logf_compat): Likewise.
30820 * math/w_powf_compat.c (__powf_compat): Likewise.
30821 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
30822 * sysdeps/ia64/fpu/e_logf.S: Likewise.
30823 * sysdeps/ia64/fpu/e_powf.S: Likewise.
30824 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
30825 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
30826 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
30827 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
30828 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
30829 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
30830 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
30831 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
30832 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
30833 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
30834 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
30835 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
30836 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
30837 Likewise.
30838 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
30839 Likewise.
30840 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
30841 Likewise.
30842 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
30843 Likewise.
30844 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
30845 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
30846 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
30847 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
30848 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
30849 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
30850 Likewise.
30851 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
30852 Likewise.
30853 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
30854 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
30855 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
30856
30857 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
30858
30859 * sysdeps/powerpc/powerpc64/multiarch/Makefile
30860 (sysdep_routines): Add memrchr_power8.
30861 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
30862 (memrchr): Add __memrchr_power8 to list of memrchr functions.
30863 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
30864 New file.
30865 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
30866 (memrchr): Add __memrchr_power8 to ifunc list.
30867 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
30868
30869 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
30870
30871 [BZ #18822]
30872 * sysdeps/unix/sysv/linux/posix_fadvise64.c
30873 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
30874 libc_hidden_def.
30875 * sysdeps/unix/sysv/linux/posix_fallocate64.c
30876 (__posix_fallocate64_l64): Likewise.
30877
30878 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
30879
30880 [BZ #18822]
30881 * sysdeps/unix/sysv/linux/sched_setaffinity.c
30882 (__sched_setaffinity_new): Add libc_hidden_proto and
30883 libc_hidden_def.
30884
30885 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
30886
30887 [BZ #18822]
30888 * include/glob.h (__glob64): Add libc_hidden_proto.
30889 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
30890 libc_hidden_def.
30891
30892 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
30893
30894 [BZ #18822]
30895 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
30896 attribute_hidden.
30897
30898 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
30899
30900 [BZ #18822]
30901 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
30902
30903 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
30904
30905 [BZ #18822]
30906 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
30907 libc_hidden_def.
30908
30909 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
30910
30911 [BZ #18822]
30912 * csu/version.c (__libc_print_version): Add attribute_hidden.
30913
30914 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
30915
30916 [BZ #18822]
30917 * include/libc-internal.h (__init_misc): Add attribute_hidden.
30918
30919 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
30920
30921 [BZ #18822]
30922 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
30923
30924 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
30925
30926 [BZ #18822]
30927 * nscd/nscd_helper.c (__nis_hash): New prototype.
30928
30929 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
30930
30931 [BZ #18822]
30932 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
30933 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
30934 libc_hidden_def.
30935 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
30936 * termios/tcgetattr.c (__tcgetattr): Likewise.
30937
30938 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
30939
30940 [BZ #18822]
30941 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
30942 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
30943 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
30944 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
30945 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
30946
30947 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
30948
30949 [BZ #18822]
30950 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
30951
30952 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
30953
30954 [BZ #18822]
30955 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
30956 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
30957
30958 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
30959
30960 [BZ #18822]
30961 * intl/hash-string.h (__hash_string): Add attribute_hidden.
30962
30963 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
30964
30965 [BZ #18822]
30966 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
30967 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
30968
30969 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
30970
30971 [BZ #18822]
30972 * include/ifreq.h: New file.
30973 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
30974 (__ifreq): Likewise.
30975 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
30976 (__ifreq): Likewise.
30977
30978 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
30979
30980 [BZ #18822]
30981 * include/idna.h: New file.
30982 * inet/getnameinfo.c: Include <idna.h> instead of
30983 <libidn/idna.h>.
30984 (__idna_to_unicode_lzlz): Removed.
30985 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
30986 <libidn/idna.h>.
30987 (__idna_to_ascii_lz): Removed.
30988 (__idna_to_unicode_lzlz): Likewise.
30989
30990 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
30991
30992 [BZ #18822]
30993 * include/plural-exp.h: New file.
30994 * intl/plural-exp.c: Include <plural-exp.h> instead of
30995 "plural-exp.h".
30996
30997 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
30998
30999 [BZ #18822]
31000 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
31001 "getsourcefilter.h".
31002 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
31003 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
31004 "getsourcefilter.h".
31005 (__get_sol): Removed.
31006
31007 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31008
31009 [BZ #18822]
31010 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
31011 to ...
31012 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
31013
31014 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31015
31016 [BZ #18822]
31017 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
31018 attribute_hidden.
31019
31020 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31021
31022 [BZ #18822]
31023 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
31024
31025 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31026
31027 [BZ #18822]
31028 * include/search.h (__tdestroy): Add libc_hidden_proto.
31029 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
31030
31031 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31032
31033 [BZ #18822]
31034 * include/assert.h (__assert_fail_base): Add attribute_hidden.
31035
31036 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31037
31038 [BZ #18822]
31039 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
31040 attribute_hidden.
31041
31042 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31043
31044 [BZ #18822]
31045 * include/signal.h (__kill): Add libc_hidden_proto.
31046 (__sigblock): Likewise.
31047 (__sigprocmask): Likewise.
31048 (__sigaltstack): Likewise.
31049 * signal/kill.c (__kill): Add libc_hidden_def.
31050 * signal/sigblock.c (__sigblock): Likewise.
31051 * signal/sigprocmask.c (__sigprocmask): Likewise.
31052 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
31053 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
31054 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
31055 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
31056 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
31057 Likewise.
31058 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
31059 Likewise.
31060 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
31061 (__sigprocmask): Likewise.
31062 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
31063 Likewise.
31064 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
31065 (__sigprocmask): Likewise.
31066 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
31067 Likewise.
31068
31069 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31070
31071 [BZ #18822]
31072 * include/string.h (__strsep): Add libc_hidden_proto.
31073 * string/strsep.c (__strsep): Add libc_hidden_def.
31074
31075 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31076
31077 [BZ #18822]
31078 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
31079 attribute_hidden.
31080 (__spawni): Likewise.
31081
31082 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31083
31084 [BZ #18822]
31085 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
31086 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
31087 libc_hidden_def.
31088
31089 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31090
31091 [BZ #18822]
31092 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
31093
31094 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31095
31096 [BZ #18822]
31097 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
31098 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
31099 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
31100 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
31101 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
31102 Likewise.
31103 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
31104 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
31105
31106 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31107
31108 [BZ #18822]
31109 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
31110 (__dcigettext): Likewise.
31111
31112 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31113
31114 [BZ #18822]
31115 * include/sys/sysinfo.h (__get_nprocs_conf): Add
31116 libc_hidden_proto.
31117 (__get_nprocs): Likewise.
31118 (__get_phys_pages): Likewise.
31119 (__get_avphys_pages): Likewise.
31120 (__get_child_max): Add attribute_hidden.
31121 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
31122 (__get_nprocs): Likewise.
31123 (__get_phys_pages): Likewise.
31124 (__get_avphys_pages): Likewise.
31125 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
31126 libc_hidden_def.
31127 (__get_nprocs): Likewise.
31128 (__get_phys_pages): Likewise.
31129 (__get_avphys_pages): Likewise.
31130 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
31131 libc_hidden_def.
31132 (__get_nprocs_conf): Likewise.
31133 (__get_phys_pages): Likewise.
31134 (__get_avphys_pages): Likewise.
31135
31136 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31137
31138 [BZ #18822]
31139 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
31140 attribute_hidden.
31141 (__netlink_close): Likewise.
31142 (__netlink_free_handle): Likewise.
31143 (__netlink_request): Likewise.
31144
31145 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31146
31147 [BZ #18822]
31148 * include/rpc/rpc.h (__rpc_thread_variables): Add
31149 attribute_hidden.
31150 (__rpc_thread_svc_cleanup): Likewise.
31151 (__rpc_thread_clnt_cleanup): Likewise.
31152 (__rpc_thread_key_cleanup): Likewise.
31153
31154 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31155
31156 [BZ #18822]
31157 * include/sys/uio.h (__readv): Add libc_hidden_proto.
31158 (__writev): Likewise.
31159 * misc/readv.c (__readv): Add libc_hidden_def.
31160 * misc/writev.c (__writev): Likewise.
31161 * sysdeps/posix/readv.c (__readv): Likewise.
31162 * sysdeps/posix/writev.c (__writev): Likewise.
31163 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
31164 (__readv): Likewise.
31165 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
31166 (__writev): Likewise.
31167
31168 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31169
31170 [BZ #18822]
31171 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
31172 (__regcomp): Add libc_hidden_proto.
31173 (__regexec): Likewise.
31174 (__regfree): Likewise.
31175 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
31176 (__regfree): Likewise.
31177 * posix/regexec.c (__regexec): Likewise.
31178
31179 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31180
31181 [BZ #18822]
31182 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
31183 (__getutent): Likewise.
31184 (__getutid): Likewise.
31185 (__getutline): Likewise.
31186 (__pututline): Likewise.
31187 (__getutent_r): Likewise.
31188 (__getutid_r): Likewise.
31189 (__getutline_r): Likewise.
31190 (__utmpname): Add attribute_hidden.
31191 (__setutent): Likewise.
31192 (__endutent): Likewise.
31193 * login/getutent.c (__getutent): Add libc_hidden_def.
31194 * login/getutent_r.c (__getutent_r): Likewise.
31195 (__pututline): Likewise.
31196 * login/getutid.c (__getutid): Likewise.
31197 * login/getutid_r.c (__getutid_r): Likewise.
31198 * login/getutline.c (__getutline): Likewise.
31199 * login/getutline_r.c (__getutline_r): Likewise.
31200 * login/updwtmp.c (__updwtmp): Likewise.
31201
31202 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31203
31204 [BZ #18822]
31205 * include/dirent.h (__opendir): Always add attribute_hidden.
31206 (__fdopendir): Likewise.
31207 (__closedir): Likewise.
31208 (__readdir): Likewise.
31209 (__readdir64): Add libc_hidden_proto.
31210 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
31211 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
31212 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
31213 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
31214 New alias.
31215
31216 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31217
31218 [BZ #18822]
31219 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
31220 * include/netdb.h (__gethostbyaddr_r): Likewise.
31221 (__gethostbyname_r): Likewise.
31222 (__gethostbyname2_r): Likewise.
31223 (__getnetbyaddr_r): Likewise.
31224 (__getnetbyname_r): Likewise.
31225 (__getservbyname_r): Likewise.
31226 (__getservbyport_r): Likewise.
31227 (__getprotobyname_r): Likewise.
31228 (__getprotobynumber_r): Likewise.
31229 (__getnetgrent_r): Likewise.
31230 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
31231 (__getrpcbynumber_r): Likewise.
31232 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
31233
31234 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31235
31236 [BZ #18822]
31237 * include/stdio.h (__fcloseall): Add attribute_hidden.
31238 (__getline): Likewise.
31239 (__path_search): Likewise.
31240 (__gen_tempname): Likewise.
31241 (__libc_message): Likewise.
31242 (__flockfile): Likewise.
31243 (__funlockfile): Likewise.
31244 (__fxprintf): Likewise.
31245 (__fxprintf_nocancel): Likewise.
31246
31247 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31248
31249 [BZ #18822]
31250 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
31251 (__sgetsgent_r): Likewise.
31252
31253 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31254
31255 [BZ #18822]
31256 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
31257 (__statfs64): Likewise.
31258 (__fstatfs64): Likewise.
31259 * include/sys/statvfs.h (__statvfs64): Likewise.
31260 (__fstatvfs64): Likewise.
31261 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
31262 (__statfs_filesize_max): Likewise.
31263 (__statfs_symlinks): Likewise.
31264 (__statfs_chown_restricted): Likewise.
31265
31266 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31267
31268 [BZ #18822]
31269 * include/time.h (__tzstring): Add attribute_hidden.
31270 (__tzfile_read): Likewise.
31271 (__tzfile_compute): Likewise.
31272 (__tzfile_default): Likewise.
31273 (__tzset_parse_tz): Likewise.
31274 (__offtime): Likewise.
31275 (__asctime_r): Likewise.
31276 (__tzset): Likewise.
31277 (__tz_convert): Likewise.
31278 (__getdate_r): Likewise.
31279 (__getclktck): Likewise.
31280
31281 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31282
31283 [BZ #18822]
31284 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
31285 (__nscd_unmap): Likewise.
31286 (__nscd_cache_search): Likewise.
31287 (__nscd_get_nl_timestamp): Likewise.
31288 (__nscd_getpwnam_r): Likewise.
31289 (__nscd_getpwuid_r): Likewise.
31290 (__nscd_getgrnam_r): Likewise.
31291 (__nscd_getgrgid_r): Likewise.
31292 (__nscd_gethostbyname_r): Likewise.
31293 (__nscd_gethostbyname2_r): Likewise.
31294 (__nscd_gethostbyaddr_r): Likewise.
31295 (__nscd_getai): Likewise.
31296 (__nscd_getgrouplist): Likewise.
31297 (__nscd_getservbyname_r): Likewise.
31298 (__nscd_getservbyport_r): Likewise.
31299 (__nscd_innetgr): Likewise.
31300 (__nscd_setnetgrent): Likewise.
31301
31302 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31303
31304 [BZ #18822]
31305 * include/gmp.h: Declare internal functions only if _ISOMAC is
31306 undefined.
31307 (__mpn_extract_double): Add attribute_hidden.
31308 (__mpn_extract_long_double): Likewise.
31309 (__mpn_extract_float128): Likewise.
31310 (__mpn_construct_float): Likewise.
31311 (__mpn_construct_double): Likewise.
31312 (__mpn_construct_long_double): Likewise.
31313 (__mpn_construct_float128): Likewise.
31314 (mpn_add_1): Likewise.
31315 (mpn_addmul_1): Likewise.
31316 (mpn_add_n): Likewise.
31317 (mpn_cmp): Likewise.
31318 (mpn_divrem): Likewise.
31319 (mpn_lshift): Likewise.
31320 (mpn_mul): Likewise.
31321 (mpn_mul_1): Likewise.
31322 (mpn_rshift): Likewise.
31323 (mpn_sub_1): Likewise.
31324 (mpn_submul_1): Likewise.
31325 (mpn_sub_n): Likewise.
31326
31327 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31328
31329 [BZ #18822]
31330 * include/wchar.h (__wcsnlen): Add attribute_hidden.
31331 (__wcscat): Likewise.
31332 (__btowc): Likewise.
31333 (__wcrtomb): Likewise.
31334 (__mbsrtowcs): Likewise.
31335 (__wcsrtombs): Likewise.
31336 (__mbsnrtowcs): Likewise.
31337 (__wcsnrtombs): Likewise.
31338 (__wcsncpy): Likewise.
31339 (__wcpncpy): Likewise.
31340 (__wmemcpy): Likewise.
31341 (__wmempcpy): Likewise.
31342 (__wmemmove): Likewise.
31343 (__wcschrnul): Likewise.
31344 (__vfwscanf): Likewise.
31345 (__vswprintf): Likewise.
31346 (__fwprintf): Likewise.
31347 (__vfwprintf): Likewise.
31348
31349 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31350
31351 [BZ #18822]
31352 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
31353 (__getgrgid_r): Likewise.
31354 (__getgrnam_r): Likewise.
31355 * include/pwd.h (__getpwuid_r): Likewise.
31356 (__getpwnam_r): Likewise.
31357 (__fgetpwent_r): Likewise.
31358 * include/shadow.h (__getspnam_r): Likewise.
31359 (__sgetspent_r): Likewise.
31360 (__fgetspent_r): Likewise.
31361
31362 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31363
31364 [BZ #18822]
31365 * include/unistd.h (__access): Add attribute_hidden.
31366 (__lseek64): Likewise.
31367 (__libc_pread64): Likewise.
31368 (__pipe2): Likewise.
31369 (__sleep): Likewise.
31370 (__chdir): Likewise.
31371 (__fchdir): Likewise.
31372 (__getcwd): Likewise.
31373 (__rmdir): Likewise.
31374 (__execvpe): Likewise.
31375 (__execve): Likewise.
31376 (__setsid): Likewise.
31377 (__getuid): Likewise.
31378 (__geteuid): Likewise.
31379 (__getgid): Likewise.
31380 (__getegid): Likewise.
31381 (__getgroups): Likewise.
31382 (__group_member): Likewise.
31383 (__ttyname_r): Likewise.
31384 (__isatty): Likewise.
31385 (__readlink): Likewise.
31386 (__unlink): Likewise.
31387 (__gethostname): Likewise.
31388 (__profil): Likewise.
31389 (__getdtablesize): Likewise.
31390 (__brk): Likewise.
31391 (__ftruncate): Likewise.
31392 (__ftruncate64): Likewise.
31393
31394 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31395
31396 [BZ #18822]
31397 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
31398 * argp/argp-fs-xinl.c: Likewise.
31399 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
31400 * argp/argp-parse.c: Include <argp.h>.
31401 * argp/argp-xinl.c: Likewise.
31402 * include/argp-fmtstream.h: New file.
31403 * include/argp.h (__argp_error): Add attribute_hidden.
31404 (__argp_failure): Likewise.
31405 (__argp_input): Likewise.
31406 (__argp_state_help): Likewise.
31407
31408 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31409
31410 [BZ #18822]
31411 * include/wchar.h (____wcstof_l_internal): New prototype.
31412 (____wcstod_l_internal): Likewise.
31413 (____wcstold_l_internal): Likewise.
31414 (____wcstol_l_internal): Likewise.
31415 (____wcstoul_l_internal): Likewise.
31416 (____wcstoll_l_internal): Likewise.
31417 (____wcstoull_l_internal): Likewise.
31418 (____wcstof128_l_internal): Likewise.
31419 * sysdeps/ieee754/float128/wcstof128.c
31420 (____wcstof128_l_internal): Removed.
31421 * sysdeps/ieee754/float128/wcstof128_l.c
31422 (____wcstof128_l_internal): Likewise.
31423 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
31424 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
31425 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
31426 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
31427 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
31428 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
31429 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
31430 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
31431 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
31432 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
31433
31434 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31435
31436 [BZ #18822]
31437 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
31438 instead of <sys/statvfs.h>.
31439 (__internal_statvfs): Removed.
31440 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
31441 instead of <sys/statvfs.h>.
31442 (__internal_statvfs64): Removed.
31443 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
31444 "internal_statvfs.h" instead of <sys/statvfs.h>.
31445 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
31446 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
31447 instead of <sys/statvfs.h>.
31448 (__internal_statvfs): Removed.
31449 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
31450 instead of <sys/statvfs.h>.
31451 (__internal_statvfs64): Removed.
31452
31453 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31454
31455 [BZ #18822]
31456 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
31457 (__gconv_close): Likewise.
31458 (__gconv): Likewise.
31459 (__gconv_find_transform): Likewise.
31460 (__gconv_lookup_cache): Likewise.
31461 (__gconv_compare_alias_cache): Likewise.
31462 (__gconv_load_cache): Likewise.
31463 (__gconv_get_path): Likewise.
31464 (__gconv_close_transform): Likewise.
31465 (__gconv_release_cache): Likewise.
31466 (__gconv_find_shlib): Likewise.
31467 (__gconv_release_shlib): Likewise.
31468 (__gconv_get_builtin_trans): Likewise.
31469 (__gconv_compare_alias): Likewise.
31470 * include/dlfcn.h (_dlerror_run): Likewise.
31471 * include/stdio.h (__fortify_fail_abort): Likewise.
31472 * include/time.h (__tz_compute): Likewise.
31473 (__strptime_internal): Likewise.
31474 * intl/gettextP.h (_nl_find_domain): Likewise.
31475 (_nl_load_domain): Likewise.
31476 (_nl_find_msg): Likewise.
31477 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
31478 (EXTRACT_PLURAL_EXPRESSION): Likewise.
31479 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
31480 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
31481 (__gai_find_request): Likewise.
31482 (__gai_remove_request): Likewise.
31483 (__gai_notify): Likewise.
31484 (__gai_notify_only): Likewise.
31485 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
31486 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
31487 (_dl_non_dynamic_init): Likewise.
31488 (_dl_aux_init): Likewise.
31489 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
31490 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
31491 Likewise.
31492 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
31493 (__wcsmbs_clone_conv): Likewise.
31494 (__wcsmbs_named_conv): Likewise.
31495
31496 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31497
31498 [BZ #18822]
31499 * include/stdlib.h (__random): Add attribute_hidden.
31500 (__random_r): Likewise.
31501 (__srandom_r): Likewise.
31502 (__initstate_r): Likewise.
31503 (__setstate_r): Likewise.
31504 (__erand48_r): Likewise.
31505 (__nrand48_r): Likewise.
31506 (__jrand48_r): Likewise.
31507 (__srand48_r): Likewise.
31508 (__seed48_r): Likewise.
31509 (__lcong48_r): Likewise.
31510 (__drand48_iterate): Likewise.
31511 (__setenv): Likewise.
31512 (__unsetenv): Likewise.
31513 (__clearenv): Likewise.
31514 (__ptsname_r): Likewise.
31515 (__posix_openpt): Likewise.
31516 (__add_to_environ): Likewise.
31517 (__realpath): Add libc_hidden_proto.
31518 (__ecvt_r): Likewise.
31519 (__fcvt_r): Likewise.
31520 (__qecvt_r): Likewise.
31521 (__qfcvt_r): Likewise.
31522 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
31523 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
31524
31525 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31526
31527 [BZ #18822]
31528 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
31529 * include/time.h (__mktime_internal): Likewise.
31530 * libio/iolibio.h (__fopen_internal): Likewise.
31531
31532 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
31533
31534 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
31535 pointer in frame.
31536 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
31537 Correct offset used to restore PIC register.
31538
31539 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
31540
31541 [BZ libc/22165]
31542 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
31543 code to load address of __getcontext_ret when generating PIC code.
31544
31545 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
31546
31547 * elf/Makefile (tests-static-internal): Add
31548 tst-tls1-static-non-pie.
31549 (LDFLAGS-tst-tls1-static-non-pie): New.
31550 * elf/tst-tls1-static-non-pie.c: New file.
31551
31552 2017-09-29 Joseph Myers <joseph@codesourcery.com>
31553
31554 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
31555 (asinh): Define using libm_alias_double.
31556 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
31557 (cbrt): Define using libm_alias_double.
31558 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
31559 <libm-alias-double.h>.
31560 (copysign): Define using libm_alias_double.
31561 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
31562 (erf): Define using libm_alias_double.
31563 (erfc): Likewise.
31564 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
31565 (expm1): Define using libm_alias_double.
31566 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
31567 (fabs): Define using libm_alias_double.
31568 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
31569 libm_alias_double.
31570 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
31571 <libm-alias-double.h>.
31572 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
31573 libm_alias_double.
31574 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
31575 <libm-alias-double.h>.
31576 (getpayload): Define using libm_alias_double.
31577 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
31578 <libm-alias-double.h>.
31579 (llrint): Define using libm_alias_double.
31580 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
31581 (lrint): Define using libm_alias_double.
31582 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
31583 <libm-alias-double.h>.
31584 (nextup): Define using libm_alias_double.
31585 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
31586 <libm-alias-double.h>.
31587 (roundeven): Define using libm_alias_double.
31588 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
31589 libm_alias_double.
31590 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
31591 <libm-alias-double.h>.
31592 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
31593 using libm_alias_double.
31594 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
31595 (cos): Define using libm_alias_double.
31596 (sin): Likewise.
31597 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
31598 <libm-alias-double.h>.
31599 (sincos): Define using libm_alias_double.
31600 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
31601 (tanh): Define using libm_alias_double.
31602 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
31603 <libm-alias-double.h>.
31604 (totalorder): Define using libm_alias_double.
31605 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
31606 <libm-alias-double.h>.
31607 (totalordermag): Define using libm_alias_double.
31608 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
31609 libm_alias_double.
31610 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
31611 libm_alias_double.
31612 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
31613 <libm-alias-double.h>.
31614 (getpayload): Define using libm_alias_double.
31615 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
31616 <libm-alias-double.h>.
31617 (roundeven): Define using libm_alias_double.
31618 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
31619 <libm-alias-double.h>.
31620 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
31621 <libm-alias-double.h>.
31622 (totalorder): Define using libm_alias_double.
31623 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
31624 <libm-alias-double.h>.
31625 (totalordermag): Define using libm_alias_double.
31626 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
31627 libc compat symbol here.
31628 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
31629 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
31630 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
31631 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
31632 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
31633 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
31634 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
31635 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
31636 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
31637 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
31638
31639 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
31640
31641 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
31642 _dl_relocate_static_pie instead of _dl_start to compute load
31643 address in static PIE. Return 0 if _DYNAMIC is undefined for
31644 static executable.
31645
31646 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
31647
31648 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
31649 _DYNAMIC is undefined for static executable.
31650
31651 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
31652
31653 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
31654
31655 2017-09-29 Joseph Myers <joseph@codesourcery.com>
31656
31657 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
31658
31659 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
31660
31661 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
31662 (__ieee754_lgamma_r): Use fabs rather than __fabs.
31663 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
31664 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
31665 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
31666 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
31667 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
31668 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
31669 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
31670 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
31671 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
31672 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
31673 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
31674 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
31675 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
31676 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
31677 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
31678
31679 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
31680
31681 * math/bits/cmathcalls.h (cimag): Remove inline.
31682 (creal): Remove inline.
31683 (conj): Remove inline.
31684
31685 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
31686
31687 * math/Makefile (type-float-routines): Add e_powf_log2_data.
31688 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
31689 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
31690 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
31691 (issignalingf_inline): Likewise.
31692 (POWF_LOG2_TABLE_BITS): Likewise.
31693 (POWF_LOG2_POLY_ORDER): Likewise.
31694 (POWF_SCALE_BITS): Likewise.
31695 (POWF_SCALE): Likewise.
31696 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
31697 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
31698 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
31699
31700 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
31701
31702 * math/Makefile (type-float-routines): Add e_log2f_data.
31703 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
31704 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
31705 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
31706 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
31707 * sysdeps/i386/fpu/e_log2f_data.c: New file.
31708 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
31709 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
31710
31711 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
31712
31713 * math/Makefile (type-float-routines): Add e_logf_data.
31714 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
31715 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
31716 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
31717 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
31718 * sysdeps/i386/fpu/e_logf_data.c: New file.
31719 * sysdeps/ia64/fpu/e_logf_data.c: New file.
31720 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
31721
31722 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
31723
31724 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
31725 undefined _DYNAMIC in PIE libc.a.
31726 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
31727 Likewse.
31728
31729 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
31730
31731 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
31732 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
31733 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
31734 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
31735 (__signbit): Remove.
31736 (__signbitl): Remove.
31737 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
31738 (__signbit): Remove.
31739 (__signbitl): Remove.
31740 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
31741 (__signbit): Remove.
31742 (__signbitl): Remove.
31743 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
31744 (__signbit): Remove.
31745 (__signbitl): Remove.
31746 * sysdeps/tile/bits/mathinline.h: Delete file.
31747 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
31748 (__signbit): Remove.
31749 (__signbitl): Remove.
31750
31751 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
31752
31753 * math/math.h: Improve handling of C99 isgreater macros.
31754 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
31755 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
31756 * sysdeps/powerpc/bits/mathinline.h: Likewise.
31757 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
31758 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
31759
31760 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
31761
31762 * sysdeps/aarch64/libm-test-ulps: Update.
31763
31764 2017-09-28 Joseph Myers <joseph@codesourcery.com>
31765
31766 [BZ #22225]
31767 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
31768 math_opt_barrier on argument when doing arithmetic on it.
31769 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
31770 Likewise. Use math_force_eval not math_opt_barrier after
31771 arithmetic.
31772 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
31773 math_opt_barrier on argument when doing arithmetic on it.
31774 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
31775 Likewise.
31776
31777 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
31778
31779 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
31780 libc_hidden_def.
31781 (__freeifaddrs): Likewise.
31782
31783 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
31784
31785 * include/dirent.h (__dirfd): New declaration.
31786 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
31787 alias.
31788 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
31789 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
31790 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
31791 * include/unistd.h (__revoke): New declaration.
31792 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
31793 alias.
31794 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
31795 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
31796 revoke.
31797 * include/dirent.h (__seekdir): New declaration.
31798 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
31799 redefine as weak alias.
31800 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
31801 of seekdir.
31802 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
31803 and use libc_hidden_def on them.
31804 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
31805 them.
31806 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
31807 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
31808 instead of getifaddrs and freeifaddrs.
31809
31810 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
31811
31812 [BZ #18822]
31813 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
31814 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
31815 (__dso_handle): Remove declaration.
31816 * dlfcn/tstatexit.c (__dso_handle): Removed.
31817 (main): Don't check __dso_handle.
31818 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
31819 (main): Don't check __dso_handle.
31820 * include/dso_handle.h: New file.
31821 * malloc/mtrace.c: Include <dso_handle.h>.
31822 (mtrace): Pass __dso_handle directly.
31823 * nptl/pthread_atfork.c: Include <dso_handle.h>.
31824 (__dso_handle): Remove declaration.
31825 (__pthread_atfork): Pass __dso_handle directly.
31826 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
31827 (__dso_handle): Removed.
31828 * posix/wordexp-test.c: Include <dso_handle.h>.
31829 (__dso_handle): Remove declaration.
31830 (__app_register_atfork): Pass __dso_handle directly.
31831 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
31832 (__dso_handle): Remove declaration.
31833 (at_quick_exit): Pass __dso_handle directly.
31834 * stdlib/atexit.c: Include <dso_handle.h>.
31835 (__dso_handle): Remove declaration.
31836 (atexit): Pass __dso_handle directly.
31837 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
31838 (__dso_handle): Removed.
31839
31840 2017-09-26 Joseph Myers <joseph@codesourcery.com>
31841
31842 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
31843 using VDSO.
31844
31845 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
31846
31847 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
31848 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
31849 values to correct default value for given type.
31850
31851 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
31852
31853 [BZ #22101]
31854 * elf/Makefile (tests): Add tst-debug1.
31855 ($(objpfx)tst-debug1): New.
31856 ($(objpfx)tst-debug1.out): Likewise.
31857 ($(objpfx)tst-debug1mod1.so): Likewise.
31858 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
31859 with p_filesz == 0.
31860 * elf/tst-debug1.c: New file.
31861
31862 2017-09-26 Joseph Myers <joseph@codesourcery.com>
31863
31864 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
31865 Define using __ifunc.
31866
31867 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
31868
31869 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
31870 exp2f() values.
31871
31872 2017-09-26 Joseph Myers <joseph@codesourcery.com>
31873
31874 [BZ #22156]
31875 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
31876
31877 2017-09-26 Florian Weimer <fweimer@redhat.com>
31878
31879 * resolv/Makefile (tests-internal): Fix typo in comment.
31880
31881 2017-09-26 Florian Weimer <fweimer@redhat.com>
31882
31883 * resolv/nss_dns/dns-host.c: Fix typo in comment.
31884
31885 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31886
31887 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
31888 Use an union instead of a max_align_t array for __space,
31889 so that __space is the same size on all platforms.
31890 * malloc/scratch_buffer_grow_preserve.c
31891 (__libc_scratch_buffer_grow_preserve): Likewise.
31892
31893 [BZ #22183]
31894 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
31895 version to 2.
31896 * posix/Makefile (routines): Add glob-lstat-compat and
31897 glob64-lstat-compat.
31898 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
31899 * posix/glob-lstat-compat.c: New file.
31900 * posix/glob64-lstat-compat.c: Likewise.
31901 * posix/tst-glob_lstat_compat.c: Likewise.
31902 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
31903 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
31904 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
31905 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
31906 Likewise.
31907 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
31908 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
31909 * posix/glob.c (glob_lstat): New function.
31910 (glob): Rename to __glob and add versioned symbol to 2.27.
31911 (glob_in_dir): Use glob_lstat.
31912 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
31913 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
31914 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
31915 2.27.
31916 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
31917 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
31918 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
31919 gl_lstat on glob call.
31920 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
31921 and glob64 symbols.
31922 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
31923 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
31924 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
31925 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
31926 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
31927 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
31928 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
31929 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
31930 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
31931 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
31932 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
31933 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
31934 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
31935 Likewise.
31936 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
31937 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
31938 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
31939 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
31940 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
31941 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
31942 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
31943 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
31944 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
31945 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
31946 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
31947 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
31948
31949 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
31950
31951 * configure.ac (AS): Require binutils 2.25 or later.
31952 * configure: Regenerated.
31953
31954 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
31955
31956 [BZ #22207]
31957 * stdlib/test-atexit-race-common.c (do_test): Minimize required
31958 VM size.
31959
31960 2017-09-25 DJ Delorie <dj@redhat.com>
31961
31962 [BZ #22161]
31963 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
31964 resetting timeout.
31965
31966 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
31967
31968 * sysdeps/ieee754/dbl-64/sincos32.h
31969 [SINCCOS32_H]: Remove define.
31970 [SINCOS32_H]: Define.
31971
31972 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
31973
31974 * math/Versions (expf): New libm symbol at GLIBC_2.27.
31975 (exp2f): Likewise.
31976 * math/w_exp2f.c: New file.
31977 * math/w_expf.c: New file.
31978 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
31979 * math/w_expf_compat.c (__expf_compat): Likewise.
31980 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
31981 * sysdeps/ia64/fpu/e_expf.S: Likewise.
31982 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
31983 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
31984 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
31985 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
31986 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
31987 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
31988 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
31989 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
31990 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
31991 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
31992 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
31993 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
31994 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
31995 Likewise.
31996 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
31997 Likewise.
31998 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
31999 Likewise.
32000 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
32001 Likewise.
32002 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
32003 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
32004 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
32005 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
32006 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
32007 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
32008 Likewise.
32009 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
32010 Likewise.
32011 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
32012 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
32013 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
32014
32015 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
32016
32017 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
32018 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
32019 (roundtoint, converttoint): Likewise.
32020 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
32021 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
32022 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
32023 * sysdeps/ieee754/flt-32/math_config.h: New file.
32024 * sysdeps/ieee754/flt-32/math_errf.c: New file.
32025 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
32026 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
32027 * sysdeps/i386/fpu/math_errf.c: New file.
32028 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
32029 * sysdeps/ia64/fpu/math_errf.c: New file.
32030 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
32031 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
32032
32033 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
32034
32035 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
32036 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
32037 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
32038 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
32039 to make sure that these symbols are defined.
32040 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
32041 of <limits.h>
32042 (__need_NULL): Do not define.
32043 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
32044 alignment.
32045 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
32046 CMGROUP_MAX, cmsgcred): Do not define.
32047 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
32048 NULL.
32049 * bits/socket.h: Likewise.
32050 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
32051 __gettimeofday instead of gettimeofday.
32052 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
32053 instead of settimeofday.
32054
32055 2017-09-22 Joseph Myers <joseph@codesourcery.com>
32056
32057 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
32058 (asinhf): Define using libm_alias_float.
32059 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
32060 (atanf): Define using libm_alias_float.
32061 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
32062 (cbrtf): Define using libm_alias_float.
32063 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
32064 (ceilf): Define using libm_alias_float.
32065 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
32066 <libm-alias-float.h>.
32067 (copysignf): Define using libm_alias_float.
32068 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
32069 (cosf): Define using libm_alias_float.
32070 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
32071 (erff): Define using libm_alias_float.
32072 (erfcf): Likewise.
32073 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
32074 (expm1f): Define using libm_alias_float.
32075 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
32076 (fabsf): Define using libm_alias_float.
32077 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
32078 (floorf): Define using libm_alias_float.
32079 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
32080 (frexpf): Define using libm_alias_float.
32081 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
32082 libm_alias_float.
32083 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
32084 <libm-alias-float.h>.
32085 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
32086 libm_alias_float.
32087 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
32088 <libm-alias-float.h>.
32089 (getpayloadf): Define using libm_alias_float.
32090 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
32091 <libm-alias-float.h>.
32092 (llrintf): Define using libm_alias_float.
32093 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
32094 <libm-alias-float.h>.
32095 (llroundf): Define using libm_alias_float.
32096 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
32097 (logbf): Define using libm_alias_float.
32098 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
32099 (lrintf): Define using libm_alias_float.
32100 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
32101 (lroundf): Define using libm_alias_float.
32102 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
32103 (modff): Define using libm_alias_float.
32104 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
32105 <libm-alias-float.h>.
32106 (nearbyintf): Define using libm_alias_float.
32107 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
32108 <libm-alias-float.h>.
32109 (nextafterf): Define using libm_alias_float.
32110 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
32111 <libm-alias-float.h>.
32112 (nextupf): Define using libm_alias_float.
32113 * sysdeps/ieee754/flt-32/s_remquof.c: Include
32114 <libm-alias-float.h>.
32115 (remquof): Define using libm_alias_float.
32116 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
32117 (rintf): Define using libm_alias_float.
32118 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
32119 <libm-alias-float.h>.
32120 (roundevenf): Define using libm_alias_float.
32121 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
32122 (roundf): Define using libm_alias_float.
32123 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
32124 using libm_alias_float.
32125 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
32126 <libm-alias-float.h>.
32127 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
32128 Define using libm_alias_float.
32129 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
32130 <libm-alias-float.h>.
32131 (sincosf): Define using libm_alias_float.
32132 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
32133 (sinf): Define using libm_alias_float.
32134 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
32135 (tanf): Define using libm_alias_float.
32136 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
32137 (tanhf): Define using libm_alias_float.
32138 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
32139 <libm-alias-float.h>.
32140 (totalorderf): Define using libm_alias_float.
32141 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
32142 <libm-alias-float.h>.
32143 (totalordermagf): Define using libm_alias_float.
32144 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
32145 (truncf): Define using libm_alias_float.
32146 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
32147 libm_alias_float.
32148 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
32149 libm_alias_float.
32150
32151 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
32152
32153 [BZ #22146]
32154 math/math.h: Let fpclassify use the builtin in C++ mode, even
32155 when optimazing for size.
32156
32157 2017-09-22 Joseph Myers <joseph@codesourcery.com>
32158
32159 * csu/Makefile (generated): Do not add version-info.h.
32160 (before-compile): Likewise.
32161 (all-Banner-files): Remove variable.
32162 ($(objpfx)version-info.h): Remove rule.
32163 * csu/version.c (banner): Do not include "version-info.h".
32164 * libidn/Banner: Remove.
32165 * manual/contrib.texi (Simon Josefsson): New entry.
32166
32167 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
32168
32169 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
32170 Remove conditionals on LDBL_MANT_DIG.
32171 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
32172 (__ieee754_lgammal_r): Likewise.
32173
32174 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
32175
32176 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
32177 _Float128 and L().
32178 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
32179 _Float128 and L(). Replace _Float128 with long double and L(x)
32180 with xL, throughout the file.
32181 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
32182 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
32183 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
32184 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
32185
32186 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
32187
32188 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
32189 sysdeps/ieee754/ldbl-128ibm.
32190 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
32191 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
32192 of including it. Keep _Float128 and L() intact. These will be
32193 reviewed by a separate patch.
32194 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
32195 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
32196 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
32197 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
32198
32199 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
32200
32201 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
32202 (__finitef128): Define to __redirect___finitef128.
32203 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
32204 (__isinff128): Define to __redirect___isinff128.
32205 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
32206 (__isnanf128): Define to __redirect___isnanf128.
32207
32208 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
32209
32210 * sysdeps/powerpc/powerpc64le/Makefile
32211 (CFLAGS-tst-strtod-nan-locale.c): New variable.
32212 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
32213
32214 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
32215 Carlos O'Donell <carlos@redhat.com>
32216
32217 [BZ #22180]
32218 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
32219 * stdlib/test-dlclose-exit-race.c: New file.
32220 * stdlib/test-dlclose-exit-race-helper.c: New file.
32221 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
32222
32223 2017-09-21 Joseph Myers <joseph@codesourcery.com>
32224
32225 * crypt/Banner: Remove file.
32226 * nptl/Banner: Likewise.
32227 * resolv/Banner: Likewise.
32228 * soft-fp/Banner: Likewise.
32229 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
32230 ($(objpfx)version.d): Remove dependency on banner.h.
32231 ($(objpfx)version.os): Likewise.
32232 * nptl/version.c (banner): Do not include banner.h.
32233 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
32234 Jelinek and BIND code.
32235
32236 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
32237 Carlos O'Donell <carlos@redhat.com>
32238
32239 * support/xdlfcn.h: New file.
32240 * support/xdlfcn.c: New file.
32241 * support/Makefile (libsupport-routines): Add xdlfcn.
32242 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
32243
32244 2017-09-20 Joseph Myers <joseph@codesourcery.com>
32245
32246 [BZ #20142]
32247 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32248 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
32249 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
32250 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
32251 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
32252 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
32253 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
32254 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
32255
32256 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
32257 Ricky Zhou <rickyz@google.com>
32258 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
32259
32260 [BZ #14333]
32261 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
32262 Remove atomics.
32263 (__new_exitfn): Fail registration when we finished at_exit processing.
32264 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
32265 * stdlib/on_exit.c (__on_exit): Likewise.
32266 * stdlib/exit.c (__exit_funcs_done): New variable.
32267 (__run_exit_handlers): Use __exit_funcs_lock.
32268 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
32269 declarations.
32270 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
32271 (test-cxa_atexit-race, test-on_exit-race): New tests.
32272 * stdlib/test-atexit-race-common.c: New file.
32273 * stdlib/test-atexit-race.c: New file.
32274 * stdlib/test-at_quick_exit-race.c: New file.
32275 * stdlib/test-cxa_atexit-race.c: New file.
32276 * stdlib/test-on_exit-race.c: New file.
32277
32278 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
32279
32280 * benchtests/Makefile: Add exp2f and log2f benchmarks.
32281 * benchtests/exp2f-inputs: Copy of expf-inputs.
32282 * benchtests/log2f-inputs: Copy of logf-inputs.
32283
32284 2017-09-19 Joseph Myers <joseph@codesourcery.com>
32285
32286 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
32287 Explicitly take address of first element of array arguments in
32288 call to INLINE_SYSCALL.
32289
32290 2017-09-19 Andreas Schwab <schwab@suse.de>
32291
32292 [BZ #22134]
32293 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
32294 execveat first.
32295 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
32296 unimplemented.
32297 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
32298 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
32299 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
32300 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
32301 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
32302 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
32303 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
32304 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
32305 * posix/Makefile (tests): Add tst-fexecve.
32306 * posix/tst-fexecve.c: New file.
32307
32308 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
32309
32310 * benchtests/Makefile: Add logf benchmark.
32311 * benchtests/logf-inputs: Add reduced trace from wrf_r.
32312
32313 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
32314
32315 * benchtests/Makefile: Add expf benchmark.
32316 * benchtests/expf-inputs: Add reduced trace from wrf_r.
32317
32318 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
32319
32320 * csu/Makefile: Add -funwind-tables to libc-start.c.
32321 * debug/Makefile: Add -funwind-tables to backtrace.c.
32322 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
32323 * sysdeps/arm/Makefile: Likewise.
32324 * sysdeps/i386/Makefile: Likewise.
32325 * sysdeps/m68k/Makefile: Likewise.
32326 * sysdeps/mips/Makefile: Likewise.
32327 * sysdeps/nios2/Makefile: Likewise.
32328 * sysdeps/sh/Makefile: Likewise.
32329 * sysdeps/sparc/Makefile: Likewise.
32330
32331 2017-09-19 Joseph Myers <joseph@codesourcery.com>
32332
32333 * benchtests/Makefile (bench-math): Add trunc and truncf.
32334 (CFLAGS-bench-trunc.c): New variable.
32335 (CFLAGS-bench-truncf.c): Likewise.
32336 * benchtests/trunc-inputs: New file.
32337 * benchtests/truncf-inputs: Likewise.
32338
32339 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
32340
32341 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
32342
32343 2017-09-18 Joseph Myers <joseph@codesourcery.com>
32344
32345 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
32346 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
32347 redefine.
32348 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
32349 (exp10l): Define as weak alias.
32350 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
32351 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
32352 and redefine.
32353 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
32354 (remainderl): Define as weak alias.
32355
32356 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
32357 (fmal): Define using libm_alias_ldouble.
32358 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
32359 (acoshl): Define using libm_alias_ldouble.
32360 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
32361 (acosl): Define using libm_alias_ldouble.
32362 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
32363 (asinl): Define using libm_alias_ldouble.
32364 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
32365 (atan2l): Define using libm_alias_ldouble.
32366 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
32367 (atanhl): Define using libm_alias_ldouble.
32368 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
32369 (coshl): Define using libm_alias_ldouble.
32370 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
32371 (exp10l): Define using libm_alias_ldouble.
32372 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
32373 (exp2l): Define using libm_alias_ldouble.
32374 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
32375 (expl): Define using libm_alias_ldouble.
32376 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
32377 (fmodl): Define using libm_alias_ldouble.
32378 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
32379 (hypotl): Define using libm_alias_ldouble.
32380 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
32381 (j0l): Define using libm_alias_ldouble.
32382 (y0l): Likewise.
32383 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
32384 (j1l): Define using libm_alias_ldouble.
32385 (y1l): Likewise.
32386 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
32387 (jnl): Define using libm_alias_ldouble.
32388 (ynl): Likewise.
32389 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
32390 (log10l): Define using libm_alias_ldouble.
32391 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
32392 (log2l): Define using libm_alias_ldouble.
32393 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
32394 (logl): Define using libm_alias_ldouble.
32395 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
32396 (powl): Define using libm_alias_ldouble.
32397 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
32398 (remainderl): Define using libm_alias_ldouble.
32399 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
32400 (sinhl): Define using libm_alias_ldouble.
32401 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
32402 (sqrtl): Define using libm_alias_ldouble.
32403 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
32404 (tgammal): Define using libm_alias_ldouble.
32405 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
32406 (exp10l): Do not use long_double_symbol here.
32407 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
32408 [LIBM_SVID_COMPAT] (remainderl): Likewise.
32409 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
32410 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
32411 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
32412 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
32413 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
32414 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
32415 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
32416 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
32417 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
32418 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
32419 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
32420 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
32421 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
32422 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
32423 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
32424 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
32425 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
32426 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
32427 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
32428 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
32429
32430 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
32431
32432 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
32433 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
32434
32435 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
32436
32437 * io/read.c (read): Add libc_hidden_weak.
32438 * sysdeps/mach/hurd/read.c (read): Likewise.
32439 * io/write.c (write): Likewise.
32440 * sysdeps/mach/hurd/write.c (write): Likewise.
32441 * io/pread64.c (__pread64): Likewise.
32442 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
32443 * posix/pread64.c (__pread64): Add libc_hidden_def.
32444
32445 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
32446
32447 * benchtests/scripts/compare_strings.py: New option -g.
32448 (draw_graph): Print a message that a graph is being generated.
32449 (process_results): Generate graph only if -g is passed.
32450 (main): Process option -g.
32451
32452 * benchtests/scripts/compare_strings.py (process_results):
32453 Better spacing for output.
32454
32455 * benchtests/scripts/compare_strings.py: Use argparse.
32456 * benchtests/README: Document existence of compare_strings.py.
32457
32458 2017-09-15 Joseph Myers <joseph@codesourcery.com>
32459
32460 * math/s_fma.c: Include <libm-alias-double.h>.
32461 (fma): Define using libm_alias_double.
32462 * math/s_nextafter.c: Include <libm-alias-double.h>.
32463 (nextafter): Define using libm_alias_double.
32464 * math/w_acos_compat.c: Include <libm-alias-double.h>.
32465 (acos): Define using libm_alias_double.
32466 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
32467 (aocsh): Define using libm_alias_double.
32468 * math/w_asin_compat.c: Include <libm-alias-double.h>.
32469 (asin): Define using libm_alias_double.
32470 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
32471 (atan2): Define using libm_alias_double.
32472 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
32473 (atanh): Define using libm_alias_double.
32474 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
32475 (cosh): Define using libm_alias_double.
32476 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
32477 (exp10): Define using libm_alias_double.
32478 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
32479 (exp2): Define using libm_alias_double.
32480 * math/w_exp_compat.c: Include <libm-alias-double.h>.
32481 (exp): Define using libm_alias_double.
32482 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
32483 (fmod): Define using libm_alias_double.
32484 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
32485 (hypot): Define using libm_alias_double.
32486 * math/w_j0_compat.c: Include <libm-alias-double.h>.
32487 (j0): Define using libm_alias_double.
32488 (y0): Likewise.
32489 * math/w_j1_compat.c: Include <libm-alias-double.h>.
32490 (j1): Define using libm_alias_double.
32491 (y1): Likewise.
32492 * math/w_jn_compat.c: Include <libm-alias-double.h>.
32493 (jn): Define using libm_alias_double.
32494 (yn): Likewise.
32495 * math/w_log10_compat.c: Include <libm-alias-double.h>.
32496 (log10): Define using libm_alias_double.
32497 * math/w_log2_compat.c: Include <libm-alias-double.h>.
32498 (log2): Define using libm_alias_double.
32499 * math/w_log_compat.c: Include <libm-alias-double.h>.
32500 (log): Define using libm_alias_double.
32501 * math/w_pow_compat.c: Include <libm-alias-double.h>.
32502 (pow): Define using libm_alias_double.
32503 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
32504 (remainder): Define using libm_alias_double.
32505 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
32506 (sinh): Define using libm_alias_double.
32507 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
32508 (sqrt): Define using libm_alias_double.
32509 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
32510 (tgamma): Define using libm_alias_double.
32511 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
32512 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
32513 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
32514 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
32515 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
32516 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
32517 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
32518 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
32519 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
32520 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
32521 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
32522 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
32523 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
32524 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
32525 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
32526 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
32527 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
32528 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
32529 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
32530 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
32531 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
32532 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
32533 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
32534 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
32535 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
32536
32537 * math/e_acoshl.c: Remove.
32538 * math/e_acosl.c: Likewise.
32539 * math/e_asinl.c: Likewise.
32540 * math/e_atan2l.c: Likewise.
32541 * math/e_atanhl.c: Likewise.
32542 * math/e_coshl.c: Likewise.
32543 * math/e_expl.c: Likewise.
32544 * math/e_fmodl.c: Likewise.
32545 * math/e_gammal_r.c: Likewise.
32546 * math/e_hypotl.c: Likewise.
32547 * math/e_j0l.c: Likewise.
32548 * math/e_j1l.c: Likewise.
32549 * math/e_jnl.c: Likewise.
32550 * math/e_lgammal_r.c: Likewise.
32551 * math/e_log10l.c: Likewise.
32552 * math/e_log2l.c: Likewise.
32553 * math/e_logl.c: Likewise.
32554 * math/e_powl.c: Likewise.
32555 * math/e_rem_pio2l.c: Likewise.
32556 * math/e_sinhl.c: Likewise.
32557 * math/e_sqrtf128.c: Likewise.
32558 * math/e_sqrtl.c: Likewise.
32559 * math/k_cosl.c: Likewise.
32560 * math/k_sinl.c: Likewise.
32561 * math/k_tanl.c: Likewise.
32562 * math/s_asinhl.c: Likewise.
32563 * math/s_atanl.c: Likewise.
32564 * math/s_cbrtl.c: Likewise.
32565 * math/s_erfl.c: Likewise.
32566 * math/s_expm1l.c: Likewise.
32567 * math/s_log1pl.c: Likewise.
32568 * math/s_tanhl.c: Likewise.
32569
32570 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
32571
32572 [BZ #21745]
32573 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
32574 [$(subdir) = math] (sysdep_calls): New variable. Has the
32575 previous contents of sysdep_routines, but re-sorted..
32576 [$(subdir) = math] (sysdep_routines): Re-use the contents from
32577 sysdep_calls.
32578 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
32579 defined in sysdep_calls and replace by the respective m_* names.
32580 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
32581 (compat_symbol): Undefine to avoid duplicated compat symbols in
32582 libc.
32583
32584 2017-09-15 Joseph Myers <joseph@codesourcery.com>
32585
32586 * math/s_fmaf.c: Include <libm-alias-float.h>.
32587 (fmaf): Define using libm_alias_float.
32588 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
32589 (acosf): Define using libm_alias_float.
32590 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
32591 (acoshf): Define using libm_alias_float.
32592 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
32593 (asinf): Define using libm_alias_float.
32594 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
32595 (atan2f): Define using libm_alias_float.
32596 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
32597 (atanhf): Define using libm_alias_float.
32598 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
32599 (coshf): Define using libm_alias_float.
32600 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
32601 (exp10f): Define using libm_alias_float.
32602 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
32603 (fmodf): Define using libm_alias_float.
32604 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
32605 (hypotf): Define using libm_alias_float.
32606 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
32607 (j0f): Define using libm_alias_float.
32608 (y0f): Likewise.
32609 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
32610 (j1f): Define using libm_alias_float.
32611 (y1f): Likewise.
32612 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
32613 (jnf): Define using libm_alias_float.
32614 (ynf): Likewise.
32615 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
32616 (log10f): Define using libm_alias_float.
32617 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
32618 (log2f): Define using libm_alias_float.
32619 * math/w_logf_compat.c: Include <libm-alias-float.h>.
32620 (logf): Define using libm_alias_float.
32621 * math/w_powf_compat.c: Include <libm-alias-float.h>.
32622 (powf): Define using libm_alias_float.
32623 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
32624 (remainderf): Define using libm_alias_float.
32625 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
32626 (sinhf): Define using libm_alias_float.
32627 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
32628 (sqrtf): Define using libm_alias_float.
32629 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
32630 (tgammaf): Define using libm_alias_float.
32631
32632 2017-09-14 Joseph Myers <joseph@codesourcery.com>
32633
32634 * include/math.h (roundeven): Change hidden_proto call to
32635 __roundeven.
32636 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
32637 alias.
32638 [NO_LONG_DOUBLE] (__j0l): New strong alias.
32639 (y0): Rename to __y0 and define as weak alias.
32640 [NO_LONG_DOUBLE] (__y0l): New strong alias.
32641 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
32642 alias.
32643 (y0f): Rename to __y0f and define as weak alias.
32644 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
32645 alias.
32646 [NO_LONG_DOUBLE] (__j1l): New strong alias.
32647 (y1): Rename to __y1 and define as weak alias.
32648 [NO_LONG_DOUBLE] (__y1l): New strong alias.
32649 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
32650 alias.
32651 (y1f): Rename to __y1f and define as weak alias.
32652 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
32653 alias.
32654 [NO_LONG_DOUBLE] (__jnl): New strong alias.
32655 (yn): Rename to __yn and define as weak alias.
32656 [NO_LONG_DOUBLE] (__ynl): New strong alias.
32657 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
32658 alias.
32659 (ynf): Rename to __ynf and define as weak alias.
32660 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
32661 (fromfp): Define as weak alias.
32662 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
32663 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
32664 (fromfpx): Define as weak alias.
32665 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
32666 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
32667 __getpayload and define as weak alias.
32668 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
32669 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
32670 __roundeven and define as weak alias.
32671 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
32672 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
32673 __setpayload.
32674 (setpayload): Define as weak alias.
32675 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
32676 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
32677 __setpayloadsig.
32678 (setpayloadsig): Define as weak alias.
32679 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
32680 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
32681 __totalorder and define as weak alias.
32682 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
32683 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
32684 to __totalordermag and define as weak alias.
32685 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
32686 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
32687 (ufromfp): Define as weak alias.
32688 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
32689 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
32690 __ufromfpx.
32691 (ufromfpx): Define as weak alias.
32692 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
32693 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
32694 Rename to __getpayload and define as weak alias.
32695 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
32696 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
32697 Rename to __roundeven and define as weak alias.
32698 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
32699 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
32700 Rename to __totalorder and define as weak alias.
32701 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
32702 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
32703 (totalordermag): Rename to __totalordermag and define as weak
32704 alias.
32705 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
32706 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
32707 macro.
32708 (__roundevenl): Likewise.
32709 (__totalorderl): Likewise.
32710 (__totalordermagl): Likewise
32711 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
32712 __fromfpf128.
32713 (fromfpf128): Define as weak alias.
32714 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
32715 __fromfpxf128.
32716 (fromfpxf128): Define as weak alias.
32717 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
32718 __setpayloadf128.
32719 (setpayloadf128): Define as weak alias.
32720 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
32721 __setpayloadsigf128.
32722 (setpayloadsigf128): Define as weak alias.
32723 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
32724 __ufromfpf128.
32725 (ufromfpf128): Define as weak alias.
32726 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
32727 __ufromfpxf128.
32728 (ufromfpxf128): Define as weak alias.
32729 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
32730 (fromfpf): Define as weak alias.
32731 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
32732 __fromfpxf.
32733 (fromfpxf): Define as weak alias.
32734 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
32735 __getpayloadf and define as weak alias.
32736 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
32737 __roundevenf and define as weak alias.
32738 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
32739 __setpayloadf.
32740 (setpayloadf): Define as weak alias.
32741 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
32742 __setpayloadsigf.
32743 (setpayloadsigf): Define as weak alias.
32744 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
32745 __totalorderf and define as weak alias.
32746 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
32747 Rename to __totalordermagf and define as weak alias.
32748 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
32749 __ufromfpf.
32750 (ufromfpf): Define as weak alias.
32751 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
32752 __ufromfpxf.
32753 (ufromfpxf): Define as weak alias.
32754 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
32755 __fromfpl.
32756 (fromfpl): Define as weak alias.
32757 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
32758 __fromfpxl.
32759 (fromfpxl): Define as weak alias.
32760 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
32761 to __getpayloadl and define as weak alias.
32762 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
32763 __roundevenl and define as weak alias.
32764 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
32765 __setpayloadl.
32766 (setpayloadl): Define as weak alias.
32767 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
32768 __setpayloadsigl.
32769 (setpayloadsigl): Define as weak alias.
32770 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
32771 to __totalorderl and define as weak alias.
32772 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
32773 Rename to __totalordermagl and define as weak alias.
32774 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
32775 __ufromfpl.
32776 (ufromfpl): Define as weak alias.
32777 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
32778 __ufromfpxl.
32779 (ufromfpxl): Define as weak alias.
32780 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
32781 __fromfpl.
32782 (fromfpl): Define as weak alias.
32783 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
32784 __fromfpxl.
32785 (fromfpxl): Define as weak alias.
32786 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
32787 Rename to __getpayloadl and define as weak alias.
32788 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
32789 to __roundevenl and define as weak alias. Call __roundeven
32790 instead of roundeven.
32791 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
32792 __setpayloadl.
32793 (setpayloadl): Define as weak alias.
32794 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
32795 __setpayloadsigl.
32796 (setpayloadsigl): Define as weak alias.
32797 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
32798 Rename to __totalorderl and define as weak alias.
32799 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
32800 Rename to __totalordermagl and define as weak alias.
32801 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
32802 __ufromfpl.
32803 (ufromfpl): Define as weak alias.
32804 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
32805 __ufromfpxl.
32806 (ufromfpxl): Define as weak alias.
32807 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
32808 __fromfpl.
32809 (fromfpl): Define as weak alias.
32810 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
32811 __fromfpxl.
32812 (fromfpxl): Define as weak alias.
32813 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
32814 __getpayloadl and define as weak alias.
32815 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
32816 __roundevenl and define as weak alias.
32817 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
32818 __setpayloadl.
32819 (setpayloadl): Define as weak alias.
32820 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
32821 __setpayloadsigl.
32822 (setpayloadsigl): Define as weak alias.
32823 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
32824 __totalorderl and define as weak alias.
32825 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
32826 Rename to __totalordermagl and define as weak alias.
32827 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
32828 __ufromfpl.
32829 (ufromfpl): Define as weak alias.
32830 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
32831 __ufromfpxl.
32832 (ufromfpxl): Define as weak alias.
32833
32834 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
32835
32836 * benchtests/bench-string.h (realloc_bufs): New function.
32837 (test_init): Call it.
32838 * benchtests/bench-memset-large.c (do_test): Likewise.
32839 * benchtests/bench-memset.c (do_test): Likewise.
32840
32841 * benchtests/bench-memset-large.c: Print output in JSON
32842 format.
32843 * benchtests/bench-memset.c: Likewise.
32844
32845 2017-09-14 Mike FABIAN <mfabian@redhat.com>
32846
32847 [BZ #21084]
32848 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
32849 * iconvdata/Makefile: Add IBM858.
32850 * iconvdata/gconv-modules: Likewise.
32851 * iconvdata/tst-tables.sh: Likewise.
32852 * iconvdata/ibm858.c: New file.
32853 * localedata/charmaps/IBM858: Likewise.
32854
32855 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
32856
32857 [BZ #22023]
32858 * locales/niu_NZ (LC_TIME): copy "niu_NU".
32859 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
32860
32861 2017-09-14 Mike FABIAN <mfabian@redhat.com>
32862
32863 [BZ #22112]
32864 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
32865 and add tel_int_fmt.
32866
32867 2017-09-14 Joseph Myers <joseph@codesourcery.com>
32868
32869 * sysdeps/generic/libm-alias-float128.h: New file.
32870 * sysdeps/generic/math-type-macros-float128.h: Include
32871 <libm-alias-float128.h>.
32872 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
32873
32874 2017-09-13 Joseph Myers <joseph@codesourcery.com>
32875
32876 * sysdeps/generic/libm-alias-ldouble.h: New file.
32877 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
32878 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
32879 * sysdeps/generic/math-type-macros-ldouble.h: Include
32880 <libm-alias-ldouble.h>.
32881 [!declare_mgen_alias] (declare_mgen_alias): Define to use
32882 libm_alias_ldouble.
32883
32884 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
32885
32886 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
32887 * math/w_exp_compat.c: ... here.
32888 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
32889 * math/w_expf_compat.c: ... here.
32890 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
32891 * math/w_expl_compat.c: ... here.
32892 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
32893 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
32894 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
32895 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
32896
32897 2017-09-13 Joseph Myers <joseph@codesourcery.com>
32898
32899 * math/w_scalbln_template.c (strong_alias): Do not undefine and
32900 redefine.
32901 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
32902 macro.
32903 (ldexpl): Only define as compat symbol for libc, not libm.
32904 (scalbnl): Define as compat symbol for libc here.
32905 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
32906 define for [IS_IN (libc)].
32907 (__ldexpl_2): Remove alias.
32908 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
32909 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
32910 name in long_double_symbol call.
32911 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
32912 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
32913 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
32914 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
32915 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
32916 Remove macro.
32917 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
32918 Define as compat symbol.
32919
32920 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32921
32922 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
32923 * sysdeps/unix/sysv/linux/alpha/Makefile
32924 [$(subdir) = csu] (sysdep_routines): Remove rule.
32925
32926 2017-09-13 Joseph Myers <joseph@codesourcery.com>
32927
32928 * sysdeps/generic/libm-alias-double.h: New file.
32929 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
32930 * sysdeps/generic/math-type-macros-double.h: Include
32931 <libm-alias-double.h>.
32932 [declare_mgen_alias] (declare_mgen_alias): Define to use
32933 libm_alias_double.
32934 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
32935 (M_LIBM_NEED_COMPAT): Remove macro.
32936 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
32937 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
32938 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
32939 code.
32940 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32941 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32942 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32943 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32944 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32945 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32946 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32947 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32948 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32949 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32950 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32951 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32952 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32953 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32954 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32955 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32956 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32957 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32958 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32959 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32960 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32961 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32962 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32963 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32964 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32965 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32966 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
32967 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
32968 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
32969 macro.
32970 (declare_mgen_alias): New macro.
32971 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
32972 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
32973 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
32974 (M_LIBM_NEED_COMPAT): Remove macro.
32975 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
32976 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
32977 <first-versions.h>.
32978 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
32979 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
32980
32981 2017-09-12 Joseph Myers <joseph@codesourcery.com>
32982
32983 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
32984 (declare_mgen_alias_2): Remove.
32985 * sysdeps/generic/math-type-macros-double.h
32986 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
32987 Likewise.
32988 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
32989 alias.
32990 (ldexp): Define with declare_mgen_alias.
32991 (scalbn): Likewise.
32992
32993 2017-09-12 Steve Ellcey <sellcey@cavium.com>
32994
32995 * grp/initgroups.c: Include config.h.
32996 (DEFAULT_CONFIG): New macro.
32997 (internal_getgrouplist): Use DEFAULT_CONFIG.
32998 * nscd/initgrcache.c (addinitgroupsX): Likewise.
32999 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
33000 (DEFAULT_DEFCONFIG): New macro.
33001 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
33002 * nss/grp-lookup.c: Include config.h
33003 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
33004 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
33005 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
33006 * manual/nss.texi: Update default values section.
33007
33008 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
33009
33010 [BZ #21967]
33011 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
33012 New.
33013 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
33014 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
33015 Handle MathVec_Prefer_No_AVX512.
33016 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
33017 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
33018 is set.
33019
33020 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
33021
33022 * posix/sched_primax.c (__sched_get_priority_max): Add
33023 libc_hidden_def.
33024 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
33025 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
33026 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
33027 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
33028 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
33029 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
33030 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
33031 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
33032 Add aliases.
33033
33034 2017-09-11 Joseph Myers <joseph@codesourcery.com>
33035
33036 * sysdeps/generic/libm-alias-float.h: New file.
33037 * sysdeps/generic/math-type-macros-float.h: Include
33038 <libm-alias-float.h>.
33039 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
33040
33041 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
33042
33043 [BZ #22093]
33044 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
33045 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
33046 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
33047 (HWCAP_IMPORTANT): Likewise.
33048 (HWCAP_X86_64): New enum.
33049 (HWCAP_X86_AVX512_1): Updated.
33050 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
33051 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
33052 (modules-names): Add x86_64/tst-x86_64mod-1.
33053 (LDFLAGS-tst-x86_64mod-1.so): New.
33054 ($(objpfx)tst-x86_64-1): Likewise.
33055 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
33056 (tst-x86_64-1-clean): Likewise.
33057 * sysdeps/x86_64/tst-x86_64-1.c: New file.
33058 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
33059
33060 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
33061
33062 * po/sv.po: Update translations.
33063 * po/fr.po: Likewise.
33064
33065 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
33066
33067 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
33068 seconds.
33069 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
33070 seconds.
33071 * elf/rtld-Rules: Fix $(error) use.
33072
33073 2017-09-09 Mike FABIAN <mfabian@redhat.com>
33074
33075 [BZ #14925]
33076 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
33077 * locale/iso-639.def: Change “Bengali” to “Bangla”.
33078 * localedata/locales/bn_BD: “Bengali” was still used in some
33079 comments. Change it to “Bangla”.
33080
33081 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
33082
33083 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
33084
33085 2017-09-08 Steve Ellcey <sellcey@cavium.com>
33086
33087 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
33088 thunderx2t99p1 to list of cpu names.
33089 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
33090 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
33091
33092 2017-09-08 Steve Ellcey <sellcey@cavium.com>
33093
33094 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
33095 Use strcmp instead of tunable_is_name.
33096
33097 2017-09-08 Joseph Myers <joseph@codesourcery.com>
33098
33099 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
33100 (F_GET_RW_HINT): New macro.
33101 [__USE_GNU] (F_SET_RW_HINT): Likewise.
33102 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
33103 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
33104 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
33105 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
33106 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
33107 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
33108 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
33109 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
33110
33111 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
33112 (F_ADD_SEALS): New macro.
33113 [__USE_GNU] (F_GET_SEALS): Likewise.
33114 [__USE_GNU] (F_SEAL_SEAL): Likewise.
33115 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
33116 [__USE_GNU] (F_SEAL_GROW): Likewise.
33117 [__USE_GNU] (F_SEAL_WRITE): Likewise.
33118
33119 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33120
33121 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
33122 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
33123 * posix/glob_internal.h (__glob_pattern_type):
33124 * posix/glob.c (glob):
33125 * posix/glob_pattern_p.c (__glob_pattern_p):
33126 Use them.
33127
33128 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
33129 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
33130 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
33131 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
33132 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
33133 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
33134 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
33135 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
33136 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
33137 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
33138 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
33139 * sysdeps/wordsize-64/glob.c: Likewise.
33140 * sysdeps/wordsize-64/glob64.c: Likewise.
33141 * sysdeps/wordsize-64/globfree.c: Likewise.
33142 * sysdeps/wordsize-64/globfree64.c: Likewise.
33143 * sysdeps/unix/sysv/linux/glob.c: New file.
33144 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
33145 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
33146 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
33147 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
33148 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
33149 adds !GLOB_NO_OLD_VERSION as an extra condition.
33150 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
33151 using relative path instead of absolute one.
33152 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
33153 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
33154 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
33155 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
33156 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
33157 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
33158
33159 [BZ #1062]
33160 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
33161 (glob): Use the same scratch buffer for both getlogin_r and
33162 getpwnam_r. Don’t require preallocation of the login name. This
33163 simplifies storage allocation, and corrects the handling of
33164 long login names.
33165
33166 [BZ #1062]
33167 * posix/glob.c (glob): Port recent patches to platforms
33168 lacking getpwnam_r.
33169 (glob): Fix longstanding misuse of errno after getpwnam_r, which
33170 returns an error number rather than setting errno.
33171
33172 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
33173 instead of GCC extension.
33174 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
33175 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
33176 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
33177
33178 [BZ #866]
33179 [BZ #1062]
33180 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
33181 * posix/bug-glob1.c: Remove file.
33182 * posix/tst-glob_symlinks.c: New file.
33183 * posix/glob.c (__lstat64): New macro.
33184 (is_dir): New function.
33185 (glob, glob_in_dir): Match symlinks even if they are dangling.
33186 (link_stat, link_exists_p): Remove. All uses removed.
33187
33188 [BZ #1062]
33189 [BZ #19971]
33190 * posix/glob.c (struct readdir_result): Remove skip_entry member.
33191 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
33192 All uses removed.
33193
33194 [BZ #1062]
33195 CVE-2017-15671
33196 * posix/Makefile (routines): Add globfree, globfree64, and
33197 glob_pattern_p.
33198 * posix/flexmember.h: New file.
33199 * posix/glob_internal.h: Likewise.
33200 * posix/glob_pattern_p.c: Likewise.
33201 * posix/globfree.c: Likewise.
33202 * posix/globfree64.c: Likewise.
33203 * sysdeps/gnu/globfree64.c: Likewise.
33204 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
33205 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
33206 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
33207 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
33208 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
33209 * sysdeps/wordsize-64/globfree.c: Likewise.
33210 * sysdeps/wordsize-64/globfree64.c: Likewise.
33211 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
33212 [NDEBUG): Remove comments.
33213 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
33214 (dirent_type): New type. Use uint_fast8_t not
33215 uint8_t, as C99 does not require uint8_t.
33216 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
33217 (struct readdir_result): Use dirent_type. Do not define skip_entry
33218 unless it is needed; this saves a byte on platforms lacking d_ino.
33219 (readdir_result_type, readdir_result_skip_entry):
33220 New functions, replacing ...
33221 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
33222 these functions, which were removed. This makes the callers
33223 easier to read. All callers changed.
33224 (D_INO_TO_RESULT): Now empty if there is no d_ino.
33225 (size_add_wrapv, glob_use_alloca): New static functions.
33226 (glob, glob_in_dir): Check for size_t overflow in several places,
33227 and fix some size_t checks that were not quite right.
33228 Remove old code using SHELL since Bash no longer
33229 uses this.
33230 (glob, prefix_array): Separate MS code better.
33231 (glob_in_dir): Remove old Amiga and VMS code.
33232 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
33233 separate files.
33234 (glob_in_dir): Do not rely on undefined behavior in accessing
33235 struct members beyond their bounds. Use a flexible array member
33236 instead
33237 (link_stat): Rename from link_exists2_p and return -1/0 instead of
33238 0/1. Caller changed.
33239 (glob): Fix memory leaks.
33240 * posix/glob64 (globfree64): Move to separate file.
33241 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
33242 (globfree64): Remove hidden alias.
33243 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
33244 oldglob.
33245 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
33246 separate file.
33247 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
33248 define.
33249 Move compat code to separate file.
33250 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
33251 separate file.
33252
33253 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
33254
33255 * resolv/tst-resolv-qtypes.c (domain): Changed to
33256 "const char domain[] =".
33257
33258 2017-09-07 Joseph Myers <joseph@codesourcery.com>
33259
33260 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
33261 version to 3.1.6.
33262
33263 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
33264 (TCP_MD5SIG_EXT): Likewise.
33265 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
33266 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
33267 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
33268
33269 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
33270
33271 2017-09-07 Mike FABIAN <mfabian@redhat.com>
33272
33273 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
33274
33275 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
33276
33277 [BZ #22100]
33278 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
33279
33280 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
33281
33282 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
33283 before assuming that the file is empty. Avoid testing buffer content
33284 when nread == 0.
33285
33286 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33287
33288 [BZ #18858]
33289 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
33290 Remove define.
33291 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
33292 Likewise.
33293 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
33294 Likewise.
33295 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
33296 Likewise.
33297 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
33298 Likewise.
33299 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
33300 Likewise.
33301 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
33302 Likewise.
33303
33304 2017-09-06 Florian Weimer <fweimer@redhat.com>
33305
33306 * malloc/dynarray_emplace_enlarge.c
33307 (__libc_dynarray_emplace_enlarge): Add missing else.
33308
33309 2017-09-06 Florian Weimer <fweimer@redhat.com>
33310
33311 [BZ #22096]
33312 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
33313 case of failure to obtain the global conf object.
33314
33315 2017-09-06 Florian Weimer <fweimer@redhat.com>
33316
33317 [BZ #22095]
33318 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
33319 dynarray allocation failure.
33320
33321 2017-09-06 Florian Weimer <fweimer@redhat.com>
33322
33323 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
33324 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
33325 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
33326 New functions.
33327 (response): Call them. Add 'p', '6' flag processing.
33328 (test_reverse): New function.
33329 (test_get2_any): Call it.
33330 (test_no_inet6): Add 'p' test.
33331 (test_inet6): Likewise.
33332
33333 2017-09-06 Florian Weimer <fweimer@redhat.com>
33334
33335 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
33336 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
33337 the QNAME.
33338 (test_gai): Adjust query names. Add additional tests.
33339 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
33340 test_get2. Adjust query names. Add additional tests.
33341 (test_no_inet6): New function, extracted from threadfunc.
33342 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
33343 Add additional tests.
33344
33345 2017-09-06 Mike FABIAN <mfabian@redhat.com>
33346
33347 [BZ #22070]
33348 * localedata/unicode-gen/utf8_gen.py: Set the width for
33349 characters with Prepended_Concatenation_Mark property to 1
33350 * localedata/charmaps/UTF-8: Updated using the improved script.
33351
33352 2017-09-06 Mike FABIAN <mfabian@redhat.com>
33353
33354 [BZ #21750]
33355 * localedata/unicode-gen/utf8_gen.py: Improve the script to
33356 use the range notation for all ranges of neighbouring characters
33357 with the same width.
33358
33359 2017-09-05 Joseph Myers <joseph@codesourcery.com>
33360
33361 * sysdeps/generic/math-type-macros-double.h: Include
33362 <math-svid-compat.h>.
33363 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
33364 * sysdeps/generic/math-type-macros-float.h: Include
33365 <math-svid-compat.h>.
33366 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
33367 * sysdeps/generic/math-type-macros-ldouble.h: Include
33368 <math-svid-compat.h>.
33369 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
33370 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
33371 condition.
33372 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
33373 * math/w_acosf_compat.c: Likewise.
33374 * math/w_acosh_compat.c: Likewise.
33375 * math/w_acoshf_compat.c: Likewise.
33376 * math/w_acoshl_compat.c: Likewise.
33377 * math/w_acosl_compat.c: Likewise.
33378 * math/w_asin_compat.c: Likewise.
33379 * math/w_asinf_compat.c: Likewise.
33380 * math/w_asinl_compat.c: Likewise.
33381 * math/w_atan2_compat.c: Likewise.
33382 * math/w_atan2f_compat.c: Likewise.
33383 * math/w_atan2l_compat.c: Likewise.
33384 * math/w_atanh_compat.c: Likewise.
33385 * math/w_atanhf_compat.c: Likewise.
33386 * math/w_atanhl_compat.c: Likewise.
33387 * math/w_cosh_compat.c: Likewise.
33388 * math/w_coshf_compat.c: Likewise.
33389 * math/w_coshl_compat.c: Likewise.
33390 * math/w_exp10_compat.c: Likewise.
33391 * math/w_exp10f_compat.c: Likewise.
33392 * math/w_exp10l_compat.c: Likewise.
33393 * math/w_exp2_compat.c: Likewise.
33394 * math/w_exp2f_compat.c: Likewise.
33395 * math/w_exp2l_compat.c: Likewise.
33396 * math/w_fmod_compat.c: Likewise.
33397 * math/w_fmodf_compat.c: Likewise.
33398 * math/w_fmodl_compat.c: Likewise.
33399 * math/w_hypot_compat.c: Likewise.
33400 * math/w_hypotf_compat.c: Likewise.
33401 * math/w_hypotl_compat.c: Likewise.
33402 * math/w_j0_compat.c: Likewise.
33403 * math/w_j0f_compat.c: Likewise.
33404 * math/w_j0l_compat.c: Likewise.
33405 * math/w_j1_compat.c: Likewise.
33406 * math/w_j1f_compat.c: Likewise.
33407 * math/w_j1l_compat.c: Likewise.
33408 * math/w_jn_compat.c: Likewise.
33409 * math/w_jnf_compat.c: Likewise.
33410 * math/w_jnl_compat.c: Likewise.
33411 * math/w_lgamma_r_compat.c: Likewise.
33412 * math/w_lgammaf_r_compat.c: Likewise.
33413 * math/w_lgammal_r_compat.c: Likewise.
33414 * math/w_log10_compat.c: Likewise.
33415 * math/w_log10f_compat.c: Likewise.
33416 * math/w_log10l_compat.c: Likewise.
33417 * math/w_log2_compat.c: Likewise.
33418 * math/w_log2f_compat.c: Likewise.
33419 * math/w_log2l_compat.c: Likewise.
33420 * math/w_log_compat.c: Likewise.
33421 * math/w_logf_compat.c: Likewise.
33422 * math/w_logl_compat.c: Likewise.
33423 * math/w_pow_compat.c: Likewise.
33424 * math/w_powf_compat.c: Likewise.
33425 * math/w_powl_compat.c: Likewise.
33426 * math/w_remainder_compat.c: Likewise.
33427 * math/w_remainderf_compat.c: Likewise.
33428 * math/w_remainderl_compat.c: Likewise.
33429 * math/w_sinh_compat.c: Likewise.
33430 * math/w_sinhf_compat.c: Likewise.
33431 * math/w_sinhl_compat.c: Likewise.
33432 * math/w_sqrt_compat.c: Likewise.
33433 * math/w_sqrtf_compat.c: Likewise.
33434 * math/w_sqrtl_compat.c: Likewise.
33435 * math/w_tgamma_compat.c: Likewise.
33436 * math/w_tgammaf_compat.c: Likewise.
33437 * math/w_tgammal_compat.c: Likewise.
33438 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
33439 [LIBM_SVID_COMPAT].
33440 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
33441 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
33442 [LIBM_SVID_COMPAT].
33443 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
33444 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
33445 [LIBM_SVID_COMPAT].
33446 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
33447 * sysdeps/i386/fpu/w_sqrt.c: New file.
33448 * sysdeps/ia64/fpu/w_acos.c: Likewise.
33449 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
33450 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
33451 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
33452 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
33453 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
33454 * sysdeps/ia64/fpu/w_asin.c: Likewise.
33455 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
33456 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
33457 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
33458 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
33459 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
33460 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
33461 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
33462 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
33463 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
33464 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
33465 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
33466 * sysdeps/ia64/fpu/w_exp.c: Likewise.
33467 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
33468 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
33469 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
33470 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
33471 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
33472 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
33473 * sysdeps/ia64/fpu/w_expf.c: Likewise.
33474 * sysdeps/ia64/fpu/w_expl.c: Likewise.
33475 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
33476 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
33477 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
33478 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
33479 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
33480 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
33481 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
33482 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
33483 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
33484 * sysdeps/ia64/fpu/w_log.c: Likewise.
33485 * sysdeps/ia64/fpu/w_log10.c: Likewise.
33486 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
33487 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
33488 * sysdeps/ia64/fpu/w_log2.c: Likewise.
33489 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
33490 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
33491 * sysdeps/ia64/fpu/w_logf.c: Likewise.
33492 * sysdeps/ia64/fpu/w_logl.c: Likewise.
33493 * sysdeps/ia64/fpu/w_pow.c: Likewise.
33494 * sysdeps/ia64/fpu/w_powf.c: Likewise.
33495 * sysdeps/ia64/fpu/w_powl.c: Likewise.
33496 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
33497 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
33498 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
33499 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
33500 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
33501 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
33502 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
33503 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
33504 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
33505 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
33506 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
33507 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
33508 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
33509 [LIBM_SVID_COMPAT].
33510 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
33511 * sysdeps/ieee754/k_standard.c: Likewise.
33512 * sysdeps/ieee754/k_standardf.c: Likewise.
33513 * sysdeps/ieee754/k_standardl.c: Likewise.
33514 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
33515 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
33516 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
33517 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
33518 long_double_symbol call on [LIBM_SVID_COMPAT].
33519 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
33520 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
33521 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
33522 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
33523 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
33524 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
33525 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
33526 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
33527 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
33528 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
33529 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
33530 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
33531 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
33532 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
33533 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
33534 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
33535 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
33536 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
33537 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
33538 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
33539 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
33540 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
33541
33542 2017-09-05 Steve Ellcey <sellcey@cavium.com>
33543
33544 * include/shlib-compat.h (TEST_COMPAT): New Macro.
33545 * malloc/tst-mallocstate.c: Convert from test-skeleton
33546 to test-driver. Ifdef code using TEST_COMPAT macro.
33547 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
33548 * math/test-matherr.c: Likewise.
33549
33550 2017-09-05 Joseph Myers <joseph@codesourcery.com>
33551
33552 [BZ #22086]
33553 * debug/pcprofiledump.c (main): Use byte-swapped mask when
33554 comparing word with byte-swapped constant.
33555
33556 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
33557
33558 [BZ #20498]
33559 * locale/iso-639.def: add Miskito.
33560 * localedata/SUPPORTED: Add miq_NI/UTF-8.
33561 * localedata/locales/miq_NI: New file.
33562
33563 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
33564
33565 [BZ #18822]
33566 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
33567 (__mkdir): Likewise.
33568 * io/chmod.c (__chmod): Add libc_hidden_def.
33569 * io/mkdir.c (__mkdir): Likewise.
33570 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
33571 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
33572 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
33573 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
33574
33575 2017-09-04 Joseph Myers <joseph@codesourcery.com>
33576
33577 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
33578 version to 4.13.
33579
33580 [BZ #22082]
33581 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
33582 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
33583
33584 2017-09-04 Florian Weimer <fweimer@redhat.com>
33585
33586 * math/math.h: Issue warning if log is defined.
33587
33588 2017-09-04 Joseph Myers <joseph@codesourcery.com>
33589
33590 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
33591 kernel version to 4.13.
33592
33593 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
33594
33595 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
33596 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
33597 parameter.
33598 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
33599 just <bits/types.h>.
33600 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
33601 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
33602 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
33603 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
33604 * misc/preadv2.c: Include <errno.h>.
33605 * misc/preadv64v2.c: Include <errno.h>.
33606 * misc/pwritev2.c: Include <errno.h>.
33607 * misc/pwritev64v2.c: Include <errno.h>.
33608 * sysdeps/posix/preadv2.c: Include <errno.h>.
33609 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
33610 Fix <unistd.h> inclusion.
33611 * sysdeps/posix/pwritev2.c: Include <errno.h>.
33612 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
33613 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
33614 __strtoul_internal): New functions.
33615 * sysdeps/posix/pause.c: Include <sigsetops.h>.
33616 * sysdeps/posix/system.c: Include <sigsetops.h>.
33617 * sysdeps/mach/hurd/i386/Makefile
33618 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
33619 [$(subdir) = csu] (sysdep-only-routines): Likewise.
33620 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
33621 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
33622 __feraiseexcept_renamed to feraiseexcept instead of
33623 __GI_feraiseexcept.
33624 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
33625 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
33626 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
33627 RWF_NOWAIT): Define to 0 if undefined already.
33628 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
33629 boils down to 0.
33630 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
33631 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
33632
33633 2017-09-01 Joseph Myers <joseph@codesourcery.com>
33634
33635 * manual/math.texi (pow10): Do not document.
33636 (pow10f): Likewise.
33637 (pow10l): Likewise.
33638 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
33639 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
33640 * math/libm-test-exp10.inc (pow10_test): Remove.
33641 (do_test): Do not call pow10.
33642 * math/w_exp10_compat.c (pow10): Make into compat symbol.
33643 [NO_LONG_DOUBLE] (pow10l): Likewise.
33644 * math/w_exp10f_compat.c (pow10f): Likewise.
33645 * math/w_exp10l_compat.c (pow10l): Likewise.
33646 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
33647 (pow10): Make into compat symbol.
33648 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
33649 (pow10f): Make into compat symbol.
33650 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
33651 (pow10l): Make into compat symbol.
33652 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
33653 pow10.
33654 (CFLAGS-nldbl-pow10.c): Remove variable..
33655 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
33656 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
33657 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
33658 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
33659 Undefine and redefine.
33660 (pow10l): Make into compat symbol.
33661 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
33662 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
33663 * sysdeps/arm/libm-test-ulps: Likewise.
33664 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
33665 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
33666 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
33667 * sysdeps/microblaze/libm-test-ulps: Likewise.
33668 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
33669 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
33670 * sysdeps/nios2/libm-test-ulps: Likewise.
33671 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
33672 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
33673 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
33674 * sysdeps/sh/libm-test-ulps: Likewise.
33675 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
33676 * sysdeps/tile/libm-test-ulps: Likewise.
33677 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33678
33679 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
33680
33681 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
33682
33683 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
33684
33685 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
33686 "../ChangeLog.old/ChangeLog.8".
33687 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
33688 "../ChangeLog.old/ChangeLog.14".
33689
33690 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
33691
33692 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
33693 Threads Library.
33694
33695 2017-09-01 Joseph Myers <joseph@codesourcery.com>
33696
33697 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
33698
33699 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
33700
33701 * csu/version.c (banner): Remove "by Roland McGrath et al.".
33702 * nptl/Banner: Remove "by Ulrich Drepper et al.".
33703
33704 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
33705
33706 * stdlib/tst-atexit-common.c (do_test): Test support for at least
33707 32 atexit handlers.
33708
33709 2017-09-01 Zack Weinberg <zackw@panix.com>
33710
33711 * math/math.h (HUGE_VAL): Improve commentary.
33712
33713 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33714 Andreas Schwab <schwab@suse.de>
33715
33716 [BZ #21530]
33717 * include/stdio.h (__gen_tempfd): New function.
33718 * stdio-common/Makefile (routines): Add gentempfd.
33719 * stdio-common/gentempfd.c: New file.
33720 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
33721 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
33722 unnamed file first.
33723
33724 2017-09-01 Florian Weimer <fweimer@redhat.com>
33725
33726 [BZ #21915]
33727 [BZ #21922]
33728 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
33729 result to determine success or failure, not the errno value.
33730 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
33731 (tst-nss-files-hosts-erange): Link with -ldl.
33732 * nss/tst-nss-files-hosts-erange.c: New file.
33733 * nss/tst-resolv-basic.c (response): Handle nodata.example.
33734 (do_test): Add NO_DATA tests.
33735 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
33736 (do_test): Call it.
33737
33738 2017-09-01 Florian Weimer <fweimer@redhat.com>
33739
33740 [BZ #21922]
33741 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
33742 coming from gethostbyname2_r.
33743
33744 2017-09-01 Florian Weimer <fweimer@redhat.com>
33745
33746 * support/namespace.h (struct support_chroot_configuration): Add
33747 hosts, host_conf.
33748 (struct support_chroot): Add path_hosts, path_host_conf.
33749 * support/support_chroot.c (write_file): New function.
33750 (support_chroot_create): Call it to process /etc/resolv.conf,
33751 /etc/hosts, /etc/host.conf.
33752 (support_chroot_free): Update.
33753
33754 2017-09-01 Florian Weimer <fweimer@redhat.com>
33755
33756 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
33757 status indicates it is set.
33758
33759 2017-09-01 Florian Weimer <fweimer@redhat.com>
33760
33761 [BZ #20532]
33762 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
33763 function lookup failures more reliable.
33764
33765 2017-09-01 Florian Weimer <fweimer@redhat.com>
33766
33767 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
33768 (getcanonname): Likewise.
33769 (gaih_inet): Likewise.
33770
33771 2017-09-01 Florian Weimer <fweimer@redhat.com>
33772
33773 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
33774 (getcanonname): Likewise.
33775 (gaih_inet): Likewise.
33776
33777 2017-08-31 Steve Ellcey <sellcey@cavium.com>
33778 Richard Henderson <rth@twiddle.net>
33779
33780 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
33781 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
33782 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
33783 (IREG_SIZE, OREG_SIZE): New macros.
33784 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
33785 (IREG_SIZE, OREG_SIZE): New macros.
33786 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
33787 (IREG_SIZE): New macro.
33788 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
33789 (IREG_SIZE): New macro.
33790 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
33791 New includes.
33792 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
33793 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
33794 (__CONCATX): Handle exceptions correctly on large values that may
33795 set FE_INVALID.
33796 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
33797 Initialize if not already set.
33798 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
33799
33800 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33801
33802 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
33803 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
33804 Likewise.
33805 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
33806 Likewise.
33807 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
33808 Likewise.
33809 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
33810 Likewise.
33811 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
33812 Likewise.
33813 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
33814 Likewise.
33815 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
33816 Likewise.
33817 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
33818 (NO_CANCELLATION): Likewise.
33819 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
33820 Likewise.
33821 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
33822 Likewise.
33823 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
33824 Likewise.
33825 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
33826 (NO_CANCELLATION): Likewise.
33827 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
33828 (NO_CANCELLATION): Likewise.
33829 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
33830 Likewise
33831 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
33832 Likewise.
33833 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
33834 Likewise.
33835 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
33836 Likewise.
33837 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
33838 hidden prototype.
33839 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
33840 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
33841
33842 2017-08-31 Steve Ellcey <sellcey@cavium.com>
33843
33844 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
33845 in resolver call.
33846
33847 2017-08-31 Florian Weimer <fweimer@redhat.com>
33848
33849 * include/libc-symbols.h (internal_function): Remove.
33850
33851 2017-08-31 Florian Weimer <fweimer@redhat.com>
33852
33853 * stdlib/fmtmsg.c (internal_addseverity): Remove
33854 internal_function.
33855
33856 2017-08-31 Florian Weimer <fweimer@redhat.com>
33857
33858 * stdio-common/printf_fp.c (group_number): Remove
33859 internal_function.
33860 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
33861
33862 2017-08-31 Florian Weimer <fweimer@redhat.com>
33863
33864 * posix/fnmatch.c (internal_function): Remove definition.
33865 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
33866 * posix/regcomp.c (peek_token, init_word_char)
33867 (duplicate_node_closure, fetch_token, peek_token)
33868 (peek_token_bracket, build_range_exp, build_collating_symbol):
33869 Likewise.
33870 * posix/regex_internal.c (re_string_construct_common)
33871 (create_ci_newstate, create_cd_newstate, re_string_allocate)
33872 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
33873 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
33874 (re_string_translate_buffer, re_string_reconstruct)
33875 (re_string_peek_byte_case, re_string_fetch_byte_case)
33876 (re_string_destruct, re_string_context_at, re_node_set_alloc)
33877 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
33878 (re_node_set_add_intersect, re_node_set_init_union)
33879 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
33880 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
33881 (re_dfa_add_node, calc_state_hash, re_acquire_state)
33882 (re_acquire_state_context): Likewise.
33883 * posix/regex_internal.h (internal_function): Remove definition.
33884 (re_string_realloc_buffers, build_wcs_buffer)
33885 (build_wcs_upper_buffer, build_upper_buffer)
33886 (re_string_translate_buffer, re_string_context_at)
33887 (re_string_char_size_at, re_string_wchar_at)
33888 (re_string_elem_size_at): Likewise.
33889 * posix/regexec.c (match_ctx_init, match_ctx_clean)
33890 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
33891 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
33892 (re_search_internal, re_search_2_stub, re_search_stub)
33893 (re_copy_regs, prune_impossible_nodes, check_matching)
33894 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
33895 (free_fail_stack_return, sift_states_iter_mb)
33896 (sift_states_backward, build_sifted_states)
33897 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
33898 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
33899 (check_subexp_limits, sift_states_bkref, merge_state_array)
33900 (find_recover_state, transit_state, merge_state_with_log)
33901 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
33902 (transit_state_mb, transit_state_bkref, get_subexp)
33903 (get_subexp_sub, find_subexp_node, check_arrival)
33904 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
33905 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
33906 (check_node_accept_bytes, find_collation_sequence_value)
33907 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
33908 (acquire_init_state_context, check_halt_node_context)
33909 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
33910 (sub_epsilon_src_nodes): Likewise.
33911 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
33912 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
33913 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
33914 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
33915 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
33916 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
33917 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
33918 * sysdeps/posix/ttyname.c (getttyname): Likewise.
33919 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
33920 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
33921 (PREADV): Likewise.
33922 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
33923 (PREADV): Likewise.
33924 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
33925 (PWRITEV): Likewise.
33926 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
33927 (PWRITEV): Likewise.
33928 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
33929 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
33930
33931 2017-08-31 Florian Weimer <fweimer@redhat.com>
33932
33933 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
33934 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
33935 Remove internal_function.
33936 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
33937 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
33938 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
33939 (__deallocate_stack, __libc_pthread_init)
33940 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
33941 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
33942 (__libc_disable_asynccancel, __librt_disable_asynccancel):
33943 Likewise.
33944 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
33945 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
33946 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
33947 Likewise.
33948 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
33949 (__pthread_mutex_unlock_usercnt): Likewise.
33950
33951 2017-08-31 Florian Weimer <fweimer@redhat.com>
33952
33953 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
33954 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
33955 (fts_safe_changedir): Remove internal_function.
33956 * io/ftw.c (internal_function): Remove definition.
33957 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
33958
33959 2017-08-31 Florian Weimer <fweimer@redhat.com>
33960
33961 * inet/deadline.c (__deadline_current_time)
33962 (__deadline_from_timeval, __deadline_to_ms): Remove
33963 internal_function.
33964 * inet/getnameinfo.c (nrl_domainname): Likewise.
33965 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
33966 * inet/inet6_option.c (add_pad): Likewise.
33967 * inet/net-internal.h (__deadline_current_time)
33968 (__deadline_from_timeval, __deadline_to_ms): Likewise.
33969 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
33970 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
33971 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
33972
33973 2017-08-31 Joseph Myers <joseph@codesourcery.com>
33974
33975 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
33976 include <bits/nan.h>.
33977 * math/Makefile (headers): Remove bits/nan.h.
33978 * bits/nan.h: Remove.
33979 * sysdeps/ieee754/bits/nan.h: Likewise.
33980 * sysdeps/mips/bits/nan.h: Likewise.
33981
33982 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
33983 not include <bits/inf.h>.
33984 * math/Makefile (headers): Remove bits/inf.h.
33985 * bits/inf.h: Remove.
33986 * sysdeps/ieee754/bits/inf.h: Likewise.
33987
33988 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
33989 bits/huge_vall.h or bits/huge_val_flt128.h.
33990 (HUGE_VAL): Define directly here.
33991 [__USE_ISOC99] (HUGE_VALF): Likewise.
33992 [__USE_ISOC99] (HUGE_VALL): Likewise.
33993 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
33994 (HUGE_VAL_F128): Likewise.
33995 * math/Makefile (headers): Remove bits/huge_val.h,
33996 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
33997 * bits/huge_val.h: Remove.
33998 * bits/huge_val_flt128.h: Likewise.
33999 * bits/huge_valf.h: Likewise.
34000 * bits/huge_vall.h: Likewise.
34001 * sysdeps/ia64/bits/huge_vall.h: Likewise.
34002 * sysdeps/ieee754/bits/huge_val.h: Likewise.
34003 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
34004 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
34005 * sysdeps/sh/bits/huge_val.h: Likewise.
34006 * sysdeps/sparc/bits/huge_vall.h: Likewise.
34007 * sysdeps/x86/bits/huge_vall.h: Likewise.
34008
34009 2017-08-31 Florian Weimer <fweimer@redhat.com>
34010
34011 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
34012 internal_function.
34013 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
34014 Likewise.
34015 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
34016 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
34017 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
34018 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
34019 * elf/dl-fini.c (_dl_sort_fini): Likewise.
34020 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
34021 * elf/dl-libc.c (dlerror_run): Likewise.
34022 * elf/dl-load.c (add_name_to_object, decompose_rpath)
34023 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
34024 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
34025 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
34026 Likewise.
34027 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
34028 (_dl_higher_prime_number, _dl_strtoul): Likewise.
34029 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
34030 * elf/dl-profile.c (_dl_start_profile): Likewise.
34031 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
34032 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
34033 Likewise.
34034 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
34035 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
34036 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
34037 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
34038 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
34039 (_dl_allocate_tls_storage): Likewise.
34040 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
34041 (_dl_check_all_versions): Likewise.
34042 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
34043 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
34044 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
34045 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
34046 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
34047 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
34048 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
34049 internal_function from __dl_start.
34050 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
34051 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
34052 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
34053 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
34054 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
34055 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
34056 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
34057 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
34058 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
34059 (_dl_next_ld_env_entry, _dl_important_hwcaps)
34060 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
34061 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
34062 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
34063 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
34064 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
34065 Likewise.
34066 (struct rtld_global_ro): Remove internal_function from the
34067 _dl_lookup_symbol_x member.
34068 (_dl_symbol_value): Remove. No longer defined anywhere.
34069 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
34070 internal_function.
34071 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
34072 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
34073 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
34074 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
34075 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
34076 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
34077 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
34078 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
34079 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
34080 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
34081 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
34082 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
34083
34084 2017-08-31 Florian Weimer <fweimer@redhat.com>
34085
34086 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
34087 Remove internal_function.
34088 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
34089 Likewise.
34090 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
34091 Likewise.
34092
34093 2017-08-31 Florian Weimer <fweimer@redhat.com>
34094
34095 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
34096 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
34097 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
34098
34099 2017-08-31 Florian Weimer <fweimer@redhat.com>
34100
34101 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
34102 (__gai_enqueue_request): Remove internal_function.
34103 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
34104 (__gai_remove_request, __gai_notify, __gai_notify_only)
34105 (__gai_sigqueue): Likewise.
34106 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
34107 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
34108 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
34109 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
34110 Likewise.
34111
34112 2017-08-31 Florian Weimer <fweimer@redhat.com>
34113
34114 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
34115 * include/dirent.h (__opendirat, __getdents, __getdents64)
34116 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
34117 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
34118 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
34119 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
34120 Likewise.
34121 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
34122
34123 2017-08-31 Florian Weimer <fweimer@redhat.com>
34124
34125 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
34126 internal_function.
34127 (GETCWD_RETURN_TYPE): Likewise.
34128
34129 2017-08-31 Florian Weimer <fweimer@redhat.com>
34130
34131 * include/time.h (__tz_compute, __strptime_internal): Remove
34132 internal_function.
34133 * time/strptime_l.c (__strptime_internal): Likewise.
34134 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
34135
34136 2017-08-31 Florian Weimer <fweimer@redhat.com>
34137
34138 * iconv/gconv.c (__gconv): Remove internal_function.
34139 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
34140 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
34141 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
34142 (__gconv_release_cache): Likewise.
34143 * iconv/gconv_close.c (__gconv_close): Likewise.
34144 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
34145 (read_conf_file, __gconv_get_path): Likewise.
34146 * iconv/gconv_db.c (derivation_lookup, add_derivation)
34147 (__gconv_release_step, gen_steps, increment_counter)
34148 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
34149 (__gconv_close_transform, free_modules_db): Likewise.
34150 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
34151 Likewise.
34152 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
34153 (__gconv_find_transform, __gconv_lookup_cache)
34154 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
34155 (__gconv_close_transform, __gconv_release_cache)
34156 (__gconv_loaded_object, __gconv_release_shlib)
34157 (__gconv_compare_alias): Likewise.
34158 * iconv/gconv_open.c (__gconv_open): Likewise.
34159 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
34160 * iconv/iconvconfig.c (add_module): Likewise.
34161 * intl/dcigettext.c (plural_lookup, guess_category_value)
34162 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
34163 * intl/eval-plural.h (plural_eval): Likewise.
34164 * intl/finddomain.c (_nl_find_domain): Likewise.
34165 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
34166 (_nl_load_domain, _nl_find_msg): Likewise.
34167 (internal_function): Remove definition.
34168 * intl/loadinfo.h (internal_function): Likewise.
34169 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
34170 internal_function.
34171 * intl/localealias.c (internal_function): Remove definition.
34172 (read_alias_file): Remove internal_function.
34173 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
34174 * intl/plural-exp.h (internal_function): Remove definition.
34175 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
34176 internal_function.
34177 * intl/plural.c: Regenerate.
34178 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
34179 * locale/coll-lookup.c (__collidx_table_lookup)
34180 (__collseq_table_lookup): Likewise.
34181 * locale/coll-lookup.h (__collidx_table_lookup)
34182 (__collseq_table_lookup): Likewise.
34183 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
34184 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
34185 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
34186 (_nl_unload_locale): Likewise.
34187 * locale/localeinfo.h (struct __locale_data): Remove
34188 internal_function from cleanup member.
34189 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
34190 (_nl_remove_locale, _nl_load_locale_from_archive)
34191 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
34192 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
34193 (_nl_cleanup_time): Remove internal_function.
34194 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
34195 (_nl_parse_alt_digit): Likewise.
34196 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
34197 (_nl_select_era_entry): Likewise.
34198 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
34199 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
34200 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
34201 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
34202 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
34203
34204 2017-08-31 Florian Weimer <fweimer@redhat.com>
34205
34206 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
34207 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
34208 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
34209 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
34210 Likewise.
34211 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
34212 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
34213 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
34214 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
34215 Likewise.
34216 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
34217
34218 2017-08-31 Florian Weimer <fweimer@redhat.com>
34219
34220 * misc/getttyent.c (skip, value): Remove internal_function.
34221 * misc/syslog.c (openlog_internal): Likewise.
34222 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
34223
34224 2017-08-31 Florian Weimer <fweimer@redhat.com>
34225
34226 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
34227 (__nss_rewrite_field): Remove internal_function.
34228 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
34229 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
34230 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
34231 * nss/nsswitch.c (nss_parse_file, nss_getline)
34232 (nss_parse_service_list, nss_new_service): Likewise.
34233 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
34234 * nss/valid_field.c (__nss_valid_field): Likewise.
34235 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
34236
34237 2017-08-31 Florian Weimer <fweimer@redhat.com>
34238
34239 * malloc/arena.c (__malloc_fork_lock_parent)
34240 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
34241 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
34242 internal_function from defintions.
34243 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
34244 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
34245 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
34246 internal_function from declarations.
34247 * malloc/malloc.c (internal_function): Do not define.
34248 (mem2mem_check): Remove internal_function from declaration.
34249 (munmap_chunk, mremap_chunk): Remove internal_function.
34250 * malloc/mtrace.c (tr_where): Likewise.
34251
34252 2017-08-31 Florian Weimer <fweimer@redhat.com>
34253
34254 * include/rpc/pmap_clnt.h (__get_socket): Remove
34255 internal_function.
34256 * sunrpc/auth_des.c (synchronize): Likewise.
34257 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
34258 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
34259 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
34260 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
34261 (key_call): Likewise.
34262 * sunrpc/pm_getport.c (__get_socket): Likewise.
34263 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
34264 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
34265 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
34266 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
34267 (invalidate): Likewise.
34268 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
34269 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
34270 (set_input_fragment, get_input_bytes): Likewise.
34271
34272 2017-08-31 Florian Weimer <fweimer@redhat.com>
34273
34274 * malloc/malloc.c (_int_free): Remove locked variable and related
34275 asserts.
34276
34277 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
34278
34279 [BZ #22051]
34280 * Makerules (build-module-helper-objlist): Filter out
34281 $(elf-objpfx)sofini.os.
34282 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
34283 needed.
34284
34285 2017-08-31 Florian Weimer <fweimer@redhat.com>
34286
34287 * libio/fcloseall.c: Assume weak_alias is defined.
34288 * libio/feof.c: Likewise.
34289 * libio/fileno.c: Likewise.
34290 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
34291 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
34292 definitions.
34293 (_IO_file_open): Call __open directly.
34294 (_IO_new_file_sync): Assume ESPIPE is defined.
34295 (_IO_file_seekoff_maybe_mmap): Call __read directly.
34296 (_IO_new_file_write): Call __write directly.
34297 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
34298 * libio/ftello64.c (__ftello64): Assume EIO is defined.
34299 * libio/genops.c: Assume _LIBC is defined.
34300 (save_for_backup): Remove internal_function.
34301 * libio/getc.c: Assume weak_alias is defined.
34302 * libio/getwc.c: Likewise.
34303 * libio/iofclose.c: Assume _LIBC is defined.
34304 * libio/iofdopen.c: Likewise.
34305 (_IO_fcntl): Remove macro definition.
34306 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
34307 Call __fcntl directly.
34308 * libio/iofflush.c: Assume weak_alias is defined.
34309 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
34310 defined.
34311 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
34312 * libio/iofgets.c: Likewise.
34313 * libio/iofopen.c: Assume _LIBC is defined.
34314 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
34315 * libio/iofputs.c: Assume weak_alias is defined.
34316 * libio/iofread.c: Likewise.
34317 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
34318 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
34319 * libio/ioftell.c: Assume weak_alias is defined.
34320 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
34321 * libio/iofwide.c: Assume _LIBC is defined.
34322 (_IO_fwide): Drop SHARED conditional because it is implied by
34323 SHLIB_COMPAT.
34324 * libio/iofwrite.c: Assume weak_alias is defined.
34325 * libio/iogetdelim.c: Likewise.
34326 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
34327 * libio/iogetwline.c (wmemcpy): Remove macro definition.
34328 (_IO_getwline): Call __wmemcpy directly.
34329 * libio/iopopen.c: Assume _LIBC is defined.
34330 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
34331 (_IO_close): Remove macro definitions.
34332 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
34333 _exit directly.
34334 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
34335 directly.
34336 * libio/ioputs.c: Assume weak_alias is defined.
34337 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
34338 * libio/iosetbuffer.c: Assume weak_alias is defined.
34339 * libio/iosetvbuf.c: Likewise.
34340 * libio/ioungetc.c: Likewise.
34341 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
34342 libc_hidden_def, libc_hidden_weak, NULL are defined.
34343 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
34344 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
34345 defined.
34346 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
34347 definitions.
34348 (_IO_old_file_init_internal): Drop SHARED conditional because it
34349 is implied by SHLIB_COMPAT.
34350 (_IO_old_file_fopen): Call __open directly.
34351 (_IO_old_file_sync): Assume ESPIPE is defined.
34352 (_IO_old_file_write): Call __write directly.
34353 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
34354 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
34355 Call __fcntl directly.
34356 * libio/oldiofgetpos.c: Assume weak_alias is defined.
34357 (_IO_old_fgetpos): Assume EIO is defined.
34358 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
34359 (_IO_old_fgetpos64): Assume EIO is defined.
34360 * libio/oldiofsetpos.c: Assume weak_alias is defined.
34361 (_IO_old_fsetpos): Assume EIO is defined.
34362 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
34363 (_IO_old_fsetpos64): Assume EIO is defined.
34364 * libio/oldiopopen.c: Assume _LIBC is defined.
34365 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
34366 (_IO_close): Remove macro definitions.
34367 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
34368 directly.
34369 (_IO_old_proc_close): Call __close, __waitpid directly.
34370 * libio/put.c: Assume weak_alias is defined.
34371 * libio/stdfiles.c: Assume _LIBC is defined.
34372 * libio/stdio.c: Likewise.
34373 * libio/wfileops.c: Likewise.
34374 (_IO_wfile_sync): Assume ESPIPE is defined.
34375 * libio/wgenops.c: Assume _LIBC is defined.
34376 (save_for_wbackup): Remove internal_function.
34377
34378 2017-08-31 Florian Weimer <fweimer@redhat.com>
34379
34380 * malloc/malloc.c (top_check): Change return type to void. Remove
34381 internal_function.
34382 * malloc/hooks.c (top_check): Likewise.
34383 (malloc_check, realloc_check, memalign_check): Adjust.
34384
34385 2017-08-30 Joseph Myers <joseph@codesourcery.com>
34386
34387 [BZ #21457]
34388 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
34389 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
34390 sigcontext and namespace requirements.
34391 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
34392 * sysdeps/m68k/sys/ucontext.h: Likewise.
34393 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
34394 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
34395 <bits/sigcontext.h>.
34396 (__ctx): Define earlier.
34397 (mcontext_t): Define structure contents rather than using struct
34398 sigcontext.
34399 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
34400 __glibc_reserved1 instead of __reserved.
34401 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
34402 <bits/sigcontext.h>.
34403 (__ctx): Define earlier.
34404 (mcontext_t): Define structure contents rather than using struct
34405 sigcontext.
34406 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
34407 mcontext_t instead of struct sigcontext.
34408 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
34409 <bits/sigcontext.h>.
34410 (__ctx): Define earlier.
34411 (mcontext_t): Define structure contents rather than using struct
34412 sigcontext.
34413 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
34414 <bits/sigcontext.h>.
34415 (__ctx): Define earlier.
34416 (mcontext_t): Define structure contents rather than using struct
34417 sigcontext.
34418 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
34419 mcontext_t instead of struct sigcontext.
34420 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
34421 mcontext_t instead of struct sigcontext.
34422 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
34423 <bits/sigcontext.h>.
34424 (__ctx): New macro.
34425 (struct __ia64_fpreg_mcontext): New type.
34426 (mcontext_t): Define structure contents rather than using struct
34427 sigcontext.
34428 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
34429 (uc_sigmask): Define using __ctx.
34430 (uc_stack): Likewise.
34431 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
34432 <bits/sigcontext.h>.
34433 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
34434 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
34435 <bits/sigcontext.h>.
34436 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
34437 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
34438 <bits/sigcontext.h>.
34439 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
34440 <bits/sigcontext.h>.
34441 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
34442 <bits/sigcontext.h>.
34443 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
34444 <bits/sigcontext.h>.
34445 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
34446 <bits/sigcontext.h>.
34447 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
34448 <bits/sigcontext.h>.
34449 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
34450 <bits/sigcontext.h>.
34451 (__ctx): Define earlier.
34452 (mcontext_t): Define structure contents rather than using struct
34453 sigcontext.
34454 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
34455 <bits/sigcontext.h>. Include <bits/types.h>.
34456 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
34457 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
34458 (test-xfail-XPG42/ucontext.h/conform): Likewise.
34459 (test-xfail-UNIX98/signal.h/conform): Likewise.
34460 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
34461 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
34462 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
34463 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
34464 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
34465 (test-xfail-POSIX2008/signal.h/conform): Likewise.
34466 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
34467 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
34468 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
34469
34470 2017-08-30 Florian Weimer <fweimer@redhat.com>
34471
34472 * malloc/dynarray_emplace_enlarge.c
34473 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
34474 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
34475 * malloc/tst-dynarray.c (test_long_overflow): New function.
34476 (do_test): Call it.
34477
34478 2017-08-30 Florian Weimer <fweimer@redhat.com>
34479
34480 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
34481 (set_arena_corrupt): Remove definitions.
34482 (mtrim): Do not check for corrupt arena.
34483 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
34484 Likewise.
34485
34486 2017-08-30 Florian Weimer <fweimer@redhat.com>
34487
34488 [BZ #21754]
34489 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
34490 check_action.
34491 (ptmalloc_init): Do not set or use check_action.
34492 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
34493 call to malloc_printerr. Remove return statement.
34494 (free_check): Likewise. Remove arena unlock.
34495 (top_check): Update comment. Adjust call to malloc_printerr.
34496 Remove heap repair code.
34497 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
34498 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
34499 (sysmalloc): Adjust call to malloc_printerr.
34500 (munmap_chunk, __libc_realloc): Likewise. Remove return
34501 statement.
34502 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
34503 Remove errout label and corresponding gotos.
34504 (_int_free): Likewise. Remove arena unlock.
34505 (do_set_mallopt_check): Do not set check_action.
34506 (malloc_printerr): Adjust parameter list. Do not mark arena as
34507 corrupt.
34508 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
34509 comment.
34510 * manual/probes.texi (Memory Allocation Probes): Remove
34511 memory_mallopt_check_action.
34512
34513 2017-08-30 Steve Ellcey <sellcey@cavium.com>
34514
34515 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
34516 Use pointer to uint64_t instead of long int for sp.
34517
34518 2017-08-30 Florian Weimer <fweimer@redhat.com>
34519
34520 [BZ #21754]
34521 * malloc/malloc.c (malloc_printerr): Always terminate the process,
34522 without printing a backtrace. Do not leak any information in the
34523 error message.
34524 * manual/memory.texi (Heap Consistency Checking): Update.
34525 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
34526
34527 2017-08-30 Florian Weimer <fweimer@redhat.com>
34528
34529 Do not scale NPTL tests with available number of CPUs.
34530 * nptl/tst-cond16.c (count): Set to constant value of 8.
34531 * nptl/tst-cond18.c (count): Likewise.
34532
34533 2017-08-29 Joseph Myers <joseph@codesourcery.com>
34534
34535 [BZ #22035]
34536 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
34537 Define to take a second argument that is a macro that
34538 concatentates a suffix, not the suffix itself.
34539 (__CONCAT_d): New macro.
34540 (__CONCAT_f): Likewise.
34541 (__CONCAT_l): Likewise.
34542
34543 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
34544
34545 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
34546 by child.
34547
34548 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34549 Aurelien Jarno <aurelien@aurel32.net>
34550 Maciej W. Rozycki <macro@imgtec.com>
34551
34552 [BZ #21956]
34553 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
34554 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
34555 `mips16-syscall6' and `mips16-syscall7'.
34556 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
34557 (CFLAGS-mips16-syscall7.c): Remove.
34558 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
34559 Remove `__mips16_syscall5', `__mips16_syscall6' and
34560 `__mips16_syscall7'.
34561 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
34562 (__mips16_syscall0): Rename `__mips16_syscall_return' to
34563 `__mips_syscall_return'.
34564 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
34565 (__mips16_syscall1): Likewise.
34566 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
34567 (__mips16_syscall2): Likewise.
34568 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
34569 (__mips16_syscall3): Likewise.
34570 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
34571 (__mips16_syscall4): Likewise.
34572 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
34573 Remove.
34574 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
34575 Remove.
34576 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
34577 Remove.
34578 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
34579 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
34580 `__mips16_syscall5'. Remove prototype.
34581 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
34582 `__mips16_syscall6'. Remove prototype.
34583 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
34584 `__mips16_syscall7'. Remove prototype.
34585 (__nomips16, __mips16_syscall_return): Move to...
34586 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
34587 (__nomips16, __mips_syscall_return): ... here.
34588 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
34589 `__mips16_syscall_return' to `__mips_syscall_return'.
34590 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
34591 `internal_syscall##nr'.
34592 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
34593 `internal_syscall##nr'.
34594 (FORCE_FRAME_POINTER): Remove.
34595 (__mips_syscall5): New prototype.
34596 (internal_syscall5): Rewrite to call `__mips_syscall5'.
34597 (__mips_syscall6): New prototype.
34598 (internal_syscall6): Rewrite to call `__mips_syscall6'.
34599 (__mips_syscall7): New prototype.
34600 (internal_syscall7): Rewrite to call `__mips_syscall7'.
34601 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
34602 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
34603 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
34604 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
34605 (sysdep_routines): Add libc-do-syscall.
34606 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
34607 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
34608
34609 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34610
34611 [BZ #21672]
34612 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
34613 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
34614 (advise_stack_range): New function.
34615 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
34616 stack non required to advise_stack_range at allocatestack.c
34617
34618 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
34619
34620 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
34621
34622 2017-08-29 Florian Weimer <fweimer@redhat.com>
34623
34624 [BZ #22026]
34625 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
34626 __end_fct. Mangle __end_fct after setting it to NULL.
34627 * iconv/Makefile (tests): Add tst-gconv-init-failure.
34628 (modules-names, modules-names-tests): Add
34629 tst-gconv-init-failure-mod.
34630 (gconv-modules): New target.
34631 (tst-gconv-init-failure-mod.so): Link against libsupport.
34632 (tst-gconv-init-failure): Depend on gconv-modules,
34633 tst-gconv-init-failure-mod.so.
34634 * iconv/tst-gconv-init-failure-mod.c: New file.
34635 * iconv/tst-gconv-init-failure.c: Likewise.
34636 * iconv/test-gconv-modules: Likewise.
34637
34638 2017-08-29 Florian Weimer <fweimer@redhat.com>
34639
34640 [BZ #22025]
34641 * iconv/gconv_db.c (free_derivation): Remove redundant
34642 parentheses.
34643 (gen_steps): Unconditionally mangle __btowc_fct after
34644 initialization.
34645 (increment_counter): Likewise. Do not call init_fct for internal
34646 modules.
34647
34648 2017-08-29 Joseph Myers <joseph@codesourcery.com>
34649
34650 [BZ #22028]
34651 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
34652 (_MSUF_): Remove macro.
34653 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
34654 Likewise.
34655 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
34656 (__REDIRFROM_X): New macro.
34657 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
34658 Likewise.
34659 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
34660 (__REDIRTO_X): Likewise.
34661 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
34662 arguments.
34663 (__MATH_REDIRCALL_2): Likewise.
34664 (__MATH_REDIRCALL_INTERNAL): Likewise.
34665 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
34666 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
34667 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
34668 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
34669 * math/test-finite-macros.c: New file.
34670 * math/Makefile (tests): Add test-finite-macros.
34671 (CFLAGS-test-finite-macros.c): New variable.
34672
34673 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
34674 Jeff Law <law@redhat.com>
34675
34676 [BZ #22025]
34677 Mangle NULL pointers in iconv/gconv.
34678 * iconv/gconv_cache.c (find_module): Demangle init_fct before
34679 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
34680 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
34681 is non-NULL before demangling the end_fct. Check for NULL
34682 end_fct after demangling.
34683 (__gconv_release_step): Demangle the end_fct before checking
34684 it for NULL. Remove assert on __shlibc_handle != NULL.
34685 (gen_steps): Don't check btowc_fct for NULL before mangling.
34686 Demangle init_fct before checking for NULL.
34687 (increment_counter): Likewise.
34688 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
34689 end_fct for NULL before mangling.
34690 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
34691 for NULL.
34692
34693 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
34694
34695 [BZ #21971]
34696 * locale/iso-639.def: add Morisyen.
34697
34698 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
34699
34700 [BZ #21930]
34701 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
34702 (iszero): New C++ implementation that does not use
34703 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
34704 signaling nans are enabled, since __builtin_types_compatible_p
34705 is a C-only feature.
34706 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
34707 defined, include ieee754_float128.h for access to the union and
34708 member ieee854_float128.ieee.
34709 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
34710 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
34711 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
34712 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
34713 options of test-math-zero on powerpc64le.
34714
34715 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
34716
34717 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
34718 Change double to float.
34719
34720 2017-08-28 Joseph Myers <joseph@codesourcery.com>
34721
34722 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
34723 unconditional.
34724 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
34725 conditional code; define contents only for [LIBM_SVID_COMPAT].
34726
34727 2017-08-28 Florian Weimer <fweimer@redhat.com>
34728
34729 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
34730 (abi-lp64_be-options): Remove.
34731 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
34732 (abi-hard-options): Likewise.
34733 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
34734 (abi-o32_hard-options, abi-o32_soft_2008-options)
34735 (abi-o32_hard_2008-options, abi-n32_soft-options)
34736 (abi-n32_hard-options, abi-n32_soft_2008-options)
34737 (abi-n32_hard_2008-options, abi-n64_soft-options)
34738 (abi-n64_hard-options, abi-n64_soft_2008-options)
34739 (abi-n64_hard_2008-options): Likewise.
34740 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
34741 (abi-64-v1-options, abi-64-v2-options): Likewise.
34742 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
34743 (abi-64-options): Likewise.
34744 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
34745 (abi-64-options): Likewise.
34746 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
34747 (abi-64-options): Likewise.
34748 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
34749 (abi-64-options, abi-x32-options): Likewise.
34750
34751 2017-08-28 Florian Weimer <fweimer@redhat.com>
34752
34753 Store supported list of SYS_* system calls in the source tree.
34754 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
34755 (bits/syscall.h): Generate from list file.
34756 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
34757 [$(subdir) = misc] (tests): Add tst-syscall-list.
34758 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
34759 [$(subdir) = misc] (tst-syscall-list-macros.list)
34760 [$(subdir) = misc] (tst-syscall-list-nr.list)
34761 (tst-syscall-list-sys.list): Helper targets for new
34762 tst-syscall-list test.
34763 [$(subdir) = misc] (tst-syscall-list.out): Run test script
34764 tst-syscall-list.sh.
34765 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
34766 target. Do not include bits/syscall.d.
34767 [$(subdir) = misc] (generated): Do not update.
34768 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
34769 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
34770 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
34771 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
34772
34773 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
34774
34775 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
34776 (tst-cxa_atexit, tst-on_exit): Likewise.
34777 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
34778 tst-cxa_atexit, and tst-on_exit.
34779 * stdlib/tst-atexit-common.c: New file.
34780 * stdlib/tst-atexit.c: New file.
34781 * stdlib/tst-at_quick_exit.c: New file.
34782 * stdlib/tst-cxa_atexit.c: New file.
34783 * stdlib/tst-on_exit.c: New file.
34784
34785 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
34786
34787 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
34788 * mach/stack_chk_fail_local.c: New file.
34789 * hurd/stack_chk_fail_local.c: New file.
34790 * mach/Machrules ($(interface-library)-routines): Add
34791 stack_chk_fail_local.
34792 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
34793 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
34794 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
34795 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
34796 * hurd/Makefile (CFLAGS-hurdstartup.o,
34797 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
34798
34799 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
34800
34801 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
34802 (index_cpu_*, index_arch_*): Removed.
34803
34804 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
34805
34806 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
34807 Use uint64_t instead of unsigned long.
34808
34809 2017-08-25 Joseph Myers <joseph@codesourcery.com>
34810
34811 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
34812 [__HAVE_DISTINCT_FLOAT128].
34813
34814 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
34815 of <bits/math-finite.h>.
34816 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
34817 inclusion of <bits/math-finite.h>.
34818 * math/bits/math-finite.h (__REDIRTO_X): Do not define
34819 conditionally on [__MATH_DECLARING_LDOUBLE && defined
34820 __NO_LONG_DOUBLE_MATH].
34821 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
34822 (__MATH_REDIRCALL_2): Likewise.
34823 (__MATH_REDIRCALL_INTERNAL): Likewise.
34824 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
34825 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
34826 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
34827
34828 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
34829 Remove file.
34830 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
34831 Likewise.
34832 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
34833 Likewise.
34834 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
34835 Likewise.
34836 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
34837 Likewise.
34838 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
34839 Likewise.
34840 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
34841 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
34842 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
34843 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
34844 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
34845 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
34846 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
34847 w_sqrtf_compat-ppc32.
34848
34849 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
34850
34851 * math/math.h [defined __cplusplus] (issignaling): In the long
34852 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
34853 is not defined. Call __issignaling, otherwise.
34854
34855 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34856
34857 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
34858 syscall definitions and replace __builtin_expect with __glibc_likely.
34859 * sysdeps/unix/syscall-template.S: Update comment about cancellable
34860 syscall.
34861 (SYSCALL_CANCELLABLE): Removedefinition
34862 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
34863 definition.
34864 (PSEUDO_END): Likewise.
34865 [IS_IN (libpthread)] (CENABLE): Likewise.
34866 [IS_IN (libpthread)] (CDISABLE): Likewise.
34867 [IS_IN (libc)] (CENABLE): Likewise.
34868 [IS_IN (libc)] (CENABLE): Likewise.
34869 [IS_IN (librt)] (CDISABLE): Likewise.
34870 [IS_IN (librt)] (CDISABLE): Likewise.
34871 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
34872 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
34873 definition.
34874 (PSEUDO_END): Likewise.
34875 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
34876 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
34877 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
34878 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
34879 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
34880 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
34881 (CENABLE): Likewise.
34882 (CDISABLE): Likewise.
34883 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
34884 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
34885 defintion.
34886 (PSEUDO_END): Likewise.
34887 [IS_IN (libpthread)] (CENABLE): Likewise.
34888 [IS_IN (libpthread)] (CDISABLE): Likewise.
34889 [IS_IN (libc)] (CENABLE): Likewise.
34890 [IS_IN (libc)] (CENABLE): Likewise.
34891 [IS_IN (librt)] (CDISABLE): Likewise.
34892 [IS_IN (librt)] (CDISABLE): Likewise.
34893 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
34894 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
34895 definition.
34896 (PSEUDO_END): Likewise.
34897 [IS_IN (libpthread)] (CENABLE): Likewise.
34898 [IS_IN (libpthread)] (CDISABLE): Likewise.
34899 [IS_IN (libc)] (CENABLE): Likewise.
34900 [IS_IN (libc)] (CENABLE): Likewise.
34901 [IS_IN (librt)] (CDISABLE): Likewise.
34902 [IS_IN (librt)] (CDISABLE): Likewise.
34903 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
34904 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
34905 definition.
34906 (PSEUDO_END): Likewise.
34907 [IS_IN (libpthread)] (CENABLE): Likewise.
34908 [IS_IN (libpthread)] (CDISABLE): Likewise.
34909 [IS_IN (libc)] (CENABLE): Likewise.
34910 [IS_IN (libc)] (CENABLE): Likewise.
34911 [IS_IN (librt)] (CDISABLE): Likewise.
34912 [IS_IN (librt)] (CDISABLE): Likewise.
34913 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
34914 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
34915 definition.
34916 (PSEUDO_END): Likewise.
34917 [IS_IN (libpthread)] (CENABLE): Likewise.
34918 [IS_IN (libpthread)] (CDISABLE): Likewise.
34919 [IS_IN (libc)] (CENABLE): Likewise.
34920 [IS_IN (libc)] (CENABLE): Likewise.
34921 [IS_IN (librt)] (CDISABLE): Likewise.
34922 [IS_IN (librt)] (CDISABLE): Likewise.
34923 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
34924 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
34925 definition.
34926 (PSEUDO_END): Likewise.
34927 [IS_IN (libpthread)] (CENABLE): Likewise.
34928 [IS_IN (libpthread)] (CDISABLE): Likewise.
34929 [IS_IN (libc)] (CENABLE): Likewise.
34930 [IS_IN (libc)] (CENABLE): Likewise.
34931 [IS_IN (librt)] (CDISABLE): Likewise.
34932 [IS_IN (librt)] (CDISABLE): Likewise.
34933 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
34934 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
34935 definition.
34936 (PSEUDO_END): Likewise.
34937 [IS_IN (libpthread)] (CENABLE): Likewise.
34938 [IS_IN (libpthread)] (CDISABLE): Likewise.
34939 [IS_IN (libc)] (CENABLE): Likewise.
34940 [IS_IN (libc)] (CENABLE): Likewise.
34941 [IS_IN (librt)] (CDISABLE): Likewise.
34942 [IS_IN (librt)] (CDISABLE): Likewise.
34943 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
34944 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
34945 Remove definition.
34946 (PSEUDO_END): Likewise.
34947 [IS_IN (libpthread)] (CENABLE): Likewise.
34948 [IS_IN (libpthread)] (CDISABLE): Likewise.
34949 [IS_IN (libc)] (CENABLE): Likewise.
34950 [IS_IN (libc)] (CENABLE): Likewise.
34951 [IS_IN (librt)] (CDISABLE): Likewise.
34952 [IS_IN (librt)] (CDISABLE): Likewise.
34953 (SINGLE_THREAD_P): Likewise.
34954 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
34955 definition.
34956 (PSEUDO_END): Likewise.
34957 [IS_IN (libpthread)] (CENABLE): Likewise.
34958 [IS_IN (libpthread)] (CDISABLE): Likewise.
34959 [IS_IN (libc)] (CENABLE): Likewise.
34960 [IS_IN (libc)] (CENABLE): Likewise.
34961 [IS_IN (librt)] (CDISABLE): Likewise.
34962 [IS_IN (librt)] (CDISABLE): Likewise.
34963 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
34964 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
34965 definition.
34966 (PSEUDO_END): Likewise.
34967 [IS_IN (libpthread)] (CENABLE): Likewise.
34968 [IS_IN (libpthread)] (CDISABLE): Likewise.
34969 [IS_IN (libc)] (CENABLE): Likewise.
34970 [IS_IN (libc)] (CENABLE): Likewise.
34971 [IS_IN (librt)] (CDISABLE): Likewise.
34972 [IS_IN (librt)] (CDISABLE): Likewise.
34973 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
34974 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
34975 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
34976 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
34977 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
34978 definition.
34979 (PSEUDO_END): Likewise.
34980 [IS_IN (libpthread)] (CENABLE): Likewise.
34981 [IS_IN (libpthread)] (CDISABLE): Likewise.
34982 [IS_IN (libc)] (CENABLE): Likewise.
34983 [IS_IN (libc)] (CENABLE): Likewise.
34984 [IS_IN (librt)] (CDISABLE): Likewise.
34985 [IS_IN (librt)] (CDISABLE): Likewise.
34986 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
34987 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
34988 definition.
34989 (PSEUDO_END): Likewise.
34990 [IS_IN (libpthread)] (CENABLE): Likewise.
34991 [IS_IN (libpthread)] (CDISABLE): Likewise.
34992 [IS_IN (libc)] (CENABLE): Likewise.
34993 [IS_IN (libc)] (CENABLE): Likewise.
34994 [IS_IN (librt)] (CDISABLE): Likewise.
34995 [IS_IN (librt)] (CDISABLE): Likewise.
34996 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
34997 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
34998 definition.
34999 (PSEUDO_END): Likewise.
35000 [IS_IN (libpthread)] (CENABLE): Likewise.
35001 [IS_IN (libpthread)] (CDISABLE): Likewise.
35002 [IS_IN (libc)] (CENABLE): Likewise.
35003 [IS_IN (libc)] (CENABLE): Likewise.
35004 [IS_IN (librt)] (CDISABLE): Likewise.
35005 [IS_IN (librt)] (CDISABLE): Likewise.
35006 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35007 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
35008 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
35009 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
35010 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
35011 definition.
35012 (PSEUDO_END): Likewise.
35013 [IS_IN (libpthread)] (CENABLE): Likewise.
35014 [IS_IN (libpthread)] (CDISABLE): Likewise.
35015 [IS_IN (libc)] (CENABLE): Likewise.
35016 [IS_IN (libc)] (CENABLE): Likewise.
35017 [IS_IN (librt)] (CDISABLE): Likewise.
35018 [IS_IN (librt)] (CDISABLE): Likewise.
35019 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35020 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
35021 definition.
35022 (PSEUDO_END): Likewise.
35023 [IS_IN (libpthread)] (CENABLE): Likewise.
35024 [IS_IN (libpthread)] (CDISABLE): Likewise.
35025 [IS_IN (libc)] (CENABLE): Likewise.
35026 [IS_IN (libc)] (CENABLE): Likewise.
35027 [IS_IN (librt)] (CDISABLE): Likewise.
35028 [IS_IN (librt)] (CDISABLE): Likewise.
35029 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35030
35031 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
35032
35033 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
35034
35035 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
35036
35037 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
35038
35039 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
35040
35041 [BZ #21982]
35042 * string/stratcliff.c (do_test): Declare size, nchars, inner,
35043 middle and outer with size_t instead of int. Repleace %d and
35044 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
35045 "MAX (outer, nchars - 64)" to support unsigned outer and
35046 nchars. Also exit loop when outer == 0.
35047
35048 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35049
35050 * include/fcntl.h (__fcntl_nocancel): Remove definition.
35051 * include/signal.h (__sigsuspend_nocancel): Likewise.
35052 * include/time.h (__nanosleep_nocancel): Likewise.
35053 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
35054 * login/utmp_file.c: Include non cancellable syscall header.
35055 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
35056 prototype.
35057
35058 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
35059
35060 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
35061 .byte sequences with AVX512F instructions.
35062 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
35063 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
35064 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
35065 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
35066 Likewise.
35067 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
35068 Likewise.
35069
35070 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
35071 Steve Ellcey <sellcey@cavium.com>
35072
35073 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
35074 Use PTR_REG macro in cmp instruction.
35075
35076 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35077
35078 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
35079 Change the return type of the ifunc resolver to match the return
35080 type of the target function.
35081
35082 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35083
35084 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
35085 (preadv64): Likewise.
35086 (pwrite64(: Likewise.
35087 (pwritev64): Likewise.
35088
35089 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
35090 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
35091 (LOAD_ARGS_0): Likewise.
35092 (LOAD_ARGS_1): Likewise.
35093 (LOAD_ARGS_2): Likewise.
35094 (LOAD_ARGS_3): Likewise.
35095 (LOAD_ARGS_4): Likewise.
35096 (LOAD_ARGS_5): Likewise.
35097 (LOAD_ARGS_6): Likewise.
35098 (LOAD_REGS_0): Likewise.
35099 (LOAD_REGS_1): Likewise.
35100 (LOAD_REGS_2): Likewise.
35101 (LOAD_REGS_3): Likewise.
35102 (LOAD_REGS_4): Likewise.
35103 (LOAD_REGS_5): Likewise.
35104 (LOAD_REGS_6): Likewise.
35105 (ASM_ARGS_0): Likewise.
35106 (ASM_ARGS_1): Likewise.
35107 (ASM_ARGS_2): Likewise.
35108 (ASM_ARGS_3): Likewise.
35109 (ASM_ARGS_4): Likewise.
35110 (ASM_ARGS_5): Likewise.
35111 (ASM_ARGS_6): Likewise.
35112 (LOAD_ARGS_TYPES_1): Likewise.
35113 (LOAD_ARGS_TYPES_2): Likewise.
35114 (LOAD_ARGS_TYPES_3): Likewise.
35115 (LOAD_ARGS_TYPES_4): Likewise.
35116 (LOAD_ARGS_TYPES_5): Likewise.
35117 (LOAD_ARGS_TYPES_6): Likewise.
35118 (LOAD_REGS_TYPES_1): Likewise.
35119 (LOAD_REGS_TYPES_2): Likewise.
35120 (LOAD_REGS_TYPES_3): Likewise.
35121 (LOAD_REGS_TYPES_4): Likewise.
35122 (LOAD_REGS_TYPES_5): Likewise.
35123 (LOAD_REGS_TYPES_6): Likewise.
35124 (TYPEFY): New define.
35125 (ARGIFY): Likewise.
35126 (internal_syscall0): Likewise.
35127 (internal_syscall1): Likewise.
35128 (internal_syscall2): Likewise.
35129 (internal_syscall3): Likewise.
35130 (internal_syscall4): Likewise.
35131 (internal_syscall5): Likewise.
35132 (internal_syscall6): Likewise.
35133 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
35134 (INTERNAL_SYSCALL_NCS): Remove define.
35135 (internal_syscall1): Add define.
35136
35137 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35138
35139 * math/w_remainder_compat.c: Remove duplicate inclusion of
35140 math-svid-compat.h.
35141 * math/w_remainderf_compat.c: Likewise.
35142 * math/w_remainderl_compat.c: Likewise.
35143
35144 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35145
35146 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
35147
35148 2017-08-22 Joseph Myers <joseph@codesourcery.com>
35149
35150 [BZ #21684]
35151 * math/tgmath.h (__floating_type): Simplify definitions.
35152 (__real_integer_type): New macro.
35153 (__complex_integer_type): Likewise.
35154 (__expr_is_real): Likewise.
35155 (__tgmath_real_type_sub): Update comment to describe handling of
35156 complex types.
35157 (__tgmath_complex_type_sub): New macro.
35158 (__tgmath_complex_type): Likewise.
35159 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
35160 (__TGMATH_CF128): Use __expr_is_real.
35161 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
35162 __expr_is_real.
35163 (__TGMATH_BINARY_REAL_IMAG): Likewise.
35164 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
35165 * math/gen-tgmath-tests.py (Type.create_type): Create complex
35166 integer types.
35167
35168 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35169
35170 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
35171 macro.
35172 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
35173 alias.
35174 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
35175 Likewise.
35176
35177 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
35178 nanosleep_not_cancel with __nanosleep_nocancel.
35179 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
35180 (__nanosleep_nocancel): New macro.
35181 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
35182 function.
35183 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
35184 macro.
35185 (__nanosleep_nocancel): New prototype.
35186
35187 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
35188 pause_not_cancel with __pause_nocancel.
35189 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
35190 (__pause_nocancel): New macro.
35191 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
35192 macro.
35193 (__pause_nocancel): New prototype.
35194 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
35195
35196 2017-08-22 Martin Sebor <msebor@redhat.com>
35197
35198 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
35199 to return a pointer to the same type as the target function.
35200
35201 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
35202
35203 [BZ #18822]
35204 [BZ #21986]
35205 * include/printf.h (__printf_fphex): Add attribute_hidden.
35206 (__guess_grouping): New prototype.
35207 * stdio-common/printf_fp.c (__guess_grouping): Removed.
35208 * stdio-common/reg-printf.c (__register_printf_specifier): Add
35209 libc_hidden_proto and libc_hidden_def.
35210 * stdlib/strfmon_l.c (__guess_grouping): Removed.
35211 (__vstrfmon_l): Remove the third argument passed to
35212 __guess_grouping.
35213
35214 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35215
35216 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
35217 definition for issignaling that does not rely on __MATH_TG,
35218 since __MATH_TG uses __builtin_types_compatible_p, which is only
35219 available in C mode.
35220 (CFLAGS-test-math-issignaling.cc): New variable.
35221 * math/Makefile [CXX] (tests): Add test-math-issignaling.
35222 * math/test-math-issignaling.cc: New test for C++ implementation
35223 of type-generic issignaling.
35224 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
35225 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
35226 options of test-math-issignaling on powerpc64le.
35227
35228 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
35229
35230 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
35231 building libc.a.
35232 (hidden_proto): Likewise.
35233 (hidden_tls_proto): Likewise.
35234 (__hidden_proto): Likewise.
35235
35236 2017-08-22 Florian Weimer <fweimer@redhat.com>
35237
35238 math: Statically link tests of internal functionality.
35239 * math/Makefile (tests): Remove atest-exp, atest-sincos,
35240 atest-exp2.
35241 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
35242 (gmp-objs): Remove assignment.
35243 (atest-exp, atest-sincos, atest-exp2): Remove targets.
35244
35245 2017-08-22 Joseph Myers <joseph@codesourcery.com>
35246
35247 [BZ #21987]
35248 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
35249 and copy to ...
35250 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
35251 ... here.
35252 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
35253 ... and here.
35254
35255 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
35256 variable definitions above inclusion of ../Rules.
35257
35258 2017-08-21 Joseph Myers <joseph@codesourcery.com>
35259
35260 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
35261 case calling __builtin_unreachable.
35262
35263 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35264
35265 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
35266 __waitpid_nocancel.
35267 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
35268 (__waitpid_nocancel): New macro.
35269 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
35270 macro.
35271 (__waitpid_nocancel): Replace macro with a function.
35272 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
35273 function.
35274
35275 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
35276 __fcntl_nocancel.
35277 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
35278 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
35279
35280 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
35281 __writev_nocancel_nostatus.
35282 (write_call_graph): Likewise.
35283 (write_bb_counts): Likewise.
35284 * resolv/herror.c (herror): Likewise.
35285 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
35286 macro.
35287 (__writev_nocancel_nostatus): New macro.
35288 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
35289 Remove macro.
35290 (__writev_nocancel_nostatus): New function.
35291
35292 2017-08-21 Joseph Myers <joseph@codesourcery.com>
35293
35294 Revert:
35295 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
35296
35297 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
35298 building libc.a.
35299 (hidden_proto): Likewise.
35300 (hidden_tls_proto): Likewise.
35301 (__hidden_proto): Likewise.
35302
35303 [BZ #21973]
35304 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
35305 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
35306 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
35307 Likewise.
35308 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
35309 Likewise.
35310 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
35311 Likewise.
35312 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
35313 Likewise.
35314 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
35315 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
35316 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
35317 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
35318 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
35319 GLIBC_2.0 sqrtl symbol.
35320
35321 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
35322 [__USE_MISC] (_LIB_VERSION): Likewise.
35323 [__USE_MISC] (struct exception): Likewise.
35324 [__USE_MISC] (matherr): Likewise.
35325 [__USE_MISC] (DOMAIN): Likewise.
35326 [__USE_MISC] (SING): Likewise.
35327 [__USE_MISC] (OVERFLOW): Likewise.
35328 [__USE_MISC] (UNDERFLOW): Likewise.
35329 [__USE_MISC] (TLOSS): Likewise.
35330 [__USE_MISC] (PLOSS): Likewise.
35331 [__USE_MISC] (HUGE): Likewise.
35332 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
35333 * math/math-svid-compat.h: New file.
35334 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
35335 and matherrl.
35336 * include/math.h [!_ISOMAC] (__matherr): Remove.
35337 * manual/arith.texi (FP Exceptions): Do not document matherr.
35338 * math/Makefile (tests): Change test-matherr to test-matherr-3.
35339 (tests-internal): New variable.
35340 (install-lib): Do not add libieee.a.
35341 (non-lib.a): Likewise.
35342 (extra-objs): Do not add libieee.a and ieee-math.o.
35343 (CPPFLAGS-s_lib_version.c): Remove variable.
35344 ($(objpfx)libieee.a): Remove rule.
35345 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
35346 * math/ieee-math.c: Remove.
35347 * math/libm-test-support.c (matherr): Remove.
35348 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
35349 and license notices. Include <math-svid-compat.h> and
35350 <shlib-compat.h>.
35351 (matherr): Undefine as macro. Use compat_symbol_reference.
35352 (_LIB_VERSION): Likewise.
35353 * math/test-matherr-2.c: New file.
35354 * math/test-matherr-3.c: Likewise.
35355 * sysdeps/generic/math_private.h (__kernel_standard): Remove
35356 declaration.
35357 (__kernel_standard_f): Likewise.
35358 (__kernel_standard_l): Likewise.
35359 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
35360 <math_private.h>. Include <math-svid-compat.h>.
35361 (_LIB_VERSION): Undefine as macro.
35362 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
35363 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
35364 [LIBM_SVID_COMPAT], use compat_symbol.
35365 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
35366 <math_private.h>. Include <math-svid-compat.h>.
35367 (matherr): Undefine as macro.
35368 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
35369 compat_symbol.
35370 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
35371 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
35372 compat_symbol_reference.
35373 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
35374 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
35375 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
35376 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
35377 (MATHERR_D): Remove declaration.
35378 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
35379 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
35380 [LIBM_BUILD] (pmatherrf): Likewise.
35381 [LIBM_BUILD] (pmatherr): Likewise.
35382 [LIBM_BUILD] (pmatherrl): Likewise.
35383 (DOMAIN): Likewise.
35384 (SING): Likewise.
35385 (OVERFLOW): Likewise.
35386 (UNDERFLOW): Likewise.
35387 (TLOSS): Likewise.
35388 (PLOSS): Likewise.
35389 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
35390 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
35391 compat_symbol.
35392 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
35393 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
35394 compat_symbol.
35395 * math/lgamma-compat.h: Include <math-svid-compat.h>.
35396 * math/w_acos_compat.c: Likewise.
35397 * math/w_acosf_compat.c: Likewise.
35398 * math/w_acosh_compat.c: Likewise.
35399 * math/w_acoshf_compat.c: Likewise.
35400 * math/w_acoshl_compat.c: Likewise.
35401 * math/w_acosl_compat.c: Likewise.
35402 * math/w_asin_compat.c: Likewise.
35403 * math/w_asinf_compat.c: Likewise.
35404 * math/w_asinl_compat.c: Likewise.
35405 * math/w_atan2_compat.c: Likewise.
35406 * math/w_atan2f_compat.c: Likewise.
35407 * math/w_atan2l_compat.c: Likewise.
35408 * math/w_atanh_compat.c: Likewise.
35409 * math/w_atanhf_compat.c: Likewise.
35410 * math/w_atanhl_compat.c: Likewise.
35411 * math/w_cosh_compat.c: Likewise.
35412 * math/w_coshf_compat.c: Likewise.
35413 * math/w_coshl_compat.c: Likewise.
35414 * math/w_exp10_compat.c: Likewise.
35415 * math/w_exp10f_compat.c: Likewise.
35416 * math/w_exp10l_compat.c: Likewise.
35417 * math/w_exp2_compat.c: Likewise.
35418 * math/w_exp2f_compat.c: Likewise.
35419 * math/w_exp2l_compat.c: Likewise.
35420 * math/w_fmod_compat.c: Likewise.
35421 * math/w_fmodf_compat.c: Likewise.
35422 * math/w_fmodl_compat.c: Likewise.
35423 * math/w_hypot_compat.c: Likewise.
35424 * math/w_hypotf_compat.c: Likewise.
35425 * math/w_hypotl_compat.c: Likewise.
35426 * math/w_j0_compat.c: Likewise.
35427 * math/w_j0f_compat.c: Likewise.
35428 * math/w_j0l_compat.c: Likewise.
35429 * math/w_j1_compat.c: Likewise.
35430 * math/w_j1f_compat.c: Likewise.
35431 * math/w_j1l_compat.c: Likewise.
35432 * math/w_jn_compat.c: Likewise.
35433 * math/w_jnf_compat.c: Likewise.
35434 * math/w_jnl_compat.c: Likewise.
35435 * math/w_lgamma_main.c: Likewise.
35436 * math/w_lgamma_r_compat.c: Likewise.
35437 * math/w_lgammaf_main.c: Likewise.
35438 * math/w_lgammaf_r_compat.c: Likewise.
35439 * math/w_lgammal_main.c: Likewise.
35440 * math/w_lgammal_r_compat.c: Likewise.
35441 * math/w_log10_compat.c: Likewise.
35442 * math/w_log10f_compat.c: Likewise.
35443 * math/w_log10l_compat.c: Likewise.
35444 * math/w_log2_compat.c: Likewise.
35445 * math/w_log2f_compat.c: Likewise.
35446 * math/w_log2l_compat.c: Likewise.
35447 * math/w_log_compat.c: Likewise.
35448 * math/w_logf_compat.c: Likewise.
35449 * math/w_logl_compat.c: Likewise.
35450 * math/w_pow_compat.c: Likewise.
35451 * math/w_powf_compat.c: Likewise.
35452 * math/w_powl_compat.c: Likewise.
35453 * math/w_remainder_compat.c: Likewise.
35454 * math/w_remainderf_compat.c: Likewise.
35455 * math/w_remainderl_compat.c: Likewise.
35456 * math/w_scalb_compat.c: Likewise.
35457 * math/w_scalbf_compat.c: Likewise.
35458 * math/w_scalbl_compat.c: Likewise.
35459 * math/w_sinh_compat.c: Likewise.
35460 * math/w_sinhf_compat.c: Likewise.
35461 * math/w_sinhl_compat.c: Likewise.
35462 * math/w_sqrt_compat.c: Likewise.
35463 * math/w_sqrtf_compat.c: Likewise.
35464 * math/w_sqrtl_compat.c: Likewise.
35465 * math/w_tgamma_compat.c: Likewise.
35466 * math/w_tgammaf_compat.c: Likewise.
35467 * math/w_tgammal_compat.c: Likewise.
35468 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
35469 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
35470 * sysdeps/ieee754/k_standard.c: Likewise.
35471 * sysdeps/ieee754/k_standardf.c: Likewise.
35472 * sysdeps/ieee754/k_standardl.c: Likewise.
35473 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
35474 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
35475 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
35476 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
35477 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
35478 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
35479 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
35480 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
35481 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
35482 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
35483 Likewise.
35484 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
35485 Likewise.
35486 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
35487 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
35488 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
35489 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
35490
35491 2017-08-21 Florian Weimer <fweimer@redhat.com>
35492
35493 [BZ #21864]
35494 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
35495 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
35496 Move before inclusion of ../Rules.
35497
35498 2017-08-21 Florian Weimer <fweimer@redhat.com>
35499
35500 [BZ #21972]
35501 * assert/assert.h (assert): Use static_cast (bool) for C++.
35502 Use the ternary operator in the warning branch for GNU C.
35503 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
35504 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
35505 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
35506 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
35507 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
35508
35509 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
35510
35511 [BZ #18822]
35512 * sysdeps/unix/sysv/linux/x86_64/init-first.c
35513 (__syscall_clock_gettime): Add attribute_hidden.
35514 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
35515 (__start_context): Likewise.
35516
35517 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
35518
35519 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
35520 building libc.a.
35521 (hidden_proto): Likewise.
35522 (hidden_tls_proto): Likewise.
35523 (__hidden_proto): Likewise.
35524
35525 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
35526
35527 * include/libc-symbols.h (attribute_hidden): Enable hidden
35528 visibility in libc.a compiled with PIE.
35529
35530 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
35531
35532 [BZ #18822]
35533 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
35534 Add attribute_hidden.
35535
35536 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
35537
35538 [BZ #21864]
35539 * Makerules (all-nonlib): Add $(others-extras).
35540 * catgets/Makefile (others-extras): New.
35541 * elf/Makefile (others-extras): Likewise.
35542 * nss/Makefile (others-extras): Likewise.
35543
35544 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
35545
35546 [BZ #18822]
35547 * csu/libc-start.c (__libc_multiple_libcs): Removed.
35548 * elf/dl-open.c: Include <libc-internal.h>.
35549 (__libc_multiple_libcs): Removed.
35550 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
35551 <hp-timing.h>.
35552 * include/libc-internal.h (__libc_multiple_libcs): New.
35553 * misc/sbrk.c: Include <libc-internal.h>.
35554 (__libc_multiple_libcs): Removed.
35555
35556 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
35557
35558 [BZ #18822]
35559 * grp/initgroups.c (__nss_group_database): Removed.
35560 (__nss_initgroups_database): Likewise.
35561 * nscd/gai.c (__nss_hosts_database): Likewise.
35562 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
35563 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
35564 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
35565 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
35566 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
35567 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
35568 attribute_hidden.
35569 * nss/nsswitch.c (__nss_database_custom): Define only if
35570 USE_NSCD is defined.
35571 (__nss_configure_lookup): Use __nss_database_custom only if
35572 USE_NSCD is defined.
35573 * nss/nsswitch.h (__nss_database_custom): Declare only if
35574 USE_NSCD is defined. Add attribute_hidden.
35575 (__nss_setent): Add attribute_hidden.
35576 (__nss_endent): Likewise.
35577 (__nss_getent_r): Likewise.
35578 (__nss_getent): Likewise.
35579 (DEFINE_DATABASE): Declare __nss_##arg##_database.
35580
35581 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
35582
35583 [BZ #18822]
35584 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
35585 libc_hidden_proto and libc_hidden_def.
35586
35587 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
35588
35589 [BZ #18822]
35590 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
35591 Add libc_hidden_proto.
35592 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
35593 Add libc_hidden_def.
35594
35595 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
35596
35597 [BZ #21974]
35598 * gmon/Makefile (routines): Remove bb_init_func and
35599 bb_exit_func.
35600 (elide-routines.os): Removed.
35601 * gmon/bb_exit_func.c: Likewise.
35602 * gmon/bb_init_func.c: Likewise.
35603 * include/sys/gmon.h (__bb): Likewise.
35604 (__bb_init_func): Likewise.
35605 (__bb_exit_func): Likewise.
35606 * sysdeps/alpha/bb_init_func.S: Likewise.
35607
35608 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
35609
35610 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
35611 * include/setjmp.h (____longjmp_chk): Here. Add
35612 attribute_hidden.
35613
35614 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
35615
35616 [BZ #18822]
35617 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
35618 attribute_hidden.
35619 (__strspn_sse2): Likewise.
35620
35621 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35622
35623 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
35624 (close_not_cancel_no_status): Likewise.
35625 (__close_nocancel): New macro.
35626 (__close_nocancel_nostatus): Likewise.
35627 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
35628 macro.
35629 (close_not_cancel): Likewise.
35630 (close_not_cancel_no_status): Likewise.
35631 (__close_nocancel): New prototype.
35632 (__close_nocancel_nostatus): New function.
35633 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
35634 * catgets/open_catalog.c (__open_catalog): Replace
35635 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
35636 * gmon/gmon.c (write_gmon): Likewise.
35637 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
35638 * intl/loadmsgcat.c (close): Likewise.
35639 * io/ftw.c (open_dir_stream): Likewise.
35640 (ftw_startup): Likewise.
35641 * libio/fileops.c (_IO_file_open): Likewise.
35642 (_IO_file_close_mmap): Likewise.
35643 (_IO_file_close): Likewise.
35644 * libio/iopopen.c (_IO_dup2): Likewise.
35645 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
35646 * locale/loadlocale.c (_nl_load_locale): Likewise.
35647 * login/utmp_file.c (pututline_file): Likewise.
35648 (endutent_file): Likewise.
35649 * misc/daemon.c (daemon): Likewise.
35650 * nscd/nscd_getai.c (__nscd_getai): Likewise.
35651 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
35652 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
35653 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
35654 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
35655 * nscd/nscd_helper.c (open_socket): Likewise.
35656 (__nscd_open_socket): Likewise.
35657 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
35658 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
35659 (__nscd_innetgr): Likewise.
35660 * nss/nss_db/db-open.c (internal_setent): Likewise.
35661 * resolv/res-close.c (__res_iclose): Likewise.
35662 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
35663 * sysdeps/posix/closedir.c (__closedir): Likewise.
35664 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
35665 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
35666 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
35667 (opendir_tail): Likewise.
35668 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
35669 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
35670 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
35671 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
35672 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
35673 (gethostid): Likewise.
35674 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
35675 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
35676 Likewise.
35677 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
35678 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
35679 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
35680 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
35681 Likewise.
35682 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
35683 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
35684 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
35685 Likewise.
35686 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
35687 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
35688 Likewise.
35689 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
35690 Likewise.
35691 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
35692 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
35693 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
35694 __close_nocancel.
35695
35696 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
35697 (openat_not_cancel_3): Likewise.
35698 (openat64_not_cancel_3): Likewise).
35699 (openat_not_cancel_3): Likewise).
35700 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
35701 macro.
35702 (openat_not_cancel_3): Likewise.
35703 (openat64_not_cancel): Likewise.
35704 (openat64_not_cancel_3): Likewise.
35705 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
35706 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
35707 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
35708 __open{64}_nocancel.
35709 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
35710 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
35711 * sysdeps/posix/opendir.c (__opendirat): Likewise.
35712
35713 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
35714
35715 [BZ #18822]
35716 * include/argz.h (__argz_create_sep): New function prototype.
35717 (__argz_append): Likewise.
35718 (__argz_add): Likewise.
35719 (__argz_add_sep): Likewise.
35720 (__argz_delete): Likewise.
35721 (__argz_insert): Likewise.
35722 (__argz_replace): Likewise.
35723 * string/argz.h (__argz_create_sep): Removed.
35724 (__argz_append): Likewise.
35725 (__argz_add): Likewise.
35726 (__argz_add_sep): Likewise.
35727 (__argz_delete): Likewise.
35728 (__argz_insert): Likewise.
35729 (__argz_replace): Likewise.
35730
35731 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
35732
35733 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
35734 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
35735 (GNU_PROPERTY_STACK_SIZE): Likewie.
35736 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
35737 (GNU_PROPERTY_LOPROC): Likewise.
35738 (GNU_PROPERTY_HIPROC): Likewise.
35739 (GNU_PROPERTY_LOUSER): Likewise.
35740 (GNU_PROPERTY_HIUSER): Likewise.
35741 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
35742 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
35743 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
35744 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
35745 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
35746 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
35747 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
35748 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
35749 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
35750 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
35751 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
35752 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
35753 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
35754 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
35755 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
35756 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
35757 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
35758 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
35759 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
35760 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
35761 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
35762 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
35763 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
35764
35765 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35766
35767 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
35768 in C++ mode.
35769
35770 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35771
35772 [BZ #21930]
35773 * math/math.h (isinf): Check if in C or C++ mode before using
35774 __builtin_types_compatible_p, since this is a C mode feature.
35775
35776 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35777
35778 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
35779 (__write_nocancel): New macro.
35780 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
35781 Rewrite as a function prototype.
35782 (write_not_cancel): Remove macro.
35783 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
35784 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
35785 (write_gmon): Likewise.
35786 * libio/fileops.c (_IO_new_file_write): Likewise.
35787 * login/utmp_file.c (pututline_file): Likewise.
35788 (updwtmp_file): Likewise.
35789 * stdio-common/psiginfo.c (psiginfo): Likewise.
35790 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
35791 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
35792 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
35793 Likewise.
35794 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
35795 Likewise.
35796
35797 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
35798 (__read_nocancel): New macro.
35799 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
35800 __read_nocancel.
35801 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
35802 macro.
35803 (__read_nocancel): New prototype.
35804 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
35805 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
35806 with __read_nocancel.
35807 * intl/loadmsgcat.c (read): Likewise.
35808 * libio/fileops.c (_IO_file_read): Likewise.
35809 * locale/loadlocale.c (_nl_load_locale): Likewise.
35810 * login/utmp_file.c (getutent_r_file): Likewise.
35811 (internal_getut_r): Likewise.
35812 (getutline_r_file): Likewise.
35813 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
35814 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
35815 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
35816 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
35817 Likewise.
35818 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
35819 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
35820 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
35821 Likewise.
35822 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
35823 Likewise.
35824 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
35825 Likewise.
35826 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
35827 Likewise.
35828 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
35829
35830 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
35831
35832 [BZ #21966]
35833 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
35834 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
35835 usable.
35836
35837 2017-08-17 DJ Delorie <dj@redhat.com>
35838
35839 * bug17079.c: Update to new test harness.
35840 * test-digits-dots.c: Likewise.
35841 * test-netdb.c: Likewise.
35842 * tst-field.c: Likewise.
35843 * tst-nss-getpwent.c: Likewise.
35844 * tst-nss-static.c: Likewise.
35845 * tst-nss-test1.c: Likewise.
35846 * tst-nss-test2.c: Likewise.
35847 * tst-nss-test3.c: Likewise.
35848 * tst-nss-test4.c: Likewise.
35849 * tst-nss-test5.c: Likewise.
35850
35851 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35852
35853 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
35854 (open_not_cancel_2): Likewise.
35855 (open_nocancel): New macro.
35856 (open64_nocancel): Likewise.
35857 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
35858 (open_not_cancel_2): Likewise.
35859 (__open_nocancel): New prototype.
35860 (__open64_nocancel): Likewise.
35861 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
35862 __open_nocancel.
35863 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
35864 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
35865 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
35866 with __open_nocancel.
35867 * csu/check_fds.c (check_one_fd): Likewise.
35868 * gmon/gmon.c (write_gmon): Likewise.
35869 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
35870 * intl/loadmsgcat.c (open): Likewise.
35871 * libio/fileops.c (_IO_file_open): Likewise.
35872 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
35873 * locale/loadlocale.c (_nl_load_locale): Likewise.
35874 * login/utmp_file.c (setutent_file): Likewise.
35875 * misc/daemon.c (daemon): Likewise.
35876 * nss/nss_db/db-open.c (internal_setent): Likewise.
35877 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
35878 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
35879 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
35880 (__opendir): Likewise.
35881 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
35882 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
35883 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
35884 (gethostid): Likewise.
35885 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
35886 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
35887 Likewise.
35888 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
35889 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
35890 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
35891 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
35892 Likewise.
35893 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
35894 Likewise.
35895 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
35896 Likewise.
35897 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
35898 Likewise.
35899 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
35900 Likewise.
35901 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
35902 Likewise.
35903 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
35904 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
35905
35906 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
35907
35908 * benchtests/bench-skeleton.c (main): Add support for
35909 latency benchmarking.
35910 * benchtests/scripts/bench.py: Add support for latency benchmarking.
35911
35912 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
35913
35914 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
35915 the startup object.
35916
35917 2017-08-17 Florian Weimer <fweimer@redhat.com>
35918
35919 * include/sys/socket.h (__opensock): Remove internal_function.
35920 * socket/opensock.c (__opensock): Likewise.
35921 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
35922
35923 2017-08-16 Joseph Myers <joseph@codesourcery.com>
35924
35925 [BZ #21944]
35926 * signal/bits/types/__sigval_t.h: New file.
35927 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
35928 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
35929 and define sigval_t using __sigval_t.
35930 * include/bits/types/__sigval_t.h: New file.
35931 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
35932 instead of <bits/types/__sigval_t.h>.
35933 (struct sigevent): Use __sigval_t instead of sigval_t.
35934 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
35935 instead of <bits/types/__sigval_t.h>.
35936 (siginfo_t): Use __sigval_t instead of sigval_t.
35937 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
35938 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
35939 (struct sigevent): Use __sigval_t instead of sigval_t.
35940 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
35941 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
35942 (siginfo_t): Use __sigval_t instead of sigval_t.
35943 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
35944
35945 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
35946
35947 * NEWS: Remove "[Add new features here]" for 2.27.
35948
35949 2017-08-16 Joseph Myers <joseph@codesourcery.com>
35950
35951 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
35952 libc.so.
35953
35954 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
35955
35956 * NEWS: Mention x86-64 FMA optimization.
35957
35958 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
35959
35960 [BZ #21912]
35961 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
35962 Add e_expf-fma.
35963 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
35964 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
35965 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
35966
35967 2017-08-16 Andreas Schwab <schwab@suse.de>
35968
35969 [BZ #16750]
35970 CVE-2009-5064
35971 * elf/ldd.bash.in: Never run file directly.
35972
35973 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
35974
35975 [BZ #21955]
35976 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
35977 (L(SP_INF_0)): Likewise.
35978
35979 2017-08-15 Florian Weimer <fweimer@redhat.com>
35980
35981 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
35982 run-built-tests.
35983
35984 2017-08-15 Florian Weimer <fweimer@redhat.com>
35985
35986 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
35987 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
35988 BROKEN_THREAD_SIGNALS code.
35989 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
35990 request_list): Remove caller_pid member used for
35991 BROKEN_THREAD_SIGNALS.
35992 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
35993 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
35994 Remove BROKEN_THREAD_SIGNALS support.
35995 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
35996 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
35997
35998 2017-08-15 Florian Weimer <fweimer@redhat.com>
35999
36000 * gmon/Makefile (tests): Add tst-gmon.
36001 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
36002 Set.
36003 (tests-special): Add tst-gmon-prof.out.
36004 (tst-gmon.out): Depend on clean-tst-gmon-data.
36005 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
36006 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
36007 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
36008 startup object.
36009 * aclocal.m4 (GPROF): Set and substitute.
36010 * config.amke.in (GPROF): Set.
36011 * configure: Regenerate.
36012
36013 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
36014
36015 * elf/elf.h A (NT_PPC_TAR): New macro.
36016 (NT_PPC_PPR): Likewise.
36017 (NT_PPC_DSCR): Likewise.
36018 (NT_PPC_EBB): Likewise.
36019 (NT_PPC_PMU): Likewise.
36020 (NT_PPC_TM_CGPR): Likewise.
36021 (NT_PPC_TM_CFPR): Likewise.
36022 (NT_PPC_TM_CVMX): Likewise.
36023 (NT_PPC_TM_CVSX): Likewise.
36024 (NT_PPC_TM_SPR): Likewise.
36025 (NT_PPC_TM_CTAR): Likewise.
36026 (NT_PPC_TM_CPPR): Likewise.
36027 (NT_PPC_TM_CDSCR): Likewise.
36028
36029 2017-08-15 Florian Weimer <fweimer@redhat.com>
36030
36031 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
36032 regparm (2) instead of internal_function.
36033 (_MCOUNT_DECL): Adjust.
36034
36035 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
36036
36037 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
36038 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
36039
36040 2017-08-14 Joseph Myers <joseph@codesourcery.com>
36041
36042 * conform/data/sys/wait.h-data (si_value): Do not expect for
36043 XPG42.
36044
36045 2017-08-14 Florian Weimer <fweimer@redhat.com>
36046
36047 [BZ #21962]
36048 NSS: Create stubs for accidentally exported lookup functions.
36049 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
36050 Remove declaration.
36051 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
36052 (ether_hostton): Call __nss_ethers_lookup2 instead.
36053 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
36054 (ether_ntohost): Call __nss_ethers_lookup2 instead.
36055 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
36056 (setup): Call __nss_netgroup_lookup2 instead.
36057 * nss/Makefile (routines): Add compat-lookup.
36058 * nss/Versions (GLIBC_2.27): Add symbol version.
36059 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
36060 (DB_COMPAT_FCT): Remove.
36061 * nss/compat-lookup.c: New file.
36062 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
36063 from databases.def.
36064 * nss/service-lookup.c (NO_COMPAT): Remove definition.
36065 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
36066 (netname2user): Call __nss_publickey_lookup2 instead.
36067 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
36068 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
36069 instead.
36070
36071 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36072 Sergei Trofimovich <slyfox@inbox.ru>
36073
36074 [BZ #21908]
36075 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
36076 Rename to MMAP2_PAGE_UNIT.
36077 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
36078 __OFF_T_MATCHES_OFF64_T is not defined.
36079 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
36080 uint64_t.
36081 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
36082 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
36083
36084 2017-08-14 Florian Weimer <fweimer@redhat.com>
36085
36086 i386: Do not set internal_function.
36087 * config.h.in (USE_REGPARMS, internal_function): Remove.
36088 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
36089 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
36090
36091 2017-08-14 Florian Weimer <fweimer@redhat.com>
36092
36093 * elf/dl-init.c (_dl_init): Remove internal_function.
36094 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
36095 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
36096
36097 2017-08-14 Florian Weimer <fweimer@redhat.com>
36098
36099 * elf/rtld.c (_dl_start): Remove internal_function.
36100 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
36101 _dl_start.
36102
36103 2017-08-14 Florian Weimer <fweimer@redhat.com>
36104
36105 * elf/dl-fini.c (_dl_fini): Remove internal_function
36106 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
36107
36108 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
36109
36110 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
36111 (bit_cpu_SHSTK): Likewise.
36112 (index_cpu_IBT): Likewise.
36113 (index_cpu_SHSTK): Likewise.
36114 (reg_IBT): Likewise.
36115 (reg_SHSTK): Likewise.
36116 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
36117 Handle index_cpu_IBT and index_cpu_SHSTK.
36118
36119 2017-08-14 Mike FABIAN <mfabian@redhat.com>
36120
36121 [BZ #19982]
36122 * po/fr.po: Fix spelling mistake.
36123
36124 2017-08-13 Florian Weimer <fweimer@redhat.com>
36125
36126 * elf/dl-addr.c (_dl_addr): Remove internal_function.
36127 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
36128 (_dl_catch_error, _dl_receive_error): Likewise.
36129 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
36130 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
36131 (_dl_deallocate_tls): Likewise.
36132 * include/dlfcn.h (_dl_addr): Likewise.
36133 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
36134 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
36135 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
36136 Likewise.
36137
36138 2017-08-13 Florian Weimer <fweimer@redhat.com>
36139
36140 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
36141 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
36142 internal_function.
36143 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
36144
36145 2017-08-13 Florian Weimer <fweimer@redhat.com>
36146
36147 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
36148 internal_function.
36149 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
36150 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
36151 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
36152 internal_function from _dl_make_stack_executable_hook member.
36153 (_dl_make_stack_executable): Remove internal_function.
36154 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
36155 Likewise.
36156 * sysdeps/unix/sysv/linux/dl-execstack.c
36157 (_dl_make_stack_executable): Likewise.
36158
36159 2017-08-13 Florian Weimer <fweimer@redhat.com>
36160
36161 * sysdeps/unix/sysv/linux/netlinkaccess.h
36162 (__netlink_assert_response): Remove internal_function.
36163 * sysdeps/unix/sysv/linux/netlink_assert_response.c
36164 (__netlink_assert_response): Likewise.
36165
36166 2017-08-13 Florian Weimer <fweimer@redhat.com>
36167
36168 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
36169 internal_function.
36170 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
36171
36172 2017-08-13 Florian Weimer <fweimer@redhat.com>
36173
36174 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
36175 internal_function.
36176 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
36177 * inet/netgroup.h (__internal_setnetgrent)
36178 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
36179 * inet/getnetgrent_r.c (__internal_setnetgrent)
36180 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
36181 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
36182 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
36183 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
36184 * nss/nsswitch.h (db_lookup_function): Likewise.
36185
36186 2017-08-13 Florian Weimer <fweimer@redhat.com>
36187
36188 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
36189 Remove internal_function.
36190 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
36191 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
36192 message argument on the stack.
36193 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
36194 Likeweise.
36195
36196 2017-08-12 Mike FABIAN <mfabian@redhat.com>
36197
36198 Adapt test case data to the changes in the thousands
36199 separators.
36200
36201 [BZ #20756]
36202 * localedata/tst-langinfo.sh: Adapt test case data.
36203 * stdlib/tst-strfmon_l.c: Likewise.
36204 * stdlib/tst-strtod4.c: Likewise.
36205 * stdlib/tst-strtod5i.c: Likewise.
36206
36207 2017-08-11 Florian Weimer <fweimer@redhat.com>
36208
36209 [BZ #21242]
36210 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
36211 Suppress pedantic warning resulting from statement expression.
36212 (__ASSERT_FUNCTION): Add missing __extension__.
36213
36214 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
36215
36216 * benchtests/bench-memmove-large.c: Print output in JSON
36217 format.
36218 * benchtests/bench-memmove.c: Likewise.
36219
36220 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
36221 * benchtests/bench-memchr.c (do_one_test): Likewise.
36222 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
36223 * benchtests/bench-memcpy.c (do_one_test): Likewise.
36224 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
36225 * benchtests/bench-memmove.c (do_one_test): Likewise.
36226 * benchtests/bench-memset-large.c (do_one_test): Likewise.
36227 * benchtests/bench-memset.c (do_one_test): Likewise.
36228 * benchtests/bench-string.h (test_init): Remove memsets.
36229
36230 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
36231
36232 * manual/lang.texi
36233 (Computing the Width of an Integer Data Type): Rename section to
36234 "Width of an Integer Type". Remove inaccurate statement regarding
36235 lack of C language facilities for determining width of integer
36236 types, and reorder content to improve flow and context of
36237 discussion.
36238
36239 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
36240
36241 * lang.texi (va_copy): Change standard from ISO to C99.
36242 (__va_copy): Add standard and header annotation.
36243 Update description for clarity of origins and current use.
36244
36245 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36246
36247 [BZ #21941]
36248 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
36249 xssqrtqp requires operands to be in Vector Registers
36250 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
36251 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
36252 (__ieee754_sqrtf128): Likewise.
36253
36254 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
36255
36256 * sysdeps/aarch64/memcmp.S (memcmp):
36257 Rewrite of optimized memcmp.
36258
36259 2017-08-10 Florian Weimer <fweimer@redhat.com>
36260
36261 Introduce ld.so exceptions.
36262 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
36263 (_dl_exception_create, _dl_exception_create_format)
36264 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
36265 (_dl_catch_exception): Declare.
36266 (_dl_catch_error): Update comment.
36267 * elf/dl-error-skeleton.c (struct catch): Replace objname,
36268 errstring, malloced members with exception member.
36269 (_dl_out_of_memory): Remove.
36270 (fatal_error): New function, extracted from _dl_signal_error.
36271 (_dl_signal_exception, _dl_signal_cexception): New functions.
36272 (_dl_signal_error): Call _dl_exception_create to allocate an
36273 exception object.
36274 (_dl_catch_exception): New function, based on _dl_catch_error.
36275 (_dl_catch_error): Implement using _dl_catch_exception.
36276 * elf/dl-exception.c: New file.
36277 * elf/Makefile (dl-routines): Add dl-exception.
36278 (elide-routines.os): Likewise.
36279 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
36280 _dl_exception_create_format, _dl_exception_free.
36281 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
36282 _dl_signal_exception.
36283 * elf/dl-lookup.c (make_string): Remove.
36284 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
36285 _dl_signal_cexception, _dl_exception_free.
36286 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
36287 _dl_signal_exception.
36288 * elf/dl-sym.c (do_sym): Likewise.
36289 * elf/dl-version.c (make_string): Remove.
36290 (match_symbol): Use _dl_exception_create_format,
36291 _dl_signal_cexception, _dl_exception_free.
36292 (_dl_check_map_versions): Likewise.
36293 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
36294 _dl_catch_exception.
36295 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
36296 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
36297 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
36298 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
36299 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
36300 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
36301 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
36302 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
36303 Likewise.
36304 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
36305 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
36306 (ld.so): Likewise.
36307 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
36308 (ld.so): Likewise.
36309 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
36310 Likewise.
36311 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
36312 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
36313 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
36314 Likewise.
36315 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
36316 Likewise.
36317 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
36318
36319 2017-08-10 Florian Weimer <fweimer@redhat.com>
36320
36321 * inet/net-internal.h (__inet6_scopeid_pton): Remove
36322 attribute_hidden, internal_function.
36323 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
36324 internal_function.
36325
36326 2017-08-10 Florian Weimer <fweimer@redhat.com>
36327
36328 * malloc/malloc.c (get_max_fast): Reimplement as an inline
36329 function which calls __builtin_unreachable.
36330
36331 2017-08-10 Mike FABIAN <mfabian@redhat.com>
36332
36333 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
36334 Indian monetary formatting
36335 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
36336 test cases.
36337
36338 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
36339
36340 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
36341 Fix typo in comment.
36342
36343 [BZ #21928]
36344 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
36345 PTRACE_SEIZE_DEVEL): Remove.
36346 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
36347 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
36348 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
36349 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
36350 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
36351
36352 2017-08-09 Joseph Myers <joseph@codesourcery.com>
36353
36354 * posix/bits/types.h (__qaddr_t): Remove.
36355
36356 [BZ #21457]
36357 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
36358 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
36359 __glibc_reserved1.
36360 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
36361 (ucontext_t): Use __ctx with uc_flags.
36362 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
36363 (__ctxt): Likewise.
36364 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
36365 __glibc_reserved1.
36366 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
36367 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
36368 __glibc_reserved1.
36369 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
36370 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
36371 __glibc_reserved1.
36372 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
36373 macro.
36374 (ucontext_t): Use __ctx with uc_flags.
36375 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
36376 (ucontext_t): Use __ctx with uc_flags.
36377 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
36378 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
36379 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
36380 (ucontext_t): Use __ctx with uc_flags.
36381 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
36382 undefine further down.
36383 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
36384 __glibc_reserved1.
36385 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
36386 undefine further down.
36387 (ucontext_t): Use __ctx with uc_flags.
36388 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
36389 undefine further down.
36390 (ucontext_t): Use __ctx with uc_flags.
36391 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
36392 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
36393 Rename uc_pad to __glibc_reserved1.
36394 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
36395 undefine further down.
36396 (ucontext_t): Use __ctx with uc_flags.
36397 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
36398 further down.
36399 (ucontext_t): Use __ctx with uc_flags.
36400 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
36401 __ctx with uc_flags.
36402 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
36403 (ucontext_t): Use __ctx with uc_flags.
36404 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
36405 __ctx with uc_flags.
36406
36407 2017-08-09 Florian Weimer <fweimer@redhat.com>
36408
36409 [BZ #21932]
36410 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
36411 before early return.
36412
36413 2017-08-09 Andreas Schwab <schwab@suse.de>
36414
36415 [BZ #21041]
36416 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
36417 renamed alias.
36418
36419 [BZ #21041]
36420 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
36421 tst-compat-forwarder.
36422 (modules-names): Add tst-compat-forwarder-mod.
36423 ($(objpfx)tst-compat-forwarder): Depend on
36424 $(objpfx)tst-compat-forwarder-mod.so.
36425 * nptl/tst-compat-forwarder.c: New file.
36426 * nptl/tst-compat-forwarder-mod.c: New file.
36427
36428 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
36429
36430 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
36431 comments.
36432
36433 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
36434 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
36435 memcpy_falkor.
36436 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
36437 Bump.
36438 (__libc_ifunc_impl_list): Add __memcpy_falkor.
36439 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
36440 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
36441 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
36442 Add falkor.
36443 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
36444 New macro.
36445
36446 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36447
36448 [BZ #759]
36449 * manual/setjmp.texi (getcontex): Document uc_stack value
36450 compatibility differences.
36451
36452 2017-08-08 Joseph Myers <joseph@codesourcery.com>
36453
36454 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
36455 (old_malloc_hook): Likewise.
36456 (old_memalign_hook): Likewise.
36457 (old_realloc_hook): Likewise.
36458 (struct hdr): Likewise.
36459 (flood): Likewise.
36460 (freehook): Likewise.
36461 (mallochook): Likewise.
36462 (memalignhook): Likewise.
36463 (reallochook): Likewise.
36464 (mprobe): Likewise.
36465 * malloc/mtrace.c (mallwatch): Likewise.
36466 (tr_old_free_hook): Likewise.
36467 (tr_old_malloc_hook): Likewise.
36468 (tr_old_realloc_hook): Likewise.
36469 (tr_old_memalign_hook): Likewise.
36470 (tr_where): Likewise.
36471 (lock_and_info): Likewise.
36472 (tr_freehook): Likewise.
36473 (tr_mallochook): Likewise.
36474 (tr_reallochook): Likewise.
36475 (tr_memalignhook): Likewise.
36476 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
36477 * misc/mmap.c (__mmap): Likewise.
36478 * misc/mmap64.c (__mmap64): Likewise.
36479 * misc/mprotect.c (__mprotect): Likewise.
36480 * misc/msync.c (msync): Likewise.
36481 * misc/munmap.c (__munmap): Likewise.
36482 * posix/posix_madvise.c (posix_madvise): Likewise.
36483 * socket/send.c (__send): Likewise.
36484 * socket/sendto.c (__sendto): Likewise.
36485 * socket/setsockopt.c (__setsockopt): Likewise.
36486 * string/memcmp.c (__ptr_t): Remove macro.
36487 (MEMCMP): Use void * instead of ptr_t.
36488 * string/memrchr.c (__ptr_t): Remove macro.
36489 (__memrchr): Use void * instead of ptr_t.
36490 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
36491 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
36492 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
36493 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
36494 * sysdeps/mach/msync.c (msync): Likewise.
36495 * sysdeps/mach/munmap.c (__munmap): Likewise.
36496 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
36497 Likewise.
36498 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
36499 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
36500 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
36501 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
36502 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
36503 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
36504 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
36505 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
36506 Likewise.
36507 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
36508 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
36509 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
36510 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
36511 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
36512 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
36513 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
36514 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
36515 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
36516 Likewise.
36517 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
36518 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
36519 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
36520 (MEMCMP): Use void * instead of ptr_t.
36521 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
36522 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
36523
36524 2017-08-08 Florian Weimer <fweimer@redhat.com>
36525
36526 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
36527 return statement.
36528
36529 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
36530
36531 [BZ #21913]
36532 * csu/libc-tls.c: Include <startup.h> first.
36533 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
36534 * elf/dl-tunables.c: Include <startup.h> first.
36535 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
36536 * sysdeps/generic/startup.h: New file.
36537 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
36538 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
36539 (I386_USE_SYSENTER): New. Defined to 0.
36540
36541 2017-08-08 Andreas Schwab <schwab@suse.de>
36542
36543 [BZ #21041]
36544 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
36545 * nptl/pt-system.c (system): Likewise.
36546
36547 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36548
36549 [BZ #21780]
36550 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
36551 EOPNOTSUPP.
36552 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
36553 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
36554 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
36555 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
36556 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
36557 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
36558 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
36559
36560 2017-08-07 Joseph Myers <joseph@codesourcery.com>
36561
36562 [BZ #21899]
36563 * bits/sigaction.h (struct sigaction): Define sa_handler and
36564 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
36565 (SA_ONSTACK): Change [__USE_UNIX98] condition to
36566 [__USE_XOPEN_EXTENDED].
36567 (SA_RESTART): Likewise.
36568 (SA_NODEFER): Likewise.
36569 (SA_RESETHAND): Likewise.
36570 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
36571 (struct sigaction): Define sa_handler and sa_sigaction using union
36572 also for [__USE_XOPEN_EXTENDED].
36573 (SA_ONSTACK): Change [__USE_UNIX98] condition to
36574 [__USE_XOPEN_EXTENDED].
36575 (SA_RESTART): Likewise.
36576 (SA_NODEFER): Likewise.
36577 (SA_RESETHAND): Likewise.
36578 * sysdeps/unix/sysv/linux/bits/sigaction.h
36579 (struct sigaction): Define sa_handler and sa_sigaction using union
36580 also for [__USE_XOPEN_EXTENDED].
36581 (SA_ONSTACK): Change [__USE_UNIX98] condition to
36582 [__USE_XOPEN_EXTENDED].
36583 (SA_RESTART): Likewise.
36584 (SA_NODEFER): Likewise.
36585 (SA_RESETHAND): Likewise.
36586 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
36587 (struct sigaction): Define sa_handler and sa_sigaction using union
36588 also for [__USE_XOPEN_EXTENDED].
36589 (SA_ONSTACK): Change [__USE_UNIX98] condition to
36590 [__USE_XOPEN_EXTENDED].
36591 (SA_RESTART): Likewise.
36592 (SA_NODEFER): Likewise.
36593 (SA_RESETHAND): Likewise.
36594 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
36595 (struct sigaction): Define sa_handler and sa_sigaction using union
36596 also for [__USE_XOPEN_EXTENDED].
36597 (SA_ONSTACK): Change [__USE_UNIX98] condition to
36598 [__USE_XOPEN_EXTENDED].
36599 (SA_RESTART): Likewise.
36600 (SA_NODEFER): Likewise.
36601 (SA_RESETHAND): Likewise.
36602 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
36603 (struct sigaction): Define sa_handler and sa_sigaction using union
36604 also for [__USE_XOPEN_EXTENDED].
36605 (SA_ONSTACK): Change [__USE_UNIX98] condition to
36606 [__USE_XOPEN_EXTENDED].
36607 (SA_RESTART): Likewise.
36608 (SA_NODEFER): Likewise.
36609 (SA_RESETHAND): Likewise.
36610 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
36611 (struct sigaction): Define sa_handler and sa_sigaction using union
36612 also for [__USE_XOPEN_EXTENDED].
36613 (SA_ONSTACK): Change [__USE_UNIX98] condition to
36614 [__USE_XOPEN_EXTENDED].
36615 (SA_RESTART): Likewise.
36616 (SA_NODEFER): Likewise.
36617 (SA_RESETHAND): Likewise.
36618 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
36619 (struct sigaction): Define sa_handler and sa_sigaction using union
36620 also for [__USE_XOPEN_EXTENDED].
36621 (SA_ONSTACK): Change [__USE_UNIX98] condition to
36622 [__USE_XOPEN_EXTENDED].
36623 (SA_RESTART): Likewise.
36624 (SA_NODEFER): Likewise. Define directly rather than as alias.
36625 (SA_RESETHAND): Likewise.
36626 (SA_INTERRUPT): Define only for [__USE_MISC].
36627 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
36628 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
36629 [__USE_MISC].
36630 (SA_STACK): Define only for [__USE_MISC].
36631 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
36632 (struct sigaction): Define sa_handler and sa_sigaction using union
36633 also for [__USE_XOPEN_EXTENDED].
36634 (SA_ONSTACK): Change [__USE_UNIX98] condition to
36635 [__USE_XOPEN_EXTENDED].
36636 (SA_RESTART): Likewise.
36637 (SA_NODEFER): Likewise.
36638 (SA_RESETHAND): Likewise.
36639 (SA_NOPTRACE): Define only for [__USE_MISC].
36640
36641 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
36642 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
36643 (struct catalog_info): Likewise.
36644 * inet/htontest.c (lo): Likewise.
36645 (foo): Likewise.
36646 * inet/inet_lnaof.c (inet_lnaof): Likewise.
36647 * inet/inet_net.c (inet_network): Likewise.
36648 * inet/inet_netof.c (inet_netof): Likewise.
36649 * inet/rcmd.c (__ivaliduser): Likewise.
36650 (iruserok): Likewise.
36651 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
36652 * locale/programs/locale-spec.c (locale_special): Likewise.
36653 * nis/nis_findserv.c (struct findserv_req): Likewise.
36654 (__nis_findfastest_with_timeout): Likewise.
36655 * nss/test-netdb.c (test_network): Likewise.
36656 * resolv/inet_neta.c (inet_neta): Likewise.
36657 * resolv/ns_date.c (ns_datetosecs): Likewise.
36658 (SECS_PER_DAY): Likewise.
36659 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
36660 Likewise.
36661 * resolv/res_comp.c (__putlong): Likewise.
36662 (__putshort): Likewise.
36663 (_getlong): Likewise.
36664 (_getshort): Likewise.
36665 * resolv/res_debug.c (p_time): Likewise.
36666 (precsize_ntoa): Likewise.
36667 (precsize_aton): Likewise.
36668 (latlon2ul): Likewise.
36669 (loc_aton): Likewise.
36670 (loc_ntoa): Likewise.
36671 * resolv/res_hconf.c (struct netaddr): Likewise.
36672 (_res_hconf_reorder_addrs): Likewise.
36673 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
36674 (clnttcp_control): Likewise.
36675 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
36676 (clntudp_control): Likewise.
36677 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
36678 (clntunix_control): Likewise.
36679 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
36680 * sunrpc/rpc/auth.h (union des_block): Likewise.
36681 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
36682 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
36683 (xdrrec_create): Likewise.
36684 (xdrrec_endofrecord): Likewise.
36685 (flush_out): Likewise.
36686 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
36687 (xdrstdio_putlong): Likewise.
36688 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
36689 Likewise.
36690
36691 * misc/sys/cdefs.h (__long_double_t): Remove.
36692 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
36693 instead of __long_double_t,
36694 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
36695
36696 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
36697
36698 * benchtests/scripts/compare_strings.py: Avoid display error when
36699 running on a text terminal.
36700
36701 * benchtests/scripts/compare_strings.py (main): Add an
36702 optional -base option.
36703 (process_results): New argument base_func.
36704
36705 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
36706 hardcoding memcpy.
36707 * benchtests/bench-memcpy-large.c (test_name): Likewise.
36708 * benchtests/bench-memcpy-random.c (test_name): Likewise.
36709
36710 2017-08-07 Andreas Schwab <schwab@suse.de>
36711
36712 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
36713 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
36714 * intl/Makefile ($(objpfx)tst-gettext.out)
36715 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
36716 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
36717 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
36718 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
36719 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
36720 * posix/Makefile ($(objpfx)globtest.out)
36721 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
36722 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
36723 ($(objpfx)tst-printf.out): Likewise.
36724 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
36725 ($(objpfx)tst-setcontext3.out): Likewise.
36726
36727 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
36728
36729 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
36730 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
36731 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
36732 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
36733 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
36734 and mptan-fma.
36735 (CFLAGS-doasin-fma.c): New.
36736 (CFLAGS-dosincos-fma.c): Likewise.
36737 (CFLAGS-e_asin-fma.c): Likewise.
36738 (CFLAGS-e_atan2-fma.c): Likewise.
36739 (CFLAGS-e_exp-fma.c): Likewise.
36740 (CFLAGS-e_log-fma.c): Likewise.
36741 (CFLAGS-e_pow-fma.c): Likewise.
36742 (CFLAGS-halfulp-fma.c): Likewise.
36743 (CFLAGS-mpa-fma.c): Likewise.
36744 (CFLAGS-mpatan-fma.c): Likewise.
36745 (CFLAGS-mpatan2-fma.c): Likewise.
36746 (CFLAGS-mpexp-fma.c): Likewise.
36747 (CFLAGS-mplog-fma.c): Likewise.
36748 (CFLAGS-mpsqrt-fma.c): Likewise.
36749 (CFLAGS-mptan-fma.c): Likewise.
36750 (CFLAGS-s_atan-fma.c): Likewise.
36751 (CFLAGS-sincos32-fma.c): Likewise.
36752 (CFLAGS-slowexp-fma.c): Likewise.
36753 (CFLAGS-slowpow-fma.c): Likewise.
36754 (CFLAGS-s_sin-fma.c): Likewise.
36755 (CFLAGS-s_tan-fma.c): Likewise.
36756 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
36757 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
36758 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
36759 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
36760 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
36761 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
36762 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
36763 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
36764 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
36765 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
36766 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
36767 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
36768 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
36769 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
36770 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
36771 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
36772 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
36773 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
36774 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
36775 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
36776 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
36777 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
36778 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
36779 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
36780 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
36781 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
36782 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
36783 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
36784 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
36785 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
36786 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
36787
36788 2017-08-04 Joseph Myers <joseph@codesourcery.com>
36789
36790 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
36791 (min_of_type_f): New macro.
36792 (min_of_type_): Likewise.
36793 (min_of_type_l): Likewise.
36794 (min_of_type_f128): Likewise.
36795 (min_of_type): Define using __MATH_TG and taking an expression
36796 argument.
36797 (math_check_force_underflow): Pass expression instead of type to
36798 min_of_type.
36799 (math_check_force_underflow_nonneg): Likewise.
36800
36801 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
36802
36803 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
36804 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
36805 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
36806
36807 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
36808
36809 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
36810 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
36811 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
36812 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
36813 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
36814 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
36815 memcpy_chk-nonshared, mempcpy_chk-nonshared,
36816 memmove_chk-nonshared and memset_chk-nonshared
36817 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
36818 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
36819 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
36820 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
36821 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
36822 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
36823 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
36824 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
36825 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
36826 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
36827 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
36828 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
36829 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
36830 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
36831 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
36832 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
36833 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
36834 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
36835 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
36836 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
36837 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
36838 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
36839 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
36840 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
36841 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
36842 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
36843 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
36844 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
36845 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
36846 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
36847 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
36848 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
36849 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
36850 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
36851 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
36852 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
36853 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
36854 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
36855 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
36856 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
36857 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
36858 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
36859 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
36860 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
36861 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
36862 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
36863 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
36864 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
36865 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
36866 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
36867 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
36868 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
36869 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
36870 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
36871 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
36872 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
36873 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
36874 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
36875 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
36876 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
36877 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
36878 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
36879 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
36880 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
36881 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
36882 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
36883 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
36884 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
36885 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
36886 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
36887 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
36888 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
36889 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
36890 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
36891 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
36892 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
36893 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
36894 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
36895 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
36896 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
36897 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
36898 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
36899 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
36900 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
36901 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
36902 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
36903 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
36904 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
36905 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
36906 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
36907 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
36908 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
36909 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
36910 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
36911 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
36912 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
36913 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
36914 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
36915 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
36916 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
36917 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
36918 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
36919 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
36920 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
36921 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
36922 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
36923 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
36924 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
36925
36926 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
36927
36928 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
36929 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
36930 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
36931 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
36932 svml_d_log2_core-sse2, svml_d_log4_core-sse,
36933 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
36934 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
36935 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
36936 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
36937 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
36938 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
36939 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
36940 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
36941 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
36942 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
36943 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
36944 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
36945 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
36946 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
36947 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
36948 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
36949 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
36950 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
36951 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
36952 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
36953 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
36954 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
36955 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
36956 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
36957 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
36958 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
36959 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
36960 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
36961 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
36962 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
36963 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
36964 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
36965 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
36966 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
36967 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
36968 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
36969 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
36970 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
36971 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
36972 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
36973 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
36974 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
36975 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
36976 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
36977 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
36978 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
36979 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
36980 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
36981 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
36982 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
36983 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
36984 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
36985 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
36986 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
36987 ...
36988 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
36989 Don't include <sysdep.h> nor <init-arch.h>.
36990 (_ZGVbN2v_cos): Removed.
36991 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
36992 ...
36993 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
36994 Don't include <sysdep.h> nor <init-arch.h>.
36995 (_ZGVdN4v_cos): Removed.
36996 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
36997 ...
36998 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
36999 Don't include <sysdep.h> nor <init-arch.h>.
37000 (_ZGVeN8v_cos): Removed.
37001 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
37002 ...
37003 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
37004 Don't include <sysdep.h> nor <init-arch.h>.
37005 (_ZGVbN2v_exp): Removed.
37006 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
37007 ...
37008 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
37009 Don't include <sysdep.h> nor <init-arch.h>.
37010 (_ZGVdN4v_exp): Removed.
37011 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
37012 ...
37013 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
37014 Don't include <sysdep.h> nor <init-arch.h>.
37015 (_ZGVeN8v_exp): Removed.
37016 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
37017 ...
37018 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
37019 Don't include <sysdep.h> nor <init-arch.h>.
37020 (_ZGVbN2v_log): Removed.
37021 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
37022 ...
37023 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
37024 Don't include <sysdep.h> nor <init-arch.h>.
37025 (_ZGVdN4v_log): Removed.
37026 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
37027 ...
37028 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
37029 Don't include <sysdep.h> nor <init-arch.h>.
37030 (_ZGVeN8v_log): Removed.
37031 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
37032 ...
37033 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
37034 Don't include <sysdep.h> nor <init-arch.h>.
37035 (_ZGVbN2vv_pow): Removed.
37036 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
37037 ...
37038 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
37039 Don't include <sysdep.h> nor <init-arch.h>.
37040 (_ZGVdN4vv_pow): Removed.
37041 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
37042 ...
37043 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
37044 Don't include <sysdep.h> nor <init-arch.h>.
37045 (_ZGVeN8vv_pow): Removed.
37046 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
37047 ...
37048 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
37049 Don't include <sysdep.h> nor <init-arch.h>.
37050 (_ZGVbN2v_sin): Removed.
37051 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
37052 ...
37053 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
37054 Don't include <sysdep.h> nor <init-arch.h>.
37055 (_ZGVbN4v_sin): Removed.
37056 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
37057 ...
37058 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
37059 Don't include <sysdep.h> nor <init-arch.h>.
37060 (_ZGVbN8v_sin): Removed.
37061 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
37062 ...
37063 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
37064 Don't include <sysdep.h> nor <init-arch.h>.
37065 (_ZGVbN2vvv_sincos): Removed.
37066 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
37067 ...
37068 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
37069 Don't include <sysdep.h> nor <init-arch.h>.
37070 (_ZGVdN4vvv_sincos): Removed.
37071 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
37072 ...
37073 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
37074 Don't include <sysdep.h> nor <init-arch.h>.
37075 (_ZGVeN8vvv_sincos): Removed.
37076 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
37077 ...
37078 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
37079 Don't include <sysdep.h> nor <init-arch.h>.
37080 (_ZGVeN16v_cosf): Removed.
37081 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
37082 ...
37083 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
37084 Don't include <sysdep.h> nor <init-arch.h>.
37085 (_ZGVbN4v_cosf): Removed.
37086 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
37087 ...
37088 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
37089 Don't include <sysdep.h> nor <init-arch.h>.
37090 (_ZGVdN8v_cosf): Removed.
37091 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
37092 ...
37093 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
37094 Don't include <sysdep.h> nor <init-arch.h>.
37095 (_ZGVeN16v_expf): Removed.
37096 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
37097 ...
37098 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
37099 Don't include <sysdep.h> nor <init-arch.h>.
37100 (_ZGVbN4v_expf): Removed.
37101 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
37102 ...
37103 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
37104 Don't include <sysdep.h> nor <init-arch.h>.
37105 (_ZGVdN8v_expf): Removed.
37106 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
37107 ...
37108 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
37109 Don't include <sysdep.h> nor <init-arch.h>.
37110 (_ZGVeN16v_logf): Removed.
37111 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
37112 ...
37113 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
37114 Don't include <sysdep.h> nor <init-arch.h>.
37115 (_ZGVbN4v_logf): Removed.
37116 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
37117 ...
37118 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
37119 Don't include <sysdep.h> nor <init-arch.h>.
37120 (_ZGVdN8v_logf): Removed.
37121 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
37122 ...
37123 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
37124 Don't include <sysdep.h> nor <init-arch.h>.
37125 (_ZGVeN16vv_powf): Removed.
37126 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
37127 ...
37128 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
37129 Don't include <sysdep.h> nor <init-arch.h>.
37130 (_ZGVbN4vv_powf): Removed.
37131 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
37132 ...
37133 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
37134 Don't include <sysdep.h> nor <init-arch.h>.
37135 (_ZGVdN8vv_powf): Removed.
37136 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
37137 ...
37138 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
37139 Don't include <sysdep.h> nor <init-arch.h>.
37140 (_ZGVeN16vvv_sincosf): Removed.
37141 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
37142 ...
37143 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
37144 Don't include <sysdep.h> nor <init-arch.h>.
37145 (_ZGVbN4vvv_sincosf): Removed.
37146 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
37147 ...
37148 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
37149 Don't include <sysdep.h> nor <init-arch.h>.
37150 (_ZGVdN8vvv_sincosf): Removed.
37151 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
37152 ...
37153 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
37154 Don't include <sysdep.h> nor <init-arch.h>.
37155 (_ZGVeN16v_sinf): Removed.
37156 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
37157 ...
37158 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
37159 Don't include <sysdep.h> nor <init-arch.h>.
37160 (_ZGVbN4v_sinf): Removed.
37161 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
37162 ...
37163 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
37164 Don't include <sysdep.h> nor <init-arch.h>.
37165 (_ZGVdN8v_sinf): Removed.
37166
37167 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37168
37169 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
37170 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
37171 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
37172 s_rint-sse4_1 and s_rintf-sse4_1.
37173 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
37174 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
37175 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
37176 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
37177 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
37178 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
37179 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
37180 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
37181 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
37182 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
37183 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
37184 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37185 (__ceil): Removed.
37186 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
37187 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
37188 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37189 (__ceilf): Removed.
37190 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
37191 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
37192 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37193 (__floor): Removed.
37194 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
37195 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
37196 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37197 (__floorf): Removed.
37198 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
37199 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
37200 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37201 (__nearbyint): Removed.
37202 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
37203 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
37204 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37205 (__nearbyintf): Removed.
37206 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
37207 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
37208 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37209 (__rint): Removed.
37210 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
37211 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
37212 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37213 (__rintf): Removed.
37214
37215 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37216
37217 * sysdeps/i386/start.S (_start): Check Check PIC instead of
37218 SHARED. Avoid dynamic relocation against main in static PIE.
37219
37220 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37221
37222 [BZ #21815]
37223 * elf/Makefile (CFLAGS-tst-prelink.c): New.
37224 (LDFLAGS-tst-prelink): Likewise.
37225
37226 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37227
37228 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
37229 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
37230 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
37231 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
37232 (INTERNAL_SYSCALL_NCS): Likewise.
37233 (LOADARGS_1): Likewise.
37234 (LOADARGS_5): Likewise.
37235 (RESTOREARGS_1): Likewise.
37236 (RESTOREARGS_5): Likewise.
37237
37238 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37239
37240 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
37241 (MEMPCPY_SYMBOL): Likewise.
37242 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
37243 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
37244 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
37245 in libc.a.
37246 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
37247 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
37248 Likewise.
37249 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
37250 (__hidden_ver1): Don't use in libc.a.
37251 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
37252 (__mempcpy): Don't create a weak alias in libc.a.
37253 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
37254 libc.a.
37255 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
37256 (__hidden_ver1): Don't use in libc.a.
37257
37258 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37259
37260 * config.make.in (have-insert): New.
37261 * configure.ac (libc_cv_insert): New. Set to yes if linker
37262 supports INSERT in linker script.
37263 (AC_SUBST(libc_cv_insert): New.
37264 * configure: Regenerated.
37265 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
37266 if $(have-insert) == yes.
37267
37268 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37269
37270 * elf/Makefile (tests): Add vismain only if
37271 $(have-protected-data) == yes.
37272 (tests-pie): Likewise.
37273
37274 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37275
37276 [BZ #21871]
37277 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
37278 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
37279
37280 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37281
37282 [BZ #21790]
37283 * sysdeps/i386/i586/memset.S
37284 (__memset_zero_constant_len_parameter): Removed.
37285 * sysdeps/i386/i686/memset.S
37286 (__memset_zero_constant_len_parameter): Likewise.
37287 * sysdeps/i386/i686/multiarch/memset_chk.S
37288 (__memset_zero_constant_len_parameter): Likewise.
37289 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
37290 Likewise.
37291
37292 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
37293
37294 * stdlib/getentropy.c (getentropy): Change return type to int.
37295
37296 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
37297
37298 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
37299
37300 2017-08-03 Joseph Myers <joseph@codesourcery.com>
37301
37302 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
37303 u_intN_t.
37304 * math/s_nexttowardf.c (__nexttowardf): Likewise.
37305 * sysdeps/generic/math_private.h (ieee_double_shape_type):
37306 Likewise.
37307 (ieee_float_shape_type): Likewise.
37308 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
37309 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
37310 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
37311 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
37312 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
37313 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
37314 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
37315 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
37316 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
37317 Likewise.
37318 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
37319 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
37320 (__ieee754_yn): Likewise.
37321 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
37322 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
37323 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
37324 Likewise.
37325 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
37326 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
37327 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
37328 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
37329 (__erfc): Likewise.
37330 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
37331 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
37332 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
37333 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
37334 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
37335 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
37336 Likewise.
37337 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
37338 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
37339 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
37340 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
37341 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
37342 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
37343 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
37344 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
37345 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
37346 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
37347 (__issignaling): Likewise.
37348 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
37349 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
37350 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
37351 Likewise.
37352 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
37353 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
37354 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
37355 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
37356 Likewise.
37357 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
37358 Likewise.
37359 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
37360 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
37361 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
37362 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
37363 (__erfcf): Likewise.
37364 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
37365 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
37366 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
37367 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
37368 Likewise.
37369 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
37370 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
37371 Likewise.
37372 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
37373 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
37374 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
37375 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
37376 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
37377 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
37378 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
37379 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
37380 Likewise.
37381 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
37382 Likewise.
37383 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
37384 Likewise.
37385 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
37386 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
37387 Likewise.
37388 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
37389 Likewise.
37390 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
37391 (__ieee754_ynl): Likewise.
37392 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
37393 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
37394 Likewise.
37395 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
37396 Likewise.
37397 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
37398 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
37399 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
37400 Likewise.
37401 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
37402 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
37403 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
37404 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
37405 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
37406 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
37407 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
37408 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
37409 Likewise.
37410 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
37411 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
37412 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
37413 Likewise.
37414 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
37415 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
37416 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
37417 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
37418 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
37419 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
37420 Likewise.
37421 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
37422 Likewise.
37423 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
37424 Likewise.
37425 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
37426 Likewise.
37427 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
37428 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
37429 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
37430 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
37431 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
37432 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
37433 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
37434 Likewise.
37435 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
37436 Likewise.
37437 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
37438 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
37439 Likewise.
37440 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
37441 (__ieee754_remainderl): Likewise.
37442 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
37443 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
37444 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
37445 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
37446 Likewise.
37447 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
37448 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
37449 Likewise.
37450 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
37451 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
37452 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
37453 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
37454 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
37455 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
37456 Likewise.
37457 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
37458 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
37459 (__ieee754_y0l): Likewise.
37460 (pzero): Likewise.
37461 (qzero): Likewise.
37462 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
37463 (__ieee754_y1l): Likewise.
37464 (pone): Likewise.
37465 (qone): Likewise.
37466 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
37467 (__ieee754_ynl): Likewise.
37468 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
37469 (__ieee754_lgammal_r): Likewise.
37470 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
37471 Likewise.
37472 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
37473 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
37474 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
37475 (__erfcl): Likewise.
37476 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
37477 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
37478 Likewise.
37479 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
37480 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
37481 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
37482 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
37483 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
37484 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
37485 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
37486 Likewise.
37487 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
37488 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
37489 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
37490 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
37491 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
37492 Likewise.
37493 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
37494 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
37495 Likewise.
37496 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
37497 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
37498 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
37499 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
37500 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
37501
37502 2017-08-03 Florian Weimer <fweimer@redhat.com>
37503
37504 [BZ #21885]
37505 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
37506 on memory allocation failure.
37507
37508 2017-08-03 Alan Modra <amodra@gmail.com>
37509
37510 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
37511 tst-tlsopt-powerpc.c with function name change and no test harness.
37512 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
37513 Call tls_get_addr_opt_test.
37514 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
37515 (modules-names): Add mod-tlsopt-powerpc.
37516 (mod-tlsopt-powerpc.so-no-z-defs): Define.
37517 (tst-tlsopt-powerpc): Depend on .so.
37518 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
37519 define. Expand use in TLS_GD and TLS_LD.
37520
37521 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
37522
37523 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
37524 function.
37525 * sysdeps/posix/shm_open.c: Include <pthread.h>.
37526
37527 2017-08-02 Joseph Myers <joseph@codesourcery.com>
37528
37529 [BZ #21686]
37530 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
37531 comparing size with that of double.
37532 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
37533 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
37534 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
37535 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
37536 (__TGMATH_BINARY_REAL_IMAG): Likewise.
37537 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
37538 unsigned __int128 types.
37539
37540 2017-08-02 Steve Ellcey <sellcey@cavium.com>
37541
37542 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
37543 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
37544 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
37545 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
37546 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
37547
37548 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
37549
37550 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
37551
37552 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
37553
37554 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
37555 of SHARED.
37556 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
37557 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
37558 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
37559 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
37560 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
37561 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
37562 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
37563
37564 2017-08-02 Joseph Myers <joseph@codesourcery.com>
37565
37566 [BZ #21685]
37567 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
37568 bit-field expressions passed to sizeof or typeof.
37569 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
37570 (__TGMATH_F128): Likewise.
37571 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
37572 (__TGMATH_CF128): Likewise.
37573 (__TGMATH_UNARY_REAL_ONLY): Likewise.
37574 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
37575 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
37576 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
37577 (__TGMATH_BINARY_REAL_ONLY): Likewise.
37578 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
37579 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
37580 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
37581 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
37582 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
37583 (__TGMATH_UNARY_REAL_IMAG): Likewise.
37584 (__TGMATH_UNARY_IMAG): Likewise.
37585 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
37586 (__TGMATH_BINARY_REAL_IMAG): Likewise.
37587 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
37588 type.
37589 (define_vars_for_type): Handle bit_field type specially.
37590 (Tests.__init__): Declare structure with bit-field element.
37591
37592 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
37593
37594 [BZ #21791]
37595 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
37596 (MEMCPY_CHK): Define only if SHARED is defined.
37597 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
37598 Likewise.
37599 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
37600 Likewise.
37601
37602 See ChangeLog.18 for earlier changes.