]> git.ipfire.org Git - thirdparty/glibc.git/blame - ChangeLog
Document strftime %Ob and %OB as C2X features.
[thirdparty/glibc.git] / ChangeLog
CommitLineData
c737ef0d
JM
12019-08-22 Joseph Myers <joseph@codesourcery.com>
2
3 * manual/time.texi (strftime): Document %Ob and %OB as C2X
4 features.
5
8a80ee5e
PE
62019-08-21 Paul Eggert <eggert@cs.ucla.edu>
7
f615e3fc
PE
8 Remove dead regex code
9 * posix/regex_internal.c (re_node_set_insert):
10 Remove unnecessary assignment. Reported by Tim Rühsen in:
11 https://lists.gnu.org/r/bug-gnulib/2019-08/msg00026.html
12
8a80ee5e
PE
13 Fix bad pointer / leak in regex code
14 This was found by Coverity (CID 1484201). [BZ#24844]
15 * posix/regex_internal.c (create_cd_newstate): Fix use of bad
16 pointer and/or memory leak when storage is exhausted.
17
1baae4aa
ZW
182019-08-21 Zack Weinberg <zackw@panix.com>
19
20 * misc/syslog.c (__vsyslog_internal)
21 * time/getdate.c (__getdate_r)
22 * time/tst_wcsftime.c (main):
23 Use return value of time, not its argument.
24
25 * string/strfry.c (strfry)
26 * sysdeps/mach/sleep.c (__sleep):
27 Remove unnecessary casts of NULL in calls to time.
28
f9fabc1b
JM
292019-08-21 Joseph Myers <joseph@codesourcery.com>
30
31 * math/tgmath.h [__HAVE_FLOAT128X]: Give error.
32 [(__HAVE_FLOAT64X && !__HAVE_FLOAT128)
33 || (__HAVE_FLOAT128 && !__HAVE_FLOAT64X)]: Likewise.
34 (__TGMATH_2_NARROW_F): Likewise.
35 (__TGMATH_2_NARROW_D): New macro.
36 (__TGMATH_2_NARROW_F16): Likewise.
37 (__TGMATH_2_NARROW_F32): Likewise.
38 (__TGMATH_2_NARROW_F64): Likewise.
39 (__TGMATH_2_NARROW_F32X): Likewise.
40 (__TGMATH_2_NARROW_F64X): Likewise.
41 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F): Likewise.
42 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F16): Likewise.
43 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F32): Likewise.
44 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F64): Likewise.
45 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F32X): Likewise.
46 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fadd): Likewise.
47 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dadd): Likewise.
48 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fdiv): Likewise.
49 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (ddiv): Likewise.
50 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fmul): Likewise.
51 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dmul): Likewise.
52 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fsub): Likewise.
53 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dsub): Likewise.
54 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16add):
55 Likewise.
56 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16div):
57 Likewise.
58 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16mul):
59 Likewise.
60 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16sub):
61 Likewise.
62 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32add):
63 Likewise.
64 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32div):
65 Likewise.
66 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32mul):
67 Likewise.
68 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32sub):
69 Likewise.
70 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
71 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64add): Likewise.
72 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
73 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64div): Likewise.
74 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
75 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64mul): Likewise.
76 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
77 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64sub): Likewise.
78 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xadd):
79 Likewise.
80 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xdiv):
81 Likewise.
82 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xmul):
83 Likewise.
84 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xsub):
85 Likewise.
86 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
87 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xadd): Likewise.
88 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
89 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xdiv): Likewise.
90 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
91 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xmul): Likewise.
92 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
93 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xsub): Likewise.
94 * math/gen-tgmath-tests.py (Type): Add members
95 non_standard_real_argument_types_list, long_double_type,
96 complex_float64_type and float32x_ext_type.
97 (Type.__init__): Set the new members.
98 (Type.floating_type): Add new argument floatn.
99 (Type.real_floating_type): Likewise.
100 (Type.can_combine_types): Likewise.
101 (Type.combine_types): Likewise.
102 (Type.init_types): Create internal Float32x_ext type.
103 (Tests.__init__): Define Float32x_ext in generated C code.
104 (Tests.add_tests): Handle narrowing functions.
105 (Tests.add_all_tests): Likewise.
106 (Tests.tests_text): Allow variation in mant_dig for narrowing
107 functions with compilers before GCC 8.
108 * math/Makefile (tgmath3-narrow-types): New variable.
109 (tgmath3-narrow-macros): Likewise.
110 (tgmath3-macros): Add $(tgmath3-narrow-macros).
111
b7297184
AS
1122019-08-20 Andreas Schwab <schwab@suse.de>
113
114 * sysdeps/i386/fpu/libm-test-ulps: Update.
115
d34d4c80
CD
1162019-08-19 Carlos O'Donell <carlos@redhat.com>
117
118 * nscd/nscd.conf: Add warning and comment about shared option.
119
4b7c7417
CD
1202019-08-19 Carlos O'Donell <carlos@redhat.com>
121
122 * nss/nsswitch.conf: Expand comments, and simplify defaults.
123 * manual/nss.texi (NSS Basics): List all known databases.
124 (Services in the NSS configuration): Mention automount.
125
a289ea09
FW
1262019-08-19 Florian Weimer <fweimer@redhat.com>
127
128 Do not print backtraces on fatal errors.
129 * debug/fortify_fail.c (__libc_argv): Remove declaration.
130 (__fortify_fail_abort): Remove definition.
131 (__fortify_fail): Call __libc_message directly.
132 * debug/stack_chk_fail.c (__libc_argv): Remove declaration.
133 (__stack_chk_fail): Call __fortify_fail instead of
134 __fortify_fail_abort.
135 * include/stdio.h (__fortify_fail_abort): Remove declaration.
136 * sysdeps/posix/libc_fatal.c (BEFORE_ABORT, before_abort): Remove
137 definitions.
138 (__libc_message): Do not handle do_backtrace. Do not call
139 BEFORE_ABORT.
140 (__libc_fatal): Do not pass do_backtrace to __libc_message.
141 * sysdeps/unix/sysv/linux/libc_fatal.c (BEFORE_ABORT)
142 (before_abort): Remove definitions.
143
1d714fd9
FW
1442019-08-16 Florian Weimer <fweimer@redhat.com>
145
146 nptl: Move pthread_attr_getdetachstate implementation into libc.
147 * nptl/Makefile (routines): Add pthread_attr_getdetachstate.
148 (libpthread-routines): Remove pthread_attr_getdetachstate.
149 * nptl/Versions (libpthread GLIBC_2.0): Remove
150 pthread_attr_getdetachstate.
151 * nptl/forward.c (pthread_attr_getdetachstate): Remove definition.
152 * nptl/nptl-init.c (pthread_functions): Remove initializer for
153 ptr_pthread_attr_getdetachstate.
154 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
155 Remove ptr_pthread_attr_getdetachstate member.
156 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
157 Remove pthread_attr_getdetachstate.
158 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
159 Likewise.
160 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
161 Likewise.
162 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
163 Likewise.
164 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
165 Likewise.
166 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
167 Likewise.
168 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
169 Likewise.
170 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
171 (GLIBC_2.4): Likewise.
172 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
173 (GLIBC_2.0): Likewise.
174 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
175 (GLIBC_2.18): Likewise.
176 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
177 (GLIBC_2.0): Likewise.
178 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
179 (GLIBC_2.0): Likewise.
180 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
181 Likewise.
182 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
183 (GLIBC_2.0): Likewise.
184 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
185 (GLIBC_2.3): Likewise.
186 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
187 (GLIBC_2.17): Likewise.
188 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
189 (GLIBC_2.27): Likewise.
190 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
191 (GLIBC_2.0): Likewise.
192 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
193 (GLIBC_2.2): Likewise.
194 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
195 Likewise.
196 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
197 (GLIBC_2.0): Likewise.
198 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
199 (GLIBC_2.2): Likewise.
200 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
201 (GLIBC_2.2.5): Likewise.
202 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
203 (GLIBC_2.16): Likewise.
204
4745f4c1
JM
2052019-08-16 Joseph Myers <joseph@codesourcery.com>
206
207 * math/libm-test-compat_totalorder.inc (do_test)
208 [TEST_COMPAT (libm, GLIBC_2_25, GLIBC_2_31)]: Change condition to
209 [TEST_COMPAT (libm, COMPAT_VER, GLIBC_2_31)].
210 * math/libm-test-compat_totalordermag.inc (do_test)
211 [TEST_COMPAT (libm, GLIBC_2_25, GLIBC_2_31)]: Likewise.
212
a635d756
FW
2132019-08-15 Florian Weimer <fweimer@redhat.com>
214
215 nptl: Move pthread_attr_init implementation into libc.
216 * nptl/Makefile (routines): Add pthread_attr_init.
217 (libpthread-routines): Remove pthread_attr_init.
218 * nptl/Versions (libpthread GLIBC_2.0): Remove pthread_attr_init.
219 (libpthread GLIBC_2.0): Likewise.
220 * nptl/pthread_attr_init.c: Check for libc compat version instead
221 of libpthread compat version.
222 * nptl/forward.c (__pthread_attr_init_2_0)
223 (__pthread_attr_init_2_1): Remove definitions.
224 * nptl/nptl-init.c (pthread_functions): Remove initializers for
225 ptr___pthread_attr_init_2_0, ptr___pthread_attr_init_2_1.
226 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
227 Remove members ptr___pthread_attr_init_2_0,
228 ptr___pthread_attr_init_2_1.
229 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
230 Remove pthread_attr_init.
231 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
232 Likewise.
233 (GLIBC_2.1): Likewise.
234 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
235 Likewise.
236 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
237 Likewise.
238 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
239 Likewise.
240 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
241 Likewise.
242 (GLIBC_2.1): Likewise.
243 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
244 Likewise.
245 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
246 (GLIBC_2.4): Likewise.
247 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
248 (GLIBC_2.0): Likewise.
249 (GLIBC_2.1): Likewise.
250 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
251 (GLIBC_2.18): Likewise.
252 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
253 (GLIBC_2.0): Likewise.
254 (GLIBC_2.1): Likewise.
255 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
256 (GLIBC_2.0): Likewise.
257 (GLIBC_2.1): Likewise.
258 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
259 Likewise.
260 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
261 (GLIBC_2.0): Likewise.
262 (GLIBC_2.1): Likewise.
263 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
264 (GLIBC_2.3): Likewise.
265 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
266 (GLIBC_2.17): Likewise.
267 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
268 (GLIBC_2.27): Likewise.
269 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
270 (GLIBC_2.0): Likewise.
271 (GLIBC_2.1): Likewise.
272 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
273 (GLIBC_2.2): Likewise.
274 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
275 Likewise.
276 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
277 (GLIBC_2.0): Likewise.
278 (GLIBC_2.1): Likewise.
279 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
280 (GLIBC_2.2): Likewise.
281 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
282 (GLIBC_2.2.5): Likewise.
283 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
284 (GLIBC_2.16): Likewise.
285
23d2e5fa
FW
2862019-08-15 Florian Weimer <fweimer@redhat.com>
287
288 [BZ #24900]
289 * elf/dl-object.c (_dl_new_object): Do not store pathnames in the
290 new object in __RTLD_OPENEXEC mode (except for the origin).
291 * elf/tst-dlopen-aout.c (check_dlopen_failure): New function with
292 check for the error message.
293 (do_test): Call it. Add check using relative path.
294 * elf/Makefile (tests-container): Add tst-dlopen-aout-container.
295 (tst-dlopen-aout-container): Link with libpthread.
296 (LDFLAGS-tst-dlopen-aout-container): Set RPATH to $ORIGIN.
297
42760d76
JM
2982019-08-15 Joseph Myers <joseph@codesourcery.com>
299
300 * math/bits/mathcalls.h
301 [__GLIBC_USE (IEC_60559_BFP_EXT) || __MATH_DECLARING_FLOATN]
302 (totalorder): Take pointer arguments.
303 [__GLIBC_USE (IEC_60559_BFP_EXT) || __MATH_DECLARING_FLOATN]
304 (totalordermag): Likewise.
305 * manual/arith.texi (totalorder): Likewise.
306 (totalorderf): Likewise.
307 (totalorderl): Likewise.
308 (totalorderfN): Likewise.
309 (totalorderfNx): Likewise.
310 (totalordermag): Likewise.
311 (totalordermagf): Likewise.
312 (totalordermagl): Likewise.
313 (totalordermagfN): Likewise.
314 (totalordermagfNx): Likewise.
315 * math/tgmath.h (__TGMATH_BINARY_REAL_RET_ONLY): Remove macro.
316 [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalorder): Likewise.
317 [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalordermag): Likewise.
318 * math/Versions (GLIBC_2.31): Add totalorder, totalorderf,
319 totalorderl, totalordermag, totalordermagf, totalordermagl,
320 totalorderf32, totalorderf64, totalorderf32x, totalordermagf32,
321 totalordermagf64, totalordermagf32x, totalorderf64x,
322 totalordermagf64x, totalorderf128 and totalordermagf128.
323 * math/Makefile (libm-test-funcs-noauto): Add compat_totalorder
324 and compat_totalordermag.
325 (libm-test-funcs-compat): New variable.
326 (libm-tests-compat): Likewise.
327 (tests): Do not include compat tests.
328 (tests-internal): Add compat tests.
329 ($(foreach t,$(libm-tests-base),
330 $(objpfx)$(t)-compat_totalorder.o)): Depend
331 on $(objpfx)libm-test-totalorder.c.
332 ($(foreach t,$(libm-tests-base),
333 $(objpfx)$(t)-compat_totalordermag.o): Depend on
334 $(objpfx)libm-test-totalordermag.c.
335 (tgmath3-macros): Remove totalorder and totalordermag.
336 * math/libm-test-compat_totalorder.inc: New file.
337 * math/libm-test-compat_totalordermag.inc: Likewise.
338 * math/libm-test-driver.c (struct test_ff_i_data): Update comment.
339 (RUN_TEST_fpfp_b): New macro.
340 (RUN_TEST_LOOP_fpfp_b): Likewise.
341 * math/libm-test-totalorder.inc (totalorder_test_data): Use
342 TEST_fpfp_b.
343 (totalorder_test): Condition on [!COMPAT_TEST].
344 (do_test): Likewise.
345 * math/libm-test-totalordermag.inc (totalordermag_test_data): Use
346 TEST_fpfp_b.
347 (totalordermag_test): Condition on [!COMPAT_TEST].
348 (do_test): Likewise.
349 * math/gen-tgmath-tests.py (Tests.add_all_tests): Remove
350 totalorder and totalordermag.
351 * math/test-tgmath.c (NCALLS): Change to 132.
352 (F(compile_test)): Do not call totalorder or totalordermag.
353 (F(totalorder)): Remove.
354 (F(totalordermag)): Likewise.
355 * include/float.h (__STDC_WANT_IEC_60559_TYPES_EXT__): Do not
356 define if [__STDC_WANT_IEC_60559_TYPES_EXT__].
357 * include/setjmp.h [!_ISOMAC] (STR_HELPER): Rename to
358 SJSTR_HELPER.
359 [!_ISOMAC] (STR): Rename to SJSTR. Update call to STR_HELPER.
360 [!_ISOMAC] (TEST_SIZE): Update call to STR.
361 [!_ISOMAC] (TEST_ALIGN): Likewise.
362 [!_ISOMAC] (TEST_OFFSET): Likewise.
363 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include <shlib-compat.h>
364 and <first-versions.h>.
365 (__totalorder): Take pointer arguments. Add symbol versions and
366 compat symbols.
367 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
368 <shlib-compat.h> and <first-versions.h>.
369 (__totalordermag): Take pointer arguments. Add symbol versions
370 and compat symbols.
371 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
372 <shlib-compat.h> and <first-versions.h>.
373 (__totalorder): Take pointer arguments. Add symbol versions and
374 compat symbols.
375 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
376 <shlib-compat.h> and <first-versions.h>.
377 (__totalordermag): Take pointer arguments. Add symbol versions
378 and compat symbols.
379 * sysdeps/ieee754/float128/float128_private.h
380 (__totalorder_compatl): New macro.
381 (__totalordermag_compatl): Likewise.
382 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include <shlib-compat.h>
383 and <first-versions.h>.
384 (__totalorderf): Take pointer arguments. Add symbol versions and
385 compat symbols.
386 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
387 <shlib-compat.h> and <first-versions.h>.
388 (__totalordermagf): Take pointer arguments. Add symbol versions
389 and compat symbols.
390 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
391 <shlib-compat.h> and <first-versions.h>.
392 (__totalorderl): Take pointer arguments. Add symbol versions and
393 compat symbols.
394 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
395 <shlib-compat.h> and <first-versions.h>.
396 (__totalordermagl): Take pointer arguments. Add symbol versions
397 and compat symbols.
398 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c: Include
399 <shlib-compat.h>.
400 (__totalorderl): Take pointer arguments. Add symbol versions and
401 compat symbols.
402 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c: Include
403 <shlib-compat.h>.
404 (__totalordermagl): Take pointer arguments. Add symbol versions
405 and compat symbols.
406 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
407 <shlib-compat.h> and <first-versions.h>.
408 (__totalorderl): Take pointer arguments. Add symbol versions and
409 compat symbols.
410 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
411 <shlib-compat.h> and <first-versions.h>.
412 (__totalordermagl): Take pointer arguments. Add symbol versions
413 and compat symbols.
414 * sysdeps/ieee754/ldbl-opt/nldbl-totalorder.c (totalorderl): Take
415 pointer arguments.
416 * sysdeps/ieee754/ldbl-opt/nldbl-totalordermag.c (totalordermagl):
417 Likewise.
418 * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c
419 (do_test): Update calls to totalorderl and totalordermagl.
420 * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c (do_test):
421 Update calls to totalorderl and totalordermagl.
422 * sysdeps/mach/hurd/i386/libm.abilist: Update.
423 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
424 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
425 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
426 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
427 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
428 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
429 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
430 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
431 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
432 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
433 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
434 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
435 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
436 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
437 Likewise.
438 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
439 Likewise.
440 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libm.abilist:
441 Likewise.
442 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libm.abilist:
443 Likewise.
444 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
445 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
446 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
447 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
448 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
449 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
450 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
451 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
452
c2adefba
FW
4532019-08-15 Florian Weimer <fweimer@redhat.com>
454
455 [BZ #24899]
456 * sysdeps/gnu/bits/utmpx.h (struct utmpx): Add
457 __attribute_nonstring__ to ut_line, ut_id, ut_user, ut_host.
458 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h (struct utmpx):
459 Likewise.
460 * sysdeps/gnu/bits/utmp.h (struct utmp): Add
461 __attribute_nonstring__ to ut_id.
462 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h (struct utmp):
463 Likewise.
464
0d5b2917
FW
4652019-08-15 Florian Weimer <fweimer@redhat.com>
466
467 [BZ #24880]
468 * login/utmp_file.c (file_locking_failed): Use struct flock64.
469 (file_locking_unlock): Likewise.
470
628598be
FW
4712019-08-15 Florian Weimer <fweimer@redhat.com>
472
473 [BZ #24879]
474 login: Disarm timer after utmp lock acquisition.
475 * login/utmp_file.c (struct file_locking): Remove.
476 (try_file_lock): Adjust.
477 (file_lock_restore): Remove function.
478 (__libc_getutent_r): .
479 (internal_getut_r): Likewise.
480 (__libc_getutline_r): Likewise.
481 (__libc_pututline): Likewise.
482 (__libc_updwtmp): Likewise.
483
17e13474
FW
4842019-08-15 Florian Weimer <fweimer@redhat.com>
485
486 nptl: Remove pthread_self compatibility symbol from libpthread.
487 * nptl/Versions (libpthread GLIBC_2.0): Remove pthread_self,
488 pthread_equal.
489 * nptl/Makefile (libpthread-routines): Remove compat-pthread_self.
490 * nptl/compat-pthread_self.c: Remove file.
491 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
492 Remove pthread_self.
493 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
494 Likewise.
495 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
496 Likewise.
497 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
498 Likewise.
499 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
500 Likewise.
501 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
502 Likewise.
503 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
504 (GLIBC_2.4): Likewise.
505 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
506 (GLIBC_2.0): Likewise.
507 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
508 (GLIBC_2.18): Likewise.
509 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
510 (GLIBC_2.0): Likewise.
511 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
512 (GLIBC_2.0): Likewise.
513 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
514 Likewise.
515 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
516 (GLIBC_2.0): Likewise.
517 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
518 (GLIBC_2.3): Likewise.
519 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
520 (GLIBC_2.17): Likewise.
521 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
522 (GLIBC_2.0): Likewise.
523 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
524 (GLIBC_2.2): Likewise.
525 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
526 Likewise.
527 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
528 (GLIBC_2.0): Likewise.
529 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
530 (GLIBC_2.2): Likewise.
531 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
532 (GLIBC_2.2.5): Likewise.
533 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
534 (GLIBC_2.16): Likewise.
535
fa57c301
FW
5362019-08-15 Florian Weimer <fweimer@redhat.com>
537
538 nptl: Move pthread_attr_destroy implementation into libc.
539 * nptl/Makefile (routines): Add pthread_attr_destroy.
540 (libpthread-routines): Remove pthread_attr_destroy.
541 * nptl/Versions (libpthread GLIBC_2.0): Remove
542 pthread_attr_destroy.
543 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Check for
544 libc compat version instead of libpthread compat version.
545 * nptl/forward.c (pthread_attr_destroy): Remove definition.
546 * nptl/nptl-init.c (pthread_functions): Remove initializer for
547 ptr_pthread_attr_destroy.
548 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
549 Remove ptr_pthread_attr_destroy member.
550 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
551 Remove pthread_attr_destroy.
552 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
553 Likewise.
554 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
555 Likewise.
556 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
557 Likewise.
558 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
559 Likewise.
560 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
561 Likewise.
562 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
563 Likewise.
564 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
565 (GLIBC_2.4): Likewise.
566 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
567 (GLIBC_2.0): Likewise.
568 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
569 (GLIBC_2.18): Likewise.
570 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
571 (GLIBC_2.0): Likewise.
572 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
573 (GLIBC_2.0): Likewise.
574 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
575 Likewise.
576 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
577 (GLIBC_2.0): Likewise.
578 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
579 (GLIBC_2.3): Likewise.
580 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
581 (GLIBC_2.17): Likewise.
582 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
583 (GLIBC_2.27): Likewise.
584 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
585 (GLIBC_2.0): Likewise.
586 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
587 (GLIBC_2.2): Likewise.
588 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
589 Likewise.
590 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
591 (GLIBC_2.0): Likewise.
592 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
593 (GLIBC_2.2): Likewise.
594 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
595 (GLIBC_2.2.5): Likewise.
596 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
597 (GLIBC_2.16): Likewise.
598
56e09811
AS
5992019-08-15 Andreas Schwab <schwab@suse.de>
600
601 * sysdeps/i386/fpu/libm-test-ulps: Update.
602
f9769a23
FW
6032019-08-15 Florian Weimer <fweimer@redhat.com>
604
605 * malloc/Makefile (tests): Only add tst-mxfast for
606 $(have-tunables).
607 * malloc/tst-mxfast.c: Fix copyright year.
608 (do_test): Fix GNU style issues. Use TEST_COMPARE instead of
609 assert for checks.
610
341da5b4
FW
6112019-08-15 Florian Weimer <fweimer@redhat.com>
612
613 * login/utmp_file.c (__libc_updwtmp): Unlock the right file
614 descriptor.
615 * login/Makefile (tests): Add tst-updwtmpx.
616 * login/tst-updwtmpx.c: New file.
617
dda373b0
FW
6182019-08-15 Florian Weimer <fweimer@redhat.com>
619
620 nptl: Move pthread_equal implementation into libc.
621 * nptl/Makefile (routines): Add pthread_equal.
622 * nptl/forward.c (pthread_equal): Remove definition.
623 * nptl/nptl-init.c (pthread_functions): Remove initializer for
624 ptr_pthread_equal.
625 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
626 Remove ptr_pthread_equal member.
627 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
628 Remove pthread_equal.
629 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
630 Likewise.
631 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
632 Likewise.
633 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
634 Likewise.
635 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
636 Likewise.
637 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
638 Likewise.
639 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
640 Likewise.
641 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
642 (GLIBC_2.4): Likewise.
643 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
644 (GLIBC_2.0): Likewise.
645 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
646 (GLIBC_2.18): Likewise.
647 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
648 (GLIBC_2.0): Likewise.
649 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
650 (GLIBC_2.0): Likewise.
651 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
652 Likewise.
653 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
654 (GLIBC_2.0): Likewise.
655 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
656 (GLIBC_2.3): Likewise.
657 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
658 (GLIBC_2.17): Likewise.
659 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
660 (GLIBC_2.27): Likewise.
661 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
662 (GLIBC_2.0): Likewise.
663 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
664 (GLIBC_2.2): Likewise.
665 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
666 Likewise.
667 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
668 (GLIBC_2.0): Likewise.
669 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
670 (GLIBC_2.2): Likewise.
671 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
672 (GLIBC_2.2.5): Likewise.
673 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
674 (GLIBC_2.16): Likewise.
675
c54d8649
FW
6762019-08-14 Florian Weimer <fweimer@redhat.com>
677
678 * support/support_descriptors.c: Include <support/descriptors.h>.
679
b68fabfb
FX
6802019-08-14 Feng Xue <fxue@os.amperecomputing.com>
681
682 * sysdeps/aarch64/multiarch/memset_base64.S (DC_ZVA_THRESHOLD):
683 Disable DC ZVA code if this macro is defined as zero.
684 * sysdeps/aarch64/multiarch/memset_emag.S (DC_ZVA_THRESHOLD):
685 Change to zero to disable using DC ZVA.
686
c3ce62cc
JM
6872019-08-13 Joseph Myers <joseph@codesourcery.com>
688
689 * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_FUNCS_EXT):
690 Update comment.
691 (__GLIBC_USE_IEC_60559_FUNCS_EXT_C2X): New macro.
692 * bits/math-finite.h [__GLIBC_USE (IEC_60559_FUNCS_EXT)]: Change
693 to [__GLIBC_USE (IEC_60559_FUNCS_EXT_C2X)].
694 * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_FUNCS_EXT)]:
695 Likewise.
696
5a3afa97
FW
6972019-08-13 Florian Weimer <fweimer@redhat.com>
698
699 * login/utmp_file.c (LOCK_FILE, LOCKING_FAILED, UNLOCK_FILE):
700 Remove macros.
701 (struct file_locking): New.
702 (try_file_lock, file_unlock, file_lock_restore): New functions.
703 (__libc_getutent_r): Use the new functions.
704 (internal_getut_r): Likewise.
705 (__libc_getutline_r): Likewise.
706 (__libc_pututline): Likewise.
707 (__libc_updwtmp): Likewise.
708
777d75fb
JM
7092019-08-13 Joseph Myers <joseph@codesourcery.com>
710
0175c9e9
JM
711 * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_BFP_EXT): Update
712 comment.
713 (__GLIBC_USE_IEC_60559_BFP_EXT_C2X): New macro.
714 * bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Change to
715 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)].
716 * include/limits.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
717 * math/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
718 * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
719 * stdlib/bits/stdlib-ldbl.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
720 Likewise.
721 * stdlib/stdint.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
722 * stdlib/stdlib.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
723 * sysdeps/aarch64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
724 Likewise.
725 * sysdeps/alpha/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
726 Likewise.
727 * sysdeps/arm/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
728 Likewise.
729 * sysdeps/csky/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
730 Likewise.
731 * sysdeps/hppa/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
732 Likewise.
733 * sysdeps/ia64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
734 Likewise.
735 * sysdeps/m68k/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
736 Likewise.
737 * sysdeps/microblaze/bits/fenv.h [__GLIBC_USE
738 (IEC_60559_BFP_EXT)]: Likewise.
739 * sysdeps/mips/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
740 Likewise.
741 * sysdeps/nios2/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
742 Likewise.
743 * sysdeps/powerpc/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
744 Likewise.
745 * sysdeps/riscv/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
746 Likewise.
747 * sysdeps/s390/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
748 Likewise.
749 * sysdeps/sh/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
750 Likewise.
751 * sysdeps/sparc/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
752 Likewise.
753 * sysdeps/x86/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
754 Likewise.
755 * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
756 Likewise, except for totalorder, totalordermag, getpayload,
757 setpayload and setpayloadsig.
758 * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise,
759 except for totalorder and totalordermag.
760
a8c2fa98
JM
761 * string/string.h (memccpy): Also declare if [__GLIBC_USE (ISOC2X)].
762 (strdup): Likewise.
763 (strndup): Likewise.
764
777d75fb
JM
765 * include/features.h (_ISOC2X_SOURCE): New feature test macro.
766 Undefine and define to 1 if [_GNU_SOURCE].
767 (__GLIBC_USE_ISOC2X): New macro. Undefine and redefine depending
768 on [_ISOC2X_SOURCE] and [__STDC_VERSION__ > 201710L].
769 (__USE_ISOC11): Also define to 1 if [_ISOC2X_SOURCE].
770 (__USE_ISOC99): Likewise.
771 (__USE_ISOC95): Likewise.
772 * manual/creature.texi (_ISOC2X_SOURCE): Document.
773
a33b817f
FW
7742019-08-13 Florian Weimer <fweimer@redhat.com>
775
776 * login/getutid_r.c (__getutid_r): _HAVE_UT_ID and _HAVE_UT_TYPE
777 are always true.
778 * login/getutmp.c (getutmp): _HAVE_UT_TYPE, _HAVE_UT_PID,
779 _HAVE_UT_ID, _HAVE_UT_HOST, _HAVE_UT_TV are always true.
780 * login/getutmpx.c (getutmpx): Likewise.
781 * login/login.c (login): _HAVE_UT_TYPE, _HAVE_UT_PID are always
782 true.
783 * login/logout.c (logout): _HAVE_UT_TYPE, _HAVE_UT_HOST,
784 _HAVE_UT_TV are always true.
785 * login/logwtmp.c (logwtmp): _HAVE_UT_PID, _HAVE_UT_TYPE,
786 _HAVE_UT_HOST, _HAVE_UT_TV are always true.
787 * login/tst-utmp.c: _HAVE_UT_TYPE, _HAVE_UT_TV are always true.
788 * login/utmp_file.c (__libc_setutent): _HAVE_UT_TYPE, _HAVE_UT_ID
789 are always true.
790 (internal_getut_r): _HAVE_UT_TYPE is always true.
791 (__libc_pututline): Likewise.
792 * login/programs/utmpdump.c (print_entry): Assume that
793 _HAVE_UT_TYPE, _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST,
794 _HAVE_UT_TV are always true.
795 * sysdeps/generic/utmp-equal.h (__utmp_equal): _HAVE_UT_TYPE,
796 _HAVE_UT_ID are always true.
797 * sysdeps/gnu/bits/utmp.h: Move to ...
798 * bits/utmp.h: ... here, replacing the old file.
799
9b9670fc
FW
8002019-08-12 Florian Weimer <fweimer@redhat.com>
801
802 * elf/Makefile (tests): Unconditionally add tst-dlopen-aout.
803 [$(build-hardcoded-path-in-tests)] (tst-dlopen-aout-no-pie): Do
804 not set.
805 * elf/tst-dlopen-aout.c: Do not included <assert.h>.
806 (do_test): Open the executable using an absolute path. Print
807 error message to standard output.
808
c48d92b4
DD
8092019-08-09 DJ Delorie <dj@redhat.com>
810
811 * elf/dl-tunables.list: Add glibc.malloc.mxfast.
812 * manual/tunables.texi: Document it.
813 * malloc/malloc.c (do_set_mxfast): New.
814 (__libc_mallopt): Call it.
815 * malloc/arena.c: Add mxfast tunable.
816 * malloc/tst-mxfast.c: New.
817 * malloc/Makefile: Add it.
818
b6d2c447
NH
8192019-08-08 Niklas Hambüchen <mail@nh2.me>
820 Carlos O'Donell <carlos@redhat.com>
821
822 [BZ #24026]
823 * malloc/malloc.c (__malloc_info): Account for top chunk.
824
a02cd8e4
JM
8252019-08-07 Joseph Myers <joseph@codesourcery.com>
826
827 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
828 (SYNC_FILE_RANGE_WRITE_AND_WAIT): New macro.
829
d8b97803
JM
8302019-08-06 Joseph Myers <joseph@codesourcery.com>
831
832 * io/fcntl.h [__USE_GNU] (AT_RECURSIVE): New macro.
833
8d454abe
SL
8342019-07-02 Stefan Liebler <stli@linux.ibm.com>
835
836 * sysdeps/unix/sysv/linux/s390/init-first.c (VDSO_SETUP): New define.
837
98013846
JM
8382019-08-05 Joseph Myers <joseph@codesourcery.com>
839
840 * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU] (CLONE_PIDFD):
841 New macro.
842
503fc587
AZ
8432019-08-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
844
d665367f
AZ
845 [BZ #19767]
846 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (ALWAYS_USE_VSYSCALL):
847 Remove definition.
848 * sysdeps/unix/sysv/linux/arm/sysdep.h (ALWAYS_USE_VSYSCALL):
849 Likewise.
850 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
851 Likewise.
852 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (ALWAYS_USE_VSYSCALL):
853 Likewise.
854 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
855 (ALWAYS_USE_VSYSCALL): Likewise.
856 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
857 (ALWAYS_USE_VSYSCALL): Likewise.
858 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
859 (ALWAYS_USE_VSYSCALL): Likewise.
860 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
861 (ALWAYS_USE_VSYSCALL): Likewise.
862 * sysdeps/unix/sysv/linux/riscv/sysdep.h (ALWAYS_USE_VSYSCALL):
863 Likewise.
864 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
865 (ALWAYS_USE_VSYSCALL): Likewise.
866 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
867 (ALWAYS_USE_VSYSCALL): Likewise.
868 * sysdeps/unix/sysv/linux/sparc/sysdep.h (ALWAYS_USE_VSYSCALL):
869 Likewise.
870 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
871 Likewise.
872 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Remove #if USE_VSYSCALL.
873 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Likewise.
874 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL,
875 USE_VSYSCALL): Remove defitions.
876
c9c1a413
AZ
877 [BZ #19767]
878 * sysdeps/unix/sysv/linux/sparc/init-first.c: Remove #ifdef SHARED.
879 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: Likewise.
880 * sysdeps/unix/sysv/linux/sparc/sysdep.h (ALWAYS_USE_VSYSCALL):
881 Define.
882
27a0914e 883 [BZ #19767]
5e855c89
AZ
884 * sysdeps/unix/sysv/linux/s390/init-first.c: Remove #ifdef SHARED.
885 * sysdeps/unix/sysv/linux/s390/libc-vdso.h: Likewise.
886 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
887 (ALWAYS_USE_VSYSCALL): Define.
888 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
889 (ALWAYS_USE_VSYSCALL): Likewise.
890
891 [BZ #19767]
27a0914e
AZ
892 * sysdeps/unix/sysv/linux/riscv/init-first.c: Remove #ifdef SHARED.
893 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
894 * sysdeps/unix/sysv/linux/riscv/sysdep.h (ALWAYS_USE_VSYSCALL):
895 Define.
896
503fc587
AZ
897 * sysdeps/sh/libm-test-ulps: Update.
898
1a7fe2eb
FW
8992019-08-05 Florian Weimer <fweimer@redhat.com>
900
901 [BZ #23518]
902 * login/uptmp-private.h (struct ufuncs): Remove definition.
903 (__libc_utmp_file_functions, __libc_utmp_unknown_functions)
904 (__libc_utmp_jump_table): Remove declarations.
905 (__libc_setutent, __libc_getutent_r, __libc_getutid_r)
906 (__libc_getutline_r, __libc_pututline, __libc_endutent)
907 (__libc_updwtmp): Declare.
908 * login/getutent_r.c (__libc_utmp_unknown_functions)
909 (__libc_utmp_jump_table, setutent_unknown, getutent_r_unknown)
910 (getutid_r_unknown, getutline_r_unknown, pututline_unknown)
911 (endutent_unknown): Remove definitions.
912 (__setutent): Call __libc_setutent.
913 (__getutent_r): Call __libc_getutent_r.
914 (__pututline): Call __libc_pututline.
915 (__endutent): Call __libc_endutent.
916 * login/getutid_r.c (__getutid_r): Call __libc_getutid_r.
917 * login/getutline_r.c (__getutline_r): Call __libc_getutline_r.
918 * login/updwtmp.c (__updwtmp): Call __libc_updwtmp.
919 * login/utmp_file.c (__libc_utmp_file_functions): Remove definition
920 (__libc_setutent): Rename from stetutent_file. Drop static.
921 (maybe_setutent): New function.
922 (__libc_getutent_r): Rename from getutent_r_file. Drop static.
923 Check for initialization.
924 (__libc_getutid_r): Rename from getutid_r_file. Drop static.
925 Check for initialization.
926 (__libc_getutline_r): Rename from getutline_r_file. Drop static.
927 Check for initialization.
928 (__libc_pututline): Rename from pututline_file. Drop static.
929 Check for initialization.
930 (__libc_endutent): Rename from endutent_file. Drop static. Check
931 for initialization.
932 (__libc_updwtmp): Rename from updwtmp_file. Drop static.
933 * login/utmpname.c (__utmpname): Call __libc_endutent.
934 * sysdeps/unix/getlogin_r (__getlogin_r): Call __libc_setutent,
935 __libc_getutlien_r, __libc_endutent.
936 * manual/users.texi (Who Logged In, Manipulating the Database):
937 Adjust.
938
a6c1ce77
AH
9392019-08-05 Alexandra Hajkova <ahajkova@redhat.com>
940
941 * elf/tst-ldconfig-bad-aux-cache.c: Use support_capture_subprocess.
942
c7a26cba
JM
9432019-08-02 Joseph Myers <joseph@codesourcery.com>
944
9c37bde5
JM
945 * sysdeps/unix/sysv/linux/syscall-names.list: Update comment.
946
c7a26cba
JM
947 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Update Linux
948 kernel version number to 5.2.
949
066020c5
RFF
9502019-08-01 Raoni Fassina Firmino <raoni@linux.ibm.com>
951
952 * sysdeps/powerpc/powerpc64/power8/memchr.S: Update power8
953 mnemonics and set .machine power8.
954 * sysdeps/powerpc/powerpc64/power8/memcmp.S: Likewise.
955 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Likewise.
956 * sysdeps/powerpc/powerpc64/power8/memset.S: Likewise.
957 * sysdeps/powerpc/powerpc64/power8/strchr.S: Likewise.
958 * sysdeps/powerpc/powerpc64/power8/strlen.S: Likewise.
959 * sysdeps/powerpc/powerpc64/power8/strncmp.S: Likewise.
960 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Likewise.
961 * sysdeps/powerpc/powerpc64/power8/strnlen.S: Likewise.
962 * sysdeps/powerpc/powerpc64/power8/strrchr.S: Likewise.
963 * sysdeps/powerpc/powerpc64/power8/strspn.S: Likewise.
964
3175dcc1
AZ
9652019-08-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
966
967 * sysdeps/hppa/fpu/libm-test-ulps: Update.
968
b0f6679b
FW
9692019-08-01 Florian Weimer <fweimer@redhat.com>
970
971 [BZ #24867]
972 * malloc/malloc.c (__malloc_info): Remove unwanted leading
973 whitespace.
974
e1df30fb
AZ
9752019-08-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
976
977 [BZ #15813]
978 sysdeps/posix/tempname.c (__gen_tempname): get entropy on each
979 attempt.
980
e7124906
CD
9812019-08-01 Carlos O'Donell <carlos@redhat.com>
982
0a8262a1
CD
983 * version.h (RELEASE): Set to "stable".
984 (VERSION): Set to "2.30".
985 * include/features.h (__GLIBC_MINOR__): Set to 2.30.
986
e7124906
CD
987 * manual/install.texi: Update component versions.
988 * INSTALL: Regenerate.
989 * NEWS: Update.
990
cc3bf319
CD
9912019-07-31 Carlos O'Donell <carlos@redhat.com>
992
993 * po/be.po: Update translations.
994 * po/bg.po: Likewise.
995 * po/ca.po: Likewise.
996 * po/cs.po: Likewise.
997 * po/da.po: Likewise.
998 * po/de.po: Likewise.
999 * po/el.po: Likewise.
1000 * po/eo.po: Likewise.
1001 * po/es.po: Likewise.
1002 * po/fi.po: Likewise.
1003 * po/fr.po: Likewise.
1004 * po/gl.po: Likewise.
1005 * po/hr.po: Likewise.
1006 * po/hu.po: Likewise.
1007 * po/ia.po: Likewise.
1008 * po/id.po: Likewise.
1009 * po/it.po: Likewise.
1010 * po/ja.po: Likewise.
1011 * po/ko.po: Likewise.
1012 * po/lt.po: Likewise.
1013 * po/nb.po: Likewise.
1014 * po/nl.po: Likewise.
1015 * po/pl.po: Likewise.
1016 * po/pt_BR.po: Likewise.
1017 * po/ru.po: Likewise.
1018 * po/rw.po: Likewise.
1019 * po/sk.po: Likewise.
1020 * po/sl.po: Likewise.
1021 * po/sv.po: Likewise.
1022 * po/tr.po: Likewise.
1023 * po/uk.po: Likewise.
1024 * po/vi.po: Likewise.
1025 * po/zh_CN.po: Likewise.
1026 * po/zh_TW.po: Likewise.
1027
0bfddfc9
FW
10282019-07-31 Florian Weimer <fweimer@redhat.com>
1029
1030 [BZ #24583]
1031 [BZ #24677]
1032 iconv, libio: Revert reference counting changes.
1033 * iconv/gconv_cache.c (__gconv_release_cache): Unconditionally
1034 free the steps array.
1035 * libio/Makefile (tests): Remove tst-wfile-gconv.
1036 (tests-container): Do not add tst-wfile-ascii.
1037 (tst-wfile-gconv-ENV): Do not set.
1038 (generated): Do not add tst-wfile-gconv.mtrace,
1039 tst-wfile-gconv.check.
1040 [($run-built-tests)] (tests-special): Do not add
1041 tst-wfile-gconv-mem.out.
1042 (tst-wfile-gconv.out, tst-wfile-gconv-mem.out): Remove targets.
1043 * libio/iofclose.c (_IO_new_fclose): Call __gconv_release_step
1044 instead of __wcsmbs_clone_conv.
1045 * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Remove definition.
1046 * wcsmbs/wcsmbsload.h (__wcsmbs_clone_conv): Remove declaration.
1047
c86b8e75
JM
10482019-07-30 Joseph Myers <joseph@codesourcery.com>
1049
1050 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1051 (__CONTEXT_FUNC_NAME): Restore setting of r31.
1052
8a814e20
FW
10532019-07-30 Florian Weimer <fweimer@redhat.com>
1054
1055 * nptl/tst-pthread-getattr.c (allocate_and_test): Change return
1056 type to uintptr_t. Update comment.
1057 (check_stack_top): Adjust.
1058
b8b3d5a1
FW
10592019-07-29 Florian Weimer <fweimer@redhat.com>
1060
1061 Linux: Move declaration of getdents64 to <dirent.h>.
1062 * bits/dirent_ext.h: New file.
1063 * dirent/Makefile (headers): Add bits/dirent_ext.h.
1064 * dirent/dirent.h: Include <bits/dirent_ext.h>.
1065 * sysdeps/unix/sysv/linux/bits/dirent_ext.h: New file.
1066 * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Remove
1067 declaration.
1068 * manual/filesys.texi (Low-level Directory Access): Update header
1069 to dirent.h.
1070
354e4c1a
TMQMF
10712019-07-29 DJ Delorie <dj@redhat.com>
1072 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1073
1074 [BZ #24794]
1075 * Makeconfig (all-subdirs): Improved source comments.
1076 * Makefile (testroot.pristine/install.stamp): Pass
1077 subdirs='$(sorted-subdirs)' to make install.
1078
50ce3eae
FW
10792019-07-25 Florian Weimer <fweimer@redhat.com>
1080
1081 [BZ #24677]
1082 * iconv/gconv_cache.c (__gconv_release_cache): Check reference
1083 counter before freeing array.
1084
7e681561
L
10852019-07-24 H.J. Lu <hongjiu.lu@intel.com>
1086
1087 [BZ #24603]
1088 * sysdeps/x86_64/configure.ac: Check if -mprefer-vector-width=128
1089 works.
1090 * sysdeps/x86_64/configure: Regenerated.
1091 * sysdeps/x86_64/fpu/Makefile (CFLAGS-branred.c): New. Set
1092 to -mprefer-vector-width=128 if supported.
1093
82c664ed
FW
10942019-07-24 Florian Weimer <fweimer@redhat.com>
1095
1096 * scripts/build-many-glibcs.py (Context.checkout): Default to
1097 Linux 5.2.
1098
7854ebf8
FW
10992019-07-24 Florian Weimer <fweimer@redhat.com>
1100
1101 [BZ #24532]
1102 Linux: Use in-tree copy of SO_ constants for !__USE_MISC.
1103 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == socket]
1104 (sysdep_headers): Add bits/socket-constants.h.
1105 (tests-special): Add tst-socket-consts.out.
1106 (tst-socket-consts.out): New target.
1107 * sysdeps/unix/sysv/linux/bits/socket.h: Remove macro tracking
1108 around <asm/unistd.h>.
1109 [__USE_MISC]: Include <bits/types/time_t.h> before <asm/socket.h>.
1110 [!__USE_MISC]: Include <sys/socket-constants.h> instead of
1111 <asm/socket.h>.
1112 * sysdeps/unix/sysv/linux/bits/tst-socket-consts.py: New file.
1113 * sysdeps/unix/sysv/linux/bits/socket-constants.h: Likewise.
1114 * sysdeps/unix/sysv/linux/alpha/bits/socket-constants.h: Likewise.
1115 * sysdeps/unix/sysv/linux/hppa/bits/socket-constants.h: Likewise.
1116 * sysdeps/unix/sysv/linux/mips/bits/socket-constants.h: Likewise.
1117 * sysdeps/unix/sysv/linux/powerpc/bits/socket-constants.h:
1118 Likewise.
1119 * sysdeps/unix/sysv/linux/sparc/bits/socket-constants.h: Likewise.
1120
95da14da
TMQMF
11212019-07-23 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1122
35e038c1
TMQMF
1123 [BZ #24794]
1124 * Makefile (testroot.pristine/install.stamp): Pass
1125 subdirs='$(all-subdirs)' to make install.
1126
95da14da
TMQMF
1127 * Makefile (testroot.pristine/install.stamp): Execute ld.so with
1128 the same arguments used in all tests.
1129
dcf36bca
SN
11302019-07-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
1131
1132 * NEWS: Mention the AArch64 IFUNC resolver ABI change.
1133
c7e4b684
EK
11342019-07-20 Egor Kobylkin <egor@kobylkin.com>
1135
1136 [BZ #2872]
1137 * locale/C-translit.h.in: Add Cyrillic transliteration.
1138
1f7097d0
FW
11392019-07-19 Florian Weimer <fweimer@redhat.com>
1140
1141 * sysdeps/unix/sysv/linux/syscall-names.list: Add system calls
1142 from Linux 5.2.
1143 (fsconfig): Add system call name.
1144 (fsmount): Likewise.
1145 (fsopen): Likewise.
1146 (fspick): Likewise.
1147 (move_mount): Likewise.
1148 (open_tree): Likewise.
1149
3556658c
CD
11502019-07-18 Carlos O'Donell <carlos@redhat.com>
1151
1152 * po/libc.pot: Regenerate.
1153
4a8f6d31
MC
11542019-07-18 Mike Crowe <mac@mcrowe.com>
1155
2ab9ad57
AZ
1156 * sysdeps/unix/sysv/linux/hppa/pthread.h: Add declarations of
1157 functions recently added to sysdeps/nptl/pthread.h:
1158 pthread_mutex_clocklock, pthread_rwlock_clockrdlock,
1159 pthread_rwlock_clockwrlock and pthread_cond_clockwait.
1160
4a8f6d31
MC
1161 * nptl/forward.c: Remove unnecessary __pthread_cond_clockwait and
1162 pthread_cond_clockwait forwarding functions. There are no internal
1163 users, so it is unnecessary to expose these functions in libc.so.
1164 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
1165 unnecessary ptr___pthread_cond_clockwait member.
1166 * nptl/nptl-init.c (pthread_functions): Remove assignment of
1167 removed member.
1168
9208c3b8
RL
11692019-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
1170
1171 [BZ #21897]
1172 * localedata/locales/aa_DJ (abday): Update from CLDR, all words
1173 begin with an uppercase letter now.
1174 (abmon): Likewise.
1175 (mon): Update from CLDR, reword February from "Kudo" to
1176 "Naharsi Kudo", April from "Agda Baxisso" to "Agda Baxis",
1177 and August from "Liiqen" to "Leqeeni".
1178 * localedata/locales/aa_ER (mon): Update from CLDR, reword
1179 April from "Agda Baxisso" to "Agda Baxis" and August from
1180 "Leqeeni" to "Liiqen".
1181 * localedata/locales/aa_ER@saaho (mon): Likewise.
1182 * localedata/locales/aa_ET (abmon): Update from CLDR, reword
1183 abbreviated February from "Kud" to "Nah".
1184 (mon): Update from CLDR, reword February from "Kudo" to
1185 "Naharsi Kudo" and April from "Agda Baxisso" to "Agda Baxis".
1186
fba6d4bb
RL
11872019-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
1188
1189 [BZ #23996]
1190 * localedata/locales/nl_BE (LC_NAME): Replace with “copy "nl_NL"”.
1191
3cc7c9c5
P
11922019-07-17 PanderMusubi <pander@users.sourceforge.net>
1193
1194 [BZ #23996]
1195 * localedata/locales/nl_BE (LC_NAME): Add name_gen, name_mr,
1196 name_mrs, name_miss, and name_ms.
1197 * localedata/locales/nl_NL (LC_NAME): Likewise.
1198
cce7b6a5
DZ
11992019-07-17 Daniil Zhilin <generalfailer@protonmail.com>
1200
1201 [BZ #24200]
1202 * localedata/locales/ga_IE (first_weekday): Add, set to 2 (Monday).
1203 * localedata/locales/en_IE (first_weekday): Likewise.
1204
99d01ffc
MC
12052019-07-12 Mike Crowe <mac@mcrowe.com>
1206
1ff1373b
MC
1207 * nptl/pthread_cond_wait.c: (__pthread_cond_clockwait): Remove code
1208 that is only useful if futex_supports_exact_relative_timeouts ()
1209 returns false.
1210 * nptl/pthread_condattr_setclock.c: (pthread_condattr_setclock):
1211 Likewise.
1212 * sysdeps/nptl/futex-internal.h: Remove comment about relative
1213 timeouts potentially being imprecise since it's no longer true.
1214 Remove declaration of futex_supports_exact_relative_timeouts.
1215 * sysdeps/unix/sysv/linux/futex-internal.h: Remove implementation
1216 of futex_supports_exact_relative_timeouts.
1217
65dd7e9c
MC
1218 * NEWS: Mention recently-added pthread_cond_clockwait,
1219 pthread_rwlock_clockrdlock, pthread_rwlock_clockwrlock and
1220 sem_clockwait functions.
1221
9d20e22e
MC
1222 nptl: Add POSIX-proposed pthread_mutex_clocklock function that
1223 works like pthread_mutex_timedlock but takes a clockid parameter to
1224 measure the abstime parameter against.
1225 * sysdeps/nptl/pthread.h: Add pthread_mutex_clocklock.
1226 * nptl/DESIGN-systemtap-probes.txt: Likewise.
1227 * nptl/pthread_mutex_timedlock.c
1228 (__pthread_mutex_clocklock_common): Rename from
1229 __pthread_mutex_timedlock and add clockid parameter. Pass this
1230 parameter to lll_clocklock and lll_clocklock_elision in place of
1231 CLOCK_REALTIME. (__pthread_mutex_clocklock): New function to add
1232 LIBC_PROBE and validate clockid parameter before calling
1233 __pthread_mutex_clocklock_common. (__pthread_mutex_timedlock): New
1234 implementation to add LIBC_PROBE and calls
1235 __pthread_mutex_clocklock_common passing CLOCK_REALTIME as the
1236 clockid.
1237 * nptl/Makefile: Add tst-mutex11.c.
1238 * nptl/tst-abstime.c (th): Add tests for pthread_mutex_clocklock.
1239 * nptl/tst-mutex11.c: New tests for passing invalid and unsupported
1240 clockid parameters to pthread_mutex_clocklock.
1241 * nptl/tst-mutex5.c (do_test_clock): Rename from do_test and take
1242 clockid parameter to indicate which clock to be used. Call
1243 pthread_mutex_timedlock or pthread_mutex_clocklock as appropriate.
1244 (do_test): Call do_test_clock to separately test
1245 pthread_mutex_timedlock, pthread_mutex_clocklock(CLOCK_REALTIME)
1246 and pthread_mutex_clocklock(CLOCK_MONOTONIC).
1247 * nptl/tst-mutex9.c: Likewise.
1248 * nptl/Versions (GLIBC_2.30): Add pthread_mutex_clocklock.
1249 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30):
1250 Likewise.
1251 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30):
1252 Likewise.
1253 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30):
1254 Likewise.
1255 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30):
1256 Likewise.
1257 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30):
1258 Likewise.
1259 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30):
1260 Likewise.
1261 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30):
1262 Likewise.
1263 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1264 (GLIBC_2.30): Likewise.
1265 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1266 (GLIBC_2.30): Likewise.
1267 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1268 (GLIBC_2.30): Likewise.
1269 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1270 (GLIBC_2.30): Likewise.
1271 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1272 (GLIBC_2.30): Likewise.
1273 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30):
1274 Likewise.
1275 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1276 (GLIBC_2.30): Likewise.
1277 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1278 (GLIBC_2.30): Likewise.
1279 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1280 (GLIBC_2.30): Likewise.
1281 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1282 (GLIBC_2.30): Likewise.
1283 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1284 (GLIBC_2.30): Likewise.
1285 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1286 (GLIBC_2.30): Likewise.
1287 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30):
1288 Likewise.
1289 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1290 (GLIBC_2.30): Likewise.
1291 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1292 (GLIBC_2.30): Likewise.
1293 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1294 (GLIBC_2.30): Likewise.
1295 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1296 (GLIBC_2.30): Likewise.
1297
59213094
MC
1298 nptl: Rename lll_timedlock to lll_clocklock and add clockid
1299 parameter to indicate the clock that the abstime parameter should
1300 be measured against in preparation for adding
1301 pthread_mutex_clocklock.
1302 * sysdeps/nptl/lowlevellock.h (lll_clocklock): Rename from
1303 lll_timedlock and add clockid parameter. (__lll_clocklock): Rename
1304 from __lll_timedlock and add clockid parameter.
1305 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_clocklock):
1306 Likewise.
1307 * nptl/lll_timedlock_wait.c (__lll_clocklock_wait): Rename from
1308 __lll_timedlock_wait and add clockid parameter. Use __clock_gettime
1309 rather than __gettimeofday so that clockid can be used. This means
1310 that conversion from struct timeval is no longer required.
1311 * sysdeps/sparc/sparc32/lowlevellock.c (lll_clocklock_wait):
1312 Likewise.
1313 * sysdeps/sparc/sparc32/lll_timedlock_wait.c: Update comment to
1314 refer to __lll_clocklock_wait rather than __lll_timedlock_wait.
1315 * nptl/pthread_mutex_timedlock.c (lll_clocklock_elision): Rename
1316 from lll_timedlock_elision, add clockid parameter and use
1317 meaningful names for other parameters. (__pthread_mutex_timedlock):
1318 Pass CLOCK_REALTIME where necessary to lll_clocklock and
1319 lll_clocklock_elision.
1320 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
1321 (lll_clocklock_elision): Rename from lll_timedlock_elision and add
1322 clockid parameter. (__lll_clocklock_elision): Rename from
1323 __lll_timedlock_elision and add clockid parameter.
1324 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
1325 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: Likewise.
1326 * sysdeps/unix/sysv/linux/powerpc/elision-timed.c
1327 (__lll_lock_elision): Call __lll_clocklock_elision rather than
1328 __lll_timedlock_elision. (EXTRAARG): Add clockid parameter.
1329 (LLL_LOCK): Likewise.
1330 * sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
1331 * sysdeps/unix/sysv/linux/x86/elision-timed.c: Likewise.
1332
e996fa72
MC
1333 nptl: Add POSIX-proposed pthread_rwlock_clockrdlock &
1334 pthread_rwlock_clockwrlock which behave like
1335 pthread_rwlock_timedrdlock and pthread_rwlock_timedwrlock
1336 respectively, except they always measure abstime against the
1337 supplied clockid. The functions currently support CLOCK_REALTIME
1338 and CLOCK_MONOTONIC and return EINVAL if any other clock is
1339 specified.
1340 * sysdeps/nptl/pthread.h: Add pthread_rwlock_clockrdlock and
1341 pthread_wrlock_clockwrlock.
1342 * nptl/Makefile: Build pthread_rwlock_clockrdlock.c and
1343 pthread_rwlock_clockwrlock.c.
1344 * nptl/pthread_rwlock_clockrdlock.c: Implement
1345 pthread_rwlock_clockrdlock.
1346 * nptl/pthread_rwlock_clockwrlock.c: Implement
1347 pthread_rwlock_clockwrlock.
1348 * nptl/pthread_rwlock_common.c (__pthread_rwlock_rdlock_full): Add
1349 clockid parameter and verify that it indicates a supported clock on
1350 entry so that we fail even if it doesn't end up being used. Pass
1351 that clock on to futex_abstimed_wait when necessary.
1352 (__pthread_rwlock_wrlock_full): Likewise.
1353 * nptl/pthread_rwlock_rdlock.c: (__pthread_rwlock_rdlock): Pass
1354 CLOCK_REALTIME to __pthread_rwlock_rdlock_full even though it won't
1355 be used because there's no timeout.
1356 * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock): Pass
1357 CLOCK_REALTIME to __pthread_rwlock_wrlock_full even though it won't
1358 be used because there is no timeout.
1359 * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
1360 Pass CLOCK_REALTIME to __pthread_rwlock_rdlock_full since abstime
1361 uses that clock.
1362 * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
1363 Pass CLOCK_REALTIME to __pthread_rwlock_wrlock_full since abstime
1364 uses that clock.
1365 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
1366 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
1367 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
1368 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
1369 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
1370 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
1371 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
1372 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1373 (GLIBC_2.30): Likewise.
1374 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1375 (GLIBC_2.30): Likewise.
1376 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1377 (GLIBC_2.30): Likewise.
1378 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1379 (GLIBC_2.30): Likewise.
1380 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1381 (GLIBC_2.30): Likewise.
1382 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
1383 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1384 (GLIBC_2.30): Likewise.
1385 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1386 (GLIBC_2.30): Likewise.
1387 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1388 (GLIBC_2.30): Likewise.
1389 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1390 (GLIBC_2.30): Likewise.
1391 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1392 (GLIBC_2.30): Likewise.
1393 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1394 (GLIBC_2.30): Likewise.
1395 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
1396 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1397 (GLIBC_2.30): Likewise.
1398 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1399 (GLIBC_2.30): Likewise.
1400 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1401 (GLIBC_2.30): Likewise.
1402 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1403 (GLIBC_2.30): Likewise.
1404 * nptl/tst-abstime.c (th): Add pthread_rwlock_clockrdlock and
1405 pthread_rwlock_clockwrlock timeout tests to match the existing
1406 pthread_rwlock_timedrdloock and pthread_rwlock_timedwrlock tests.
1407 * nptl/tst-rwlock14.c (do_test): Likewise.
1408 * nptl/tst-rwlock6.c Invent verbose_printf macro, and use for
1409 ancillary output throughout. (tf): Accept thread_args structure so
1410 that rwlock, a clockid and function name can be passed to the
1411 thread. (do_test_clock): Rename from do_test. Accept clockid
1412 parameter to specify test clock. Use the magic clockid value of
1413 CLOCK_USE_TIMEDLOCK to indicate that pthread_rwlock_timedrdlock and
1414 pthread_rwlock_timedwrlock should be tested, otherwise pass the
1415 specified clockid to pthread_rwlock_clockrdlock and
1416 pthread_rwlock_clockwrlock. Use xpthread_create and xpthread_join.
1417 (do_test): Call do_test_clock to test each clockid in turn.
1418 * nptl/tst-rwlock7.c: Likewise.
1419 * nptl/tst-rwlock9.c (writer_thread, reader_thread): Accept
1420 thread_args structure so that the (now int) thread number, the
1421 clockid and the function name can be passed to the thread.
1422 (do_test_clock): Renamed from do_test. Pass the necessary
1423 thread_args when creating the reader and writer threads. Use
1424 xpthread_create and xpthread_join.
1425 (do_test): Call do_test_clock to test each clockid in turn.
1426 * manual/threads.texi: Add documentation for
1427 pthread_rwlock_clockrdlock and pthread_rwlock_clockwrclock.
1428
600b4be4
MC
1429 nptl: pthread_rwlock: Move timeout validation into _full functions
1430 * nptl/pthread_rwlock_common.c (__pthread_rwlock_rdlock_full):
1431 Check validity of abstime parameter.
1432 (__pthread_rwlock_rwlock_full): Likewise.
1433 * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
1434 Remove check for validity of abstime parameter.
1435 * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
1436 Likewise.
1437
afe4de7d
MC
1438 nptl: Add POSIX-proposed pthread_cond_clockwait which behaves just
1439 like pthread_cond_timedwait except it always measures abstime
1440 against the supplied clockid.
1441 * nptl/Makefile: Add tst-cond26 and tst-cond27
1442 * nptl/Versions (GLIBC_2.30): Add pthread_cond_clockwait
1443 * sysdeps/nptl/pthread.h: Likewise
1444 * nptl/forward.c: Add __pthread_cond_clockwait
1445 * nptl/forward.c: Likewise
1446 * nptl/pthreadP.h: Likewise
1447 * sysdeps/nptl/pthread-functions.h: Likewise
1448 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Add
1449 clockid parameter and comment describing why we don't need to check
1450 its value. Use that value when calling
1451 futex_abstimed_wait_cancelable rather than reading the clock from
1452 the flags. (__pthread_cond_wait): Pass unused clockid parameter.
1453 (__pthread_cond_timedwait): Read clock from flags and pass it to
1454 __pthread_cond_wait_common. (__pthread_cond_clockwait): Add new
1455 function with weak alias from pthread_cond_clockwait.
1456 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
1457 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
1458 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
1459 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
1460 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
1461 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
1462 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
1463 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1464 (GLIBC_2.30): Likewise.
1465 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1466 (GLIBC_2.30): Likewise.
1467 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1468 (GLIBC_2.30): Likewise.
1469 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1470 (GLIBC_2.30): Likewise.
1471 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1472 (GLIBC_2.30): Likewise.
1473 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
1474 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1475 (GLIBC_2.30): Likewise.
1476 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1477 (GLIBC_2.30): Likewise.
1478 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1479 (GLIBC_2.30): Likewise.
1480 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1481 (GLIBC_2.30): Likewise.
1482 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1483 (GLIBC_2.30): Likewise.
1484 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1485 (GLIBC_2.30): Likewise.
1486 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
1487 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1488 (GLIBC_2.30): Likewise.
1489 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1490 (GLIBC_2.30): Likewise.
1491 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1492 (GLIBC_2.30): Likewise.
1493 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1494 (GLIBC_2.30): Likewise.
1495 * nptl/tst-cond11.c (run_test): Support testing
1496 pthread_cond_clockwait too by using a special magic
1497 CLOCK_USE_ATTR_CLOCK value to determine whether to call
1498 pthread_cond_timedwait or pthread_cond_clockwait. (do_test): Pass
1499 CLOCK_USE_ATTR_CLOCK for existing tests, and add new tests using
1500 all combinations of CLOCK_MONOTONIC and CLOCK_REALTIME.
1501 * ntpl/tst-cond26.c: New test for passing unsupported and invalid
1502 clocks to pthread_cond_clockwait.
1503 * nptl/tst-cond27.c: Add test similar to tst-cond5.c, but using
1504 struct timespec and pthread_cond_clockwait.
1505 * manual/threads.texi: Document pthread_cond_clockwait.
1506
6615f779
MC
1507 nptl: Add POSIX-proposed sem_clockwait which behaves just like
1508 sem_timedwait, but measures abstime against the specified clock.
1509 * nptl/sem_waitcommon.c (do_futex_wait, __new_sem_wait_slow): Add
1510 clockid parameters to indicate the clock which abstime should be
1511 measured against.
1512 * nptl/sem_timedwait.c (sem_timedwait), nptl/sem_wait.c
1513 (__new_sem_wait): Pass CLOCK_REALTIME as clockid to
1514 __new_sem_wait_slow.
1515 * nptl/sem_clockwait.c: New file to implement sem_clockwait based
1516 on sem_timedwait.c.
1517 * nptl/Makefile: Add sem_clockwait.c source file. Add CFLAGS for
1518 sem_clockwait.c to match those used for sem_timedwait.c.
1519 * sysdeps/pthread/semaphore.h: Add sem_clockwait.
1520 * nptl/Versions (GLIBC_2.30): Likewise.
1521 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
1522 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
1523 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
1524 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
1525 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
1526 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
1527 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
1528 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1529 (GLIBC_2.30): Likewise.
1530 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1531 (GLIBC_2.30): Likewise.
1532 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1533 (GLIBC_2.30): Likewise.
1534 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1535 (GLIBC_2.30): Likewise.
1536 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1537 (GLIBC_2.30): Likewise.
1538 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
1539 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1540 (GLIBC_2.30): Likewise.
1541 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1542 (GLIBC_2.30): Likewise.
1543 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1544 (GLIBC_2.30): Likewise.
1545 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1546 (GLIBC_2.30): Likewise.
1547 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1548 (GLIBC_2.30): Likewise.
1549 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1550 (GLIBC_2.30): Likewise.
1551 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
1552 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1553 (GLIBC_2.30): Likewise.
1554 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1555 (GLIBC_2.30): Likewise.
1556 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1557 (GLIBC_2.30): Likewise.
1558 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1559 (GLIBC_2.30): Likewise.
1560 * nptl/tst-sem17.c: Add new test for passing invalid clock to
1561 sem_clockwait.
1562 * nptl/tst-sem13.c, nptl/tst-sem5.c: Modify existing sem_timedwait
1563 tests to also test sem_clockwait.
1564 * manual/threads.texi: Document sem_clockwait.
1565
99d01ffc
MC
1566 nptl: Add clockid parameter to futex timed wait calls
1567 * sysdeps/nptl/lowlevellock-futex.h,
1568 sysdeps/unix/sysv/linux/lowlevellock-futex.h: Replace
1569 lll_futex_timed_wait_bitset with lll_futex_clock_wait_bitset that
1570 takes a clockid rather than a special clockbit.
1571 * sysdeps/nptl/lowlevellock-futex.h: Add
1572 lll_futex_supported_clockid so that client functions can check
1573 whether their clockid parameter is valid even if they don't
1574 ultimately end up calling lll_futex_clock_wait_bitset.
1575 * sysdeps/nptl/futex-internal.h,
1576 sysdeps/unix/sysv/linux/futex-internal.h
1577 (futex_abstimed_wait, futex_abstimed_wait_cancelable): Add
1578 clockid_t parameter to indicate which clock the absolute time
1579 passed should be measured against. Pass that clockid onto
1580 lll_futex_clock_wait_bitset. Add invalid clock as reason for
1581 returning -EINVAL.
1582 * sysdeps/nptl/futex-internal.h,
1583 sysdeps/unix/sysv/linux/futex-internal.h: Introduce
1584 futex_abstimed_supported_clockid so that client functions can check
1585 whether their clockid parameter is valid even if they don't
1586 ultimately end up calling futex_abstimed_wait.
1587 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Remove
1588 code to calculate relative timeout for
1589 __PTHREAD_COND_CLOCK_MONOTONIC_MASK and just pass CLOCK_MONOTONIC
1590 or CLOCK_REALTIME as required to futex_abstimed_wait_cancelable.
1591 * nptl/pthread_rwlock_common (__pthread_rwlock_rdlock_full)
1592 (__pthread_wrlock_full), nptl/sem_waitcommon (do_futex_wait): Pass
1593 additional CLOCK_REALTIME to futex_abstimed_wait_cancelable.
1594 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
1595 Switch to lll_futex_clock_wait_bitset and pass CLOCK_REALTIME
1596
a008c76b
AZ
15972019-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1598
1599 [BZ #24699]
1600 * posix/tst-mmap-offset.c: Mention BZ #24699.
1601 (do_test_bz21270): Rename to do_test_large_offset and use
1602 mmap64_maximum_offset to check for maximum expected offset value.
1603 * sysdeps/generic/mmap_info.h: New file.
1604 * sysdeps/unix/sysv/linux/mips/mmap_info.h: Likewise.
1605 * sysdeps/unix/sysv/linux/mmap64.c (MMAP_OFF_HIGH_MASK): Define iff
1606 __NR_mmap2 is used.
1607
99135114
DD
16082019-07-10 DJ Delorie <dj@redhat.com>
1609 Sergei Trofimovich <slyfox@inbox.ru>
1610
1611 [BZ #24696]
1612 [BZ #24695]
1613 * nss/nss_db/db-open.c (internal_endent): Protect against NULL
1614 mappings.
1615 * nss/tst-nss-db-endgrent.c: New.
1616 * nss/tst-nss-db-endgrent.root: New.
1617 * nss/tst-nss-db-endpwent.c: New.
1618 * nss/tst-nss-db-endpwent.root: New.
1619 * nss/Makefile: Add new tests.
1620 * support/links-dso-program-c.c: Add selinux dependency.
1621 * support/links-dso-program.cc: Add selinux dependency.
1622 * support/Makefile: Build those with -lselinux if enabled.
1623
30ba0375
SN
16242019-07-10 Szabolcs Nagy <szabolcs.nagy@arm.com>
1625
1626 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove the
1627 DT_AARCH64_VARIANT_PCS check.
1628 (elf_machine_lazy_rel): Use l_info[DT_AARCH64 (VARIANT_PCS)].
1629 * sysdeps/aarch64/linkmap.h (struct link_map_machine): Remove
1630 variant_pcs.
1631
32b8188a
AS
16322019-07-10 Andreas Schwab <schwab@suse.de>
1633
1634 [BZ #23352]
1635 * malloc/malloc.h (__malloc_check_init): Don't declare.
1636 * include/malloc.h (__malloc_check_init): Likewise.
1637 * malloc/malloc-internal.h (__malloc_check_init): Declare it here.
1638 * manual/memory.texi (__malloc_check_init): Don't mention it.
1639
7901d4ee
MH
16402019-07-10 Mao Han <han_mao@c-sky.com>
1641
1642 * locale/Makefile: Fix tst-locale-locpath arguments passing.
1643
b5232c9f 16442019-07-09 Paul A. Clarke <pc@us.ibm.com>
32b8188a 1645
b5232c9f
PC
1646 * sysdeps/powerpc/fpu/fenv_libc.h (_FPU_GET_RC): Protect use of
1647 __builtin_cpu_supports with __BUILTIN_CPU_SUPPORTS__.
1648
6ba205b2
DD
16492019-07-08 DJ Delorie <dj@redhat.com>
1650
1651 [BZ #23501]
1652 * io/ftw.c (process_entry): Fill in statbuf for dangling links.
1653 * io/tst-ftw-lnk.c: New test.
1654 * io/Makefile: Run it.
1655
f215dbbd
AZ
16562019-07-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1657
6ea21bfe
AZ
1658 * sysdeps/powerpc/power7/fpu/s_logb.c: Move to ...
1659 * sysdeps/powerpc/fpu/s_logb.c: ... here. Use inline FP constants.
1660 * sysdeps/powerpc/power7/fpu/s_logbf.c: Move to ...
1661 * sysdeps/powerpc/fpu/s_logbf.c: ... here. Use inline FP constants.
1662 * sysdeps/powerpc/power7/fpu/s_logbl.c: Move to ...
1663 * sysdeps/powerpc/fpu/s_logbl.c: ... here. Use inline FP constants.
1664 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c:
1665 Adjust implementation path.
1666 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c:
1667 Adjust implementation path.
1668 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-power7.c:
1669 Adjust implementation path.
1670 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
1671 (libm-sysdep_routines): Add s_log* objects.
1672 (CFLAGS-s_logbf-power7.c, CFLAGS-s_logbl-power7.c,
1673 CFLAGS-s_logb-power7.c): New fule.
1674 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: Move
1675 to ...
1676 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb-power7.c:
1677 ... here.
1678 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: Move
1679 to ...
1680 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb-ppc64.c:
1681 ... here.
1682 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Move to ...
1683 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb.c: ... here.
1684 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: Move
1685 to ...
1686 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf-power7.c:
1687 ... here.
1688 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: Move
1689 to ...
1690 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf-ppc64.c:
1691 ... here.
1692 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Move to ...
1693 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf.c: ... here.
1694 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: Move
1695 to ...
1696 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl-power7.c:
1697 ... here.
1698 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: Move
1699 to ...
1700 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl-ppc64.c:
1701 ... here.
1702 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: Move to ...
1703 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl.c: ... here.
1704 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Remove file.
1705 * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Remove file.
1706 * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
1707 * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
1708
105f2ed3
AZ
1709 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Move to ...
1710 * sysdeps/ieee754/dbl-64/s_logb.c: ... here. Add work around for
1711 powerpc32 integer 0 converting to -0.
1712
0cccd37f
AZ
1713 * benchtests/Makefile (bench-math): Add logb.
1714 * benchtests/logb-inputs: New file.
1715 * benchtests/logbf-inputs: New file.
1716
931c616e
AZ
1717 * sysdeps/powerpc/power5+/fpu/s_modf.c: Move to ...
1718 * sysdeps/powerpc/fpu/s_modf.c: ... here. Add ISA 2.07 optimization.
1719 * sysdeps/powerpc/power5+/fpu/s_modff.c: Move to ...
1720 * sysdeps/powerpc/fpu/s_modff.c: ... here. Add ISA 2.07 optimization.
1721 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
1722 Adjust include.
1723 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
1724 Likewise.
1725 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile (sysdep_calls,
1726 sysdep_routines): Add s_modf* objects.
1727 (CFLAGS-s_modf-power5+.c, CFLAGS-s_modff-power5+.c,
1728 CFLAGS-s_modf-ppc64.c, CFLAGS-s_modff-ppc64.c): New rule.
1729 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: Move
1730 to ...
1731 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf-power5+.c:
1732 ... here.
1733 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: Movo
1734 to ...
1735 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf-power5+.c: Move
1736 ... here.
1737 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Move to ...
1738 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf.c: ... here.
1739 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: Move
1740 to ...
1741 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff-power5+.c:
1742 ... here.
1743 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: Move to ...
1744 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff-ppc64.c:
1745 ... here.
1746 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Move to ...
1747 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff.c: ... here.
1748
69461d98
AZ
1749 * sysdeps/powerpc/fpu/e_hypot.c (two60, two500, two600, two1022,
1750 twoM500, twoM600, two60factor, pdnum): Remove.
1751 (TEST_INFO_NAN, GET_TW0_HIGH_WORD): Remove macro.
1752 (__ieee754_hypot): Replace static variables with inline definition,
1753 remove ununsed branches.
1754 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1755 (libm-sysdep_routines): Remove e_hypot-* objects.
1756 (CFLAGS-e_hypot-power7.c, CFLAGS-e_hypotf-power7.c): Remove rule.
1757 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: Remove
1758 file.
1759 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: Likewise.
1760 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: Likewise.
1761 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: Likewise.
1762 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: Likewise.
1763 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: Likewise.
1764
f215dbbd
AZ
1765 * benchtests/Makefile (bench-math): Add hypot.
1766 * benchtests/hypot-inputs: New file.
1767
97274b18
VC
17682019-07-08 Vincent Chen <vincentc@andestech.com>
1769
1770 * sysdeps/unix/sysv/linux/dl-vdso.h
1771 (VDSO_NAME_LINUX_4, VDSO_HASH_LINUX_4): New defines.
1772
484b7af3
AS
17732019-07-04 Andreas Schwab <schwab@suse.de>
1774
1775 [BZ #24484]
1776 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Define.
1777
2b8a3c86
SN
17782019-07-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
1779
1780 * sysdeps/aarch64/Makefile: Install sys/ifunc.h and add tests.
1781 * sysdeps/aarch64/dl-irel.h (elf_ifunc_invoke): Update to new ABI.
1782 * sysdeps/aarch64/sys/ifunc.h: New file.
1783 * sysdeps/aarch64/tst-ifunc-arg-1.c: New file.
1784 * sysdeps/aarch64/tst-ifunc-arg-2.c: New file.
1785
41d6f74e
FW
17862019-07-01 Florian Weimer <fweimer@redhat.com>
1787
1788 [BZ #20188]
1789 * nptl/Versions (libpthread): Remove __fork from GLIBC_2.0.
1790 Replace __vfork with __libpthread_version_placeholder for
1791 GLIBC_2.1.2.
1792 (libc): Remove __libc_vfork from GLIBC_PRIVATE.
1793 * nptl/Makefile (libpthread-routines): Remove pt-vfork. Add
1794 libpthread-compat.
1795 * nptl/pt-vfork.c: Remove file.
1796 * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: Likewise.
1797 * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: Likewise.
1798 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
1799 * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: Likewise.
1800 * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Likewise.
1801 * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: Likewise.
1802 * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Likewise.
1803 * sysdeps/unix/sysv/linux/mips/pt-vfork.S: Likewise.
1804 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: Likewise.
1805 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
1806 * sysdeps/unix/sysv/linux/s390/pt-vfork.S: Likewise.
1807 * sysdeps/unix/sysv/linux/sh/pt-vfork.S: Likewise.
1808 * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: Likewise.
1809 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1810 Remove vfork, __vfork.
1811 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1812 Remove vfork.
1813 (GLIBC_2.1.2): Replace __vfork with
1814 __libpthread_version_placeholder.
1815 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1816 Remove vfork, __vfork.
1817 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1818 Likewise.
1819 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1820 Remove vfork.
1821 (GLIBC_2.1.2): Replace __vfork with
1822 __libpthread_version_placeholder.
1823 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1824 Remove vfork.
1825 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1826 (GLIBC_2.4): Remove vfork, __vfork.
1827 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1828 (GLIBC_2.0): Remove vfork.
1829 (GLIBC_2.1.2): Replace __vfork with
1830 __libpthread_version_placeholder.
1831 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1832 (GLIBC_2.18): Remove vfork, __vfork.
1833 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1834 (GLIBC_2.0): Remove vfork.
1835 (GLIBC_2.2): Remove __vfork.
1836 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist:
1837 (GLIBC_2.2): Remove vfork, __vfork.
1838 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
1839 (GLIBC_2.0): Remove vfork.
1840 (GLIBC_2.1.2): Replace __vfork with
1841 __libpthread_version_placeholder.
1842 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1843 (GLIBC_2.3): Remove vfork, __vfork.
1844 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1845 (GLIBC_2.17): Likewise.
1846 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1847 (GLIBC_2.0): Remove vfork.
1848 (GLIBC_2.1.2): Replace __vfork with
1849 __libpthread_version_placeholder.
1850 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1851 (GLIBC_2.2): Remove vfork, __vfork.
1852 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1853 Likewise.
1854 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1855 (GLIBC_2.0): Remove vfork.
1856 (GLIBC_2.1.2): Replace __vfork with
1857 __libpthread_version_placeholder.
1858 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1859 (GLIBC_2.2): Remove vfork, __vfork.
1860 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1861 (GLIBC_2.2.5): Likewise.
1862 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1863 (GLIBC_2.16): Likewise.
1864 * sysdeps/unix/sysv/linux/hppa/localplt.data (libpthread.so):
1865 Remove __errno_location.
1866
27cec9ae
FW
18672019-07-02 Florian Weimer <fweimer@redhat.com>
1868
1869 [BZ #24757]
1870 * malloc/Depend: Add nptl and htl, due to potential indirect
1871 libpthread dependency of memusagestat.
1872
d1bc2cbb
SL
18732019-07-02 Stefan Liebler <stli@linux.ibm.com>
1874
1875 * resolv/res_send.c (__res_context_send): Disable maybe-uninitialized
1876 warning.
1877
72edea80
FW
18782019-07-01 Florian Weimer <fweimer@redhat.com>
1879
1880 * scripts/build-many-glibcs.py (Context.add_all_configs): Add v4t
1881 variant for arm-linux-gnueabi.
1882
d0093c5c
L
18832019-07-01 H.J. Lu <hongjiu.lu@intel.com>
1884
1885 [BZ #24259]
1886 * elf/dl-open.c (dl_open_worker): Call _dl_open_check after
1887 relocation.
1888 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-5a,
1889 tst-cet-legacy-5b, tst-cet-legacy-6a and tst-cet-legacy-6b.
1890 (modules-names): Add tst-cet-legacy-mod-5a, tst-cet-legacy-mod-5b,
1891 tst-cet-legacy-mod-5c, tst-cet-legacy-mod-6a, tst-cet-legacy-mod-6b
1892 and tst-cet-legacy-mod-6c.
1893 (CFLAGS-tst-cet-legacy-5a.c): New.
1894 (CFLAGS-tst-cet-legacy-5b.c): Likewise.
1895 (CFLAGS-tst-cet-legacy-mod-5a.c): Likewise.
1896 (CFLAGS-tst-cet-legacy-mod-5b.c): Likewise.
1897 (CFLAGS-tst-cet-legacy-mod-5c.c): Likewise.
1898 (CFLAGS-tst-cet-legacy-6a.c): Likewise.
1899 (CFLAGS-tst-cet-legacy-6b.c): Likewise.
1900 (CFLAGS-tst-cet-legacy-mod-6a.c): Likewise.
1901 (CFLAGS-tst-cet-legacy-mod-6b.c): Likewise.
1902 (CFLAGS-tst-cet-legacy-mod-6c.c): Likewise.
1903 ($(objpfx)tst-cet-legacy-5a): Likewise.
1904 ($(objpfx)tst-cet-legacy-5a.out): Likewise.
1905 ($(objpfx)tst-cet-legacy-mod-5a.so): Likewise.
1906 ($(objpfx)tst-cet-legacy-mod-5b.so): Likewise.
1907 ($(objpfx)tst-cet-legacy-5b): Likewise.
1908 ($(objpfx)tst-cet-legacy-5b.out): Likewise.
1909 (tst-cet-legacy-5b-ENV): Likewise.
1910 ($(objpfx)tst-cet-legacy-6a): Likewise.
1911 ($(objpfx)tst-cet-legacy-6a.out): Likewise.
1912 ($(objpfx)tst-cet-legacy-mod-6a.so): Likewise.
1913 ($(objpfx)tst-cet-legacy-mod-6b.so): Likewise.
1914 ($(objpfx)tst-cet-legacy-6b): Likewise.
1915 ($(objpfx)tst-cet-legacy-6b.out): Likewise.
1916 (tst-cet-legacy-6b-ENV): Likewise.
1917 * sysdeps/x86/tst-cet-legacy-5.c: New file.
1918 * sysdeps/x86/tst-cet-legacy-5a.c: Likewise.
1919 * sysdeps/x86/tst-cet-legacy-5b.c: Likewise.
1920 * sysdeps/x86/tst-cet-legacy-6.c: Likewise.
1921 * sysdeps/x86/tst-cet-legacy-6a.c: Likewise.
1922 * sysdeps/x86/tst-cet-legacy-6b.c: Likewise.
1923 * sysdeps/x86/tst-cet-legacy-mod-5.c: Likewise.
1924 * sysdeps/x86/tst-cet-legacy-mod-5a.c: Likewise.
1925 * sysdeps/x86/tst-cet-legacy-mod-5b.c: Likewise.
1926 * sysdeps/x86/tst-cet-legacy-mod-5c.c: Likewise.
1927 * sysdeps/x86/tst-cet-legacy-mod-6.c: Likewise.
1928 * sysdeps/x86/tst-cet-legacy-mod-6a.c: Likewise.
1929 * sysdeps/x86/tst-cet-legacy-mod-6b.c: Likewise.
1930 * sysdeps/x86/tst-cet-legacy-mod-6c.c: Likewise.
1931
3db85a98
PC
19322019-06-30 Paul A. Clarke <pc@us.ibm.com>
1933
1934 * sysdeps/powerpc/bits/fenvinline.h (__fegetround): Use
1935 __fegetround_ISA300() or __fegetround_ISA2() as appropriate.
1936 (__fegetround_ISA300) New.
1937 (__fegetround_ISA2) New.
1938 * sysdeps/powerpc/fpu_control.h (IS_ISA300): New.
1939 (_FPU_MFFS): Move implementation...
1940 (_FPU_GETCW): Here.
1941 (_FPU_MFFSL): Move implementation....
1942 (_FPU_GET_RC_ISA300): Here. New.
1943 (_FPU_GET_RC): Use _FPU_GET_RC_ISA300() or _FPU_GETCW() as appropriate.
1944 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_status_ISA300): New.
1945 (fegetenv_status): New.
1946 * sysdeps/powerpc/fpu/fegetmode.c (fegetmode): Use fegetenv_status()
1947 instead of fegetenv_register().
1948 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Likewise.
1949
d0645912
WD
19502019-06-28 Wilco Dijkstra <wdijkstr@arm.com>
1951
1952 * benchtests/bench-math-inlines.c: Increase iterations.
1953 * benchtests/bench-memcmp.c: Likewise.
1954 * benchtests/bench-rawmemchr.c: Likewise.
1955 * benchtests/bench-strcmp.c: Likewise.
1956 * benchtests/bench-strcpy_chk.c: Likewise.
1957 * benchtests/bench-string.h (INNER_LOOP_ITERS8): Add define.
1958 (INNER_LOOP_ITERS_MEDIUM): Increase iterations.
1959 (INNER_LOOP_ITERS_SMALL): Likewise.
1960 * benchtests/bench-strncat.c: Increase iterations.
1961 * benchtests/bench-strncmp.c: Increase iterations.
1962 * benchtests/bench-strncpy.c: Reduce iterations for wide strings.
1963 * benchtests/bench-strrchr.c: Increase iterations.
1964 * benchtests/bench-strstr.c: Keep iterations unchanged.
1965 * benchtests/bench-strtod.c: Increase iterations.
1966
afe23eb0
AY
19672019-06-28 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
1968
1969 * benchtests/bench-memccpy.c: Replace INNER_LOOP_ITERS
1970 with INNER_LOOP_ITERS_LARGE.
1971 * benchtests/bench-memchr.c: Likewise.
1972 * benchtests/bench-rawmemchr.c: Likewise.
1973 * benchtests/bench-strcat.c: Likewise.
1974 * benchtests/bench-strchr.c: Likewise.
1975 * benchtests/bench-string.h: Likewise.
1976 * benchtests/bench-strlen.c: Likewise.
1977 * benchtests/bench-strncpy.c: Likewise.
1978 * benchtests/bench-strnlen.c: Likewise.
1979
507f55c0
FW
19802019-06-28 Florian Weimer <fweimer@redhat.com>
1981
1982 * sysdeps/unix/sysv/linux/tst-getdents64.c (large_buffer_checks):
1983 Use mmap instead of malloc. malloc with M_PERTURB writes to the
1984 entire allocated memory range.
1985
589787f8
TK
19862019-06-28 Tobias Klauser <tklauser@distanz.ch>
1987
1988 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Remove macro.
1989 (prepare_version_base): New helper inline function.
1990 (prepare_version): New macro replacing PREPARE_VERSION.
1991 (PREPARE_VERSION_KNOWN): Use prepare_version instead of PREPARE_VERSION.
1992
f0b2132b
FW
19932019-06-28 Florian Weimer <fweimer@redhat.com>
1994
1995 [BZ #24741]
1996 * elf/dl-lookup.c (do_lookup_x): Do not fail if there is a soname
1997 mismatch in a versioned symbol reference.
1998 (_dl_lookup_symbol_x): Do not report soname mismatch failures.
1999 * elf/Makefile [$(build-shared)] (tests): Add tst-sonamemove-link,
2000 tst-sonamemove-dlopen.
2001 (module-names): Add tst-sonamemove-linkmod1,
2002 tst-sonamemove-runmod1, tst-sonamemove-runmod2.
2003 (LDFLAGS-tst-sonamemove-linkmod1.so): Set.
2004 (LDFLAGS-tst-sonamemove-runmod1.so): Likewise.
2005 (LDFLAGS-tst-sonamemove-runmod2.so): Likewise.
2006 (tst-sonamemove-runmod1.so): Link against
2007 tst-sonamemove-runmod2.so.
2008 (tst-sonamemove-link): Link against tst-sonamemove-linkmod1.so.
2009 (tst-sonamemove-link.out): Depend on tst-sonamemove-runmod1.so,
2010 tst-sonamemove-runmod2.so.
2011 (tst-sonamemove-dlopen): Link with -ldl.
2012 (tst-sonamemove-dlopen.out): Likewise.
2013 * elf/tst-sonamemove-link.c: New file.
2014 * elf/tst-sonamemove-dlopen.c: Likewise.
2015 * elf/tst-sonamemove-linkmod1.c: Likewise.
2016 * elf/tst-sonamemove-linkmod1.map: Likewise.
2017 * elf/tst-sonamemove-runmod1.c: Likewise.
2018 * elf/tst-sonamemove-runmod1.map: Likewise.
2019 * elf/tst-sonamemove-runmod2.c: Likewise.
2020 * elf/tst-sonamemove-runmod2.map: Likewise.
2021
17432d71
FW
20222019-06-28 Florian Weimer <fweimer@redhat.com>
2023
2024 * support/xdlfcn.h (xdlvsym): Declare function.
2025 * support/xdlfcn.c (xdlvsym): Define funciton.
2026
5a659ccc
FW
20272019-06-28 Florian Weimer <fweimer@redhat.com>
2028
2029 [BZ #24744]
2030 io: Remove the copy_file_range emulation.
2031 * sysdeps/unix/sysv/linux/copy_file_range.c (copy_file_range): Do
2032 not define and call copy_file_range_compat.
2033 * io/Makefile (tests-static, tests-internal): Do not add
2034 tst-copy_file_range-compat.
2035 * io/copy_file_range-compat.c: Remove file.
2036 * io/copy_file_range.c (copy_file_range): Define as stub.
2037 * io/tst-copy_file_range-compat.c: Remove file.
2038 * io/tst-copy_file_range.c (xdevfile): Remove variable.
2039 (typical_sizes): Update comment. Remove 16K sizes.
2040 (maximum_offset, maximum_offset_errno, maximum_offset_hard_limit):
2041 Remove variables.
2042 (find_maximum_offset, pipe_as_source, pipe_as_destination)
2043 (delayed_write_failure_beginning, delayed_write_failure_end)
2044 (cross_device_failure, enospc_failure_1, enospc_failure)
2045 (oappend_failure): Remove functions.
2046 (tests): Adjust test case list.
2047 (do_test): Remove file system search code. Check for ENOSYS from
2048 copy_file_range. Do not free xdevfile.
2049 * manual/llio.texi (Copying File Data): Document ENOSYS error from
2050 copy_file_range. Do not document the EXDEV error, which future
2051 kernels may not report. Update the wording to reflect that
2052 further errors are possible.
2053 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2054 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_COPY_FILE_RANGE): Do
2055 not undefine.
2056 * sysdeps/unix/sysv/linux/arm/kernel-features.h
2057 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
2058 Likewise.
2059 * sysdeps/unix/sysv/linux/kernel-features.h
2060 [__LINUX_KERNEL_VERSION >= 0x040500] (__ASSUME_COPY_FILE_RANGE):
2061 Remove definition.
2062 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2063 [__LINUX_KERNEL_VERSION < 0x040A00] (__ASSUME_COPY_FILE_RANGE): Do
2064 not undefine.
2065 * sysdeps/unix/sysv/linux/sh/kernel-features.h
2066 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
2067 Likewise.
2068
1626f499
GG
20692019-06-27 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
2070
2071 * libio/libioP.h (PRINTF_LDBL_USES_FLOAT128): New macro to be
2072 used as a mask for the mode argument of __vfprintf_internal.
2073 * stdio-common/printf-parse.h (printf_arg): New union member:
2074 pa_float128.
2075 * stdio-common/vfprintf-internal.c
2076 (PARSE_FLOAT_VA_ARG_EXTENDED): New macro.
2077 (PARSE_FLOAT_VA_ARG): Likewise.
2078 (SETUP_FLOAT128_INFO): Likewise.
2079 (process_arg): Use PARSE_FLOAT_VA_ARG_EXTENDED and
2080 SETUP_FLOAT128_INFO.
2081 [__HAVE_FLOAT128_UNLIKE_LDBL] (printf_positional): Write
2082 floating-point value to the new union member, pa_float128.
2083 (printf_positional): Zero-initialize args_value[cnt] with memset.
2084
a620bd79
FW
20852019-06-27 Florian Weimer <fweimer@redhat.com>
2086
2087 [BZ #24740]
2088 * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Adjust
2089 buffer size if necessary.
2090 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
2091 Likewise.
2092 * sysdeps/unix/sysv/linux/tst-getdents64.c (large_buffer_check):
2093 New function.
2094 (large_buffer_checks): Likewise.
2095 (do_test): Call large_buffer_checks.
2096
d039da1c
L
20972019-06-26 H.J. Lu <hongjiu.lu@intel.com>
2098
2099 * sysdeps/i386/dl-lookupcfg.h: Moved to ...
2100 * sysdeps/x86/dl-lookupcfg.h: Here.
2101 * sysdeps/x86_64/dl-lookupcfg.h: Removed.
2102
9d5d214e
AZ
21032019-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2104
aa32f5bf
AZ
2105 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
2106 (libm-sysdep_routines): Remove e_expf-power8 and expf-ppc64.
2107 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Remove
2108 file.
2109 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
2110 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
2111 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: Likewise.
2112 * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
2113 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: Likewise.
2114
9d5d214e
AZ
2115 * sysdeps/powerpc/powerpc32/fpu/Makefile
2116 [$(subdir) == math] (CFLAGS-s_lround.c): New rule.
2117 * sysdeps/powerpc/powerpc32/fpu/s_llround.c (__llround): Add power5+
2118 and fctidz optimization.
2119 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Remove file.
2120 * sysdeps/powerpc/powerpc32/fpu/s_lround.c: New file.
2121 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
2122 (CFLAGS-s_llround-power6.c, CFLAGS-s_llround-power5+.c,
2123 CFLAGS-s_llround-ppc32.c, CFLAGS-s_lround-ppc32.c,
2124 CFLAGS-s_lround-power5+.c): New rule.
2125 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.c:
2126 New file.
2127 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.c:
2128 Likewise.
2129 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.c:
2130 Likewise.
2131 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.c:
2132 Likewise.
2133 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.c:
2134 Likewise.
2135 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
2136 Remove file.
2137 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
2138 Likewise.
2139 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
2140 Likewise.
2141 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
2142 Likewise.
2143 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
2144 Likewise.
2145 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
2146 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: Likewise.
2147 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
2148 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
2149 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
2150 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
2151 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
2152
a63b96fb
VC
21532019-06-26 Vincent Chen <vincentc@andestech.com>
2154
2155 * sysdeps/unix/sysv/linux/syscall-names.list: Add nds32
2156 specific system calls, fp_udfiex_crtl and udftrap.
2157
c78b3f55
SL
21582019-06-26 Stefan Liebler <stli@linux.ibm.com>
2159
2160 * nptl/tst-eintr1.c (tf1): Add return statement.
2161 (do_test): Remove unused th variable.
2162
9e6a7d9c
SL
21632019-06-26 Stefan Liebler <stli@linux.ibm.com>
2164
2165 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis):
2166 Return error if get_character fails.
2167
c89e669a
SL
21682019-06-25 Stefan Liebler <stli@linux.ibm.com>
2169
2170 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
2171
a55541fd
RL
21722019-06-24 Rafal Luzynski <digitalfreak@lingonborough.com>
2173
2174 [BZ #24652]
2175 * localedata/locales/szl_PL (day): Use the correct Unicode
2176 sequences instead of non-ASCII characters.
2177
2bd81b60
GK
21782019-06-24 Grzegorz Kulik <gregorykkulik@gmail.com>
2179
2180 [BZ #24652]
2181 * localedata/locales/szl_PL (abday): Spelling corrections.
2182 (day): Likewise.
2183 (abmon): Likewise.
2184 (mon): Rename to...
2185 (alt_mon): This, then apply spelling corrections.
2186 (mon): New entry, month names in the genitive case.
2187
fefa2179
RL
21882019-06-21 Rafal Luzynski <digitalfreak@lingonborough.com>
2189
2190 [BZ #23831]
2191 * localedata/locales/nl_AW (mon_thousands_sep): Set to ".".
2192 * localedata/locales/nl_NL (mon_thousands_sep): Likewise.
2193 (thousands_sep): Likewise.
2194 (grouping): Set to 3;3.
2195
85c748f9
TK
21962019-06-21 Tobias Klauser <tklauser@distanz.ch>
2197
2198 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (INIT_ARCH): Use
2199 PREPARE_VERSION_KNOWN.
2200 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
2201 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_2_6_39): New
2202 define.
2203 (VDSO_HASH_LINUX_2_6_39): Likewise.
2204 (VDSO_NAME_LINUX_4_9): Likewise.
2205 (VDSO_HASH_LINUX_4_9): Likewise.
2206 * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (INIT_ARCH): Likewise.
2207 * sysdeps/unix/sysv/linux/powerpc/init-first.c
2208 (_libc_vdso_platform_setup): Likewise.
2209 * sysdeps/unix/sysv/linux/powerpc/time.c (INIT_ARCH): Likewise.
2210 * sysdeps/unix/sysv/linux/s390/init-first.c (_libc_vdso_platform_setup):
2211 Likewise.
2212 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_platform_setup):
2213 Likewise.
2214
db13e32c
MC
22152019-06-20 Mike Crowe <mac@mcrowe.com>
2216
ce5b73a7
MC
2217 * nptl/eintr.c: Use libsupport.
2218 * nptl/tst-eintr1.c: Likewise.
2219 * nptl/tst-eintr2.c: Likewise.
2220 * nptl/tst-eintr3.c: Likewise.
2221 * nptl/tst-eintr4.c: Likewise.
2222 * nptl/tst-eintr5.c: Likewise.
2223 * nptl/tst-mutex-errorcheck.c: Likewise.
2224 * nptl/tst-mutex5.c: Likewise.
2225
8bf225d5
MC
2226 * support/test-driver.h: Add verbose_printf macro.
2227
db13e32c
MC
2228 * support/xtime.h: Add xclock_now() helper function.
2229
21cc130b
DL
22302019-06-20 Dmitry V. Levin <ldv@altlinux.org>
2231 Florian Weimer <fweimer@redhat.com>
2232
2233 [BZ #24228]
2234 * libio/genops.c (_IO_unbuffer_all)
2235 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Do not attempt to free wide
2236 buffers and access _IO_FILE_complete members of legacy libio streams.
2237 * libio/tst-bz24228.c: New file.
2238 * libio/tst-bz24228.map: Likewise.
2239 * libio/Makefile [build-shared] (tests): Add tst-bz24228.
2240 [build-shared] (generated): Add tst-bz24228.mtrace and
2241 tst-bz24228.check.
2242 [run-built-tests && build-shared] (tests-special): Add
2243 $(objpfx)tst-bz24228-mem.out.
2244 (LDFLAGS-tst-bz24228, tst-bz24228-ENV): New variables.
2245 ($(objpfx)tst-bz24228-mem.out): New rule.
2246
49bc41b6
PC
22472019-06-19 Paul A. Clarke <pc@us.ibm.com>
2248
2249 * sysdeps/powerpc/fpu/fenv_libc.h (relax_fenv_state): Add 'volatile'.
2250 * sysdeps/powerpc/fpu/fpu_control.h (__FPU_MFFS): Likewise.
2251 (__FPU_MFFSL): Likewise.
2252 (_FPU_SETCW): Likewise.
2253
335c1007
SS
22542019-06-19 Stan Shebs <stanshebs@google.com>
2255 Raoni Fassina Firmino <raoni@linux.ibm.com>
2256
2257 [BZ #24640]
2258 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c
2259 [!SHARED] (__get_timebase_freq): Fix sense of a test in the
2260 static-linking version.
2261 * sysdeps/unix/sysv/linux/powerpc/Makefile
2262 (tests-static): Add test-gettimebasefreq-static.
2263 (tests): Likewise.
2264 * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq-static.c:
2265 New file.
2266
f59a54ab
RL
22672019-06-19 Rafal Luzynski <digitalfreak@lingonborough.com>
2268
2269 [BZ #24614]
2270 * localedata/locales/nl_AW (n_sep_by_space): Set to 2 (a space
2271 between the currency symbol and the minus sign).
2272 (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
2273
f0c5a803
SL
22742019-06-19 Stefan Liebler <stli@linux.ibm.com>
2275
2276 [BZ #24556]
2277 * string/test-strcasestr.c (check_result): Add NULL check.
2278 * nss/tst-field.c (check_rewrite): Likewise.
2279 * benchtests/bench-strstr.c (do_one_test): Likewise.
2280 * string/test-strstr.c (check_result): Likewise.
2281 * argp/argp-test.c (popt): Increase size of buf to 12.
2282 * benchtests/bench-malloc-simple.c (bench):
2283 Do not initialize tests array out of bounds.
2284
fabf5e49
FW
22852019-06-19 Florian Weimer <fweimer@redhat.com>
2286
2287 [BZ #24166]
2288 * dlfcn/dlfcn.h (Dl_serinfo): Do not use array of length 1 for
2289 dls_serpath field.
2290
2c75b545
FW
22912019-06-18 Florian Weimer <fweimer@redhat.com>
2292
2293 [BZ #24323]
2294 * include/elf.h (DT_1_SUPPORTED_MASK): Include DF_1_PIE.
2295 * elf/dl-load.c (_dl_map_object_from_fd): Check for DF_1_PIE and
2296 fail when called from dlopen.
2297 * elf/Makefile [have-fpie && build-shared] (tests): Add
2298 tst-dlopen-pie.
2299 (tst-dlopen-pie): Link with -ldl.
2300 (tst-dlopen-pie.out): Add run-time dependency on tst-pie1.
2301 * elf/tst-dlopen-pie.c (do_test): New file.
2302
02d8b5ab
RL
23032019-06-17 Rafal Luzynski <digitalfreak@lingonborough.com>
2304
2305 [BZ #24614]
2306 * localedata/Makefile (LOCALES): Add nl_NL.UTF-8.
2307 * localedata/locales/nl_NL (n_sep_by_space): Set to 2 (a space
2308 between the currency symbol and the minus sign).
2309 (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
2310 * localedata/tst-strfmon1.c (tests): Add test data for nl_NL.UTF-8.
2311
78049de0
AZ
23122019-06-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2313
112a0ae1
AZ
2314 * sysdeps/unix/sysv/linux/m68k/Makefile (sysdep_routines,
2315 sysdep-rtld-routines): Remove rules.
2316 * sysdeps/unix/sysv/linux/m68k/Versions (libc) [GLIBC_PRIVATE]:
2317 Remove __vdso_atomic_cmpxchg_32 and __vdso_atomic_barrier.
2318 (ld) [GLIBC_PRIVATE]: __rtld___vdso_read_tp,
2319 __rtld___vdso_atomic_cmpxchg_32, and __rtld___vdso_atomic_barrier.
2320 * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h
2321 (atomic_compare_and_exchange_val_acq, atomic_full_barrier): Remove
2322 vDSO path for SHARED.
2323 * sysdeps/unix/sysv/linux/m68k/init-first.c: Remove file.
2324 * sysdeps/unix/sysv/linux/m68k/libc-m68k-vdso.c: Likewise.
2325 * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
2326 * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
2327 * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: Likewise.
2328 * sysdeps/unix/sysv/linux/m68k/m68k-helpers.c: New file.
2329
dee07df1
AZ
2330 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
2331 (libm-sysdep_routines): Add s_llround-power8, s_llround-power6x,
2332 s_llround-power5+, s_llround-ppc64, and s_llroundf-ppc64.
2333 (CFLAGS-s_llround-power8.c, CFLAGS-s_llround-power6x.c,
2334 CFLAGS-s_llround-power5+.c): New rule.
2335 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power5+.c:
2336 New file.
2337 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power6x.c:
2338 Likewise.
2339 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power8.c:
2340 Likewise.
2341 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-ppc64.c:
2342 Likewise.
2343 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf-ppc64.c:
2344 Likewise.
2345 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Move to ...
2346 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround.c: ... here.
2347 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Move to ...
2348 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf.c: ... here.
2349 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: Move to ...
2350 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lround.c: ... here.
2351 * sysdeps/powerpc/powerpc64/fpu/Makefile
2352 [$(subdir) == math] (CFLAGS-s_llround.c): New rule.
2353 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
2354 (libm-sysdep_routines): Remove s_llround-* objects.
2355 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Remove
2356 file.
2357 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S:
2358 Likewise.
2359 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S:
2360 Likewise.
2361 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S:
2362 Likewise.
2363 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S:
2364 Likewise.
2365 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
2366 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
2367 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
2368 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
2369 * sysdeps/powerpc/powerpc64/fpu/s_llround.c: New file.
2370 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.c: Likewise.
2371 * sysdeps/powerpc/powerpc64/fpu/s_lround.c: Likewise.
2372 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.c: Likewise.
2373 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
2374 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llroundf.S: Likewise.
2375 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
2376 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llroundf.S: Likewise.
2377 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
2378 * sysdeps/powerpc/powerpc64/power8/fpu/s_llroundf.S: Likewise.
2379
2166283f
AZ
2380 * sysdeps/powerpc/fpu/s_lrintf.S: Remove file.
2381 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Move to ...
2382 * sysdeps/powerpc/fpu/s_lrintf.c: ... here.
2383 * sysdeps/powerpc/powerpc32/fpu/Makefile
2384 [$(subdir) == math] (CFLAGS-s_lrint.c): New rule.
2385 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Add power4
2386 optimization.
2387 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
2388 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Remove file.
2389 * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: New file.
2390 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
2391 (CFLAGS-s_llrintf-power6.c, CFLAGS-s_llrintf-ppc32.c,
2392 CFLAGS-s_llrint-power6.c, CFLAGS-s_llrint-ppc32.c,
2393 CFLAGS-s_lrint-ppc32.c): New rule.
2394 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
2395 Remove file.
2396 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
2397 Likewise.
2398 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
2399 Likewise.
2400 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
2401 Likewise.
2402 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
2403 Likewise.
2404 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
2405 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
2406 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
2407 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
2408 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.c:
2409 New file.
2410 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.c:
2411 Likewise.
2412 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.c:
2413 Likewise.
2414 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.c:
2415 Likewise.
2416 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.c:
2417 Likewise.
2418
78049de0
AZ
2419 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
2420 (libm-sysdep_routines): Add s_llrint-power8, s_llrint-power6x, and
2421 s_llrint-ppc64.
2422 (CFLAGS-s_llrint-power8.c, CFLAGS-s_llrint-power6x.c): New rule.
2423 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power6x.c: New
2424 file.
2425 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power8.c:
2426 Likewise.
2427 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-ppc64.c:
2428 Likewise.
2429 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: Move to ...
2430 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: ... here.
2431 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Move to ...
2432 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint.c: ... here.
2433 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Move to ...
2434 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrintf.c: ... here.
2435 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: New file.
2436 * sysdeps/powerpc/powerpc64/fpu/Makefile: Likewise.
2437 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
2438 (libm-sysdep_routines): Remove s_llrint-* objects.
2439 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Remove
2440 file.
2441 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S:
2442 Likewise.
2443 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
2444 * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: New file.
2445 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: Likewise.
2446 * sysdeps/powerpc/powerpc64/fpu/s_lrint.c: Likewise.
2447 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Likewise.
2448 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Remove file.
2449 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
2450 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
2451 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
2452 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Likewise.
2453
48c3c123
FW
24542019-06-14 Florian Weimer <fweimer@redhat.com>
2455
2456 * sysdeps/unix/sysv/linux/bits/statx.h: Use string literal in
2457 argument to __glibc_has_include to inhibit macro expansion.
2458
8d141877
FW
24592019-06-14 Florian Weimer <fweimer@redhat.com>
2460
2461 * misc/sys/cdefs.h (__glibc_has_include): Do not use a
2462 function-like macro, so that __has_include can inhibit expansion
2463 of its argument.
2464
a26e2e9f
JM
24652019-06-13 Joseph Myers <joseph@codesourcery.com>
2466
cf274686
JM
2467 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_ROUTER_ALERT_ISOLATE):
2468 New macro.
2469
a26e2e9f
JM
2470 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
2471 Allow memset in libc.so.
2472
82bc69c0
SN
24732019-06-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
2474
2475 * sysdeps/aarch64/dl-dtprocnum.h: New file.
2476 * sysdeps/aarch64/dl-machine.h (DT_AARCH64): Define.
2477 (elf_machine_runtime_setup): Handle DT_AARCH64_VARIANT_PCS.
2478 (elf_machine_lazy_rel): Check STO_AARCH64_VARIANT_PCS and bind such
2479 symbols at load time.
2480 * sysdeps/aarch64/linkmap.h (struct link_map_machine): Add variant_pcs.
2481
55f82d32
SN
24822019-06-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
2483
2484 * elf/elf.h (STO_AARCH64_VARIANT_PCS): Define.
2485 (DT_AARCH64_VARIANT_PCS): Define.
2486
21bd039b
AZ
24872019-06-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2488
11926960
AZ
2489 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
2490 (sysdeps_routines, libm-sysdep_routines): Remove s_finite*
2491 objects.
2492 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
2493 Remove file.
2494 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c:
2495 Likewise.
2496 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: Likewise.
2497 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
2498 Likewise.
2499 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: Likewise.
2500 * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
2501 * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: Likewise.
2502 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
2503 Remove s_finite* objects.
2504 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Remove file.
2505 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
2506 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.c: Likewise.
2507 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
2508 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: Likewise.
2509 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: Likewise.
2510 * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
2511 * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: Likewise.
2512 * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
2513 * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: Likewise.
2514
a7218676
AZ
2515 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Move to ...
2516 * sysdeps/ieee754/dbl-64/s_finite.c: ... here and format code.
2517
6427a6ac
AZ
2518 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
2519 (sysdeps_routines, libm-sysdep_routines): Remove s_isinf* and s_isinf*
2520 objects.
2521 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S:
2522 Remove file.
2523 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c:
2524 Likewise.
2525 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: Likewise.
2526 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
2527 Likewise.
2528 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: Likewise.
2529 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
2530 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: Likewise.
2531 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
2532 Remove s_isinf* and s_isinf* objects.
2533 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
2534 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
2535 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.c: Likewise.
2536 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
2537 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: Likewise.
2538 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: Likewise.
2539 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
2540 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: Likewise.
2541 * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
2542 * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: Likewise.
2543
a8c590f7
AZ
2544 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Move to ...
2545 * sysdeps/ieee754/dbl-64/s_isinf.c: ... here and format code.
2546
2666f963
AZ
2547 * sysdeps/powerpc/fpu/s_isnan.c: Remove file.
2548 * sysdeps/powerpc/fpu/s_isnanf.S: Likewise.
2549 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
2550 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
2551 (sysdeps_routines, libm-sysdep_routines): Remove s_isnan-* and
2552 s_isnanf-* objects.
2553 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S:
2554 Remove file
2555 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S:
2556 Likewise.
2557 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S:
2558 Likewise.
2559 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S:
2560 Likewise.
2561 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: Likewise.
2562 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power5.S:
2563 Likewise.
2564 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
2565 Likewise.
2566 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: Likewise.
2567 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
2568 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: Likewise.
2569 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
2570 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: Likewise.
2571 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
2572 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: Likewise.
2573 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_calls):
2574 Remove s_isnan-* and s_isnanf-* objects.
2575 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
2576 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
2577 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S:
2578 Likewise.
2579 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
2580 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
2581 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
2582 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
2583 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: Likewise.
2584 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
2585 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
2586 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
2587 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
2588 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
2589 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: Likewise.
2590 * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
2591 * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: Likewise.
2592
197dbda1
AZ
2593 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Move to ...
2594 * sysdeps/ieee754/dbl-64/s_isnan.c: ... here and format code.
2595
2731a326
AZ
2596 * benchtests/Makefile (bench-math): Add isnan, isinf, and isfinite.
2597 (CFLAGS-bench-isnan.c, CFLAGS-bench-isinf.c,
2598 CFLAGS-bench-isfinite.c): New rule.
2599 * benchtests/isnan-input: New file.
2600 * benchtests/isinf-input: New file.
2601 * benchtests/isfinite-input: New file.
2602
e41d66e4
AZ
2603 * sysdeps/powerpc/fpu/s_copysign.c: New file.
2604 * sysdeps/powerpc/fpu/s_copysignf.c: Likewise.
2605 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Remove file.
2606 * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: Likewise.
2607 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
2608 (sysdep_routines, libm-sysdep_routines): Remove s_copysign-power6 and
2609 s_copysign-ppc32.
2610 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
2611 Remove file.
2612 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
2613 Likewise.
2614 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
2615 Likewise.
2616 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
2617 Likewise.
2618 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
2619 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: Likewise.
2620 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdeps_calls):
2621 Remove s_copysign-power6 s_copysign-ppc64.
2622 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S:
2623 Remove file.
2624 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S:
2625 Likewise.
2626 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
2627 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
2628 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
2629 * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: Likewise.
2630 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
2631 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: Likewise.
2632
21bd039b
AZ
2633 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode,
2634 round_to_integer_float, round_mode): Add RINT handling.
2635 (reset_fenv_mode): New symbol.
2636 * sysdeps/powerpc/fpu/s_rint.c (__rint): Use generic implementation.
2637 * sysdeps/powerpc/fpu/s_rintf.c (__rintf): Likewise.
2638 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove file.
2639 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
2640 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
2641 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
2642
cfa61144
FW
26432019-06-12 Florian Weimer <fweimer@redhat.com>
2644
2645 [BZ #24632]
2646 * libio/libioP.h (_IO_JUMPS_FUNC_UPDATE): New macro.
2647 * libio/freopen.c (freopen): Use it.
2648
744e8296
FW
26492019-06-12 Florian Weimer <fweimer@redhat.com>
2650
2651 Linux: Deprecate sysctl.
2652 * include/sysctl.h (__sysctl): Remove declaration.
2653 * scripts/check-installed-headers.sh (sys/sysctl.h): Disable
2654 check.
2655 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add deprecation warning.
2656 (sysctl): Add deprecation attribute.
2657 * sysdeps/unix/sysv/linux/sysctl.c: Include <linux/sysctl.h>
2658 directly, to avoid the deprecation warning. Do not include
2659 <string.h>.
2660 (__sysctl): Remove hidden alias.
2661
5dad6ffb
FW
26622019-06-12 Florian Weimer <fweimer@redhat.com>
2663
2664 Linux: Use kernel headers for statx definitions if available.
2665 * include/bits/statx-generic.h: New file.
2666 * include/bits/types/struct_statx.h: Likewise.
2667 * include/bits/types/struct_statx_timestamp.h: Likewise.
2668 * io/Makefile (headers): Add bits/statx-generic.h.
2669 * io/bits/statx-generic.h: New file. Partly copied from
2670 io/bits/statx.h.
2671 * io/statx_generic.c: Include <bits/types/struct_statx.h> to
2672 define original_statx.
2673 * io/bits/types/struct_statx.h: Likewise.
2674 * io/bits/types/struct_statx_timestamp.h: Likewise.
2675 (statx_generic): Use original_statx.
2676 * io/bits/statx.h: Rewrite to include <bits/statx-generic.h>.
2677 * sysdeps/unix/sysv/linux/bits/statx.h: New file.
2678
4e75c2a4
FW
26792019-06-12 Florian Weimer <fweimer@redhat.com>
2680
2681 * misc/sys/cdefs.h (__glibc_has_include): Define.
2682
680942b0
WD
26832019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
2684
2685 * string/memmem.c (__memmem): Rewrite to improve performance.
2686
5e0a7ecb
WD
26872019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
2688
2689 * string/str-two-way.h (two_way_short_needle): Add inline to avoid
2690 warning.
2691 (two_way_long_needle): Block inlining.
2692 * string/strstr.c (strstr2): Add new function.
2693 (strstr3): Likewise.
2694 (STRSTR): Completely rewrite strstr to improve performance.
2695
80b2bfb5
WD
26962019-06-11 Wilco Dijkstra <wdijkstr@arm.com>
2697
2698 * benchtests/bench-strstr.c (test_hard_needle): New function.
2699
e6e24243
JM
27002019-06-10 Joseph Myers <joseph@codesourcery.com>
2701
2702 * malloc/tst-calloc.c: Include <libc-diag.h>.
2703 (null_test): Ignore -Wunused-result around calls to calloc.
2704 * malloc/tst-mallocfork.c: Include <libc-diag.h>.
2705 (do_test): Ignore -Wunused-result around call to malloc.
2706
51ea67d5
FW
27072019-06-07 Florian Weimer <fweimer@redhat.com>
2708
2709 Linux: Add getdents64 system call.
2710 * include/dirnent.h (getdents): Add comment and change buffer
2711 argument type to void *.
2712 (getdents64): Likewise. Add hidden prototype.
2713 * sysdeps/unix/sysv/linux/bits/Versions (GLIBC_2.30): Export
2714 getdents64.
2715 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == dirent] (tests):
2716 Add tst-getdents64.
2717 * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Declare.
2718 * sysdeps/unix/sysv/linux/getdents.c (__getdents): Change buffer
2719 argument type to void *.
2720 * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Likewise.
2721 Add hidden definition and getdents64 alias.
2722 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
2723 Likewise.
2724 * sysdeps/unix/sysv/linux/tst-getdents64.c: New file.
2725 * manual/filesys.texi (Accessing Directories): Add Low-level
2726 Directory Access node reference.
2727 (Opening a Directory): Cross-reference it.
2728 (Low-level Directory Access): New node.
2729 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
2730 getdents64.
2731 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
2732 Likewise.
2733 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
2734 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
2735 Likewise.
2736 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
2737 Likewise.
2738 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
2739 Likewise.
2740 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
2741 Likewise.
2742 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
2743 Likewise.
2744 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
2745 Likewise.
2746 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
2747 Likewise.
2748 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
2749 (GLIBC_2.30): Likewise.
2750 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
2751 (GLIBC_2.30): Likewise.
2752 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
2753 (GLIBC_2.30): Likewise.
2754 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
2755 (GLIBC_2.30): Likewise.
2756 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
2757 Likewise.
2758 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
2759 (GLIBC_2.30): Likewise.
2760 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
2761 (GLIBC_2.30): Likewise.
2762 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
2763 (GLIBC_2.30): Likewise.
2764 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
2765 (GLIBC_2.30): Likewise.
2766 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
2767 Likewise.
2768 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
2769 Likewise.
2770 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
2771 Likewise.
2772 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
2773 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
2774 Likewise.
2775 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
2776 Likewise.
2777 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
2778 Likewise.
2779 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
2780 Likewise.
2781
de751ebc
PC
27822019-06-06 Paul A. Clarke <pc@us.ibm.com>
2783
2784 * sysdeps/powerpc/fpu_control.h (_FPU_MASK_RC): New.
2785 (__FPU_MFFS): New.
2786 (__FPU_MFFSL): New.
2787 (_FPU_GET_RC): New.
2788 (_FPU_GETCW): Use __FPU_MFFS().
2789 * sysdeps/powerpc/fpu/get-rounding-mode.h: New file.
2790
28dd3939
FW
27912019-06-06 Florian Weimer <fweimer@redhat.com>
2792
2793 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Do not use
2794 internal GCC preprocessor identifier __has_include__.
2795
0158473d
PC
27962019-06-05 Paul A. Clarke <pc@us.ibm.com>
2797
2798 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Replace code
2799 with call to equivalent function.
2800
e863dbf6
FW
28012019-06-04 Florian Weimer <fweimer@redhat.com>
2802
2803 * iconv/gconv_dl.c (release_handle): Remove file-level definition.
2804 (do_release_shlib): Adjust for __twalk_r.
2805 (__gconv_release_shlib): Call __twalk_r.
2806
4802be92
AS
28072019-06-04 Andreas Schwab <schwab@suse.de>
2808
2809 [BZ #18830]
2810 * iconv/skeleton.c (FUNCTION_NAME): Use RESET_INPUT_BUFFER only if
2811 no irreversible characters occurred.
2812 * iconv/gconv_simple.c (internal_ucs4_loop)
2813 (internal_ucs4_loop_unaligned, internal_ucs4_loop_single)
2814 (ucs4_internal_loop, ucs4_internal_loop_unaligned)
2815 (ucs4_internal_loop_single, internal_ucs4le_loop)
2816 (internal_ucs4le_loop_unaligned, internal_ucs4le_loop_single)
2817 (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
2818 (ucs4le_internal_loop_single): Add const to outend.
2819 * sysdeps/s390/multiarch/gconv_simple.c (internal_ucs4le_loop)
2820 (ucs4_internal_loop, ucs4le_internal_loop): Likewise.
2821 * iconv/Makefile (tests): Add tst-iconv7.
2822 * iconv/tst-iconv7.c: New file.
2823
dc91a19e
JM
28242019-06-03 Joseph Myers <joseph@codesourcery.com>
2825
2826 * inet/netinet/in.h (INADDR_ALLSNOOPERS_GROUP): New macro.
2827
6a1a9a49 28282019-06-01 Florian Weimer <fweimer@redhat.com>
6b33f373
FW
2829
2830 arm: Remove ioperm/iopl/inb/inw/inl/outb/outw/outl support.
2831 * sysdeps/unix/sysv/linux/arm/Makefile
2832 [$(subdir) == misc] (sysdep_headers): Remove sys/io.h.
2833 * sysdeps/unix/sysv/linux/arm/sys/io.h: Remove file.
2834 * sysdeps/unix/sysv/linux/arm/ioperm.c: Rewrite file.
2835 (ioperm, iopl, inb, inw, inl, outb, outw, outl): Turn into
2836 compatibility symbols.
2837
0bb8f8c7
FW
28382019-05-31 Florian Weimer <fweimer@redhat.com>
2839
2840 * sysdeps/unix/sysv/linux/syscall-names.list: Add oddly named
2841 system calls for the arm architecture: breakpoint, get_tls,
2842 set_tls, usr26, usr32.
2843
9250e661
GG
28442019-05-30 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
2845
2846 * sysdeps/powerpc/Makefile
2847 [$(subdir) == misc] (CFLAGS-tst-set_ppr.c): New variable.
2848 * sysdeps/powerpc/powerpc64/power4/memcmp.S [__LITTLE_ENDIAN__]:
2849 Declare '.machine power7' to get support for ldbrx.
2850 * sysdeps/powerpc/powerpc64/power7/strncmp.S: Declare '.machine'
2851 directive based on the directory of the file.
2852 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
2853 * sysdeps/powerpc/powerpc64/power8/strcmp.S: Likewise.
2854 * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Update
2855 '.machine' directive.
2856 (VCLZD_V8_v7, MFVRD_R3_V1, VSUBUDM_V9_V8, VPOPCNTD_V8_V8)
2857 (VADDUQM_V7_V8): Remove.
2858 (__STRCASECMP): Replace macros with actual instructions.
2859 * sysdeps/powerpc/powerpc64/power8/strcasestr.S: Update
2860 '.machine' directive.
2861 (VCLZD_V8_v7): Remove.
2862 (STRCASESTR): Replace VCLZD_V8_v7 with actual instruction.
2863
fbd6c928
AZ
28642019-05-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2865
2866 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/get_clockfreq.c:
2867 Remove file.
2868 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: Likewise.
2869
e47308c9
AZ
28702019-05-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2871
2872 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
2873 NEARBYINT handling.
2874 * sysdeps/powerpc/fpu/s_nearbyint.c: New file.
2875 * sysdeps/powerpc/fpu/s_nearbyintf.c: Likewise.
2876 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Remove file.
2877 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Likewise.
2878 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Likewise.
2879 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
2880
157cda1f 28812019-05-28 mansayk <6688000@gmail.com>
2882
2883 [BZ #24370]
2884 * localedata/locales/tt_RU (lang_name): Add from CLDR-35.1.
2885
182a3746 28862019-05-28 mansayk <6688000@gmail.com>
2887
2888 [BZ #24369]
2889 * localedata/locales/tt_RU (mon): Update from CLDR-35.1, fix errors.
2890 (abmon): Likewise, but remove the trailing dots.
2891
c6df1ce3
JM
28922019-05-28 Joseph Myers <joseph@codesourcery.com>
2893
2894 * inet/netinet/igmp.h (IGMP_MRDISC_ADV): New macro.
2895
85188d82
FW
28962019-05-27 Florian Weimer <fweimer@redhat.com>
2897
2898 * nptl/nptl-init.c: Add comment.
2899
5c23c821
FW
29002019-05-24 Florian Weimer <fweimer@redhat.com>
2901
2902 * resolv/nss_dns/dns-host.c (getanswer_r): Be more explicit about
2903 struct in_addr/struct in6_addr alignment.
2904
bee1f2c4
JM
29052019-05-23 Joseph Myers <joseph@codesourcery.com>
2906
2907 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
2908 (F_SEAL_FUTURE_WRITE): New macro.
2909
481c30cb
AH
29102019-05-23 Alexandra Hajkova <ahajkova@redhat.com>
2911
2912 * elf/Makefile (test-container): Add tst-ldconfig-bad-aux-cache.
2913 * elf/tst-ldconfig-bad-aux-cache.c: New file.
2914 * elf/tst-ldconfig_aux-cache.root: New directory.
2915 * elf/tst-ldconfig-bad-aux-cache.root/postclean.req: New file.
2916 * elf/tst-ldconfig-bad-aux-cache.root/etc: New directory.
2917 * elf/tst-ldconfig-bad-aux-cache.root/etc/ld.so.conf: New file.
2918
cb755eed
ZW
29192019-05-22 Zack Weinberg <zackw@panix.com>
2920
2921 * sysdeps/powerpc/preconfigure: Error out on powerpc-*-*gnuspe*
2922 host type.
2923 * scripts/build-many-glibcs.py: Remove powerpc-*-linux-gnuspe
2924 and powerpc-*-linux-gnuspe-e500v1 from list of build configurations.
2925
2926 * sysdeps/powerpc/powerpc32/e500: Recursively delete.
2927 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500: Recursively delete.
2928 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/context-e500.h:
2929 Delete.
2930
2931 * sysdeps/powerpc/fpu_control.h: Remove SPE variant.
2932 Issue an #error if used with a compiler in SPE-float mode.
2933 * sysdeps/powerpc/powerpc32/__longjmp_common.S
2934 * sysdeps/powerpc/powerpc32/setjmp_common.S
2935 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
2936 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/getcontext.S
2937 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/setcontext.S
2938 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/swapcontext.S
2939 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
2940 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
2941 Remove code to preserve SPE register state.
2942
2943 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
2944 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
2945 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c:
2946 Remove __SPE__ ifndefs.
2947
46ae0732
WD
29482019-05-21 Wilco Dijkstra <wdijkstr@arm.com>
2949
2950 * benchtests/bench-memcpy-random.c (do_one_test): Use medium iterations.
2951 * benchtests/bench-memcpy-walk.c (test_main): Reduce alignment tests.
2952 * benchtests/bench-memmem.c (do_one_test): Use small iterations.
2953 * benchtests/bench-memmove-walk.c (test_main): Reduce alignment tests.
2954 * benchtests/bench-memset-walk.c (test_main): Reduce alignment tests.
2955 * benchtests/bench-strcasestr.c (do_one_test): Use small iterations.
2956 * benchtests/bench-string.h (INNER_LOOP_ITERS): Increase iterations.
2957 (INNER_LOOP_ITERS_MEDIUM): New define.
2958 (INNER_LOOP_ITERS_SMALL): New define.
2959 * benchtests/bench-strpbrk.c (do_one_test): Use medium iterations.
2960 * benchtests/bench-strsep.c (do_one_test): Use small iterations.
2961 * benchtests/bench-strspn.c (do_one_test): Use medium iterations.
2962 * benchtests/bench-strstr.c (do_one_test): Use small iterations.
2963 * benchtests/bench-strtok.c (do_one_test): Use small iterations.
2964
004e52fe
AZ
29652019-05-21 Adhemeval Zanella <adhemerval.zanella@linaro.org>
2966
2967 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h (SEMTIMEDOP_IPC_ARGS):
2968 New define.
2969 * sysdeps/unix/sysv/linux/sparc/sparc64/ipc_priv.h
2970 (SEMTIMEDOP_IPC_ARGS): Likewise.
2971
c9c15ac3
FW
29722019-05-21 Florian Weimer <fweimer@redhat.com>
2973
2974 [BZ #24584]
2975 * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Acquire __gconv_lock
2976 before updating __counter field and release it afterwards. Add
2977 overflow check.
2978 * iconv/gconv.h (struct __gconv_step): Mention synchronization
2979 requirement for __counter member.
2980
7e740ab2
FW
29812019-05-21 Florian Weimer <fweimer@redhat.com>
2982
2983 [BZ #24583]
2984 * wcsmbs/wcsmbsload.h (__wcsmbs_close_conv): Declare.
2985 * wcsmbs/wcsmbsload.c (__wcsmbs_close_conv): Define.
2986 * libio/iofclose.c (_IO_new_fclose): Call __wcsmbs_close_conv
2987 instead of __gconv_release_step.
2988 * libio/Makefile (tests): Add tst-wfile-gconv.
2989 (tests-container): Add tst-wfile-ascii.
2990 (tst-wfile-gconv-ENV): Enable mtrace.
2991 (generated): Add tst-wfile-gconv.mtrace, tst-wfile-gconv.check.
2992 (tests-special): Add tst-wfile-gconv-mem.out.
2993 (tst-wfile-gconv.out): Depend on locales.
2994 (tst-wfile-gconv-mem.out): Add mtrace rule.
2995 * libio/tst-wfile-ascii.c: New file.
2996 * libio/tst-wfile-gconv.c: Likewise.
2997
09e1b0e3
FW
29982019-05-20 Florian Weimer <fweimer@redhat.com>
2999
3000 [BZ #24588]
3001 libio: Remove codecvt vtable.
3002 * libio/fileops.c ( _IO_new_file_fopen): Do not copy
3003 __libio_codecvt.
3004 * libio/iofgetpos.c (_IO_new_fgetpos): Call
3005 __libio_codecvt_encoding.
3006 * libio/iofgetpos64.c (_IO_new_fgetpos): Likewise.
3007 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
3008 * libio/iofsetpos64.c (_IO_new_fsetpos): Likewise.
3009 * libio/iofwide.c (__libio_codecvt): Remove variable.
3010 (_IO_fwide): Do not copy __libio_codecvt.
3011 (__libio_codecvt_out): Rename from do_out and export.
3012 (do_unshift): Remove function.
3013 (__libio_codecvt_in): Rename from do_in and export.
3014 (__libio_codecvt_encoding): Rename from do_encoding and export.
3015 (do_always_noconv): Remove function.
3016 (__libio_codecvt_length): Rename from do_length and export.
3017 (do_max_length): Remove function.
3018 * libio/libio.h (enum __codecvt_result): Remove definition; moved
3019 to libioP.h.
3020 (struct _IO_codecvt): Remove fields __codecvt_destr,
3021 __codecvt_do_out, __codecvt_do_unshift, __codecvt_do_in,
3022 __codecvt_do_encoding, __codecvt_do_always_noconv,
3023 __codecvt_do_length, __codecvt_do_max_length.
3024 * libio/libioP.h (enum __codecvt_result): Define; moved from
3025 libio.h.
3026 (__libio_codecvt_out, __libio_codecvt_in)
3027 (__libio_codecvt_encoding, __libio_codecvt_length): Declare
3028 functions.
3029 * libio/wfileops.c (_IO_wdo_write): Call __libio_codecvt_out.
3030 (_IO_wfile_underflow): Call __libio_codecvt_in.
3031 (_IO_wfile_underflow): Likewise.
3032 (_IO_wfile_underflow_mmap): Likewise.
3033 (_IO_wfile_sync): Call __libio_codecvt_encoding,
3034 __libio_codecvt_length.
3035 (adjust_wide_data): Call __libio_codecvt_encoding,
3036 __libio_codecvt_in.
3037 (do_ftell_wide): Call __libio_codecvt_length, __libio_codecvt_out.
3038 (_IO_wfile_seekoff): Call __libio_codecvt_encoding,
3039 __libio_codecvt_length.
3040
75c51570
FW
30412019-05-20 Florian Weimer <fweimer@redhat.com>
3042
3043 * support/support.h (support_sbindir_prefix): Declare.
3044 (support_install_rootsbindir): Update comment.
3045 * support/Makefile (CFLAGS-support_paths.c): Define SBINDIR_PATH.
3046 * support/support_paths.c (support_sbindir_prefix): Define.
3047
ff6bec7d
MC
30482019-05-20 Mike Crowe <mac@mcrowe.com>
3049
b62bb3bc
MC
3050 * support/timespec.c: Add backslash to correct newline in failure
3051 message.
3052
ff6bec7d
MC
3053 * support/timespec.h: Correct confusing comment.
3054
dfba907f
AZ
30552019-05-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3056
236c18e5
AZ
3057 * sysdeps/unix/sysv/linux/ipc_priv.h (SEMTIMEDOP_IPC_ARGS): New
3058 define.
3059 * sysdpes/unix/sysv/linux/s390/ipc_priv.h: New file.
3060 * sysdeps/unix/sysv/linux/s390/semtimedop.c: Remove file.
3061 * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Use
3062 SEMTIMEDOP_IPC_ARGS for calls with __NR_ipc.
3063
dfba907f
AZ
3064 [BZ #24570]
3065 * sysdeps/unix/sysv/linux/msgctl.c (__old_msgctl): Remove __IPC_64
3066 usage.
3067
13886008
JM
30682019-05-20 Joseph Myers <joseph@codesourcery.com>
3069
3070 * elf/elf.h (NT_ARM_PACA_KEYS): New macro.
3071 (NT_ARM_PACG_KEYS): Likewise.
3072
1f50f2ad
WD
30732019-05-17 Wilco Dijkstra <wdijkstr@arm.com>
3074
3075 * malloc/malloc.c (MAX_TCACHE_COUNT): Increase to UINT16_MAX.
3076 (tcache_put): Remove redundant assert.
3077 (tcache_get): Remove redundant asserts.
3078 (__libc_malloc): Check tcache count is not zero.
3079 * manual/tunables.texi (glibc.malloc.tcache_count): Update maximum.
3080
fef7c63c
FW
30812019-05-17 Florian Weimer <fweimer@redhat.com>
3082
3083 * manual/llio.texi (Open-time Flags): Document O_DIRECTORY.
3084
5f161b23
JM
30852019-05-16 Joseph Myers <joseph@codesourcery.com>
3086
3087 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3088 (__ASSUME_STATFS64): Only undefine if [__LINUX_KERNEL_VERSION <
3089 0x050100].
3090 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
3091 Likewise.
3092 * sysdeps/unix/sysv/linux/sh/kernel-features.h
3093 (__ASSUME_STATX): Likewise.
3094
ec255a97
FW
30952019-05-16 Florian Weimer <fweimer@redhat.com>
3096
3097 * nis/nss_nis/nis-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL): Remove
3098 flags argument.
3099 (LINE_PARSER): Do not map IPv4 addresses.
3100 (internal_nis_gethostent_r): Remove flags argument. Adjust call
3101 to parse_line.
3102 (_nss_nis_gethostent_r): Always pass AF_INET to
3103 internal_nis_gethostent_r.
3104 (internal_gethostbyname2_r): Remove flags argument. Adjust call
3105 to parse_line.
3106 (_nss_nis_gethostbyname2_r): Adjust call to
3107 internal_nis_gethostent_r.
3108 (_nss_nis_gethostbyname_r): Do not attempt IPv6 query. Adjust
3109 call to internal_nis_gethostent_r.
3110 (_nss_nis_gethostbyaddr_r): Do not request IPv4 address mapping
3111 from parse_line.
3112 (_nss_nis_gethostbyname4_r):Adjust call to parse_line.
3113 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
3114 Remove flags argument. Do not map IPv4 addresses.
3115 (internal_nisplus_gethostent_r): Adjust call to
3116 _nss_nisplus_parse_hostent.
3117 (internal_gethostbyname2_r): Remove flags argument. Adjust call
3118 to _nss_nisplus_parse_hostent.
3119 (_nss_nisplus_gethostbyname2_r): Adjust call to
3120 internal_gethostbyname2_r.
3121 (_nss_nisplus_gethostbyname_r): Do not perform IPv6 lookup.
3122 Adjust call to internal_gethostbyname2_r.
3123 (_nss_nisplus_gethostbyaddr_r): Adjust call to
3124 _nss_nisplus_parse_hostent.
3125 (_nss_nisplus_gethostbyname4_r): Adjust call to
3126 internal_gethostbyname2_r.
3127
9c02d078
FW
31282019-05-16 Florian Weimer <fweimer@redhat.com>
3129
3130 * nss/nss_files/files-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL):
3131 Remove flags.
3132 (LINE_PARSER): Remove address mapping.
3133 (EXTRA_ARGS_VALUE): Remove flags argument.
3134 (gethostbyname3_multi): Likewise. Adjust call to internal_getent.
3135 (_nss_files_gethostbyname3_r): Adjust calls to internal_getent and
3136 gethostbyname3_multi.
3137 (_nss_files_gethostbyname_r): Always use AF_INET. Adjust call to
3138 _nss_files_gethostbyname3_r.
3139 (_nss_files_gethostbyname4_r): Adjust call to internal_getent.
3140
85b0e1e8
FW
31412019-05-16 Florian Weimer <fweimer@redhat.com>
3142
3143 * support/support_test_compare_blob.c (report_blob): Report
3144 incorrect NULL blobs.
3145
11b451c8
MW
31462019-05-15 Mark Wielaard <mark@klomp.org>
3147
3148 [BZ# 24476]
3149 * dlfcn/dlerror.c (__dlerror_main_freeres): Guard using
3150 __libc_once_get (once) and static_buf == NULL.
3151 (__dlerror): Check we have a valid key, set result to static_buf
3152 otherwise.
3153
32ff3975
AS
31542019-05-15 Andreas Schwab <schwab@suse.de>
3155
3156 [BZ #20568]
3157 * libio/wfileops.c (_IO_wfile_sync): Correct last argument to
3158 __codecvt_do_length.
3159 * libio/Makefile (tests): Add tst-wfile-sync.
3160 ($(objpfx)tst-wfile-sync.out): Depend on $(gen-locales).
3161 * libio/tst-wfile-sync.c: New file.
3162 * libio/tst-wfile-sync.input: New file.
3163
a9368c34
FW
31642019-05-15 Florian Weimer <fweimer@redhat.com>
3165
3166 nss: Turn __nss_database_lookup into a compatibility symbol.
3167 * nss/nsswitch.h (__nss_database_lookup2): Renamed from
3168 __nss_database_lookup.
3169 * nss/nsswitch.c (__nss_database_lookup2): Likewise.
3170 (nss_load_all_libraries): Call __nss_database_lookup2 instead of
3171 __nss_database_lookup.
3172 (__nss_next): Move to …
3173 * nss/compat-lookup.c (nss_next): … here. Change it to fail
3174 unconditionally.
3175 (__nss_database_lookup): New function.
3176 * nss/Versions (GLIBC_2.0): Update comment.
3177 (GLIBC_PRIVATE): Export __nss_database_lookup2.
3178 * grp/initgroups.c (internal_getgrouplist): Call
3179 __nss_database_lookup2 instead of __nss_database_lookup.
3180 * nscd/aicache.c (addhstaiX): Likewise.
3181 * nscd/initgrcache.c (addinitgroupsX): Likewise.
3182 * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
3183 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Likewise.
3184 * nss/nss_compat/compat-grp.c (init_nss_interface): Likewise.
3185 * nss/nss_compat/compat-initgroups.c (init_nss_interface):
3186 Likewise.
3187 * nss/nss_compat/compat-pwd.c (init_nss_interface): Likewise.
3188 * nss/nss_compat/compat-spwd.c (init_nss_interface): Likewise.
3189 * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
3190
d50f0918 31912019-05-15 Alexandra Hajkova <ahajkova@redhat.com>
32ff3975 3192
d50f0918
AH
3193 * support/support.h (support_install_rootsbindir): New variable.
3194 * support/support_paths.c: Likewise.
3195 * support/Makefile (CFLAGS-support_paths.c): Add -DROOTSBINDIR_PATH.
3196
7ac6fad9
FW
31972019-05-15 Florian Weimer <fweimer@redhat.com>
3198
3199 * iconv/gconv.h (__gconv_transliterate): Move declaration …
3200 * iconv/gconv_int.h (__gconv_transliterate): … here.
3201 * iconv/loop.c: Include <iconv/gconv_int.h> instead of <gconv.h>.
3202 * iconv/skeleton.c: Likewise.
3203
04b261bd
FW
32042019-05-14 Florian Weimer <fweimer@redhat.com>
3205
3206 Linux: Add the tgkill function.
3207 * bits/signal_ext.h: New file.
3208 * manual/signal.texi (Signaling Another Process): Document tgkill.
3209 * signal/Makefile (headers): Add bits/signal_ext.h.
3210 * signal/signal.h: Include <bits/signal_ext.h>.
3211 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-tgkill.
3212 (tst-tgkill): Link with libpthread.
3213 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.30): Export tgkill.
3214 * sysdeps/unix/sysv/linux/bits/signal_ext.h: New file.
3215 * sysdeps/unix/sysv/linux/bits/tst-tgkill.c: Likewise.
3216 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
3217 tgkill.
3218 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
3219 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
3220 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
3221 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
3222 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
3223 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
3224 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
3225 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
3226 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
3227 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
3228 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
3229 Likewise.
3230 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
3231 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
3232 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
3233 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3234 Likewise.
3235 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
3236 Likewise.
3237 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist:
3238 Likewise.
3239 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist:
3240 Likewise.
3241 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
3242 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3243 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3244 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
3245 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3246 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
3247 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
3248 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
3249
6807f47b
CD
32502019-05-14 Carlos O'Donell <carlos@redhat.com>
3251
3252 * manual/search.texi (Tree Search Function): Adjust twalk_r
3253 documentation.
3254
fdb8a0be
AZ
32552019-05-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3256
da2b83ef
AZ
3257 [BZ #24544]
3258 * elf/tst-pldd.c (do_test): Use support_bindir_prefix instead of
3259 pre-defined value.
3260
c7ac9caa
AZ
3261 * support/Makefile (CFLAGS-support_paths.c): Add -DBINDIR_PATH.
3262 * support/support.h (support_bindir_prefix): New variable.
3263 * support/support_paths.c [BINDIR_PATH] (support_bindir_prefix):
3264
91f043ae
AZ
3265 * config.make.in (bindir): New variable.
3266
c50e1c26
AZ
3267 * sysdeps/nptl/lowlevellock.h (__lll_trylock): New macro.
3268 (lll_trylock): Call __lll_trylock.
3269 * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Remove file.
3270 * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Likewise.
3271 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
3272 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
3273 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
3274 * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: Likewise.
3275 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
3276 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
3277 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: New file.
3278 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include
3279 lowlevellock-futex.h.
3280
959aff9f
AZ
3281 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
3282 initialization for LLL_LOCK_INITIALIZER different than 0.
3283 * nptl/old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0):
3284 Assume LLL_LOCK_INITIALIZER being 0.
3285 * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
3286 * nptl/old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
3287 Likewise.
3288 * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
3289 * sysdeps/nptl/libc-lockP.h (__libc_lock_define_initialized): Likewise.
3290
d7e4c642
AZ
3291 * nptl/lowlevellock.c (__lll_lock_wait, __lll_lock_wait_private):
3292 Optimize futex call and add systemtap probe.
3293
fdb8a0be
AZ
3294 * nptl/pthreadP.h (CANCEL_ASYNC, CANCEL_RESET, LIBC_CANCEL_ASYNC,
3295 LIBC_CANCEL_RESET, __libc_enable_asynccancel,
3296 __libc_disable_asynccancel, __librt_enable_asynccancel,
3297 __libc_disable_asynccancel, __librt_enable_asynccancel,
3298 __librt_disable_asynccancel): Move to ...
3299 * sysdeps/unix/sysv/linux/sysdep-cancel.h: ... here.
3300 (SINGLE_THREAD_P, RTLD_SINGLE_THREAD_P): Move to ...
3301 * sysdeps/unix/sysv/linux/single-thread.h: ... here.
3302 * sysdeps/generic/single-thread.h: New file.
3303 * sysdeps/unix/sysdep.h: Include single-thread.h.
3304 * sysdeps/unix/sysv/linux/futex-internal.h: Include sysdep-cancel.h.
3305 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
3306
f6efec90
MF
33072019-05-08 Mike FABIAN <mfabian@redhat.com>
3308
3309 [BZ #24535]
3310 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.1.0.
3311 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
3312 Unicode 12.1.0.
3313 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
3314 * localedata/unicode-gen/PropList.txt: Likewise.
3315 * localedata/unicode-gen/UnicodeData.txt: Likewise.
3316 * localedata/charmaps/UTF-8: Regenerate.
3317 * localedata/locales/i18n_ctype: Likewise.
3318 * localedata/locales/tr_TR: Likewise.
3319 * localedata/locales/translit_circle: Likewise.
3320 * localedata/locales/translit_cjk_compat: Likewise.
3321 * localedata/locales/translit_combining: Likewise.
3322 * localedata/locales/translit_compat: Likewise.
3323 * localedata/locales/translit_font: Likewise.
3324 * localedata/locales/translit_fraction: Likewise.
3325
5ad533e8
WD
33262019-05-10 Wilco Dijkstra <wdijkstr@arm.com>
3327
3328 [BZ #24531]
3329 * malloc/malloc.c (MAX_TCACHE_COUNT): New define.
3330 (do_set_tcache_count): Only update if count is small enough.
3331 * manual/tunables.texi (glibc.malloc.tcache_count): Document max value.
3332
4aee85f9
FW
33332019-05-10 Florian Weimer <fweimer@redhat.com>
3334
3335 * nptl/sem_close.c (struct walk_closure): Define.
3336 (walker): Adjust for __twalk_r.
3337 (sem_close): Call __twalk_r.
3338
eb669ff5
AZ
33392019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3340
3341 * support/timespec.c (test_timespec_before_impl,
3342 test_timespec_equal_or_after_impl): print timespec member as intmax_t
3343 insted of long int.
3344
51983996
MC
33452019-05-09 Mike Crowe <mac@mcrowe.com>
3346
44ac6ee9
MC
3347 * nptl/tst-abstime.c: Use libsupport.
3348
495514ee
MC
3349 * nptl/tst-rwlock6.c: Use libsupport. This also happens to fix a
3350 small bug where only tv.tv_usec was checked which could cause an
3351 erroneous pass if pthread_rwlock_timedrdlock incorrectly took more
3352 than a second.
3353
3354 * nptl/tst-rwlock7.c, nptl/tst-rwlock9.c, nptl/tst-rwlock14.c: Use
3355 libsupport.
3356
40d0816f
MC
3357 * nptl/tst-sem5.c (do_test): Use xclock_gettime, timespec_add and
3358 TEST_TIMESPEC_NOW_OR_AFTER from libsupport.
3359
d8e0b901
MC
3360 * nptl/tst-cond11.c: Use libsupport.
3361
51983996
MC
3362 * support/timespec.h: New file. Provide timespec helper functions
3363 along with macros in the style of those in check.h.
3364 * support/timespec.c: New file. Implement check functions declared
3365 in support/timespec.h.
3366 * support/timespec-add.c: New file from gnulib containing
3367 timespec_add implementation that handles overflow.
3368 * support/timespec-sub.c: New file from gnulib containing
3369 timespec_sub implementation that handles overflow.
3370 * support/README: Mention timespec.h.
3371
18aa51ee
SN
33722019-05-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
3373
3374 [BZ #24537]
3375 * nptl/Makefile: Move tst-eintr1 to xtests.
3376
252296c6
AZ
33772019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3378
ae45cf84
AZ
3379 * sysdeps/powerpc/fpu/trunc_to_integer.h (set_fenv_mode): Add
3380 TRUNC handling.
3381 (round_mode): Add definition for TRUNC.
3382 * sysdeps/powerpc/fpu/s_trunc.c: New file.
3383 * sysdeps/powerpc/fpu/s_truncf.c: New file.
3384 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Remove file.
3385 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
3386 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.S:
3387 Likewise.
3388 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.S:
3389 Likewise.
3390 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.S:
3391 Likewise.
3392 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.S:
3393 Likewise.
3394 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.c: New
3395 file.
3396 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.c:
3397 Likewise.
3398 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.c:
3399 Likewise.
3400 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.c:
3401 Likewise.
3402 * sysdep/powerpc/powerpc32/power5+/fpu/s_trunc.S: Remove file.
3403 * sysdep/powerpc/powerpc32/power5+/fpu/s_truncf.S: Likewise.
3404 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
3405 (libm-sysdep_routines): Add s_trunc-power5+, s_trunc-ppc64,
3406 s_truncf-power5+, and s_truncf-ppc64.
3407 (CFLAGS-s_trunc-power5+.c, CFLAGS-s_truncf-power5+.c): New rule.
3408 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-power5+.c: New
3409 file.
3410 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-ppc64.c: Likewise.
3411 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Move to ...
3412 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_trunc.c: ... here.
3413 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-power5+.c: New
3414 file.
3415 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-ppc64.c:
3416 Likewise.
3417 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Move to ...
3418 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_truncf.c: ... here.
3419 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3420 (libm-sysdep_routines): Remove s_trunc-power5+, s_trunc-ppc64,
3421 s_truncf-power5+, and s_truncf-ppc64.
3422 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Remove
3423 file.
3424 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
3425 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S:
3426 Likewise.
3427 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
3428 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
3429 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
3430 * sysdep/powerpc/powerpc64/power5+/fpu/s_trunc.S: Likewise.
3431 * sysdep/powerpc/powerpc64/power5+/fpu/s_truncf.S: Likewise.
3432
a1cb1888
AZ
3433 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
3434 ROUND handling.
3435 (round_mode): Add definition for ROUND.
3436 (round_to_integer_float): Likewise.
3437 * sysdeps/powerpc/fpu/s_round.c: New file.
3438 * sysdeps/powerpc/fpu/s_roundf.c: New file.
3439 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Remove file.
3440 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
3441 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.S:
3442 Likewise.
3443 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.S:
3444 Likewise.
3445 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.S:
3446 Likewise.
3447 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.S:
3448 Likewise.
3449 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.c: New
3450 file.
3451 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.c:
3452 Likewise.
3453 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.c:
3454 Likewise.
3455 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.c:
3456 Likewise.
3457 * sysdep/powerpc/powerpc32/power5+/fpu/s_round.S: Remove file.
3458 * sysdep/powerpc/powerpc32/power5+/fpu/s_roundf.S: Likewise.
3459 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
3460 (libm-sysdep_routines): Add s_round-power5+, s_round-ppc64,
3461 s_roundf-power5+, and s_roundf-ppc64.
3462 (CFLAGS-s_round-power5+.c, CFLAGS-s_roundf-power5+.c): New rule.
3463 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-power5+.c: New
3464 file.
3465 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-ppc64.c: Likewise.
3466 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Move to ...
3467 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_round.c: ... here.
3468 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-power5+.c: New
3469 file.
3470 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-ppc64.c:
3471 Likewise.
3472 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Move to ...
3473 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_roundf.c: ... here.
3474 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3475 (libm-sysdep_routines): Remove s_round-power5+, s_round-ppc64,
3476 s_roundf-power5+, and s_roundf-ppc64.
3477 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Remove
3478 file.
3479 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
3480 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S:
3481 Likewise.
3482 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
3483 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
3484 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
3485 * sysdep/powerpc/powerpc64/power5+/fpu/s_round.S: Likewise.
3486 * sysdep/powerpc/powerpc64/power5+/fpu/s_roundf.S: Likewise.
3487
252296c6
AZ
3488 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode):
3489 Add FLOOR option.
3490 (round_mode): Add definition for FLOOR.
3491 * sysdeps/powerpc/fpu/s_floor.c: New file.
3492 * sysdeps/powerpc/fpu/s_floorf.c: Likewise.
3493 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Remove file.
3494 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
3495 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
3496 Remove file.
3497 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S:
3498 Likewise
3499 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
3500 Likewise.
3501 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
3502 Likewise.
3503 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.c:
3504 New file.
3505 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.c:
3506 Likewise.
3507 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.c:
3508 Likewise.
3509 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.c:
3510 Likewise.
3511 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Remove file.
3512 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Remove file.
3513 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
3514 (libm-sysdep_routines): Add s_floor-power5+, s_floor-ppc64,
3515 s_floorf-power5+, and s_floorf-ppc64.
3516 (CFLAGS-s_floor-power5+.c, CFLAGS-s_floorf-power5+.c): New rule.
3517 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-power5+.c: New
3518 file.
3519 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-ppc64.c: Likewise.
3520 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Move to ...
3521 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floor.c: ... here.
3522 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-power5+.c: New
3523 file.
3524 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-ppc64.c:
3525 Likewise.
3526 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Move to ...
3527 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floorf.c: ... here.
3528 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3529 (libm-sysdep_routines): Remove s_floor-power5+, s_floor-ppc64,
3530 s_floorf-power5+, and s_floorf-ppc64.
3531 * sysdep/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Remove
3532 file.
3533 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Remove
3534 file.
3535 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S:
3536 Likewise.
3537 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S:
3538 Likewise.
3539 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
3540 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
3541 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Likewise.
3542 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Likewise.
3543
33647a72
MC
35442019-05-08 Mike Crowe <mac@mcrowe.com>
3545
3546 * support/xclock_gettime.c (xclock_gettime): New file. Provide
3547 clock_gettime wrapper for use in tests that fails the test rather
3548 than returning failure.
3549
3550 * support/xtime.h: New file to declare xclock_gettime.
3551
3552 * support/Makefile: Add xclock_gettime.c.
3553
3554 * support/README: Mention xtime.h.
3555
b2f601ba
FW
35562019-05-08 Florian Weimer <fweimer@redhat.com>
3557
3558 malloc/tst-mallocfork2: Use process-shared barriers.
3559 * malloc/tst-mallocfork2.c: Switch to <support/test-driver.c>.
3560 (signal_count, sigusr1_sender_pid): Remove.
3561 (iterations): Define constant.
3562 (shared): New variable.
3563 (sigusr1_received): Update comment.
3564 (sigusr1_handler): Do not send SIGSTOP to the sender process.
3565 (signal_sender): Optional use barriers to avoid sending signals
3566 during irrelevant times.
3567 (do_it): Initialize variable shared. Use xfork for error
3568 checking. Launch multiple SIGUSR1-sending subprocesses. Limit
3569 the iteration count, independent of signal delivery. Check for
3570 deadlocks in fork. Introduce barriers for reducing signal
3571 traffic. Do not send SIGCONT to the SIGUSR1-sending processes;
3572 replaced by the barriers. Count signals during fork/free/malloc
3573 and report them.
3574 * malloc/Makefile (tst-mallocfork): Link with libpthread.
3575
c4a392cf
JM
35762019-05-07 Joseph Myers <joseph@codesourcery.com>
3577
7621676f
JM
3578 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
3579 version to 5.1.
3580 (clock_adjtime64) New syscall.
3581 (clock_getres_time64) Likewise.
3582 (clock_gettime64) Likewise.
3583 (clock_nanosleep_time64) Likewise.
3584 (clock_settime64) Likewise.
3585 (futex_time64) Likewise.
3586 (io_pgetevents_time64) Likewise.
3587 (io_uring_enter) Likewise.
3588 (io_uring_register) Likewise.
3589 (io_uring_setup) Likewise.
3590 (mq_timedreceive_time64) Likewise.
3591 (mq_timedsend_time64) Likewise.
3592 (pidfd_send_signal) Likewise.
3593 (ppoll_time64) Likewise.
3594 (pselect6_time64) Likewise.
3595 (recvmmsg_time64) Likewise.
3596 (rt_sigtimedwait_time64) Likewise.
3597 (sched_rr_get_interval_time64) Likewise.
3598 (semtimedop_time64) Likewise.
3599 (timer_gettime64) Likewise.
3600 (timer_settime64) Likewise.
3601 (timerfd_gettime64) Likewise.
3602 (timerfd_settime64) Likewise.
3603 (utimensat_time64) Likewise.
3604
c4a392cf
JM
3605 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
3606 version to 9 branch.
3607
32e902a9
AY
36082019-05-03 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
3609
3610 * sysdeps/aarch64/multiarch/ifunc-impl-list.c: Added
3611 __memmove_thunderx2 to the list of implementations
3612 * sysdeps/aarch64/multiarch/memmove.c: Likewise
3613 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S:
3614 (__memmove_thunderx2): Rewritten using SIMD ld/st
3615 (__memcpy_thunderx2): Fixed handling overlapping cases.
3616 Used ldp/stp instead of ldr/str if possible. Made loops
3617 tails branchless.
3618
ac3da35d
FW
36192019-05-03 Florian Weimer <fweimer@redhat.com>
3620
3621 * misc/tst-tsearch.c (walk_tree): Add more error checking.
3622
b2af6fb2
AZ
36232019-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3624
7dfde28a 3625 [BZ #24506]
b2af6fb2
AZ
3626 * elf/tst-pldd.c (in_str_list): New function.
3627 (do_test): Add default names for ld and libc as one option.
3628
7b807a35
FW
36292019-05-02 Florian Weimer <fweimer@redhat.com>
3630
3631 misc: Add twalk_r function.
3632 * include/search.h (__twalk_r): Declare.
3633 * manual/examples/twalk.c: New file.
3634 * manual/search.texi (Tree Search Function): Document twalk_r.
3635 * misc/Versions (2.30): Export twalk_r.
3636 (GLIBC_PRIVATE): Export __twalk_r.
3637 * misc/search.h [__USE_GNU] (twalk_r): Declare.
3638 * misc/tsearch.c (trecurse_r, __twalk_r): New functions.
3639 (twalk_r): Add weak alias.
3640 * misc/tst-tsearch.c (struct walk_trace_element): Define.
3641 (walk_trace): New variable.
3642 (struct twalk_with_twalk_r_closure): Define.
3643 (twalk_with_twalk_r_action): New function.
3644 (twalk_with_twalk_r): Likewise.
3645 (walk_action): Call walk_trace_add.
3646 (walk_tree_with): Rename from walk_tree. Add walk argument.
3647 (walk_tree): New function.
3648 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.30): Add twalk_r.
3649 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
3650 Likewise.
3651 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
3652 Likewise.
3653 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
3654 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30): Likewise.
3655 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30): Likewise.
3656 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30): Likewise.
3657 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30): Likewise.
3658 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
3659 Likewise.
3660 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
3661 Likewise.
3662 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
3663 Likewise.
3664 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3665 (GLIBC_2.30): Likewise.
3666 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3667 (GLIBC_2.30): Likewise.
3668 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3669 (GLIBC_2.30): Likewise.
3670 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3671 (GLIBC_2.30): Likewise.
3672 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
3673 Likewise.
3674 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3675 (GLIBC_2.30): Likewise.
3676 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3677 (GLIBC_2.30): Likewise.
3678 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
3679 (GLIBC_2.30): Likewise.
3680 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
3681 (GLIBC_2.30): Likewise.
3682 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
3683 Likewise.
3684 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
3685 Likewise.
3686 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
3687 Likewise.
3688 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
3689 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
3690 Likewise.
3691 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
3692 Likewise.
3693 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
3694 Likewise.
3695 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
3696 Likewise.
3697
20aa5819
PE
36982019-04-30 Paul Eggert <eggert@cs.ucla.edu>
3699
3700 Make mktime etc. compatible with __time64_t
3701 Keep these functions compatible with Gnulib while adding
3702 __time64_t support. The basic idea is to move private API
3703 declarations from include/time.h to time/mktime-internal.h, since
3704 the former file cannot easily be shared with Gnulib whereas the
3705 latter can.
3706 Also, do some other minor cleanup while in the neighborhood.
3707 * include/time.h: Include stdbool.h, time/mktime-internal.h.
3708 (__mktime_internal): Move this prototype to time/mktime-internal.h,
3709 since Gnulib needs it.
3710 (__localtime64_r, __gmtime64_r) [__TIMESIZE == 64]:
3711 Move these macros to time/mktime-internal.h, since Gnulib needs them.
3712 (__mktime64, __timegm64) [__TIMESIZE != 64]: New prototypes.
3713 (in_time_t_range): New static function.
3714 * posix/bits/types.h (__time64_t): Move to time/mktime-internal.h,
3715 so that glibc users are not tempted to use __time64_t.
3716 * time/mktime-internal.h: Rewrite so that it does both glibc
3717 and Gnulib work. Include time.h if not _LIBC.
3718 (mktime_offset_t) [!_LIBC]: Define for gnulib.
3719 (__time64_t): New type or macro, moved here from
3720 posix/bits/types.h.
3721 (__gmtime64_r, __localtime64_r, __mktime64, __timegm64)
3722 [!_LIBC || __TIMESIZE == 64): New macros, mostly moved here
3723 from include/time.h.
3724 (__gmtime_r, __localtime_r, __mktime_internal) [!_LIBC]:
3725 New macros, taken from GNulib.
3726 (__mktime_internal): New prototype, moved here from include/time.h.
3727 * time/mktime.c (mktime_min, mktime_max, convert_time)
3728 (ranged_convert, __mktime_internal, __mktime64):
3729 * time/timegm.c (__timegm64):
3730 Use __time64_t, not time_t.
3731 * time/mktime.c: Stop worrying about whether time_t is floating-point.
3732 (__mktime64) [! (_LIBC && __TIMESIZE != 64)]:
3733 Rename from mktime.
3734 (mktime) [_LIBC && __TIMESIZE != 64]: New function.
3735 * time/timegm.c [!_LIBC]: Include libc-config.h, not config.h,
3736 for libc_hidden_def.
3737 Include errno.h.
3738 (__timegm64) [! (_LIBC && __TIMESIZE != 64)]:
3739 Rename from timegm.
3740 (timegm) [_LIBC && __TIMESIZE != 64]: New function.
3741
87c266d7
MR
37422019-04-30 Maciej W. Rozycki <macro@wdc.com>
3743
3744 [BZ #19444]
3745 * sysdeps/ieee754/soft-fp/s_ddivl.c (__ddivl): Ignore errors
3746 from `-Wmaybe-uninitialized'.
3747 * sysdeps/ieee754/soft-fp/s_fdivl.c (__fdivl): Likewise.
3748
c4c0848b
AZ
37492019-04-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3750
6cac323c
AZ
3751 * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround_inline_nocheck): New
3752 function.
3753 * sysdeps/powerpc/fpu/round_to_integer.h: New file.
3754 * sysdeps/powerpc/fpu/s_ceil.c: Likewise.
3755 * sysdeps/powerpc/fpu/s_ceilf.c: Likewise.
3756 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Remove file.
3757 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
3758 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3759 (CFLAGS-s_ceil-power5+.c, CFLAGS-s_ceilf-power5+.c): New rule.
3760 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
3761 Remove file.
3762 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S:
3763 Likewise.
3764 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
3765 Likewise.
3766 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S:
3767 Likewise.
3768 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.c:
3769 New file.
3770 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.c:
3771 Likewise.
3772 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.c:
3773 Likewise.
3774 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.c:
3775 Likewise.
3776 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Remove file.
3777 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Likewise.
3778 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile: New file.
3779 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-power5+.c:
3780 Likewise.
3781 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-ppc64.c:
3782 Likewise.
3783 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Move to ...
3784 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil.c: ... here.
3785 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-power5+.c: New
3786 file.
3787 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-ppc64.c:
3788 Likewise.
3789 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Move to ...
3790 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf.c: ...
3791 * here.
3792 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3793 (libm-sysdep_routines): Remove s_ceil-power5+, s_ceil-ppc64,
3794 s_ceilf-power5+, and s_ceilf-ppc64.
3795 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Remove
3796 file.
3797 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
3798 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
3799 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
3800 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
3801 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
3802 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Likewise.
3803 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Likewise.
3804
c4c0848b
AZ
3805 * sysdeps/powerpc/power4/fpu/Makefile: Remove file.
3806 * sysdeps/powerpc/power4/fpu/mpa-arch.h: Likewise.
3807 * sysdeps/powerpc/power4/fpu/mpa.c: Likewise.
3808
f492fc99
YD
38092019-04-29 Yann Droneaud <ydroneaud@opteya.com>
3810
3811 * sysdeps/pthread/semaphore.h (sem_init): Add __nonnull attribute.
3812 (sem_destroy, sem_open, sem_close, sem_unlink): Likewise.
3813 (sem_wait, sem_timedwait, sem_trywait, sem_post): Likewise.
3814 (sem_getvalue): Likewise.
3815
c57afec0
FW
38162019-04-26 Florian Weimer <fweimer@redhat.com>
3817
3818 elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now.
3819 * elf/Makefile (LDFLAGS-sotruss-lib.so): Set.
3820
a8ff215e
FW
38212019-04-26 Florian Weimer <fweimer@redhat.com>
3822
3823 Makeconfig: Move -Wl,-rpath-link options before library references.
3824 * Makeconfig (+link-pie, +link): Add $(link-libc-rpath-link).
3825 (link-libc): Remove $(link-libc-rpath-link).
3826
38272019-04-25 Florian Weimer <fweimer@redhat.com>
3828
3829 * Makeconfig (+link-pie-before-libc): Remove $(CC).
3830 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
3831 (+link-static-before-libc): Remove $(CC).
3832 (+link-static, +link-static-tests): Add $(CC).
3833 (+link-before-libc): Remove $(CC).
3834 (+link, +link-pie, +link-pie-printers): Add $(CC).
3835
e30fb31c
FW
38362019-04-26 Florian Weimer <fweimer@redhat.com>
3837
3838 * Makeconfig (+link-pie-before-libc): Remove $(CC).
3839 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
3840 (+link-static-before-libc): Remove $(CC).
3841 (+link-static, +link-static-tests): Add $(CC).
3842 (+link-before-libc): Remove $(CC).
3843 (+link, +link-pie, +link-pie-printers): Add $(CC).
3844
deacca00
DA
38452019-04-25 David Abdurachmanov <david.abdurachmanov@gmail.com>
3846
3847 [BZ#24484]
3848 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Remove.
3849
b5ffdc48
FW
38502019-04-25 Florian Weimer <fweimer@redhat.com>
3851
3852 benchtests: Enable BIND_NOW if configured with --enable-bind-now.
3853 * benchtests/Makefile [$(bind-now)] (link-bench-bind-now): Set.
3854 (bench-link-targets): New variable.
3855 ($(binaries-bench) …): Use it. Set LDFLAGS accordingly.
3856
94a4e9e4
FW
38572019-04-25 Florian Weimer <fweimer@redhat.com>
3858
3859 Also enable BIND_NOW for programs if --enable-bind-now.
3860 * Makeconfig [$(bind-now)] (link-extra-flags): Add -Wl,-z,now.
3861 (+link-pie): Use $(link-extra-flags).
3862 (+link-static): Likewise.
3863 [! $(build-pie-default)] (+link): Likewise.
3864 * manual/install.texi (Configuring and compiling): Update
3865 --enable-bind-now description.
3866 * INSTALL: Regenerated.
3867
fe92a91f
WD
38682019-04-24 Wilco Dijkstra <wdijkstr@arm.com>
3869
3870 * benchtests/Makefile (BENCH_DURATION): Set to 1 second.
3871 * benchtests/bench-malloc-thread.c (BENCH_DURATION): Set to 10 seconds.
3872
f9b645b4
MF
38732019-04-24 Mike Frysinger <vapier@gentoo.org>
3874
3875 [BZ #18465]
3876 * malloc/Makefile (others): Add memusagestat.
3877 ($(objpfx)memusagestat): Delete rule.
3878 (LDLIBS-memusagestat): New variable.
3879
439bf534
FW
38802019-04-24 Florian Weimer <fweimer@redhat.com>
3881
3882 * locale/Makefile (tests-special): Guard setting by
3883 $(run-built-tests) == yes, otherwise tst-locale-locpath attempts
3884 to run while cross-compiling.
3885
1a4c2735
AZ
38862019-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3887
3888 [BZ #18035]
3889 * elf/Makefile (tests-container): Add tst-pldd.
3890 * elf/pldd-xx.c: Use _Static_assert in of pldd_assert.
3891 (E(find_maps)): Avoid use alloca, use default read file operations
3892 instead of explicit LFS names, and fix infinite loop.
3893 * elf/pldd.c: Explicit set _FILE_OFFSET_BITS, cleanup headers.
3894 (get_process_info): Use _Static_assert instead of assert, use default
3895 directory operations instead of explicit LFS names, and free some
3896 leadek pointers.
3897 * elf/tst-pldd.c: New file.
3898
2d398aa2
L
38992019-04-23 H.J. Lu <hongjiu.lu@intel.com>
3900
3901 * malloc/arena.c (do_set_mallopt_check): Removed.
3902
e485b2b6
FW
39032019-04-23 Florian Weimer <fweimer@redhat.com>
3904
3905 locale: Add LOCPATH diagnostics to the locale program.
3906 * locale/programs/locale.c (setlocale_failed): New variable.
3907 (try_setlocale): New function.
3908 (quote_string): Likewise.
3909 (setlocale_diagnostics): Likewise.
3910 (main): Call try_setlocale instead of setlocale. Call
3911 setlocale_diagnostics.
3912 * locale/Makefile (tests-special): Add tst-locale-locpath.out.
3913 (tst-locale-locpath.out): New target.
3914 * locale/tst-locale-locpath.sh: New file.
3915
25f7a3c9
AZ
39162019-04-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3917
3918 * NEWS: Move memory allocation changes of BZ#23741 from 2.29
3919 to 2.30 notes.
3920
9bf8e29c
AZ
39212019-04-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3922
3923 [BZ #23741]
3924 * malloc/hooks.c (malloc_check, realloc_check): Use
3925 __builtin_add_overflow on overflow check and adapt to
3926 checked_request2size change.
3927 * malloc/malloc.c (__libc_malloc, __libc_realloc, _mid_memalign,
3928 __libc_pvalloc, __libc_calloc, _int_memalign): Limit maximum
3929 allocation size to PTRDIFF_MAX.
3930 (REQUEST_OUT_OF_RANGE): Remove macro.
3931 (checked_request2size): Change to inline function and limit maximum
3932 requested size to PTRDIFF_MAX.
3933 (__libc_malloc, __libc_realloc, _int_malloc, _int_memalign): Limit
3934 maximum allocation size to PTRDIFF_MAX.
3935 (_mid_memalign): Use _int_memalign call for overflow check.
3936 (__libc_pvalloc): Use __builtin_add_overflow on overflow check.
3937 (__libc_calloc): Use __builtin_mul_overflow for overflow check and
3938 limit maximum requested size to PTRDIFF_MAX.
3939 * malloc/malloc.h (malloc, calloc, realloc, reallocarray, memalign,
3940 valloc, pvalloc): Add __attribute_alloc_size__.
3941 * stdlib/stdlib.h (malloc, realloc, reallocarray, valloc): Likewise.
3942 * malloc/tst-malloc-too-large.c (do_test): Add check for allocation
3943 larger than PTRDIFF_MAX.
3944 * malloc/tst-memalign.c (do_test): Disable -Walloc-size-larger-than=
3945 around tests of malloc with negative sizes.
3946 * malloc/tst-posix_memalign.c (do_test): Likewise.
3947 * malloc/tst-pvalloc.c (do_test): Likewise.
3948 * malloc/tst-valloc.c (do_test): Likewise.
3949 * malloc/tst-reallocarray.c (do_test): Replace call to reallocarray
3950 with resulting size allocation larger than PTRDIFF_MAX with
3951 reallocarray_nowarn.
3952 (reallocarray_nowarn): New function.
3953 * NEWS: Mention the malloc function semantic change.
3954
0e169691
AZ
39552019-04-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3956
52faba65
AZ
3957 * sysdeps/powerpc/fpu/s_fma.c: Fix format.
3958 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
3959
3a16dd78
AZ
3960 * sysdeps/powerpc/fpu/s_fma.S: Remove file.
3961 * sysdeps/powerpc/fpu/s_fmaf.S: Likewise.
3962 * sysdeps/powerpc/fpu/s_fma.c: New file.
3963 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
3964
1dac8bd6
AZ
3965 * sysdeps/powerpc/fpu/s_fabs.S: Remove file.
3966 * sysdeps/powerpc/fpu/s_fabsf.S: Likewise.
3967
a3ae315a
AZ
3968 * sysdeps/unix/sysv/linux/mips/getcontext.S (__getcontext): Remove
3969 the magic flag store.
3970 * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
3971 Likewise.
3972 * sysdeps/unix/sysv/linux/mips/swapcontext.S (__swapcontext):
3973 Likewise.
3974 * sysdeps/unix/sysv/linux/mips/setcontext.S (__setcontext):
3975 Remove rt_sigreturn call.
3976
ffe8a9a8
AZ
3977 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
3978 Remove rt_sigreturn call.
3979 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
3980 Likewise.
3981 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewie.
3982 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
3983
0e169691
AZ
3984 * support/Makefile (libsupport-routines): Add support_subprocess,
3985 xposix_spawn, xposix_spawn_file_actions_addclose, and
3986 xposix_spawn_file_actions_adddup2.
3987 (tst-support_capture_subprocess-ARGS): New rule.
3988 * support/capture_subprocess.h (support_capture_subprogram): New
3989 prototype.
3990 * support/support_capture_subprocess.c (support_capture_subprocess):
3991 Refactor to use support_subprocess and support_capture_poll.
3992 (support_capture_subprogram): New function.
3993 * support/tst-support_capture_subprocess.c (write_mode_to_str,
3994 str_to_write_mode, test_common, parse_int, handle_restart,
3995 do_subprocess, do_subprogram, do_multiple_tests): New functions.
3996 (do_test): Add support_capture_subprogram tests.
3997 * support/subprocess.h: New file.
3998 * support/support_subprocess.c: Likewise.
3999 * support/xposix_spawn.c: Likewise.
4000 * support/xposix_spawn_file_actions_addclose.c: Likewise.
4001 * support/xposix_spawn_file_actions_adddup2.c: Likewise.
4002 * support/xspawn.h: Likewise.
4003
bae8cf0e
MG
40042019-04-17 Mike Gerow <gerow@google.com>
4005
4006 * stdlib/tst-secure-getenv.c (choose_gid): Remove 64 supplemental
4007 groups limit.
4008
e3f454ba
FW
40092019-04-11 Florian Weimer <fweimer@redhat.com>
4010
4011 * resolv/nss_dns/dns-network.c (getanswer_r): Do not replace root
4012 domain with empty string.
4013 * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
4014
32d85c11
FW
40152019-04-11 Florian Weimer <fweimer@redhat.com>
4016
4017 * include/alloc_buffer.h (alloc_buffer_alloc_bytes): Update
4018 comment.
4019 (alloc_buffer_next): Change return type to non-const. Update
4020 comment.
4021
221710af
FW
40222019-04-10 TAMUKI Shoichi <tamuki@linet.gr.jp>
4023
4024 * manual/time.texi (Formatting Calendar Time): Add missing percent
4025 sign to conversion specifier.
4026
e621246e
CD
40272019-04-09 Carlos O'Donell <carlos@redhat.com>
4028 Kwok Cheung Yeung <kcy@codesourcery.com>
4029
4030 [BZ #16573]
4031 * malloc/mtrace.c: Define prototypes for all hooks.
4032 (set_default_hooks): New function.
4033 (set_trace_hooks): Likewise.
4034 (save_default_hooks): Likewise.
4035 (tr_freehook): Use new s*_hooks functions.
4036 (tr_mallochook): Likewise.
4037 (tr_reallochook): Likewise.
4038 (tr_memalignhook): Likewise.
4039 (mtrace): Likewise.
4040 (muntrace): Likewise.
4041
648279f4
WD
40422019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4043
4044 * benchtests/bench-stpcpy.c (SIMPLE_STPCPY): Remove function.
4045 (generic_stpcpy): New function.
4046 * benchtests/bench-stpncpy.c (SIMPLE_STPNCPY): Remove function.
4047 (generic_stpncpy): New function.
4048 * benchtests/bench-strcat.c (SIMPLE_STRCAT): Remove function.
4049 (generic_strcat): New function.
4050 * benchtests/bench-strcpy.c (SIMPLE_STRCPY): Remove function.
4051 (generic_strcpy): New function.
4052 * benchtests/bench-strncat.c (SIMPLE_STRNCAT): Remove function.
4053 (STUPID_STRNCAT): Remove function.
4054 (generic_strncat): New function.
4055 * benchtests/bench-strncpy.c (SIMPLE_STRNCPY): Remove function.
4056 (STUPID_STRNCPY): Remove function.
4057 (generic_strncpy): New function.
4058 * benchtests/bench-strnlen.c (SIMPLE_STRNLEN): Remove function.
4059 (generic_strnlen): New function.
4060 (memchr_strnlen): New function.
4061 * benchtests/bench-strlen.c (generic_strlen): Define for WIDE.
4062 (memchr_strlen): Likewise.
4063
93eebae5
WD
40642019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4065
4066 * benchtests/bench-strstr.c (input): Add realistic input text.
4067 (stupid_strstr): Remove function.
4068 (basic_strstr): Add function.
4069 (twoway_strstr): Add function.
4070 (do_one_test): Add result checking.
4071 (do_test): Use new input text. Remove accidental early matches.
4072 (test_main): Improve range of tests, reduce unaligned cases.
4073
a173d09f
WD
40742019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4075
4076 * benchtests/bench-memmem.c (simple_memmem): Remove function.
4077 (basic_memmem): Add function.
4078 (twoway_memmem): Add function.
4079
6103c0a8
WD
40802019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4081
4082 * benchtests/bench-malloc-simple.c: Remove TIMING_INIT.
4083 * benchtests/bench-malloc-thread.c: Likewise.
4084 * benchtests/bench-skeleton.c: Likewise.
4085 * benchtests/bench-strtod.c: Likewise.
4086 * benchtests/bench-timing.h: Likewise.
4087
33322186
FW
40882019-04-08 Florian Weimer <fweimer@redhat.com>
4089
4090 * resolv/resolv.h (RES_INSECURE1, RES_INSECURE2): Remove
4091 definitions.
4092 * resolv/res_send.c (send_dg): Always perform RES_INSECURE1 and
4093 RES_INSECURE2 security checks.
4094 * resolv/res_debug.c (p_option): Remove RES_INSECURE1 and
4095 RES_INSECURE2 handling.
4096
3f8b44be
FW
40972019-04-08 Florian Weimer <fweimer@redhat.com>
4098
4099 resolv: Remove support for RES_USE_INET6 and the inet6 option.
4100 * nscd/aicache.c (addhstaiX): Do not disable RES_USE_INET6.
4101 * nscd/nscd_gehst_r.c (__nscd_gethostbyname_r): Always use
4102 GETHOSTBYNAME.
4103 * resolv/Makefile (tests): Remove tst-res_use_inet6.
4104 (tests-internal): Update justification for tst-resolv-res_init,
4105 tst-resolv-res_init-thread.
4106 (tst-res_use_inet6): Remove target.
4107 (CFLAGS-tst-res_use_inet6.c): Do not set variable.
4108 * resolv/res_debug.c (p_option): Remove "inet6" support.
4109 * resolv/res_init.c (res_setoptions): Likewise.
4110 * resolv/res_use_inet6.h: Remove file.
4111 * resolv/resolv-internal.h (DEPRECATED_RES_USE_INET6): Remove
4112 definition.
4113 (res_use_inet6): Always return false.
4114 * resolv/resolv.h (RES_USE_INET6): Remove definition.
4115 * resolv/resolv_context.h: Adjust file comment.
4116 (struct resolv_context): Update comment on __next field.
4117 (__resolv_context_put): Update comment.
4118 * resolv/tst-res_use_inet6.c: Remove file.
4119 * resolv/tst-resolv-res_init-skeleton.c (print_resp): Remove
4120 "inet6" support.
4121 (test_cases): Adjust test case.
4122 * resolv/tst-resolv-threads.c (byname_inet6) Remove function.
4123 (thread_byname2_af_inet6): Use old byname_inet6 code.
4124 (thread_byname_inet6, thread_byname2_af_inet6): Remove functions.
4125 (gai): Remove do_inet6 argument.
4126 (thread_gai_inet, thread_gai_inet6, thread_gai_unspec): Adjust.
4127 (thread_gai_inet_inet6, thread_gai_inet6_inet6)
4128 (thread_gai_unspec_inet6): Remove functions.
4129 (do_test): Adjust thread_funcs.
4130 * sysdeps/posix/getaddrinfo.c (gethosts): Do not restore
4131 RES_USE_INET6 flag.
4132 (gaih_inet): Do not disable RES_USE_INET6 flag.
4133
6b5c8607 41342019-04-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
94e358f6
AY
4135
4136 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: Cleanup branching
4137 and remove redundant code.
4138
e3fd0b0e
AZ
41392019-04-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4140
f82ed45d
AZ
4141 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcsrchr.c):
4142 New rule.
4143 * sysdeps/powerpc/power6/wcsrchr.c: Remove file.
4144 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c:
4145 Likewise.
4146 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c:
4147 Likewise.
4148 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c:
4149 Likewise.
4150 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
4151 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: Likewise.
4152 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: Likewise.
4153 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: Likewise.
4154 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
4155 * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Likewise.
4156 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
4157 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcsrchr-power6 and
4158 wcsrchr-power7.
4159 (CFLAGS-wcsrchr-power7.c, CFLAGS-wcsrchr-power6.c): Remove rule.
4160 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
4161 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
4162 Remove wcsrchr optimizations.
4163 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
4164
662c2cc4
AZ
4165 * wcsmbs/wcsrchr.c (WCSRCHR): Use loop_unroll.h to parametrize
4166 the loop unroll.
4167
421e3005
AZ
4168 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcschr.c):
4169 New rule.
4170 * sysdeps/powerpc/power6/wcschr.c: Remove file.
4171 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c:
4172 Likewise.
4173 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c:
4174 Likewise.
4175 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c:
4176 Likewise.
4177 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
4178 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: Likewise.
4179 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: Likewise.
4180 * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: Likewise.
4181 * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
4182 * sysdeps/powerpc/powerpc64/power6/wcschr.c: Likewise.
4183 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
4184 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcschr-power6 and
4185 wcschr-power7.
4186 (CFLAGS-wcschr-power7.c, CFLAGS-wcschr-power6.c): Remove rule.
4187 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
4188 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
4189 Remove wcschr optimizations.
4190 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
4191
7ba0100c
AZ
4192 * wcsmbs/wcschr.c (WCSCHR): Use loop_unroll.h to parametrize
4193 the loop unroll.
4194
447a1306
AZ
4195 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcscpy.c):
4196 New rule.
4197 * sysdeps/powerpc/power6/wcscpy.c: Remove file.
4198 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c:
4199 Likewise.
4200 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c:
4201 Likewise.
4202 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c:
4203 Likewise.
4204 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
4205 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: Likewise.
4206 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: Likewise.
4207 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: Likewise.
4208 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
4209 * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Likewise.
4210 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
4211 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcscpy-power6 and
4212 wcscpy-power7.
4213 (CFLAGS-wcscpy-power7.c, CFLAGS-wcscpy-power6.c): Remove rule.
4214 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
4215 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
4216 Remove wcscpy optimizations.
4217 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
4218
e3fd0b0e
AZ
4219 * include/loop_unroll.h: New file.
4220 * wcsmbs/wcscpy (__wcscpy): Add option to use loop unrolling
4221 besides generic implementation.
4222
8260f236
DD
42232019-04-03 DJ Delorie <dj@redhat.com>
4224
4225 * time/tst-strftime3.c (tm_to_printed): Disable warning about
4226 snprintf truncating output.
4227
0bd545ee
DD
42282019-04-02 DJ Delorie <dj@redhat.com>
4229
4230 * time/tst-strftime3.c: Add new Japanese era tests. Fix printf
4231 warning.
4232
466afec3
TS
42332019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
4234
4235 [BZ #22964]
4236 * localedata/locales/ja_JP (LC_TIME): Add entry for the new Japanese
4237 era.
4238 * time/tst-strftime2.c (dates): Add 2019-04-30 and 2019-05-01.
4239 (mkreftable): Add rules for the new Japanese era and the new dates.
4240
2f1d6155
TS
42412019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
4242 Rafal Luzynski <digitalfreak@lingonborough.com>
4243
4244 * time/tst-strftime2.c (date_t): Explicitly define the type.
4245 (dates): Use natural month and year numbers to express a date.
4246 (is_before): New function to compare dates.
4247 (mkreftable): Minor improvements to simplify maintenance.
4248 (do_test): Reflect the changes in dates array.
4249
84aea169
TS
4250 [BZ #24293]
4251 * time/Makefile (LOCALES): Add zh_TW.UTF-8, cmn_TW.UTF-8,
4252 hak_TW.UTF-8, nan_TW.UTF-8, and lzh_TW.UTF-8.
4253 * time/tst-strftime2.c (locales): Likewise.
4254 (dates): Add 1910-04-01, 1911-12-31, 1912-01-01, 1913-04-01,
4255 2010-04-01, and 2011-04-01.
4256 (mkreftable): Add rules for the new locales and the new dates.
4257
62449176
CD
42582019-04-01 Carlos O'Donell <carlos@redhat.com>
4259
4260 * localedata/locales/ja_JP: Add comments to era entries.
4261
e0e4c321
DD
42622019-04-01 DJ Delorie <dj@redhat.com>
4263
4264 [BZ #24394]
4265 * time/strptime_l.c (%Ey): Fix fencepost error.
4266 * time/tst-strftime3.c: New.
4267 * time/Makefile (tests): Add tst-strftime3.
4268
6b5c8607 42692019-04-01 Uros Bizjak <ubizjak@gmail.com>
993e3107
UB
4270
4271 * sysdeps/alpha/divqu.S (__divqu): Move save of $f0 and excb after
4272 conditional branch to DIVBYZERO. Fix unwind info.
4273 * sysdeps/alpha/remqu.S (__remqu): Move saves of $f0, $f1, $f2 and
4274 excb after conditional branch to $powerof2. Add missing unop
4275 instructions and .align directives and reorder instructions to
4276 match __divqu.
4277
d5ecee82
RH
42782019-04-01 Richard Henderson <rth@twiddle.net>
4279
4280 * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
4281 Do not redefine.
4282 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_osf_shmat):
4283 Do not redefine.
4284
656dd306
MR
42852019-03-30 Maciej W. Rozycki <macro@wdc.com>
4286
4287 * sysdeps/unix/sysv/linux/riscv/configure.ac: Quote
4288 $libc_cv_riscv_float_abi in `test' invocation.
4289 * sysdeps/unix/sysv/linux/riscv/configure: Regenerate.
4290
10cce669
PC
42912019-03-29 Paul A. Clarke <pc@us.ibm.com>
4292
4293 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_register): Replace inline
4294 asm with builtin.
4295 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (FP_INIT_ROUNDMODE):
4296 Likewise.
4297 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
4298 (_GET_SI_FPSCR): Likewise.
4299 (_SET_SI_FPSCR): Likewise.
4300
5e67e4bf 43012019-03-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4997e8f3
AZ
4302
4303 * math/math.h (fpclassify, isfinite, isnormal, isnan): Use builtin for
4304 clang 2.8.
4305 (signbit): Use builtin for clang 3.3.
4306 (isinf): Use builtin for clang 3.7.
4307
01963891
AZ
43082019-03-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4309
4310 * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file.
4311
67112f7a
AH
43122019-03-25 Andreas K. Hüttel <dilfridge@gentoo.org>
4313
4314 * nss/tst-nss-files-alias-leak.c (do_test): add missing opening
4315 quote in printf.
4316
7a773abf
MC
43172019-03-25 Mike Crowe <mac@mcrowe.com>
4318
82849fde
MC
4319 * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to
4320 pthread_rwlock_timedrdlock with calls to
4321 pthread_rwlock_timedwrlock to ensure that the latter is tested
4322 too. Use new function name in diagnostic messages too.
4323
7a773abf
MC
4324 * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
4325 (do_test) Use libsupport test macros rather than hand-coded
4326 conditionals and error messages. Ensure that sem_init returns zero
4327 rather than not -1. Use <support/test-driver.c> rather than
4328 test-skeleton.c.
4329
4330 * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
4331 test macros rather than hand-coded conditionals and error messages.
4332 Use <support/test-driver.c> rather than test-skeleton.c.
4333
9ac2de69
JM
43342019-03-25 Joseph Myers <joseph@codesourcery.com>
4335
d7563e62
JM
4336 * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
4337
9ac2de69
JM
4338 * elf/elf.h (NT_ARM_PAC_MASK): New macro.
4339 (NT_MIPS_MSA): Likewise.
4340
38cc11da
AZ
43412019-03-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4342
7621e38b
WD
4343 * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
4344 * benchtests/README: Update description.
4345 * benchtests/bench-timing.h: Default to hp-timing.
4346 * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
4347 HP_TIMING_PRINT): Remove.
4348 (HP_TIMING_NOW): Add generic implementation.
4349 (hp_timing_t): Change to uint64_t.
4350
1e372ded
AZ
4351 * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
4352 HP_TIMING_INLINE.
4353 * nptl/descr.h: Likewise.
4354 * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
4355 RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
4356 (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
4357 Abstract hp-timing usage with RTLD_* macros.
4358 * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
4359 (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
4360 * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
4361 HP_TIMING_NONAVAIL): Likewise.
4362 * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
4363 Likewise.
4364 * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
4365 HP_SMALL_TIMING_AVAIL): Likewise.
4366 * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
4367 HP_SMALL_TIMING_AVAIL): Likewise.
4368 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
4369 HP_SMALL_TIMING_AVAIL): Likewise.
4370 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
4371 HP_SMALL_TIMING_AVAIL): Likewise.
4372 * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
4373 Likewise.
4374 * sysdeps/generic/hp-timing-common.h: Update comment with
4375 HP_TIMING_AVAIL removal.
4376
359653aa
AZ
4377 * include/random-bits.h: New file.
4378 * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
4379 (__res_context_mkquery): Remove usage hp-timing usage and replace with
4380 random_bits.
4381 * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
4382 * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
4383 Likewise.
4384
6e8ba7fd
AZ
4385 * include/libc-internal.h (__get_clockfreq): Remove prototype.
4386 * rt/Makefile (clock-routines): Remove get_clockfreq.
4387 * rt/get_clockfreq.c: Remove file.
4388 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
4389 * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
4390 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
4391 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
4392 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
4393
77b6f553
AZ
4394 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
4395 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
4396 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
4397 (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
4398 _SC_CPUTIME, and _SC_THREAD_CPUTIME.
4399
38cc11da
AZ
4400 * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
4401 pthread_clock_settime.
4402 * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
4403 * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
4404 (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
4405 * elf/rtld.c (_dl_start_final): Likewise.
4406 * nptl/allocatestack.c (__find_thread_by_id): Remove function.
4407 * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
4408 Remove.
4409 * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
4410 (_dl_cpuclock_offset): Remove.
4411 * nptl/descr.h (struct pthread): Rename cpuclock_offset to
4412 cpuclock_offset_ununsed.
4413 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
4414 cpuclock_offset set.
4415 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
4416 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
4417 * nptl/pthread_clock_gettime.c: Remove file.
4418 * nptl/pthread_clock_settime.c: Likewise.
4419 * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
4420 [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
4421 and CLOCK_PROCESS_CPUTIME_ID support.
4422 * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
4423 [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
4424 * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
4425 [HP_TIMING_AVAIL] (__clock_getres): Likewise.
4426 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
4427 Likewise.
4428 (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
4429
421749d6
SL
44302019-03-22 Stefan Liebler <stli@linux.ibm.com>
4431
4432 * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
4433 * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
4434 MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
4435 New defines.
4436 * sysdeps/s390/memmem-arch13.S: New file.
4437 * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
4438 if it is only used as fallback.
4439 * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
4440 * sysdeps/s390/multiarch/ifunc-impl-list.c
4441 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
4442
6f47401b
SL
44432019-03-22 Stefan Liebler <stli@linux.ibm.com>
4444
4445 * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
4446 * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
4447 STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
4448 New defines.
4449 * sysdeps/s390/multiarch/ifunc-impl-list.c
4450 (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
4451 * sysdeps/s390/strstr-arch13.S: New file.
4452 * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
4453 if it is only used as fallback.
4454 * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
4455
96fbb9a3
SL
44562019-03-22 Stefan Liebler <stli@linux.ibm.com>
4457
4458 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
4459 HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
4460 * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
4461 * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
4462 ifunc selector.
4463 * sysdeps/s390/multiarch/ifunc-impl-list.c
4464 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
4465 * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
4466 S390_IS_ARCH13_MIE3): New defines.
4467
a899a551
SL
44682019-03-22 Stefan Liebler <stli@linux.ibm.com>
4469
4470 * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
4471 HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
4472 * sysdeps/s390/configure.ac: Add checks for arch13 support.
4473 * sysdeps/s390/configure: Regenerated.
4474
1a7df49c
SL
44752019-03-22 Stefan Liebler <stli@linux.ibm.com>
4476
4477 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
4478 Add vxe2, vxp, dflt, sort flags.
4479 * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
4480 HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
4481 capabilities.
4482 (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
4483 * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
4484 (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
4485 HWCAP_S390_DFLT): Define.
4486
5e67e4bf 44872019-03-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5abcddd7
GG
4488
4489 [BZ #24372]
4490 * iconv/iconvconfig.c (write_output): Add parentheses to get rid
4491 of compiler warning.
4492 * locale/programs/ld-collate.c (collate_output): Likewise.
4493
ac64195c
DD
44942019-03-21 DJ Delorie <dj@redhat.com>
4495
4496 [BZ #24372]
4497 * iconv/iconvconfig.c (write_output): Replace floating point math
4498 with integer math to avoid imprecise results.
4499 * locale/programs/ld-collate.c (collate_output): Likewise.
4500
61f5e947
SL
45012019-03-21 Stefan Liebler <stli@linux.ibm.com>
4502
4503 * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
4504 Add HWCAP_S390_VX and HWCAP_S390_VXE.
4505
57ada43c 45062019-03-20 mansayk <6688000@gmail.com>
4507
4508 [BZ #24296]
4509 * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
4510 (abday): Likewise, but remove the trailing dots.
4511
a2e57f89
JM
45122019-03-19 Joseph Myers <joseph@codesourcery.com>
4513
4514 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
4515 macro.
4516 (HWCAP_PACA): Likewise.
4517 (HWCAP_PACG): Likewise.
4518 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
4519 Increase to 32.
4520 (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
4521
e87d8ada
ST
45222019-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
4523
4524 * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
4525 should be handled.
4526
477e739b
JM
45272019-03-15 Joseph Myers <joseph@codesourcery.com>
4528
4529 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
4530 version to 5.0.
4531 (old_getpagesize): New syscall.
4532
238d60a1
FY
45332019-03-15 Felix Yan <felixonmars@archlinux.org>
4534
4535 [BZ #24293]
4536 * localedata/locales/zh_TW (era): Add, support Minguo calendar.
4537 * localedata/locales/cmn_TW (era): Likewise.
4538 * localedata/locales/hak_TW (era): Likewise.
4539 * localedata/locales/lzh_TW (era): Likewise.
4540 * localedata/locales/nan_TW (era): Likewise.
4541
5dde9ef7
DD
45422019-03-14 Adam Maris <amaris@redhat.com>
4543
4544 * malloc/malloc.c (_int_malloc): Check for large bin list
4545 corruption when inserting unsorted chunk.
4546
a0a0dc83
FW
45472019-03-14 Florian Weimer <fweimer@redhat.com>
4548
4549 Remove obsolete, never-implemented XSI STREAMS declarations.
4550 * manual/terminal.texi (Allocation): Remove portability note and
4551 adjust example.
4552 * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
4553 _SC_STREAMS.
4554 * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
4555 * sysdeps/unix/inet/Subdirs (streams): Remove.
4556 * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
4557 (conformtest-headers-UNIX98): Likewise.
4558 (conformtest-headers-XOPEN2K): Likewise.
4559 (conformtest-headers-POSIX2008): Likewise.
4560 * posix/compat-streams.c: New file.
4561 * posix/Makefile (routines): Add it.
4562 * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
4563 getpmsg, isastream, putmsg, putpmsg.
4564 (GLIBC_2.30): New section.
4565 * bits/stropts.h: Remove file.
4566 * bits/xtitypes.h: Likewise.
4567 * conform/data/stropts.h-data: Likewise.
4568 * include/stropts.h: Likewise.
4569 * include/sys/stropts.h: Likewise.
4570 * include/xtitypes.h: Likewise.
4571 * streams/Makefile: Likewise.
4572 * streams/fattach.c: Likewise.
4573 * streams/fdetach.c: Likewise.
4574 * streams/getmsg.c: Likewise.
4575 * streams/getpmsg.c: Likewise.
4576 * streams/isastream.c: Likewise.
4577 * streams/putmsg.c: Likewise.
4578 * streams/putpmsg.c: Likewise.
4579 * streams/stropts.h: Likewise.
4580 * streams/sys/stropts.h: Likewise.
4581 * sysdeps/ia64/bits/xtitypes.h: Likewise.
4582 * sysdeps/s390/bits/xtitypes.h: Likewise.
4583 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
4584 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
4585 * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
4586 * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
4587 * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
4588 * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
4589 * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
4590 * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
4591 * sysdeps/x86/bits/xtitypes.h: Likewise.
4592
081bdf94
FW
45932019-03-14 Florian Weimer <fweimer@redhat.com>
4594
4595 * nss/tst-nss-files-alias-truncated.c (do_test): Load
4596 libnss_files.
4597 * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
4598 but not with libnss_files.
4599 (tst-nss-files-alias-truncated.out): Depend on libnss_files.
4600
97f8225d
ZW
46012019-03-14 Zack Weinberg <zackw@panix.com>
4602
4603 * scripts/check-obsolete-constructs.py (HeaderChecker.check):
4604 Specify encoding="utf-8" when opening headers to check.
4605
0c1041ee
JM
46062019-03-13 Joseph Myers <joseph@codesourcery.com>
4607
4608 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
4609 version to 5.0.
4610 (Context.checkout_tar): Handle variable major version for Linux
4611 kernel.
4612
043440e7
FW
46132019-03-13 Florian Weimer <fweimer@redhat.com>
4614
4615 [BZ #24047]
4616 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
4617
29218b26
ZW
46182019-03-13 Zack Weinberg <zackw@panix.com>
4619
4620 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
4621 Move to stdlib.
4622 * include/inttypes.h: Adjust to match.
4623 * include/stdint.h: New wrapper.
4624
711a322a
ZW
46252019-03-13 Zack Weinberg <zackw@panix.com>
4626
4627 * scripts/check-obsolete-constructs.py: New test script.
4628 * scripts/check-installed-headers.sh: Remove tests for
4629 obsolete typedefs, superseded by check-obsolete-constructs.py.
4630 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
4631 as a special test. Update commentary.
4632 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
4633 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
4634 Update commentary.
4635 * posix/sys/types.h (__u_intN_t): Remove.
4636 (u_int8_t): Typedef using __uint8_t.
4637 (u_int16_t): Typedef using __uint16_t.
4638 (u_int32_t): Typedef using __uint32_t.
4639 (u_int64_t): Typedef using __uint64_t.
4640
7c651308
SL
46412019-03-13 Stefan Liebler <stli@linux.ibm.com>
4642
4643 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
4644 call _dl_procinfo.
4645 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
4646 Ignore types other than AT_HWCAP.
4647 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
4648 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
4649 Likewise.
4650 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
4651 in the case of falling back to generic output mechanism.
4652 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
4653 Likewise.
4654
38b52865
FW
46552019-03-12 Florian Weimer <fweimer@redhat.com>
4656
4657 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
4658
08504de7
FW
46592019-03-12 Florian Weimer <fweimer@redhat.com>
4660
4661 [BZ #24047]
4662 resolv: Enable full ICMP errors for UDP DNS sockets
4663 * resolv/res_enable_icmp.c: New file.
4664 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
4665 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
4666 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
4667 socket.
4668
5fbcd763
MH
46692019-03-11 Mao Han <han_mao@c-sky.com>
4670
4671 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
4672 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
4673
c4e5f34b
MH
46742019-03-11 Mao Han <han_mao@c-sky.com>
4675
4676 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
4677 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
4678 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
4679
827e30f3
MH
46802019-03-11 Mao Han <han_mao@c-sky.com>
4681
4682 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
4683 directly.
4684 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
4685 definition.
4686
6229c9bf
MH
46872019-03-11 Mao Han <han_mao@c-sky.com>
4688
4689 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
4690 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
4691 in mcontext_t
4692
86bdd49d
MF
46932019-03-08 Mike FABIAN <mfabian@redhat.com>
4694
4695 [BZ #24307]
4696 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
4697 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
4698 Unicode 12.0.0.
4699 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
4700 * localedata/unicode-gen/PropList.txt: Likewise.
4701 * localedata/unicode-gen/UnicodeData.txt: Likewise.
4702 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
4703 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
4704 * localedata/charmaps/UTF-8: Regenerate.
4705 * localedata/locales/i18n_ctype: Likewise.
4706 * localedata/locales/tr_TR: Likewise.
4707 * localedata/locales/translit_circle: Likewise.
4708 * localedata/locales/translit_cjk_compat: Likewise.
4709 * localedata/locales/translit_combining: Likewise.
4710 * localedata/locales/translit_compat: Likewise.
4711 * localedata/locales/translit_font: Likewise.
4712 * localedata/locales/translit_fraction: Likewise.
4713
c5f65462
JM
47142019-03-07 Joseph Myers <joseph@codesourcery.com>
4715
4716 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
4717 than after operators.
4718 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
4719 (setitimer_locked): Likewise.
4720 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
4721 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
4722 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
4723 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
4724 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
4725 (PPC_CPU_SUPPORTED): Likewise.
4726 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
4727 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
4728 (stat_overflow): Likewise.
4729 (statfs_overflow): Likewise.
4730 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
4731 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
4732 (eq_ttyname_r): Likewise.
4733 (run_chroot_tests): Likewise.
4734
27a2f2f3
FW
47352019-03-07 Florian Weimer <fweimer@redhat.com>
4736
4737 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
4738 header check.
4739
ae514971 47402019-03-07 Martin Liska <mliska@suse.cz>
4741
4742 * math/Makefile: Change location where math-vector-fortran.h is
4743 installed.
4744 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
4745 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
4746 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
4747 * scripts/check-installed-headers.sh: Skip Fortran header files.
4748 * scripts/check-wrapper-headers.py: Likewise.
4749
0ddb7ea8
AZ
47502019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4751
4752 * nptl/nptl-init.c (__have_futex_clock_realtime,
4753 __have_futex_clock_realtime): Remove definition.
4754 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
4755 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
4756 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
4757 __ASSUME_FUTEX_CLOCK_REALTIME support.
4758 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
4759 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
4760 * sysdeps/unix/sysv/linux/kernel-features.h
4761 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
4762 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
4763 Adjust comment.
4764
590675c0
GG
47652019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4766
4767 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
4768 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
4769 __GI___wcscpy and wcscpy.
4770
de71ee7b
FW
47712019-03-04 Florian Weimer <fweimer@redhat.com>
4772
4773 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
4774 declaration.
4775 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
4776 defined.
4777
ce6ddae0
SL
47782019-03-04 Stefan Liebler <stli@linux.ibm.com>
4779
4780 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
4781 * sysdeps/s390/s390-32/sysdep.h: Likewise.
4782
31efface
TS
47832019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
4784
4785 [BZ #24162]
4786 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
4787 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
4788
f0eaf862
GG
47892019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4790
4791 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
4792 tests.
4793 (do_test): Likewise.
4794 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
4795 (do_test_call_varg): Likewise.
4796 (do_test_call_rarg): Likewise.
4797 * sysdeps/ieee754/ldbl-opt/Makefile
4798 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
4799 tst-nldbl-error.
4800 ($(objpfx)tst-nldbl-warn.c): New rule.
4801 ($(objpfx)tst-nldbl-error.c): Likewise.
4802 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
4803 New variables.
4804
d11086a9
GG
48052019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4806
4807 [BZ #23984]
4808 * include/bits/error-ldbl.h: New file.
4809 * include/error.h: Include stdarg.h. Declare internal functions
4810 __error_internal and __error_at_line_internal.
4811 * misc/Makefile (headers): Add bits/error-ldbl.h.
4812 * misc/bits/error-ldbl.h: New file.
4813 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
4814 avoid the inclusion of bits/error.h.
4815 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
4816 and __nldbl_error_at_line.
4817 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
4818 (__nldbl_error, __ndlbl_error_at_line): New functions.
4819 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
4820 Redirect error and error_at_line.
4821 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
4822 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
4823 Likewise.
4824 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
4825 Likewise.
4826 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
4827 Likewise.
4828 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
4829 Likewise.
4830 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
4831 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
4832 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
4833
90188e7d
GG
48342019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4835
4836 [BZ #23984]
4837 * include/bits/err-ldbl.h: New file.
4838 * include/err.h: Add prototypes for the internal functions:
4839 __vwarnx_internal and __vwarn_internal.
4840 * misc/Makefile (headers): Add bits/err-ldbl.h.
4841 * misc/bits/err-ldbl.h: New file.
4842 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
4843 defined, i.e.: when -mlong-double-64 is in use.
4844 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
4845 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
4846 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
4847 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
4848 (VA_CALL): New macro.
4849 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
4850 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
4851 functions.
4852 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
4853 declare prototypes for the new functions.
4854 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
4855 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
4856 Likewise.
4857 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
4858 Likewise.
4859 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
4860 Likewise.
4861 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
4862 Likewise.
4863 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
4864 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
4865 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
4866
ea2d89d0
GG
48672019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4868
4869 * sysdeps/ieee754/ldbl-opt/Makefile
4870 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
4871 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
4872 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
4873
6e1f6440
GG
48742019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4875
4876 [BZ #23983]
4877 * argp/Makefile (headers): Add bits/argp-ldbl.h.
4878 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
4879 * argp/bits/argp-ldbl.h: New file.
4880 * include/argp.h: Include stdarg.h. Add prototypes for internal
4881 functions: __argp_error_internal and __argp_failure_internal.
4882 * include/bits/argp-ldbl.h: New file.
4883 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
4884 __nldbl_argp_error and __nldbl_argp_failure.
4885 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
4886 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
4887 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
4888 Redirect argp_error and argp_failure calls.
4889 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
4890 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
4891 Likewise.
4892 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
4893 Likewise.
4894 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
4895 Likewise.
4896 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
4897 Likewise.
4898 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
4899 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
4900 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
4901
c259196b
FW
49022019-03-01 Florian Weimer <fweimer@redhat.com>
4903
4904 [BZ #20419]
4905 * elf/tst-big-note-lib.S: Create a syntactically valid note.
4906 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
4907 code, to avoid creating an ABI tag note.
4908 (modules-names-nobuild): Add tst-big-note-lib.
4909
928b305d
SL
49102019-03-01 Stefan Liebler <stli@linux.ibm.com>
4911
4912 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
4913 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
4914
36f30c10
FW
49152019-03-01 Florian Weimer <fweimer@redhat.com>
4916
4917 [BZ #20271]
4918 * sysdeps/unix/sysv/linux/netlink_assert_response.c
4919 (__netlink_assert_response): Add additional missing newlines.
4920
462e83a4
JM
49212019-02-28 Joseph Myers <joseph@codesourcery.com>
4922
4923 * sysdeps/powerpc/powerpc32/dl-machine.c
4924 (__elf_machine_fixup_plt): Use space before '('.
4925 (__process_machine_rela): Likewise.
4926 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
4927 Likewise.
4928 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
4929 Likewise.
4930 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
4931 Likewise.
4932 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
4933 (pattern): Likewise.
4934 (delta): Likewise.
4935 (check_result): Likewise.
4936 (check_excepts): Likewise.
4937 (check_op): Likewise.
4938 (fail_xr): Likewise.
4939 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
4940 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
4941 (SCNHSZ): Likewise.
4942 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
4943 Likewise.
4944 (ARGS): Likewise.
4945 (__makecontext): Likewise.
4946 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
4947 Likewise.
4948
cc3e573c
FW
49492019-02-28 Florian Weimer <fweimer@redhat.com>
4950
4951 [BZ #23937]
4952 elf: Add test with a local IFUNC resolver.
4953 * elf/ifuncmain9.c: New file.
4954 * elf/ifuncmain9pic.c: Likewise.
4955 * elf/ifuncmain9picstatic.c: Likewise.
4956 * elf/ifuncmain9pie.c: Likewise.
4957 * elf/ifuncmain9static.c: Likewise.
4958 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
4959 ifuncmain9static, ifuncmain9picstatic.
4960 * elf/Makefile [multi-arch && build-shared] (tests-internal):
4961 Add ifuncmain9, ifuncmain9pic.
4962 * elf/Makefile [multi-arch && build-shared && have-fpie]
4963 (ifunc-pie-tests): Add ifuncmain9pie.
4964 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
4965 (CFLAGS-ifuncmain9picstatic.c): Likewise.
4966 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
4967
92ad88fe
L
49682019-02-27 H.J. Lu <hongjiu.lu@intel.com>
4969
4970 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
4971 * configure: Regenerated.
4972 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
4973
6bd4d02e
AZ
49742019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4975
4976 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
4977 symbol as __wcspcy instead of wcscpy.
4978
1b218417
ST
49792019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
4980
4981 * include/stdio.h (__renameat2): New hidden prototype.
4982 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
4983 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
4984 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
4985 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
4986
c4f50205
JM
49872019-02-27 Joseph Myers <joseph@codesourcery.com>
4988
f627dd4d
JM
4989 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
4990 if statement.
4991
c4f50205
JM
4992 * benchtests/bench-strcpy.c (do_test): Use space before '('.
4993 * benchtests/bench-string.h (cmdline_process_function): Likewise.
4994 * benchtests/bench-strlen.c (do_test): Likewise.
4995 (test_main): Likewise.
4996 * catgets/gencat.c (read_old): Likewise.
4997 * elf/cache.c (load_aux_cache): Likewise.
4998 * iconvdata/bug-iconv8.c (do_test): Likewise.
4999 * math/test-tgmath-ret.c (do_test): Likewise.
5000 * nis/nis_call.c (rec_dirsearch): Likewise.
5001 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
5002 * nptl/tst-audit-threads.c (do_test): Likewise.
5003 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
5004 * nss/nss_test1.c (init): Likewise.
5005 * nss/test-netdb.c (test_hosts): Likewise.
5006 * posix/execvpe.c (maybe_script_execute): Likewise.
5007 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
5008 * stdio-common/tst-printf.c (do_test): Likewise.
5009 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
5010 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
5011 * stdlib/qsort.c (STACK_SIZE): Likewise.
5012 * stdlib/test-canon.c (do_test): Likewise.
5013 * stdlib/tst-swapcontext1.c (do_test): Likewise.
5014 * string/memcmp.c (OPSIZ): Likewise.
5015 * string/test-strcpy.c (do_test): Likewise.
5016 (do_random_tests): Likewise.
5017 * string/test-strlen.c (do_test): Likewise.
5018 (test_main): Likewise.
5019 * string/test-strrchr.c (do_test): Likewise.
5020 (do_random_tests): Likewise.
5021 * string/tester.c (test_memrchr): Likewise.
5022 (test_memchr): Likewise.
5023 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
5024 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
5025 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
5026 (read_encoded_value_with_base): Likewise.
5027 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
5028 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
5029 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
5030 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
5031 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
5032 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
5033 Likewise.
5034 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
5035 Likewise.
5036 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
5037 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
5038 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
5039 Likewise.
5040 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
5041 Likewise.
5042 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
5043 Likewise.
5044 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
5045 Likewise.
5046 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
5047 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
5048 (FP_XSTATE_MAGIC2_SIZE): Likewise.
5049 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
5050 * time/test_time.c (main): Likewise.
5051
7b3fb620
AZ
50522019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5053
457208b1
AZ
5054 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
5055
30a7e208
AZ
5056 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
5057 wmemcpy.
5058
ddf21ec7
AZ
5059 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
5060 wmemcpy.
5061
4d801563
AZ
5062 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
5063
81a14439
AZ
5064 * include/wchar.h (__wcscpy): New prototype.
5065 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
5066 (__wcscpy): Route internal symbol to generic implementation.
5067 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
5068 Add internal __wcscpy alias.
5069 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
5070 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
5071 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
5072 * wcsmbs/wcscpy.c (wcscpy): Add
5073 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
5074 use generic implementation.
5075 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
5076
39ef0744
AZ
5077 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
5078 wmemset.
5079
7b3fb620
AZ
5080 * sysdeps/m68k/wcpcpy.c: Remove file.
5081 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
5082
e0cb7b61
JM
50832019-02-26 Joseph Myers <joseph@codesourcery.com>
5084
aa0e4663
JM
5085 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
5086 than after operators.
5087 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
5088 * sysdeps/mach/hurd/getcwd.c
5089 (__hurd_canonicalize_directory_name_internal): Likewise.
5090 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
5091 (pthread_mutex_consistent): Likewise.
5092 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
5093 Likewise.
5094 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
5095 (__pthread_mutex_transfer_np): Likewise.
5096 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
5097 (__pthread_mutex_unlock): Likewise.
5098 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
5099 (mtx_owned_p): Likewise.
5100 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
5101 (pthread_mutexattr_getrobust): Likewise.
5102 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
5103 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
5104 Likewise.
5105 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
5106 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
5107 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
5108 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
5109 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
5110 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
5111 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
5112 Likewise.
5113 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
5114 Likewise.
5115 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
5116 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
5117 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
5118 (____longjmp_chk): Likewise.
5119 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
5120 Likewise.
5121 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
5122 (INTERNAL_SYSCALL): Likewise.
5123 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
5124 (INTERNAL_SYSCALL): Likewise.
5125 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
5126 (__get_clockfreq_via_cpuinfo): Likewise.
5127
e0cb7b61
JM
5128 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
5129 comments.
5130 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
5131 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
5132 (WORD_COPY_BWD): Likewise.
5133 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
5134 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
5135 Likewise.
5136 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
5137 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
5138 comment.
5139 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
5140
a04549c1
JM
51412019-02-25 Joseph Myers <joseph@codesourcery.com>
5142
5143 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
5144 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
5145 rather than after operators.
5146 * elf/cache.c (print_cache): Likewise.
5147 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
5148 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
5149 * hurd/hurdinit.c (_hurd_setproc): Likewise.
5150 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
5151 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
5152 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
5153 (reauth_proc): Likewise.
5154 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
5155 (__file_name_split_at): Likewise.
5156 (__directory_name_split_at): Likewise.
5157 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
5158 * hurd/port2fd.c (_hurd_port2fd): Likewise.
5159 * iconv/gconv_dl.c (do_print): Likewise.
5160 * inet/netinet/in.h (struct sockaddr_in): Likewise.
5161 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
5162 * locale/setlocale.c (new_composite_name): Likewise.
5163 * malloc/memusagestat.c (main): Likewise.
5164 * misc/fstab.c (fstab_convert): Likewise.
5165 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
5166 Likewise.
5167 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
5168 (getgrent_next_file): Likewise.
5169 (internal_getgrnam_r): Likewise.
5170 (internal_getgrgid_r): Likewise.
5171 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
5172 Likewise.
5173 (internal_getgrent_r): Likewise.
5174 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
5175 (getpwent_next_nss): Likewise.
5176 (getpwent_next_file): Likewise.
5177 (internal_getpwnam_r): Likewise.
5178 (internal_getpwuid_r): Likewise.
5179 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
5180 Likewise.
5181 (getspent_next_nss): Likewise.
5182 (internal_getspnam_r): Likewise.
5183 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
5184 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
5185 * string/strchr.c (STRCHR): Likewise.
5186 * string/strchrnul.c (STRCHRNUL): Likewise.
5187 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
5188 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
5189 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
5190 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
5191 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
5192 Likewise.
5193 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
5194 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
5195 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
5196 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
5197 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
5198 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
5199 (open_file): Likewise.
5200 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
5201 (pthread_mutexattr_setprotocol): Likewise.
5202 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
5203 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
5204 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
5205 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
5206 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
5207 Likewise.
5208 (elf_machine_rela): Likewise.
5209 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
5210 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
5211 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
5212 * sysdeps/posix/rename.c (rename): Likewise.
5213 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
5214 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
5215 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
5216 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
5217 * sysdeps/unix/grantpt.c (grantpt): Likewise.
5218 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
5219 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
5220 Likewise.
5221 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
5222 Likewise.
5223 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
5224 * time/tzfile.c (__tzfile_compute): Likewise.
5225
34a5a146
JM
52262019-02-22 Joseph Myers <joseph@codesourcery.com>
5227
5228 * benchtests/bench-memmem.c (simple_memmem): Break lines before
5229 rather than after operators.
5230 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
5231 * crypt/md5.c (md5_finish_ctx): Likewise.
5232 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
5233 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
5234 * elf/cache.c (load_aux_cache): Likewise.
5235 * elf/dl-load.c (open_verify): Likewise.
5236 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
5237 * elf/readelflib.c (process_elf_file): Likewise.
5238 * elf/rtld.c (dl_main): Likewise.
5239 * elf/sprof.c (generate_call_graph): Likewise.
5240 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
5241 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
5242 * hurd/dtable.c (reauth_dtable): Likewise.
5243 * hurd/getdport.c (__getdport): Likewise.
5244 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
5245 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
5246 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
5247 Likewise.
5248 * hurd/hurdioctl.c (fioctl): Likewise.
5249 * hurd/hurdselect.c (_hurd_select): Likewise.
5250 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
5251 (STOPSIGS): Likewise.
5252 * hurd/hurdstartup.c (_hurd_startup): Likewise.
5253 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
5254 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
5255 * hurd/msgportdemux.c (msgport_server): Likewise.
5256 * hurd/setauth.c (_hurd_setauth): Likewise.
5257 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
5258 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
5259 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
5260 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
5261 * login/tst-utmp.c (do_check): Likewise.
5262 (simulate_login): Likewise.
5263 * mach/lowlevellock.h (lll_lock): Likewise.
5264 (lll_trylock): Likewise.
5265 * math/test-fenv.c (ALL_EXC): Likewise.
5266 * math/test-fenvinline.c (ALL_EXC): Likewise.
5267 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
5268 * nis/nis_call.c (__do_niscall3): Likewise.
5269 * nis/nis_callback.c (cb_prog_1): Likewise.
5270 * nis/nis_defaults.c (searchaccess): Likewise.
5271 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
5272 * nis/nis_ismember.c (internal_ismember): Likewise.
5273 * nis/nis_local_names.c (nis_local_principal): Likewise.
5274 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
5275 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
5276 Likewise.
5277 * nis/ypclnt.c (yp_match): Likewise.
5278 (yp_first): Likewise.
5279 (yp_next): Likewise.
5280 (yp_master): Likewise.
5281 (yp_order): Likewise.
5282 * nscd/hstcache.c (cache_addhst): Likewise.
5283 * nscd/initgrcache.c (addinitgroupsX): Likewise.
5284 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
5285 (internal_getpwuid_r): Likewise.
5286 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
5287 * posix/glob.h (__GLOB_FLAGS): Likewise.
5288 * posix/regcomp.c (peek_token): Likewise.
5289 (peek_token_bracket): Likewise.
5290 (parse_expression): Likewise.
5291 * posix/regexec.c (sift_states_iter_mb): Likewise.
5292 (check_node_accept_bytes): Likewise.
5293 * posix/tst-spawn3.c (do_test): Likewise.
5294 * posix/wordexp-test.c (testit): Likewise.
5295 * posix/wordexp.c (parse_tilde): Likewise.
5296 (exec_comm): Likewise.
5297 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
5298 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
5299 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
5300 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
5301 * stdio-common/tst-fileno.c (do_test): Likewise.
5302 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
5303 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
5304 * stdlib/strtod_l.c (round_and_return): Likewise.
5305 (____STRTOF_INTERNAL): Likewise.
5306 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
5307 * string/strcspn.c (STRCSPN): Likewise.
5308 * string/test-memmem.c (simple_memmem): Likewise.
5309 * termios/tcsetattr.c (tcsetattr): Likewise.
5310 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
5311 * time/asctime.c (asctime_internal): Likewise.
5312 * time/strptime_l.c (__strptime_internal): Likewise.
5313 * time/sys/time.h (timercmp): Likewise.
5314 * time/tzfile.c (__tzfile_compute): Likewise.
5315
b0b50fe0
PF
53162019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
5317
b39d961c
TS
5318 [BZ #21915]
5319 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
b0b50fe0 5320
f43b8dd5
GG
53212019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5322
5323 * argp/argp-help.c (__argp_error_internal): New function,
5324 renamed from __argp_error, but that takes a 'mode_flags'
5325 parameter to control the format of long double parameters.
5326 (__argp_error): Converted into a call __argp_error_internal.
5327 (__argp_failure_internal): New function, renamed from
5328 __argp_failure, but that takes a 'mode_flags' parameter.
5329 (__argp_failure): Converted into a call __argp_failure_internal.
5330 * misc/err.c (__vwarnx_internal): New function, renamed from
5331 vwarnx, but that takes a 'mode_flags' parameter.
5332 (vwarnx): Converted into a call to __vwarnx_internal.
5333 (__vwarn_internal): New function, renamed from vwarn, but that
5334 takes a 'mode_flags' parameter.
5335 (vwarn): Converted into a call to __vwarn_internal.
5336 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
5337 call to __vfxprintf with 'mode_flags'.
5338 (__error_internal): New function, renamed from error, but that
5339 takes a 'mode_flags' parameter.
5340 (error): Converted into a call to __error_internal.
5341 (__error_at_line_internal): New function, renamed from
5342 error_at_line, but that takes a 'mode_flags' parameter.
5343 (error_at_line): Converted into a call to
5344 __error_at_line_internal.
5345 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
5346 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
5347 Likewise.
5348
dc0afac3 53492019-02-20 Martin Liska <mliska@suse.cz>
5350
5351 * math/Makefile: Install math-vector-fortran.h.
5352 * bits/math-vector-fortran.h: New file.
5353 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
5354
4a2dd41c
GG
53552019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5356
5357 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
5358 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
5359
04de9302
WS
53602019-02-19 Wolfram Sang <wsa@the-dreams.de>
5361
5362 * nptl/pthread_mutex_trylock.c: Fix comment.
5363
b026ce1e
CD
53642019-02-19 Carlos O'Donell <carlos@redhat.com>
5365
5366 * nptl/pthread_tryjoin.c: Fix comment.
5367
8c9289b6
JM
53682019-02-18 Joseph Myers <joseph@codesourcery.com>
5369
5370 [BZ #24231]
5371 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
5372 after R_SPARC_H34 case.
5373
308e022f
FW
53742019-02-18 Florian Weimer <fweimer@redhat.com>
5375
5376 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
5377 (getanswer): Do not call Dprintf.
5378 (res_gethostbyname2_context): Likewise.
5379 (res_gethostbyaddr_context): Likewise.
5380
a5406364
FW
53812019-02-18 Florian Weimer <fweimer@redhat.com>
5382
5383 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
5384 declaration.
5385 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
5386 Remove definitions.
5387 * libio/stdfiles.c: Update comment.
5388 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
5389 set _IO_stdin, _IO_stdout, _IO_stderr.
5390 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
5391 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
5392 inline function.
5393 (_IO_deallocate_file): New inline function.
5394 * libio/iolibio.h (_IO_vprintf): Remove definition.
5395 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
5396 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
5397 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
5398 _IO_legacy_file.
5399 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
5400 __builtin_expect. Use _IO_legacy_file.
5401
6c29942c
SL
54022019-02-18 Stefan Liebler <stli@linux.ibm.com>
5403
5404 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
5405 Initialize ctid with a known value and remove update of ctid
5406 after clone.
5407 (wait_tid): Adjust arguments and call futex_wait with ctid_val
5408 as assumed current value of ctid_ptr.
5409
225d9445 54102019-02-16 Florian Weimer <fweimer@redhat.com>
ad18dade
FW
5411
5412 Check that non-sysdeps headers have wrapper headers.
5413 * scripts/check-wrapper-headers.py: New file.
5414 * Makefile (tests-special): Add check-wrapper-headers.out.
5415 (check-wrapper-headers.out): New target.
5416 * Rules (tests-special): Add check-wrapper-headers.out.
5417 (check-wrapper-headers.out): New target.
5418
225d9445 54192019-02-16 Florian Weimer <fweimer@redhat.com>
ebd32784
FW
5420
5421 Add missing header wrappers under include/.
5422 * include/ar.h: New file.
5423 * include/bits/mqueue2.h: Likewise.
5424 * include/bits/stdio.h: Likewise.
5425 * include/bits/stdio2.h: Likewise.
5426 * include/fstab.h: Likewise.
5427 * include/fts.h: Likewise.
5428 * include/lastlog.h: Likewise.
5429 * include/netinet/icmp6.h: Likewise.
5430 * include/netinet/igmp.h: Likewise.
5431 * include/netinet/ip6.h: Likewise.
5432 * include/re_comp.h: Likewise.
5433 * include/regexp.h: Likewise.
5434 * include/rpcsvc/bootparam.h: Likewise.
5435 * include/rpcsvc/yp_prot.h: Likewise.
5436 * include/sys/random.h: Likewise.
5437 * include/sys/stropts.h: Likewise.
5438 * include/sys/ttychars.h: Likewise.
5439 * include/sys/vfs.h: Likewise.
5440 * include/wait.h: Likewise.
5441
225d9445 54422019-02-16 Florian Weimer <fweimer@redhat.com>
a198d37a
FW
5443
5444 * nptl_db/proc_service.h: Move to ...
5445 * sysdeps/nptl/proc_service.h: ... here.
5446 * nptl_db/thread_db.h: Move to ...
5447 * sysdeps/nptl/thread_db.h: ... here.
5448 * nptl/descr.h: Include <thread_db.h>.
5449
e442e40d
AZ
54502019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5451
5452 * io/Makefile (tests): Add tst-lockf.
5453 * io/lockf.c (lockf): Use __fcntl and only define for
5454 !__OFF_T_MATCHES_OFF64_T.
5455 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
5456 __OFF_T_MATCHES_OFF64_T case.
5457 * io/tst-lockf.c: New file.
5458 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
5459 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
5460 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
5461 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
5462 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
5463 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
5464 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
5465 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
5466 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
5467
bc10e22c
FW
54682019-02-15 Florian Weimer <fweimer@redhat.com>
5469
5470 [BZ #24211]
5471 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
5472 pd->result after the thread descriptor has been freed.
5473
365f05c7
JM
54742019-02-15 Joseph Myers <joseph@codesourcery.com>
5475
8a11f970
JM
5476 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
5477 from function return type.
5478
365f05c7
JM
5479 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
5480
6b5c8607 54812019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
56a731d4
JK
5482
5483 * scripts/test_printers_common.py: Set TERM to a known harmless
5484 value.
5485
712182c8
JM
54862019-02-14 Joseph Myers <joseph@codesourcery.com>
5487
5488 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
5489 (xdr_u_int): Likewise.
5490 (xdr_enum): Likewise.
5491 (xdr_bytes): Reword fall-through comment.
5492 (xdr_string): Likewise.
5493
eb76e5b4
AZ
54942019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5495
5496 [BZ #2421]
5497 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
5498 (tests): Add tst-join8 tst-join9.
5499 * nptl/lll_timedwait_tid.c: Remove file.
5500 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
5501 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
5502 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
5503 * nptl/pthread_join_common.c (timedwait_tid): New function.
5504 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
5505 is set.
5506 * nptl/tst-join5.c (thread_join): New function.
5507 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
5508 check.
5509 * nptl/tst-join8.c: New file.
5510 * nptl/tst-join9.c: Likewise.
5511 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
5512 lll_futex_timed_wait_cancel): Add generic macros.
5513 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
5514 Remove definitions.
5515 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
5516 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
5517 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
5518 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
5519 Remove function.
5520 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
5521 Likewise.
5522 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
5523 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
5524 (lll_futex_timed_wait_cancel): New macro.
5525
3904fd85
WD
55262019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
5527
5528 * benchtests/Makefile: Add malloc-simple benchmark.
5529 * benchtests/bench-malloc-simple.c: New benchmark.
5530
24ca04fe
SP
55312019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
5532
5533 * benchtests/bench-memmove.c (do_one_test): Remove unused
5534 ORIG_SRC.
5535 (do_test): Adjust.
5536 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
5537 ORIG_SRC.
5538 (do_test): Adjust.
5539
85bd1ddb
JW
55402019-01-13 Jim Wilson <jimw@sifive.com>
5541
5542 [BZ #24040]
5543 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
5544 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
5545 (func): New.
5546 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
5547 call func directly.
5548 * nptl/Makefile (tests): Add tst-unwind-thread.
5549 (CFLAGS-tst-unwind-thread.c): Define.
5550 * nptl/tst-unwind-thread.c: New file.
5551 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
5552 as undefined.
5553
86140c62
JM
55542019-02-13 Joseph Myers <joseph@codesourcery.com>
5555
10756268
JM
5556 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
5557 comment wording.
5558 * nis/nis_call.c (__do_niscall3): Likewise.
5559
05383720
JM
5560 * catgets/gencat.c (normalize_line): Use braces around empty
5561 'else' body.
5562 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
5563 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
5564 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
5565 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
5566 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
5567 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
5568 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
5569 definition.
5570
86140c62
JM
5571 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
5572 execlp returns.
5573
16f87cfd
WD
55742019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
5575
5576 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
5577 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
5578 * benchtests/bench-strchr.c (stupid_strchr): Remove.
5579 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
5580 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
5581 * benchtests/bench-strlen.c (builtin_strlen): Remove.
5582 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
5583 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
5584 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
5585 * benchtests/bench-strspn.c (stupid_strspn): Remove.
5586 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
5587 * benchtests/bench-bcopy.c: Delete file.
5588 * benchtests/bench-bzero.c: Likewise.
5589 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
5590 (simple_memccpy): Remove.
5591 (generic_memccpy): Add function.
5592 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
5593 * benchtests/bench-memmove.c (simple_bcopy): Remove.
5594 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
5595 (generic_mempcpy): Add new function.
5596 * benchtests/bench-memset.c (simple_bzero): Remove.
5597 (builtin_bzero): Remove.
5598 (builtin_memset): Remove.
5599 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
5600 (generic_rawmemchr): Add new function.
5601
0c6d82e9
FW
56022019-02-12 Florian Weimer <fweimer@redhat.com>
5603
5604 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
5605
b3fbfe81
AZ
56062019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5607
5608 [BZ #24122]
5609 * elf/Makefile (tests): Add tst-audit13.
5610 (modules-names): Add tst-audit13mod1.
5611 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
5612 rule.
5613 * elf/tst-audit13.c: New file.
5614 * elf/tst-audit13mod1.c: Likewise.
5615
3b856d09
FW
56162019-02-12 Florian Weimer <fweimer@redhat.com>
5617
5618 [BZ #24122]
5619 * elf/rtld.c (unload_audit_module): New function.
5620 (report_audit_module_load_error): Likewise.
5621 (load_audit_module): Likewise. Extracted from dl_main. Call
5622 _dl_close if the laversion symbol cannot be found. Use early
5623 returns for error handling. Add malloc error check. Check for a
5624 zero return value from la_version. Remove spurious comment about
5625 static TLS initialization. Remove useless casts.
5626 (notify_audit_modules_of_loaded_object): New function. Extracted
5627 from dl_main.
5628 (load_audit_module): Likewise.
5629 (dl_main): Call load_audit_modules.
5630
32db86d5
JM
56312019-02-12 Joseph Myers <joseph@codesourcery.com>
5632
5633 * elf/dl-exception.c (_dl_exception_create_format): Add
5634 fall-through comments.
5635 * elf/ldconfig.c (parse_conf_include): Likewise.
5636 * elf/rtld.c (print_statistics): Likewise.
5637 * locale/programs/charmap.c (parse_charmap): Likewise.
5638 * misc/mntent_r.c (__getmntent_r): Likewise.
5639 * posix/wordexp.c (parse_arith): Likewise.
5640 (parse_backtick): Likewise.
5641 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
5642 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
5643 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
5644
a51bc4fe
PC
56452019-02-11 Paul A. Clarke <pc@us.ibm.com>
5646
5647 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
5648 Use float instead of double.
5649
fb25b135
TS
56502019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
5651
5652 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
5653
32ea7299
JM
56542019-02-08 Joseph Myers <joseph@codesourcery.com>
5655
5656 * sysdeps/powerpc/bits/mathinline.h: Remove.
5657
eef4d4f8
FW
56582019-02-08 Florian Weimer <fweimer@redhat.com>
5659
5660 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
5661 * math/bits/math-finite.h: Move to ...
5662 * bits/math-finite.h: ... here.
5663
fdfbd47d
FW
56642019-02-08 Florian Weimer <fweimer@redhat.com>
5665
5666 * sysdeps/generic/bits/unistd_ext.h: Move to ...
5667 * bits/unistd_ext.h: here.
5668
11eb21c4
PF
56692019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
5670
5671 [BZ #21915]
5672 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
5673 * nss/tst-nss-files-hosts-long.c: New file.
5674 * nss/tst-nss-files-hosts-long.root: New directory.
5675 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
5676 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
5677
e47d82c9
FW
56782019-02-08 Florian Weimer <fweimer@redhat.com>
5679
5680 * include/bits/unistd_ext.h: Remove file.
5681 * posix/bits/unistd_ext.h: Move to ...
5682 * sysdeps/generic/bits/unistd_ext.h: ... here.
5683
8f89ab21
FW
56842019-02-08 Florian Weimer <fweimer@redhat.com>
5685
5686 * include/bits/unistd_ext.h: New file.
5687
144a794e
TS
56882019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
5689
5690 * time/tst-strftime2.c: Use array_length macros instead of magic
5691 numbers.
5692
669ff911
FW
56932019-02-08 Florian Weimer <fweimer@redhat.com>
5694
5695 [BZ #24161]
5696 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
5697 argument.
5698 * nptl/register-atfork.c (__run_fork_handlers): Only perform
5699 locking if the new do_locking argument is true.
5700 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
5701 __run_fork_handlers.
5702
d0bd87d4 57032019-02-08 Florian Weimer <fweimer@redhat.com>
1d0fc213
FW
5704
5705 [BZ #6399]
5706 Linux: Add gettid system call wrapper.
5707 * posix/Makefile (headers): Add bits/unistd_ext.h.
5708 * posix/bits/unistd_ext.h: New file.
5709 * posix/unistd.h: Include it.
5710 * manual/process.texi (Process Identification): Document gettid.
5711 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
5712 tst-gettid, tst-gettid-kill.
5713 (tst-gettid): Link with $(shared-thread-library).
5714 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
5715 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
5716 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
5717 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
5718 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
5719 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
5720 Add gettid.
5721 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
5722 Likewise.
5723 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
5724 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
5725 Likewise.
5726 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
5727 Likewise.
5728 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
5729 Likewise.
5730 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
5731 Likewise.
5732 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
5733 Likewise.
5734 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
5735 Likewise.
5736 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
5737 Likewise.
5738 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
5739 (GLIBC_2.30): Likewise.
5740 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
5741 (GLIBC_2.30): Likewise.
5742 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
5743 (GLIBC_2.30): Likewise.
5744 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
5745 (GLIBC_2.30): Likewise.
5746 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
5747 Likewise.
5748 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
5749 (GLIBC_2.30): Likewise.
5750 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
5751 (GLIBC_2.30): Likewise.
5752 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
5753 (GLIBC_2.30): Likewise.
5754 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
5755 (GLIBC_2.30): Likewise.
5756 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
5757 Likewise.
5758 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
5759 Likewise.
5760 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
5761 Likewise.
5762 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
5763 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
5764 Likewise.
5765 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
5766 Likewise.
5767 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
5768 Likewise.
5769 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
5770 Likewise.
5771 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
5772
225d9445 57732019-02-08 Florian Weimer <fweimer@redhat.com>
f289e656
FW
5774
5775 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
5776 compatibility symbols.
5777
823624bd
SL
57782019-02-07 Stefan Liebler <stli@linux.ibm.com>
5779
5780 [BZ #24180]
5781 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
5782 Add compiler barriers and comments.
5783
8311c83f
FW
57842019-02-07 Florian Weimer <fweimer@redhat.com>
5785
5786 * include/array_length.h (array_length): Do not use a statement
5787 expression and _Static_assert, so that array_length can be used at
5788 file scope and as a constant expression.
5789
94b63e66
FW
57902019-02-07 Florian Weimer <fweimer@redhat.com>
5791
5792 * support/xdlfcn.h (xdlmopen): Declare.
5793 * support/xdlmopen.c: New file.
5794 * support/Makefile (libsupport-routines): Add xdlmopen.
5795
c2d8f0b7
JM
57962019-02-06 Joseph Myers <joseph@codesourcery.com>
5797
5798 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
5799 before return type, without separate inline.
5800 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
5801 * elf/dl-tunables.h (tunable_is_name): Likewise.
5802 * malloc/malloc.c (do_set_trim_threshold): Likewise.
5803 (do_set_top_pad): Likewise.
5804 (do_set_mmap_threshold): Likewise.
5805 (do_set_mmaps_max): Likewise.
5806 (do_set_mallopt_check): Likewise.
5807 (do_set_perturb_byte): Likewise.
5808 (do_set_arena_test): Likewise.
5809 (do_set_arena_max): Likewise.
5810 (do_set_tcache_max): Likewise.
5811 (do_set_tcache_count): Likewise.
5812 (do_set_tcache_unsorted_limit): Likewise.
5813 * nis/nis_subr.c (count_dots): Likewise.
5814 * nptl/allocatestack.c (advise_stack_range): Likewise.
5815 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
5816 (do_sin): Likewise.
5817 (reduce_sincos): Likewise.
5818 (do_sincos): Likewise.
5819 * sysdeps/unix/sysv/linux/x86/elision-conf.c
5820 (do_set_elision_enable): Likewise.
5821 (TUNABLE_CALLBACK_FNDECL): Likewise.
5822
3b935595
FW
58232019-02-06 Florian Weimer <fweimer@redhat.com>
5824
5825 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
5826 (xdlsym): Use dlerror to detect a NULL symbol.
5827
b4333340
FW
58282019-02-06 Florian Weimer <fweimer@redhat.com>
5829
5830 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
5831 <stap-probe.h>.
5832 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
5833
b6d8a999
SL
58342019-02-06 Stefan Liebler <stli@linux.ibm.com>
5835
5836 * libio/tst-bz24153.c (wide): Use wide char format specifier.
5837
94eeeec0
SL
58382019-02-06 Stefan Liebler <stli@linux.ibm.com>
5839
5840 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
5841 __wmemcmp and weak alias to wmemcmp.
5842
bc79db3f
SL
58432019-02-06 Stefan Liebler <stli@linux.ibm.com>
5844
5845 [BZ #23403]
5846 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
5847 TLS_TCB_AT_TP tls variant.
5848 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
5849 Add alignment checks.
5850 * support/Makefile (libsupport-routines): Add xposix_memalign and
5851 xpthread_setstack.
5852 * support/support.h: Add xposix_memalign.
5853 * support/xthread.h: Add xpthread_attr_setstack.
5854 * support/xposix_memalign.c: New File.
5855 * support/xpthread_attr_setstack.c: Likewise.
5856
f1ac7455
FW
58572019-02-05 Florian Weimer <fweimer@redhat.com>
5858
5859 [BZ #24164]
5860 arm: Use "nr" constraint for Systemtap probes, to avoid the
5861 compiler using memory operands for constants, due to the "o"
5862 alternative in the default "nor" constraint.
5863 * include/stap-probe.h [USE_STAP_PROBE]: Include
5864 <stap-probe-machine.h>
5865 * sysdeps/generic/stap-probe-machine.h: New file.
5866 * sysdeps/arm/stap-probe-machine.h: Likewise.
5867
7a0dcfc6
JM
58682019-02-04 Joseph Myers <joseph@codesourcery.com>
5869
77dc0d86
JM
5870 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
5871 with 0, not tcache->entries[tc_idx].
5872
7a0dcfc6
JM
5873 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
5874 once.
5875
65f7767a
AS
58762019-02-04 Andreas Schwab <schwab@suse.de>
5877
5878 [BZ #16976]
5879 [BZ #17396]
5880 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
5881 looking up collating elements match against (wide) character
5882 sequence instead of name. Correct alignment adjustment.
5883 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
5884 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
5885 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
5886 (LOCALES): Add cs_CZ.ISO-8859-2.
5887 * posix/tst-fnmatch4.c: New file.
5888 * posix/tst-fnmatch5.c: New file.
5889 * include/wchar.h (__wmemcmp): Declare.
5890 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
5891 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
5892 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
5893 * sysdeps/s390/wmemcmp.c: Likewise.
5894
3f635fb4
L
58952019-02-04 H.J. Lu <hongjiu.lu@intel.com>
5896
5897 [BZ #24155]
5898 CVE-2019-7309
5899 * NEWS: Updated for CVE-2019-7309.
5900 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
5901 upper 32 bits of RDX register for x32. Use unsigned Jcc
5902 instructions, instead of signed.
5903 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
5904 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
5905
2ab5741b
FW
59062019-02-04 Florian Weimer <fweimer@redhat.com>
5907
5908 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
5909 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
5910 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
5911 Likewise.
5912 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
5913 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
5914 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
5915 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
5916 Likewise.
5917 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
5918 Likewise.
5919 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
5920 Likewise.
5921 (posix_spawn_file_actions_addopen): Likewise.
5922 (posix_spawn_file_actions_addclose): Likewise.
5923 (posix_spawn_file_actions_adddup2): Likewise.
5924 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
5925 qualifiers.
5926 (posix_spawn_file_actions_addfchdir_np): Likewise.
5927
8692ebdb
DN
59282019-02-04 David Newall <glibc@davidnewall.com>
5929
5930 elf: Implement --preload option for the dynamic linker.
5931 * elf/rtld.c (preloadarg): New variable.
5932 (handle_preload_list): Pass through “where” argument to
5933 do_preload.
5934 (dl_main): Handle "--preload" and add second call to
5935 handle_preload_list.
5936 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
5937 (tst-rtld-preload-OBJS): Set variable.
5938 (tst-rtld-preload.out): New target.
5939 * elf/tst-rtld-preload.sh: New file.
5940
5e10136b
MM
59412019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
5942
5943 * Makefile (testrun.sh): Exit in case of incorrect argument.
5944
221baae0
FW
59452019-02-04 Florian Weimer <fweimer@redhat.com>
5946
5947 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
5948 alignment gaps.
5949
b8c72381
FW
59502019-02-03 Florian Weimer <fweimer@redhat.com>
5951
5952 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
5953 implicit overflow checks.
5954
11f382ee
AJ
59552019-02-03 Aurelien Jarno <aurelien@aurel32.net>
5956
5957 * stdlib/isomac.c: Include <unistd.h>.
5958
77c7d55e
FW
59592019-02-03 Florian Weimer <fweimer@redhat.com>
5960
5961 * include/time.h (__tzfile_default): Use int, not long int, for
5962 the GMT offsets.
5963 * time/tzfile.c (struct ttinfo): Change type of the offset member
5964 to int.
5965 (__tzfile_read): Remove useless cast.
5966 (__tzfile_default): Adjust prototype.
5967 * time/tzset.c (tz_rule): Change type of the offset member to int.
5968 (parse_offset): Change the type of the sign variable to int.
5969
ee9941f9
FW
59702019-02-03 Florian Weimer <fweimer@redhat.com>
5971
5972 [BZ #24153]
5973 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
5974 * libio/getchar.c (getchar): Likewise.
5975 * libio/getchar_u.c (getchar_unlocked): Likewise.
5976 * libio/getwchar.c (getwchar): Likewise.
5977 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
5978 * libio/iogets.c (_IO_gets): Likewise.
5979 * libio/vscanf.c (_IO_vscanf): Likewise.
5980 * libio/vwscanf.c (__vwscanf): Likewise.
5981 * libio/tst-bz24153.c: New file.
5982 * libio/Makefile (tests): Add it.
5983
c70824b9
FW
59842019-02-02 Florian Weimer <fweimer@redhat.com>
5985
5986 [BZ #14829]
5987 * manual/resource.texi (Basic Scheduling Functions): Add
5988 portability note. Change process to task throughout the section.
5989 Remove incorrect comment about sched_yield as it affects
5990 tasks/threads, not entire processes.
5991 * sysdeps/unix/sysv/linux/bits/posix_opt.h
5992 (_POSIX_PRIORITY_SCHEDULING): Update comment.
5993
4dcbbc3b
JM
59942019-02-01 Joseph Myers <joseph@codesourcery.com>
5995
5996 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
5997 * configure: Regenerated.
5998 * manual/install.texi (Tools for Compilation): Update minimum GCC
5999 version.
6000 * INSTALL: Regenerated.
6001
6175507c
FW
60022019-02-01 Florian Weimer <fweimer@redhat.com>
6003
6004 * support/support_test_compare_string.c
6005 (support_test_compare_string): Use "string" in error message.
6006 * support/tst-test_compare_string.c (do_test): Adjust.
6007
baef1943
FW
60082019-02-01 Florian Weimer <fweimer@redhat.com>
6009
6010 * support/support_format_address_family.c
6011 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
6012
395599f0
FW
60132019-02-01 Florian Weimer <fweimer@redhat.com>
6014
6015 * manual/socket.texi (Internet Address Formats): Clarify the byte
6016 order of struct sockaddr_in, struct sockaddr_in6. Document
6017 sin6_flowinfo and sin6_scope_id.
6018
b06f4c00
WD
60192019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
6020
6021 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
6022 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
6023 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
6024 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
6025 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
6026 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
6027
83d1cc42
FX
60282019-02-01 Feng Xue <fxue@os.amperecomputing.com>
6029
6030 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
6031 [!MEMCHR](MEMCHR): Set to __memchr.
6032 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
6033 Add memchr_generic and memchr_nosimd.
6034 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
6035 (__libc_ifunc_impl_list): Add memchr ifuncs.
6036 * sysdeps/aarch64/multiarch/memchr.c: New file.
6037 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
6038 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
6039
c7d3890f
FX
60402019-02-01 Feng Xue <fxue@os.amperecomputing.com>
6041
6042 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
6043 Add memset_emag.
6044 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
6045 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
6046 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
6047 Add IS_EMAG check for ifunc dispatch.
6048 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
6049 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
6050
07c3d1ec
FX
60512019-02-01 Feng Xue <fxue@os.amperecomputing.com>
6052
6053 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
6054 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
6055 Add emag.
6056 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
6057 New macro.
6058
114f792e
SL
60592019-02-01 Stefan Liebler <stli@linux.ibm.com>
6060
6061 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
6062
d5627550
VG
60632019-01-31 Vineet Gupta <vgupta@synopsys.com>
6064
6065 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
6066 syscall-template file.
6067
5fc9ed4c
CD
60682019-01-31 Carlos O'Donell <carlos@redhat.com>
6069 Torvald Riegel <triegel@redhat.com>
6070 Rik Prohaska <prohaska7@gmail.com>
6071
6072 [BZ# 23844]
6073 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
6074 tst-rwlock-trywrlock-stall.
6075 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
6076 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
6077 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
6078 Set __wrphase_fute to 1 only if we started the write phase.
6079 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
6080 * nptl/tst-rwlock-trywrlock-stall.c: New file.
6081 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
6082 * support/xpthread_rwlock_destroy.c: New file.
6083 * support/xthread.h: Declare xpthread_rwlock_destroy.
6084
932329a5
JM
60852019-02-01 Joseph Myers <joseph@codesourcery.com>
6086
6087 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
6088 version to 4.0.2.
6089
5f10701f
PP
60902019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
6091
6092 [BZ #24051]
6093 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
6094 * libio/fileops.c (_IO_new_file_underflow): Likewise
6095 * libio/wfileops.c (_IO_wfile_underflow): Likewise
6096 * libio/putchar.c (putchar): Likewise.
6097 * libio/putchar_u.c (putchar_unlocked): Likewise.
6098 * libio/putwchar.c (putchar): Likewise.
6099 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
6100 * libio/tst-bz24051.c: New test.
6101 * libio/Makefile (tests): Add tst-bz24051
6102
583dd860
PE
61032019-01-31 Paul Eggert <eggert@cs.ucla.edu>
6104
b626c5aa 6105 CVE-2019-9169
583dd860
PE
6106 regex: fix read overrun [BZ #24114]
6107 Problem found by AddressSanitizer, reported by Hongxu Chen in:
6108 https://debbugs.gnu.org/34140
6109 * posix/regexec.c (proceed_next_node):
6110 Do not read past end of input buffer.
6111
2bac7daa
FW
61122019-01-31 Florian Weimer <fweimer@redhat.com>
6113
6114 [BZ #24059]
6115 * nss/nss_files/files-alias.c (get_next_alias): Handle
6116 continuation line without newline at the end.
6117 * nss/tst-nss-files-alias-truncated.c: New file.
6118 * nss/Makefile [$(build-shared)] (tests): Add
6119 tst-nss-files-alias-truncated.
6120 (tst-nss-files-alias-truncated): Link with libnss_files.so.
6121 * support/namespace.h (struct support_chroot_configuration): Add
6122 aliases member.
6123 (struct support_chroot): Add path_aliases member.
6124 * support/support_chroot.c (support_chroot_create): Handle
6125 aliases.
6126 (support_chroot_free): Free path_aliases.
6127
330c9d0d
SP
61282019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
6129
de44ab67
SP
6130 * version.h (RELEASE): Set to "development".
6131 (VERSION): Set to "2.29.9000".
6132 * NEWS: Add section for 2.30.
6133
56c86f5d
SP
6134 * version.h (RELEASE): Set to "stable".
6135 (VERSION): Set to "2.29".
6136 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
6137
330c9d0d
SP
6138 * NEWS: Add the list of bugs fixed in 2.29.
6139 * manual/contrib.texi: Update contributors list with some more
6140 names.
6141 * manual/install.texi: Update latest versions of packages
6142 tested.
6143 * INSTALL: Regenerated.
6144
e1e47c91
SP
61452019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
6146
6147 * po/be.po: Update translations.
6148 * po/bg.po: Likewise.
6149 * po/ca.po: Likewise.
6150 * po/cs.po: Likewise.
6151 * po/da.po: Likewise.
6152 * po/de.po: Likewise.
6153 * po/el.po: Likewise.
6154 * po/eo.po: Likewise.
6155 * po/es.po: Likewise.
6156 * po/fi.po: Likewise.
6157 * po/fr.po: Likewise.
6158 * po/gl.po: Likewise.
6159 * po/hr.po: Likewise.
6160 * po/hu.po: Likewise.
6161 * po/ia.po: Likewise.
6162 * po/id.po: Likewise.
6163 * po/it.po: Likewise.
6164 * po/ja.po: Likewise.
6165 * po/ko.po: Likewise.
6166 * po/lt.po: Likewise.
6167 * po/nb.po: Likewise.
6168 * po/nl.po: Likewise.
6169 * po/pl.po: Likewise.
6170 * po/pt_BR.po: Likewise.
6171 * po/ru.po: Likewise.
6172 * po/rw.po: Likewise.
6173 * po/sk.po: Likewise.
6174 * po/sl.po: Likewise.
6175 * po/sv.po: Likewise.
6176 * po/tr.po: Likewise.
6177 * po/uk.po: Likewise.
6178 * po/vi.po: Likewise.
6179 * po/zh_CN.po: Likewise.
6180 * po/zh_TW.po: Likewise.
6181
8d016826
UB
61822019-01-24 Uroš Bizjak <ubizjak@gmail.com>
6183
6184 [BZ #24130]
6185 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
6186 of $f3 register on $y_is_neg path.
6187
a0bb5abd
ST
61882019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
6189
b96e22d0 6190 [BZ #24110]
a0bb5abd
ST
6191 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
6192 sigaltstack.ss_flags.
6193
b22eed37
TS
61942019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
6195
6196 [BZ #23758]
6197 * manual/time.texi (strftime): Document "%Ey".
6198 * time/strftime_l.c (__strftime_internal): Set the default width
6199 padding with zero of "%Ey" to 2.
6200
32f600a2
TS
6201 [BZ #24096]
6202 * manual/time.texi (strftime): Document "%EC" and "%EY".
6203 * time/Makefile (tests): Add tst-strftime2.
6204 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
6205 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
6206 override padding for "%Ey".
6207 If an optional flag ('_' or '-') is specified to "%EY", interpret the
6208 "%Ey" in the subformat as if decorated with that flag.
6209 * time/tst-strftime2.c: New file.
6210
8e889c5d
AZ
62112019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6212
3367acdb
AZ
6213 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
6214 are not defined.
6215
8e889c5d
AZ
6216 [BZ #24122]
6217 * elf/Makefile (tests): Add tst-audit13.
6218 (modules-names): Add tst-audit13mod1.
6219 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
6220 rule.
6221 * elf/rtld.c (dl_main): Handle invalid audit module version.
6222 * elf/tst-audit13.c: New file.
6223 * elf/tst-audit13mod1.c: Likewise.
6224
a95dc01c
ST
62252019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
6226
6227 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
6228 returned by __hurd_at_flags.
ee4d7902
ST
6229 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
6230 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
6231 directly instead of __hurd_file_name_lookup.
a95dc01c 6232
712f1167
JM
62332019-01-21 Joseph Myers <joseph@codesourcery.com>
6234
6235 * scripts/build-many-glibcs.py (Context.checkout): Default
6236 binutils version to 2.32 branch.
6237
108bc404
FW
62382019-01-21 Florian Weimer <fweimer@redhat.com>
6239
6240 [BZ #20018]
6241 CVE-2016-10739
6242 resolv: Reject trailing characters in host names
6243 * include/arpa/inet.h (__inet_aton_exact): Declare.
6244 (inet_aton): Remove hidden prototype. No longer used internally.
6245 * nscd/gai.c (__inet_aton): Do not define.
6246 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
6247 * nss/digits_dots.c (__inet_aton): Likewise.
6248 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
6249 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
6250 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
6251 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
6252 (tst-resolv-trailing): Likewise.
6253 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
6254 libc.
6255 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
6256 Make static. Add endp parameter.
6257 (__inet_aton_exact): New function.
6258 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
6259 (__inet_addr): Call inet_aton_end.
6260 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
6261 not just IPv6. Call __inet_aton_exact.
6262 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
6263 (tests): Make const. Add additional test cases with trailing
6264 characters.
6265 (do_test): Use array_length.
6266 * resolv/tst-inet_aton_exact.c: New file.
6267 * resolv/tst-resolv-trailing.c: Likewise.
6268 * resolv/tst-resolv-nondecimal.c: Likewise.
6269 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
6270
5165de69
L
62712019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6272
6273 [BZ# 24097]
6274 CVE-2019-6488
6275 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
6276 Clear the upper 32 bits of RSI register.
6277 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
6278 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
6279 and tst-size_t-wcsnlen.
6280 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
6281 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
6282
c7c54f65
L
62832019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6284
6285 [BZ# 24097]
6286 CVE-2019-6488
6287 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
6288 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
6289 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
6290 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
6291 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
6292
ee915088
L
62932019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6294
6295 [BZ# 24097]
6296 CVE-2019-6488
6297 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
6298 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
6299 * sysdeps/x86_64/strcmp.S: Likewise.
6300 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
6301 tst-size_t-strncmp and tst-size_t-wcsncmp.
6302 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
6303 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
6304 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
6305
82d0b4a4
L
63062019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6307
6308 [BZ# 24097]
6309 CVE-2019-6488
6310 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
6311 RDX_LP for length. Clear the upper 32 bits of RDX register.
6312 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
6313 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
6314 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
6315 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
6316
ecd8b842
L
63172019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6318
6319 [BZ# 24097]
6320 CVE-2019-6488
6321 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
6322 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
6323 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
6324 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
6325
231c5676
L
63262019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6327
6328 [BZ# 24097]
6329 CVE-2019-6488
6330 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
6331 length. Clear the upper 32 bits of RDX register.
6332 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
6333 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
6334 Likewise.
6335 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
6336 Likewise.
6337 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
6338 tst-size_t-wmemchr.
6339 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
6340
b304fc20
L
63412019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6342
6343 [BZ# 24097]
6344 CVE-2019-6488
6345 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
6346 length. Clear the upper 32 bits of RDX register.
6347 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
6348 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
6349 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
6350 tst-size_t-wmemcmp.
6351 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
6352 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
6353
97700a34
L
63542019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6355
6356 [BZ# 24097]
6357 CVE-2019-6488
6358 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
6359 upper 32 bits of RDX register.
6360 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
6361 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
6362 tst-size_t-wmemchr.
6363 * sysdeps/x86_64/x32/test-size_t.h: New file.
6364 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
6365 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
6366
6ca53a24
FW
63672019-01-18 Florian Weimer <fweimer@redhat.com>
6368
6369 [BZ #24112]
6370 resolv: Do not send queries for non-host-names in nss_dns.
6371 * resolv/nss_dns/dns-host.c (check_name): New function.
6372 (_nss_dns_gethostbyname2_r): Use it.
6373 (_nss_dns_gethostbyname_r): Likewise.
6374 (_nss_dns_gethostbyname4_r): Likewise.
6375
5e30b8ef
FW
63762019-01-21 Florian Weimer <fweimer@redhat.com>
6377
6378 * resolv/inet_addr.c: Reformat to GNU style.
6379 (__inet_addr, __inet_aton): Update comment.
6380
71effcea
FW
63812019-01-18 Florian Weimer <fweimer@redhat.com>
6382
6383 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
6384 ("malloc: Use current (C11-style) atomics for fastbin access").
6385 This commit introduces a substantial performance regression on
6386 POWER and Aarch64.
6387 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
6388 (REMOVE_FB): Define.
6389 (_int_malloc): Use it and reindent.
6390 (_int_free): Use CAS loop with
6391 catomic_compare_and_exchange_val_rel.
6392 (malloc_consolidate): Use atomic_exchange_acq.
6393
6394
562f4362
L
63952019-01-18 H.J. Lu <hongjiu.lu@intel.com>
6396
6397 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
6398 -Wl,-z,now.
6399 (LDFLAGS-tst-minsigstksz-2): Likewise.
6400 (LDFLAGS-tst-minsigstksz-3): Likewise.
6401 (LDFLAGS-tst-minsigstksz-3a): Likewise.
6402 (LDFLAGS-tst-minsigstksz-4): Likewise.
6403
80dfa298
TS
64042019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
6405
6406 * manual/time.texi (strftime): Fix the wording to "alternative" rather
6407 than "alternate".
6408
008b598e
PC
64092019-01-16 Paul A. Clarke <pc@us.ibm.com>
6410
6411 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
6412
fbbc9a4e
ZW
64132019-01-16 Zack Weinberg <zackw@panix.com>
6414
6b5c8607
TS
6415 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
6416 (xget_sigstack_location): New test support functions.
6417 * support/xsigstack.c: New file, implementing them.
6418 * support/tst-xsigstack.c: New test for them.
6419 * support/Makefile: Update.
fbbc9a4e 6420
6b5c8607
TS
6421 * signal/tst-minsigstksz-1.c
6422 * signal/tst-minsigstksz-2.c
6423 * signal/tst-minsigstksz-3.c
6424 * signal/tst-minsigstksz-3a.c
6425 * signal/tst-minsigstksz-4.c: New tests.
6426 * signal/Makefile: Run them.
fbbc9a4e 6427
5f1135e4
SP
64282019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
6429
6430 * po/libc.pot: Regenerate.
6431
ecdacd34
TMQMF
64322019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
6433
6434 * math/libm-test-fma.inc (fma_test_data): Set
6435 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
6436
56054664
RA
64372019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
6438
6439 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
6440 (do_test): Changed __vector __int128_t to __vector unsigned int.
6441
1a153e47
LS
64422019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6443
6444 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
6445 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
6446 stpcpy-avx2 and stpncpy-avx2.
6447 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
6448 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
6449 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
6450 and __stpncpy_avx2.
6451 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
6452 ifunc-strcpy.h}: rename header for a more generic name.
6453 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
6454 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
6455 AVX unaligned load is fast and vzeroupper is preferred.
6456 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
6457 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
6458 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
6459 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
6460 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
6461 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
6462
a1b02ae7
DL
64632019-01-12 Dmitry V. Levin <ldv@altlinux.org>
6464
6465 * argp/argp-help.c: Fix typo in comment.
6466 * misc/sys/cdefs.h: Likewise.
6467 * posix/regexec.c (sift_states_iter_mb): Likewise.
6468 * socket/sockatmark.c: Likewise.
6469 * socket/sys/socket.h: Likewise.
6470 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
6471 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
6472 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
6473 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
6474 * sysdeps/unix/sockatmark.c: Likewise.
6475 * time/strptime_l.c: Likewise.
6476
5cbbf01e
TS
64772019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
6478
6479 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
6480 missing space after the cast of "_NL_CURRENT".
6481
0bc9bdf1
RA
64822019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
6483
6484 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
6485 ifdef to fix read of VSCR.
6486 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
6487 tst-ucontext-ppc64-vscr.c to test list.
6488 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
6489
5494af04
AH
64902019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
6491
6492 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
6493 fall-through.
6494
e17f63ff
JW
64952019-01-09 Jim Wilson <jimw@sifive.com>
6496
6497 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
6498
02f440c1
WD
64992019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
6500
6501 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
6502 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
6503 __memcpy_falkor for ares.
6504 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
6505 Add new define.
6506 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
6507 Add ares cpu.
6508
69da3c9e
L
65092019-01-07 H.J. Lu <hongjiu.lu@intel.com>
6510
6511 [BZ #24066]
6512 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
6513 4_FP_W_TYPEs are used for IEEE quad precision.
6514 * soft-fp/extendhftf2.c: Likewise.
6515 * soft-fp/extendsftf2.c: Likewise.
6516 * soft-fp/extendxftf2.c: Likewise.
6517 * soft-fp/trunctfdf2.c: Likewise.
6518 * soft-fp/trunctfhf2.c: Likewise.
6519 * soft-fp/trunctfsf2.c: Likewise.
6520 * soft-fp/trunctfxf2.c: Likewise.
6521 * sysdeps/alpha/ots_cvttx.c: Likewise.
6522 * sysdeps/alpha/ots_cvtxt.c: Likewise.
6523 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
6524 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
6525 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
6526 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
6527 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
6528 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
6529 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
6530 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
6531 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
6532 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
6533 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
6534 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
6535 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
6536 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
6537 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
6538 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
6539
2ef42716
AJ
65402019-01-07 Aurelien Jarno <aurelien@aurel32.net>
6541
6542 [BZ #24024]
6543 * Makeconfig: Build libm with -fno-math-errno but build the remaining
6544 code with -fmath-errno.
6545 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
6546 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
6547 * string/test-strerror-errno.c: New file.
6548
7395f3a0
AJ
65492019-01-07 Aurelien Jarno <aurelien@aurel32.net>
6550
6551 [BZ #24046]
6552 * localedata/locales/en_US (date_fmt): Add, set to
6553 "%a %d %b %Y %r %Z".
6554
010fe231
FW
65552019-01-07 Florian Weimer <fweimer@redhat.com>
6556
6557 [BZ #24063]
6558 * manual/arith.texi (Math Error Reporting): Use @code{errno}
6559 instead of @var{errno}.
6560 (Parsing of Integers): Likewise.
6561 (Parsing of Floats): Likewise.
6562 * manual/filesys.texi (Working with Directory Trees): Likewise.
6563 (Temporary Files): Likewise.
6564 * manual/job.texi (Terminal Access Functions): Likewise.
6565 * manual/llio.texi (Synchronizing I/O): Likewise.
6566 * manual/math.texi (SVID Random): Likewise.
6567 * manual/message.texi (The catgets Functions): Likewise.
6568 (Translation with gettext): Likewise.
6569 (Locating gettext catalog): Likewise.
6570 (Charset conversion in gettext): Likewise.
6571 * manual/nss.texi (NSS Module Function Internals): Likewise.
6572 * manual/search.texi (Hash Search Function): Likewise.
6573 * manual/setjmp.texi (System V contexts): Likewise.
6574 * manual/time.texi (Sleeping): Likewise.
6575 * manual/users.texi (Lookup User): Likewise.
6576 (Lookup Group): Likewise.
6577
b79dc8d0
AZ
65782019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6579
6580 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
6581 fix typo.
6582
890461fe 65832019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
27c5e756
MJ
6584
6585 [BZ #19444]
6586 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
6587 __builtin_unreachable for default case in switch.
6588 (__ieee754_yn): Likewise.
6589 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
6590 (__ieee754_ynl): Likewise.
6591 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
6592 (__ieee754_ynl): Likewise.
6593 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
6594 (__ieee754_ynl): Likewise.
6595
8b18d418
SN
65962019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
6597
6598 * manual/maint.texi: Use @{ and @}.
6599
4392898d
FW
66002019-01-04 Florian Weimer <fweimer@redhat.com>
6601
6602 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
6603 function.
6604 (do_in_chroot_1): Call it.
6605 (run_chroot_tests):
6606 Improve error reporting in case it is not possible to create a
6607 collision for the PTY name required by the test.
6608
17cc27d5
AZ
66092019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6610
ce7eb0e9
AZ
6611 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
6612 lll_wait_tid with timeout.
6613 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
6614 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
6615 futex_reltimed_wait_cancelable for cancelabla mode.
6616 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
6617 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
6618 macros.
6619 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
6620 * sysdeps/posix/waitid.c (__sigwait): Likewise.
6621 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
6622 SYSCALL_CANCEL_NCS): New macro.
6623 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
6624 (lll_timedwait_tid): Remove macro.
6625 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
6626 Likewise.
6627 (lll_timedwait_tid): Likewise.
6628 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
6629 Likewise.
6630 (lll_timedwait_tid): Likewise.
6631 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
6632 Likewise.
6633 (lll_timedwait_tid): Likewise.
6634 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
6635 Use INTERNAL_SYSCALL_CANCEL.
6636 * sysdeps/unix/sysv/linux/futex-internal.h
6637 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
6638 instead of __pthread_{enable,disable}_asynccancel.
6639 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
6640 (lll_futex_wait_cancel): New macro.
6641
0b13e255
AZ
6642 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
6643 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
6644
85c828a4
AZ
6645 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
6646 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
6647
d0d7f85f
AZ
6648 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
6649 in backtrace analysis.
6650 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
6651 side-effects.
6652 (tf_send): Likewise.
6653
17cc27d5
AZ
6654 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
6655 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
6656 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
6657 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
6658 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
6659 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
6660 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
6661 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
6662 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
6663 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
6664 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
6665 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
6666 Likewise.
6667 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
6668 tst-cancel-wrappers.sh.
6669 (generated): Remove tst-cancel-wrappers.out.
6670 (tst-cancel-wrappers.out): Remove rule.
6671 * nptl/tst-cancel-wrappers.sh: Remove file.
6672
7d7af8f1
SN
66732019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
6674
6675 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
6676 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
6677 Update.
6678
805334b2
AZ
66792019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6680
6681 [BZ #23640]
6682 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
6683 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
6684 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
6685 close-on-exec reset for adddup2 file action.
6686 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
6687
03992356
ZW
66882019-01-03 Zack Weinberg <zackw@panix.com>
6689
6690 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
6691 parameter. Only use deprecated scanf when __USE_GNU is defined
6692 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
6693 than 201103L, whichever is relevant for the language being compiled.
6694
6695 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
6696 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
6697 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
6698 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
6699 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
6700
6701 * libio/iovsscanf.c
6702 * libio/fwscanf.c
6703 * libio/iovswscanf.c
6704 * libio/swscanf.c
6705 * libio/vscanf.c
6706 * libio/vwscanf.c
6707 * libio/wscanf.c
6708 * stdio-common/fscanf.c
6709 * stdio-common/scanf.c
6710 * stdio-common/vfscanf.c
6711 * stdio-common/vfwscanf.c
6712 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
6713 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
6714 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
6715 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
6716 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
6717 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
6718 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
6719 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
6720 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
6721 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
6722 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
6723 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
6724 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
6725 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
6726 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
6727
6728 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
6729 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
6730 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
6731 not sscanf.
6732 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
6733 with a preprocessor macro.
6734
6735 * stdio-common/bug21.c, stdio-common/scanf14.c:
6736 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
6737 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
6738 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
6739 to xscanf, xfscanf, xsscanf.
6740
6741 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
6742 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
6743 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
6744 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
6745 xfscanf, xsscanf.
6746 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
6747 override feature selection macros or provide definitions of u_char etc.
6748 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
6749 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
6750 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
6751 with -std=gnu89.
6752
8083afa5
AZ
67532019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6754
6f343c1f
AZ
6755 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6756 bits/termios-misc.h.
6757 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
6758 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
6759 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
6760 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
6761 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
6762 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
6763
51f4beb0
AZ
6764 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
6765 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
6766 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
6767 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
6768 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
6769 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
6770 termios-misc.h.
6771 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
6772 (sysdep_headers): Add termios-misc.h.
6773
f69c5cb2
AZ
6774 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
6775 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
6776 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
6777
3aa4a07e
AZ
6778 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6779 termios-tcflow.h.
6780 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
6781 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
6782 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
6783 TCSAFLUSH): Move to termios-tcflow.h.
6784 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
6785 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
6786 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
6787 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
6788
22679ddf
AZ
6789 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6790 termios-c_lflag.h.
6791 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
6792 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
6793 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
6794 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
6795 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
6796 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
6797 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
6798 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
6799 Likewise.
6800 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
6801 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
6802 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
6803 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
6804
72eb6ecc
AZ
6805 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6806 termios-c_cflag.h.
6807 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
6808 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
6809 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
6810 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
6811 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
6812 termios-c_cflag.h.
6813 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
6814 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
6815 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
6816 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
6817
9c5d0d02
AZ
6818 [BZ #23783]
6819 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6820 termios-baud.h.
6821 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
6822 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
6823 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
6824 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
6825 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
6826 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
6827 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
6828 __MAX_BAUD): Move to termios-baud.h.
6829 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
6830 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
6831 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
6832 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
6833 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
6834
7b832018
AZ
6835 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
6836 termios-c_oflag.h.
6837 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
6838 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
6839 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
6840 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
6841 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
6842 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
6843 termios-c_oflag.h.
6844 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
6845 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
6846 FFR1): Likewise.
6847 [USE_MISC] (XTABS): Likewise.
6848 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
6849 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
6850 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
6851 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
6852
3127003e
AZ
6853 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
6854 termios-c_iflag.h.
6855 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
6856 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
6857 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
6858 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
6859 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
6860 IUTF8): Move to termios-c_iflag.h.
6861 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
6862 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
6863 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
6864 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
6865
48c1dd96
AZ
6866 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
6867 termios-cc.h.
6868 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
6869 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
6870 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
6871 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
6872 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
6873 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
6874 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
6875 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
6876 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
6877 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
6878 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
6879 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
6880
e5a50db3
AZ
6881 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
6882 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
6883 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
6884 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
6885 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6886 termios-struct.h.
6887 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
6888 termios-struct.h.
6889 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
6890 Likewise.
6891 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
6892 Likewise.
6893 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
6894 Likewise.
6895 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
6896 Likewise.
6897 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
6898 _HAVE_C_OSPEED): Define.
6899 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
6900 _HAVE_C_OSPEED): Likewise.
6901 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
6902 _HAVE_C_OSPEED): Likewise.
6903 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
6904 (cfsetospeed): Check for define value instead of existence.
6905 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
6906 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
6907 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
6908 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
6909 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
6910
8083afa5
AZ
6911 [BZ #17783]
6912 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
6913 Define.
6914 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
6915 (TIOCSER_TEMT): Likewise.
6916 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
6917 (TEOCSER_TEMT): Likewise.
6918
4d7d7dc6
P
69192019-01-02 PanderMusubi <pander@users.sourceforge.net>
6920
6921 [BZ #24011]
6922 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
6923
8e291a29
JM
69242019-01-02 Joseph Myers <joseph@codesourcery.com>
6925
6926 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
6927
55137f7d
ST
69282019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
6929
6930 * sysdeps/htl/pt-barrierattr-setpshared.c
6931 (pthread_barrierattr_setpshared): Add stub warning.
6932 * sysdeps/htl/pt-condattr-setpshared.c
6933 (pthread_condattr_setpshared): Likewise.
6934 * sysdeps/htl/pt-mutexattr-setpshared.c
6935 (pthread_mutexattr_setpshared): Likewise.
6936 * sysdeps/htl/pt-rwlockattr-setpshared.c
6937 (pthread_rwlockattr_setpshared): Likewise.
6938 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
6939 (pthread_mutexattr_setpshared): Likewise.
6940
2ce09e01
JM
69412019-01-02 Joseph Myers <joseph@codesourcery.com>
6942
acb55dcb
JM
6943 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
6944 constants to match with Linux 4.20.
6945
2ce09e01
JM
6946 * sysdeps/mips/mips32/libm-test-ulps: Update.
6947 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
6948
fe20bb1d
AJ
69492019-01-02 Aurelien Jarno <aurelien@aurel32.net>
6950
6951 [BZ #24034]
6952 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
6953 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
6954 than __typeof (...) for the a_ptr variable.
6955
2d9837c1
GG
69562019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6957
6958 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
6959 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
6960 * libio/Makefile (tests): Add tst-sprintf-ub and
6961 tst-sprintf-chk-ub.
6962 (CFLAGS-tst-sprintf-ub.c): New variable.
6963 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
6964 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
6965 destination buffer and check for overflows in fortified mode.
6966 * libio/libioP.h (PRINTF_CHK): New macro.
6967 * libio/tst-sprintf-chk-ub.c: New file.
6968 * libio/tst-sprintf-ub.c: Likewise.
6969
d5c6df0b 69702019-01-02 Florian Weimer <fweimer@redhat.com>
8c1aafc1
FW
6971
6972 [BZ #24018]
6973 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
6974 failure.
6975
66081e38
FW
69762019-01-02 Florian Weimer <fweimer@redhat.com>
6977
6978 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
6979
04277e02
JM
69802019-01-01 Joseph Myers <joseph@codesourcery.com>
6981
6ef3d225
JM
6982 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
6983 macro.
6984
e3d4e292
JM
6985 * sysdeps/unix/sysv/linux/netpacket/packet.h
6986 (PACKET_IGNORE_OUTGOING): New macro.
6987
f4507797
JM
6988 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
6989 macro.
6990
47ad5e1a
JM
6991 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
6992 version to 4.20.
6993 (riscv_flush_icache): New syscall.
6994
7628a1b0
JM
6995 * manual/texinfo.tex: Update to version 2018-12-28.17 with
6996 trailing whitespace removed.
6997 * scripts/config.guess: Update to version 2019-01-01.
6998 * scripts/config.sub: Update to version 2019-01-01.
6999 * scripts/move-if-change: Update from gnulib.
7000
c9123888
JM
7001 * NEWS: Update copyright dates.
7002 * catgets/gencat.c (print_version): Likewise.
7003 * csu/version.c (banner): Likewise.
7004 * debug/catchsegv.sh: Likewise.
7005 * debug/pcprofiledump.c (print_version): Likewise.
7006 * debug/xtrace.sh (do_version): Likewise.
7007 * elf/ldconfig.c (print_version): Likewise.
7008 * elf/ldd.bash.in: Likewise.
7009 * elf/pldd.c (print_version): Likewise.
7010 * elf/sotruss.sh: Likewise.
7011 * elf/sprof.c (print_version): Likewise.
7012 * iconv/iconv_prog.c (print_version): Likewise.
7013 * iconv/iconvconfig.c (print_version): Likewise.
7014 * locale/programs/locale.c (print_version): Likewise.
7015 * locale/programs/localedef.c (print_version): Likewise.
7016 * login/programs/pt_chown.c (print_version): Likewise.
7017 * malloc/memusage.sh (do_version): Likewise.
7018 * malloc/memusagestat.c (print_version): Likewise.
7019 * malloc/mtrace.pl: Likewise.
7020 * manual/libc.texinfo: Likewise.
7021 * nptl/version.c (banner): Likewise.
7022 * nscd/nscd.c (print_version): Likewise.
7023 * nss/getent.c (print_version): Likewise.
7024 * nss/makedb.c (print_version): Likewise.
7025 * posix/getconf.c (main): Likewise.
7026 * scripts/test-installation.pl: Likewise.
7027 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
7028
04277e02
JM
7029 * All files with FSF copyright notices: Update copyright dates
7030 using scripts/update-copyrights.
7031 * locale/programs/charmap-kw.h: Regenerated.
7032 * locale/programs/locfile-kw.h: Likewise.
7033
e740e5b1
JM
70342018-12-31 Joseph Myers <joseph@codesourcery.com>
7035
7036 * timezone/zdump.c: Update from tzcode 2018i.
7037 * timezone/zic.c: Likewise.
7038
9b7f98b3
PE
70392018-12-31 Paul Eggert <eggert@cs.ucla.edu>
7040
7041 regex: improve Gnulib port to AIX
7042 From the glibc point of view, this removes duplicate macro
7043 definitions and is obviously safe.
7044 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
7045 * posix/regex_internal.h:
7046 (__attribute__, __attribute_warn_unused_result__):
7047 Remove; already defined elsewhere.
7048
b50dd3bc
FW
70492018-12-31 Florian Weimer <fw@deneb.enyo.de>
7050
7051 [BZ #24027]
7052 * malloc/malloc.c (_int_realloc): Always call memcpy for the
7053 copying operation. (ncopies had the wrong type, resulting in an
7054 integer wraparound and too few elements being copied.)
7055
0b9c8490
L
70562018-12-31 H.J. Lu <hongjiu.lu@intel.com>
7057
7058 [BZ #24022]
7059 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
7060 <asm/syscalls.h> exists with __has_include__ before including it.
7061
01047fa6
JM
70622018-12-31 Joseph Myers <joseph@codesourcery.com>
7063
7064 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7065 version to 4.20.
7066
6b5c8607 70672018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
065957a3
JW
7068
7069 * hurd/lookup-retry: Include <unistd.h>.
7070 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
7071 Release it on return. Handle "pid" magical lookup retry.
7072
989182c4
RL
70732018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
7074
7075 [BZ #10496]
7076 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
7077 (t_fmt_ampm): Likewise.
7078 * localedata/locales/aa_ER (t_fmt): Likewise.
7079 (t_fmt_ampm): Likewise.
7080 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
7081 (t_fmt_ampm): Likewise.
7082 * localedata/locales/aa_ET (t_fmt): Likewise.
7083 (t_fmt_ampm): Likewise.
7084 * localedata/locales/am_ET (t_fmt): Likewise.
7085 (t_fmt_ampm): Likewise.
7086 * localedata/locales/byn_ER (t_fmt): Likewise.
7087 (t_fmt_ampm): Likewise.
7088 * localedata/locales/om_ET (t_fmt): Likewise.
7089 (t_fmt_ampm): Likewise.
7090 * localedata/locales/sid_ET (t_fmt): Likewise.
7091 (t_fmt_ampm): Likewise.
7092 * localedata/locales/so_DJ (t_fmt): Likewise.
7093 (t_fmt_ampm): Likewise.
7094 * localedata/locales/so_ET (t_fmt): Likewise.
7095 (t_fmt_ampm): Likewise.
7096 * localedata/locales/so_SO (t_fmt): Likewise.
7097 (t_fmt_ampm): Likewise.
7098 * localedata/locales/ti_ER (t_fmt): Likewise.
7099 (t_fmt_ampm): Likewise.
7100 * localedata/locales/ti_ET (t_fmt): Likewise.
7101 (t_fmt_ampm): Likewise.
7102 * localedata/locales/tig_ER (t_fmt): Likewise.
7103 (t_fmt_ampm): Likewise.
7104 * localedata/locales/wal_ET (t_fmt): Likewise.
7105 (t_fmt_ampm): Likewise.
7106
7107 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
7108 * localedata/locales/ar_IN (t_fmt): Likewise.
7109 * localedata/locales/bhb_IN (t_fmt): Likewise.
7110 * localedata/locales/bho_IN (t_fmt): Likewise.
7111 * localedata/locales/bi_VU (t_fmt): Likewise.
7112 * localedata/locales/bn_BD (t_fmt): Likewise.
7113 * localedata/locales/bn_IN (t_fmt): Likewise.
7114 * localedata/locales/brx_IN (t_fmt): Likewise.
7115 * localedata/locales/doi_IN (t_fmt): Likewise.
7116 * localedata/locales/en_HK (t_fmt): Likewise.
7117 (t_fmt_ampm): Likewise.
7118 * localedata/locales/en_IN (t_fmt): Likewise.
7119 * localedata/locales/en_PH (t_fmt): Likewise.
7120 * localedata/locales/gu_IN (t_fmt): Likewise.
7121 * localedata/locales/hi_IN (t_fmt): Likewise.
7122 * localedata/locales/hif_FJ (t_fmt): Likewise.
7123 * localedata/locales/hne_IN (t_fmt): Likewise.
7124 * localedata/locales/kn_IN (t_fmt): Likewise.
7125 * localedata/locales/kok_IN (t_fmt): Likewise.
7126 * localedata/locales/ks_IN (t_fmt): Likewise.
7127 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
7128 * localedata/locales/mag_IN (t_fmt): Likewise.
7129 * localedata/locales/mai_IN (t_fmt): Likewise.
7130 * localedata/locales/mjw_IN (t_fmt): Likewise.
7131 * localedata/locales/ml_IN (t_fmt): Likewise.
7132 * localedata/locales/mni_IN (t_fmt): Likewise.
7133 * localedata/locales/mr_IN (t_fmt): Likewise.
7134 * localedata/locales/ms_MY (t_fmt): Likewise.
7135 * localedata/locales/pa_IN (t_fmt): Likewise.
7136 * localedata/locales/raj_IN (t_fmt): Likewise.
7137 * localedata/locales/sa_IN (t_fmt): Likewise.
7138 * localedata/locales/sat_IN (t_fmt): Likewise.
7139 * localedata/locales/sd_IN (t_fmt): Likewise.
7140 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
7141 * localedata/locales/tcy_IN (t_fmt): Likewise.
7142 * localedata/locales/the_NP (t_fmt): Likewise.
7143 * localedata/locales/to_TO (t_fmt): Likewise.
7144 * localedata/locales/ur_IN (t_fmt): Likewise.
7145
7146 * localedata/locales/hif_FJ (d_t_fmt): Set to
7147 "%A %d %b %Y %I:%M:%S %p".
7148 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
7149
7150 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
7151 * localedata/locales/ar_BH (t_fmt): Likewise.
7152 * localedata/locales/ar_DZ (t_fmt): Likewise.
7153 * localedata/locales/ar_EG (t_fmt): Likewise.
7154 * localedata/locales/ar_IQ (t_fmt): Likewise.
7155 * localedata/locales/ar_JO (t_fmt): Likewise.
7156 * localedata/locales/ar_KW (t_fmt): Likewise.
7157 * localedata/locales/ar_LB (t_fmt): Likewise.
7158 * localedata/locales/ar_LY (t_fmt): Likewise.
7159 * localedata/locales/ar_OM (t_fmt): Likewise.
7160 * localedata/locales/ar_QA (t_fmt): Likewise.
7161 * localedata/locales/ar_SD (t_fmt): Likewise.
7162 * localedata/locales/ar_SS (t_fmt): Likewise.
7163 * localedata/locales/ar_SY (t_fmt): Likewise.
7164 * localedata/locales/ar_TN (t_fmt): Likewise.
7165 * localedata/locales/ar_YE (t_fmt): Likewise.
7166
7167 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
7168 (t_fmt_ampm): Likewise.
7169 * localedata/locales/gez_ET (t_fmt): Likewise.
7170 (t_fmt_ampm): Likewise.
7171
7172 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
7173 (t_fmt_ampm): Likewise.
7174 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
7175
7176 * localedata/locales/zh_HK (t_fmt):
7177 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
7178
7179 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
7180 because this locale does not use the 12-hour clock.
7181 (t_fmt): Set to "%Z %H:%M:%S".
7182 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
7183
7184 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
7185 because this locale does not use the 12-hour clock.
7186 (t_fmt): Set to "%H:%M:%S %Z".
7187 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
7188
7189 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
7190 because this locale does not use the 12-hour clock.
7191 (t_fmt): Set to "%T".
7192 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
7193 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
7194
7195 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
7196 because this locale does not use the 12-hour clock.
7197 (t_fmt): Set to "%H:%M:%S %Z".
7198 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
7199
7200 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
7201 because this locale does not use the 12-hour clock.
7202 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
7203 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
7204
27841a7d
RL
72052018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
7206
7207 [BZ #10496]
7208 [BZ #23724]
7209 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
7210 (t_fmt_ampm): Likewise.
7211 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
7212 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
7213 (d_fmt): Set to "%-d.%-m.%y".
7214
0253580a
AZ
72152018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7216
7217 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
7218 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
7219 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
7220 Likewise.
7221 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
7222 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
7223 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
7224 function.
7225 * support/blob_repeat.c (check_mul_overflow_size_t,
7226 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
7227
09104e5b
AJ
72282018-12-28 Aurelien Jarno <aurelien@aurel32.net>
7229
7230 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
7231
c0feb731
PE
72322018-12-27 Paul Eggert <eggert@cs.ucla.edu>
7233
7234 regex: simplify Gnulib port
7235 This simplifies the code, by removing stuff intended for porting
7236 to Gnulib but no longer needed there.
7237 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
7238 uses of libc_hidden_def, weak_alias.
7239 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
7240 _Restrict_ except for public-facing headers.
7241 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
7242 Remove; already defined elsewhere.
7243 * posix/regex.c, posix/regex_internal.h:
7244 Use __GNUC_PREREQ instead of rolling our own.
7245 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
7246
5289f1f5
WD
72472018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
7248
7249 * benchtests/bench-strlen.c (generic_strlen): New function.
6b5c8607 7250 (memchr_strlen): New function.
5289f1f5 7251
ba4b8fab
L
72522018-12-26 H.J. Lu <hongjiu.lu@intel.com>
7253
7254 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
7255 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
7256 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
7257
9412979a
L
72582018-12-26 H.J. Lu <hongjiu.lu@intel.com>
7259
7260 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
7261
8700a785
L
72622018-12-26 H.J. Lu <hongjiu.lu@intel.com>
7263
7264 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
7265 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
7266 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
7267 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
7268 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
7269 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
7270 <sysdeps/ieee754/flt-32/s_sincosf.c>.
7271
57b3ff8e
JM
72722018-12-21 Joseph Myers <joseph@codesourcery.com>
7273
7274 [BZ #24023]
7275 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
7276 PLT reference in libc.so.
7277 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
7278 _Q_lltoq and _Q_qtod PLT references in libc.so.
7279
90d3320d
WD
72802018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
7281
7282 * benchtests/bench-memchr.c: Cleanup defines.
7283 * benchtests/bench-memcmp.c: Likewise.
7284 * benchtests/bench-memset.c: Likewise.
7285 * benchtests/bench-memset-large.c: Likewise.
7286 * benchtests/bench-memset-walk.c: Likewise.
7287 * benchtests/bench-stpcpy.c: Likewise.
7288 * benchtests/bench-stpncpy.c: Likewise.
7289 * benchtests/bench-strcat.c: Likewise.
7290 * benchtests/bench-strchr.c: Likewise.
7291 * benchtests/bench-strcmp.c: Likewise.
7292 * benchtests/bench-strcpy.c: Likewise.
7293 * benchtests/bench-strcspn.c: Likewise.
7294 * benchtests/bench-string.h: Likewise.
7295 * benchtests/bench-strlen.c: Likewise.
7296 * benchtests/bench-strncat.c: Likewise.
7297 * benchtests/bench-strncmp.c: Likewise.
7298 * benchtests/bench-strncpy.c: Likewise.
7299 * benchtests/bench-strnlen.c: Likewise.
7300 * benchtests/bench-strpbrk.c: Likewise.
7301 * benchtests/bench-strrchr.c: Likewise.
7302 * benchtests/bench-strspn.c: Likewise.
7303
192963be
JM
73042018-12-21 Joseph Myers <joseph@codesourcery.com>
7305
5d025ea6
JM
7306 * stdlib/longlong.h: Update from GCC.
7307
192963be
JM
7308 [BZ #23993]
7309 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
7310 * configure: Regenerated.
7311 * manual/install.texi (Tools for Compilation): Update minimum GCC
7312 version.
7313 * INSTALL: Regenerated.
7314
6b5c8607 73152018-12-21 Istvan Kurucsai <pistukem@gmail.com>
c0e82f11
IK
7316
7317 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
7318
6b5c8607 73192018-12-20 Istvan Kurucsai <pistukem@gmail.com>
ebe544bf
IK
7320
7321 * malloc/malloc.c (mremap_chunk): Additional checks.
7322
5f72b005
MH
73232018-12-21 Mao Han <han_mao@c-sky.com>
7324
7325 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
7326 * scripts/build-many-glibcs.py: Add C-SKY targets.
7327 * sysdeps/csky/Implies: New file.
7328 * sysdeps/csky/Makefile: Likewise.
7329 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
7330 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
7331 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
7332 * sysdeps/csky/abiv2/memcmp.S: Likewise.
7333 * sysdeps/csky/abiv2/memcpy.S: Likewise.
7334 * sysdeps/csky/abiv2/memmove.S: Likewise.
7335 * sysdeps/csky/abiv2/memset.S: Likewise.
7336 * sysdeps/csky/abiv2/setjmp.S: Likewise.
7337 * sysdeps/csky/abiv2/start.S: Likewise.
7338 * sysdeps/csky/abiv2/strcmp.S: Likewise.
7339 * sysdeps/csky/abiv2/strcpy.S: Likewise.
7340 * sysdeps/csky/abiv2/strlen.S: Likewise.
7341 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
7342 * sysdeps/csky/abort-instr.h: Likewise.
7343 * sysdeps/csky/atomic-machine.h: Likewise.
7344 * sysdeps/csky/bits/endian.h: Likewise.
7345 * sysdeps/csky/bits/fenv.h: Likewise.
7346 * sysdeps/csky/bits/link.h: Likewise.
7347 * sysdeps/csky/bits/setjmp.h: Likewise.
7348 * sysdeps/csky/bsd-_setjmp.S: Likewise.
7349 * sysdeps/csky/bsd-setjmp.S: Likewise.
7350 * sysdeps/csky/configure: Likewise.
7351 * sysdeps/csky/configure.ac: Likewise.
7352 * sysdeps/csky/dl-machine.h: Likewise.
7353 * sysdeps/csky/dl-procinfo.c: Likewise.
7354 * sysdeps/csky/dl-procinfo.h: Likewise.
7355 * sysdeps/csky/dl-sysdep.h: Likewise.
7356 * sysdeps/csky/dl-tls.h: Likewise.
7357 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
7358 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
7359 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
7360 * sysdeps/csky/fpu/fegetenv.c: Likewise.
7361 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
7362 * sysdeps/csky/fpu/fegetmode.c: Likewise.
7363 * sysdeps/csky/fpu/fegetround.c: Likewise.
7364 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
7365 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
7366 * sysdeps/csky/fpu/fenv_private.h: Likewise.
7367 * sysdeps/csky/fpu/fesetenv.c: Likewise.
7368 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
7369 * sysdeps/csky/fpu/fesetmode.c: Likewise.
7370 * sysdeps/csky/fpu/fesetround.c: Likewise.
7371 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
7372 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
7373 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
7374 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
7375 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
7376 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
7377 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
7378 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
7379 * sysdeps/csky/fpu_control.h: Likewise.
7380 * sysdeps/csky/gccframe.h: Likewise.
7381 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
7382 * sysdeps/csky/ldsodefs.h: Likewise.
7383 * sysdeps/csky/libc-tls.c: Likewise.
7384 * sysdeps/csky/linkmap.h: Likewise.
7385 * sysdeps/csky/machine-gmon.h: Likewise.
7386 * sysdeps/csky/memusage.h: Likewise.
7387 * sysdeps/csky/nofpu/Implies: Likewise.
7388 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
7389 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
7390 * sysdeps/csky/nptl/Makefile: Likewise.
7391 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
7392 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
7393 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
7394 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
7395 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
7396 * sysdeps/csky/nptl/tls.h: Likewise.
7397 * sysdeps/csky/preconfigure: Likewise.
7398 * sysdeps/csky/sfp-machine.h: Likewise.
7399 * sysdeps/csky/sotruss-lib.c: Likewise.
7400 * sysdeps/csky/stackinfo.h: Likewise.
7401 * sysdeps/csky/sysdep.h: Likewise.
7402 * sysdeps/csky/tininess.h: Likewise.
7403 * sysdeps/csky/tst-audit.h: Likewise.
7404 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
7405 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
7406 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
7407 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
7408 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
7409 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
7410 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
7411 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
7412 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
7413 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
7414 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
7415 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
7416 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
7417 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
7418 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
7419 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
7420 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
7421 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
7422 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
7423 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
7424 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
7425 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
7426 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
7427 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
7428 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
7429 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
7430 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
7431 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
7432 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
7433 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
7434 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
7435 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
7436 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
7437 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
7438 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
7439 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
7440 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
7441 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
7442 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
7443 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
7444 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
7445 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
7446 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
7447 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
7448
6b5c8607 74492018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
ac253355
AA
7450
7451 * include/time.h (__difftime64): Add.
7452 * time/difftime.c (subtract): convert to 64-bit time.
7453 * time/difftime.c (__difftime64): Add.
7454 * time/difftime.c (__difftime): Wrap around __difftime64.
7455
ab416931
L
74562018-12-20 H.J. Lu <hongjiu.lu@intel.com>
7457
7458 * manual/examples/add.c: Remove redundant "if not".
7459 * manual/examples/argp-ex1.c: Likewise.
7460 * manual/examples/argp-ex2.c: Likewise.
7461 * manual/examples/argp-ex3.c: Likewise.
7462 * manual/examples/argp-ex4.c: Likewise.
7463 * manual/examples/atexit.c: Likewise.
7464 * manual/examples/db.c: Likewise.
7465 * manual/examples/dir.c: Likewise.
7466 * manual/examples/dir2.c: Likewise.
7467 * manual/examples/execinfo.c: Likewise.
7468 * manual/examples/filecli.c: Likewise.
7469 * manual/examples/filesrv.c: Likewise.
7470 * manual/examples/fmtmsgexpl.c: Likewise.
7471 * manual/examples/genpass.c: Likewise.
7472 * manual/examples/inetcli.c: Likewise.
7473 * manual/examples/inetsrv.c: Likewise.
7474 * manual/examples/isockad.c: Likewise.
7475 * manual/examples/longopt.c: Likewise.
7476 * manual/examples/memopen.c: Likewise.
7477 * manual/examples/memstrm.c: Likewise.
7478 * manual/examples/mkdirent.c: Likewise.
7479 * manual/examples/mkfsock.c: Likewise.
7480 * manual/examples/mkisock.c: Likewise.
7481 * manual/examples/mygetpass.c: Likewise.
7482 * manual/examples/pipe.c: Likewise.
7483 * manual/examples/popen.c: Likewise.
7484 * manual/examples/rprintf.c: Likewise.
7485 * manual/examples/search.c: Likewise.
7486 * manual/examples/select.c: Likewise.
7487 * manual/examples/setjmp.c: Likewise.
7488 * manual/examples/sigh1.c: Likewise.
7489 * manual/examples/sigusr.c: Likewise.
7490 * manual/examples/stpcpy.c: Likewise.
7491 * manual/examples/strdupa.c: Likewise.
7492 * manual/examples/strftim.c: Likewise.
7493 * manual/examples/subopt.c: Likewise.
7494 * manual/examples/swapcontext.c: Likewise.
7495 * manual/examples/termios.c: Likewise.
7496 * manual/examples/testopt.c: Likewise.
7497 * manual/examples/testpass.c: Likewise.
7498 * manual/examples/timeval_subtract.c: Likewise.
7499
515f463f
JM
75002018-12-19 Joseph Myers <joseph@codesourcery.com>
7501
da75c1b1
JM
7502 * sysdeps/x86/fpu/math_private.h: New file.
7503 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
7504
515f463f
JM
7505 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
7506 definition.
7507 (cosh): Likewise.
7508 (tanh): Likewise.
7509
1616d034
TMQMF
75102018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
7511
7512 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
7513 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
7514 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
7515 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
7516 fields.
7517 (_dl_show_auxv): Give a special treatment to
7518 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
7519 and AT_L3_CACHEGEOMETRY.
7520 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
7521 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
7522 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
7523 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
7524
61595e3d
AS
75252018-12-19 Andreas Schwab <schwab@suse.de>
7526
7527 * nscd/connections.c (check_use): Don't abort on invalid len.
7528
bbb7dc84
ST
75292018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
7530
7531 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
7532 values in the 64bit value cases.
7533
6b5c8607 75342018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
64c2277d 7535
c4c2836a
AA
7536 * include/time.h
7537 (__ctime64_r): Add.
7538 * time/ctime_r.c
7539 (__ctime64_r): Add.
7540 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
7541
7755e504
AA
7542 * include/time.h
7543 (__ctime64): Add.
7544 * time/gmtime.c
7545 (__ctime64): Add.
7546 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
7547
a1d346ce
AA
7548 * include/time.h
7549 (__gmtime64_r): Add.
7550 * time/gmtime.c
7551 (__gmtime64_r): Add.
7552 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
7553
131db8b0
AA
7554 * include/time.h
7555 (__gmtime64): Add.
7556 * time/gmtime.c
7557 (__gmtime64): Add.
7558 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
7559
64c2277d
AA
7560 * include/time.h
7561 (__localtime64_r): Add.
7562 * time/localtime.c
7563 (__localtime64_r): Add.
7564 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
7565
56b98bf1
AZ
75662018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7567
64dd7a16
AZ
7568 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
7569 kernel_sigction definition.
7570
8b1d5da5
AZ
7571 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
7572
f9eabb19
AZ
7573 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
7574
56b98bf1
AZ
7575 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
7576 __syscall_rt_sigaction.
7577 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
7578 (kernel_sigaction): Use Linux generic defintion.
7579 (STUB): Define.
7580 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
7581 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
7582 (__syscall_rt_sigaction): Remove implementation.
7583 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
7584 hidden.
7585 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
7586 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
7587 INTERNAL_SYSCALL): Remove definitions.
7588 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
7589 action and signal set size.
7590 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
7591 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
7592
43a45c2d
AZ
75932018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7594 James Clarke <jrtc27@jrtc27.com>
7595
dfa6216f 7596 [BZ #23967]
43a45c2d
AZ
7597 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
7598 Define if SA_RESTORER is defined.
7599 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
7600 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
7601 already defined.
7602 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
7603 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
7604 definitions.
7605 (HAS_SA_RESTORER): Define.
7606 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
7607 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
7608 (HAS_SA_RESTORER): Define.
7609 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
7610 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
7611 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
7612 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
7613 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
7614
646ce7e0
JM
76152018-12-18 Joseph Myers <joseph@codesourcery.com>
7616
7617 * sysdeps/unix/sysv/linux/kernel-features.h
7618 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
7619 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
7620 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
7621 * sysdeps/unix/sysv/linux/sh/kernel-features.h
7622 (__ASSUME_ST_INO_64_BIT): Likewise.
7623 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
7624 <kernel-features.h>.
7625 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
7626 Remove conditional code.
7627 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
7628 <kernel-features.h>.
7629 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
7630 Remove conditional code.
7631 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
7632 <kernel-features.h>.
7633 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
7634 Remove conditional code.
7635 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
7636 <kernel-features.h>.
7637 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
7638 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
7639
80190d2b
SL
76402018-12-18 Stefan Liebler <stli@linux.ibm.com>
7641
7642 * sysdeps/s390/multiarch/ifunc-resolve.h
7643 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
7644 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
7645 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
7646 Delete macro definition.
7647 (s390_libc_ifunc_init): Rename to
7648 s390_libc_ifunc_expr_stfle_init.
7649 * sysdeps/s390/bzero: Use
7650 s390_libc_ifunc_expr_stfle_init instead of
7651 s390_libc_ifunc_init.
7652 * sysdeps/s390/memcmp.c: Likewise.
7653 * sysdeps/s390/memcpy.c: Likewise.
7654 * sysdeps/s390/mempcpy.c: Likewise.
7655 * sysdeps/s390/memset.c: Likewise.
7656
12f0dcb8
SL
76572018-12-18 Stefan Liebler <stli@linux.ibm.com>
7658
7659 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
7660 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
7661
25654a8c
SL
76622018-12-18 Stefan Liebler <stli@linux.ibm.com>
7663
7664 * sysdeps/s390/multiarch/Makefile
7665 (sysdep_routines): Remove wmemcmp variants.
7666 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
7667 * sysdeps/s390/multiarch/ifunc-impl-list.c
7668 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
7669 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
7670 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
7671 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
7672 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
7673 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
7674 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
7675 * sysdeps/s390/ifunc-wmemcmp.h: New file.
7676
d2a7436c
SL
76772018-12-18 Stefan Liebler <stli@linux.ibm.com>
7678
7679 * sysdeps/s390/multiarch/Makefile
7680 (sysdep_routines): Remove wmemset variants.
7681 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
7682 * sysdeps/s390/multiarch/ifunc-impl-list.c
7683 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
7684 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
7685 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
7686 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
7687 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
7688 * sysdeps/s390/multiarch/wmemset.c: Move to ...
7689 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
7690 * sysdeps/s390/ifunc-wmemset.h: New file.
7691
c62534ae
SL
76922018-12-18 Stefan Liebler <stli@linux.ibm.com>
7693
7694 * sysdeps/s390/multiarch/Makefile
7695 (sysdep_routines): Remove wmemchr variants.
7696 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
7697 * sysdeps/s390/multiarch/ifunc-impl-list.c
7698 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
7699 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
7700 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
7701 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
7702 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
7703 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
7704 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
7705 * sysdeps/s390/ifunc-wmemchr.h: New file.
7706
79b44cf6
SL
77072018-12-18 Stefan Liebler <stli@linux.ibm.com>
7708
7709 * sysdeps/s390/multiarch/Makefile
7710 (sysdep_routines): Remove wcscspn variants.
7711 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
7712 * sysdeps/s390/multiarch/ifunc-impl-list.c
7713 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
7714 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
7715 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
7716 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
7717 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
7718 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
7719 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
7720 * sysdeps/s390/ifunc-wcscspn.h: New file.
7721
8e87c1f6
SL
77222018-12-18 Stefan Liebler <stli@linux.ibm.com>
7723
7724 * sysdeps/s390/multiarch/Makefile
7725 (sysdep_routines): Remove wcspbrk variants.
7726 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
7727 * sysdeps/s390/multiarch/ifunc-impl-list.c
7728 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
7729 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
7730 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
7731 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
7732 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
7733 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
7734 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
7735 * sysdeps/s390/ifunc-wcspbrk.h: New file.
7736
8507e831
SL
77372018-12-18 Stefan Liebler <stli@linux.ibm.com>
7738
7739 * sysdeps/s390/multiarch/Makefile
7740 (sysdep_routines): Remove wcsspn variants.
7741 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
7742 * sysdeps/s390/multiarch/ifunc-impl-list.c
7743 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
7744 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
7745 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
7746 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
7747 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
7748 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
7749 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
7750 * sysdeps/s390/ifunc-wcsspn.h: New file.
7751
4753713a
SL
77522018-12-18 Stefan Liebler <stli@linux.ibm.com>
7753
7754 * sysdeps/s390/multiarch/Makefile
7755 (sysdep_routines): Remove wcsrchr variants.
7756 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
7757 * sysdeps/s390/multiarch/ifunc-impl-list.c
7758 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
7759 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
7760 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
7761 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
7762 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
7763 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
7764 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
7765 * sysdeps/s390/ifunc-wcsrchr.h: New file.
7766
c09c1b6f
SL
77672018-12-18 Stefan Liebler <stli@linux.ibm.com>
7768
7769 * sysdeps/s390/multiarch/Makefile
7770 (sysdep_routines): Remove wcschrnul variants.
7771 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
7772 * sysdeps/s390/multiarch/ifunc-impl-list.c
7773 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
7774 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
7775 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
7776 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
7777 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
7778 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
7779 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
7780 * sysdeps/s390/ifunc-wcschrnul.h: New file.
7781
cf3ccc31
SL
77822018-12-18 Stefan Liebler <stli@linux.ibm.com>
7783
7784 * sysdeps/s390/multiarch/Makefile
7785 (sysdep_routines): Remove wcschr variants.
7786 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
7787 * sysdeps/s390/multiarch/ifunc-impl-list.c
7788 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
7789 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
7790 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
7791 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
7792 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
7793 * sysdeps/s390/multiarch/wcschr.c: Move to ...
7794 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
7795 * sysdeps/s390/ifunc-wcschr.h: New file.
7796
e9873e1d
SL
77972018-12-18 Stefan Liebler <stli@linux.ibm.com>
7798
7799 * sysdeps/s390/multiarch/Makefile
7800 (sysdep_routines): Remove wcsncmp variants.
7801 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
7802 * sysdeps/s390/multiarch/ifunc-impl-list.c
7803 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
7804 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
7805 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
7806 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
7807 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
7808 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
7809 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
7810 * sysdeps/s390/ifunc-wcsncmp.h: New file.
7811
3459e23d
SL
78122018-12-18 Stefan Liebler <stli@linux.ibm.com>
7813
7814 * sysdeps/s390/multiarch/Makefile
7815 (sysdep_routines): Remove wcscmp variants.
7816 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
7817 * sysdeps/s390/multiarch/ifunc-impl-list.c
7818 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
7819 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
7820 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
7821 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
7822 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
7823 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
7824 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
7825 * sysdeps/s390/ifunc-wcscmp.h: New file.
7826
814a76e1
SL
78272018-12-18 Stefan Liebler <stli@linux.ibm.com>
7828
7829 * sysdeps/s390/multiarch/Makefile
7830 (sysdep_routines): Remove wcsncat variants.
7831 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
7832 * sysdeps/s390/multiarch/ifunc-impl-list.c
7833 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
7834 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
7835 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
7836 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
7837 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
7838 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
7839 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
7840 * sysdeps/s390/ifunc-wcsncat.h: New file.
7841
3389cae4
SL
78422018-12-18 Stefan Liebler <stli@linux.ibm.com>
7843
7844 * sysdeps/s390/multiarch/Makefile
7845 (sysdep_routines): Remove wcscat variants.
7846 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
7847 * sysdeps/s390/multiarch/ifunc-impl-list.c
7848 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
7849 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
7850 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
7851 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
7852 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
7853 * sysdeps/s390/multiarch/wcscat.c: Move to ...
7854 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
7855 * sysdeps/s390/ifunc-wcscat.h: New file.
7856
c3081bcb
SL
78572018-12-18 Stefan Liebler <stli@linux.ibm.com>
7858
7859 * sysdeps/s390/multiarch/Makefile
7860 (sysdep_routines): Remove wcpncpy variants.
7861 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
7862 * sysdeps/s390/multiarch/ifunc-impl-list.c
7863 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
7864 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
7865 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
7866 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
7867 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
7868 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
7869 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
7870 * sysdeps/s390/ifunc-wcpncpy.h: New file.
7871
0966dd86
SL
78722018-12-18 Stefan Liebler <stli@linux.ibm.com>
7873
7874 * sysdeps/s390/multiarch/Makefile
7875 (sysdep_routines): Remove wcsncpy variants.
7876 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
7877 * sysdeps/s390/multiarch/ifunc-impl-list.c
7878 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
7879 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
7880 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
7881 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
7882 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
7883 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
7884 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
7885 * sysdeps/s390/ifunc-wcsncpy.h: New file.
7886
0582e428
SL
78872018-12-18 Stefan Liebler <stli@linux.ibm.com>
7888
7889 * sysdeps/s390/multiarch/Makefile
7890 (sysdep_routines): Remove wcpcpy variants.
7891 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
7892 * sysdeps/s390/multiarch/ifunc-impl-list.c
7893 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
7894 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
7895 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
7896 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
7897 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
7898 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
7899 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
7900 * sysdeps/s390/ifunc-wcpcpy.h: New file.
7901
804f2e5c
SL
79022018-12-18 Stefan Liebler <stli@linux.ibm.com>
7903
7904 * sysdeps/s390/multiarch/Makefile
7905 (sysdep_routines): Remove wcscpy variants.
7906 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
7907 * sysdeps/s390/multiarch/ifunc-impl-list.c
7908 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
7909 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
7910 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
7911 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
7912 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
7913 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
7914 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
7915 * sysdeps/s390/ifunc-wcscpy.h: New file.
7916
c7e7cd26
SL
79172018-12-18 Stefan Liebler <stli@linux.ibm.com>
7918
7919 * sysdeps/s390/multiarch/Makefile
7920 (sysdep_routines): Remove wcsnlen variants.
7921 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
7922 * sysdeps/s390/multiarch/ifunc-impl-list.c
7923 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
7924 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
7925 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
7926 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
7927 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
7928 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
7929 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
7930 * sysdeps/s390/ifunc-wcsnlen.h: New file.
7931
2e02d0b7
SL
79322018-12-18 Stefan Liebler <stli@linux.ibm.com>
7933
7934 * sysdeps/s390/multiarch/Makefile
7935 (sysdep_routines): Remove wcslen variants.
7936 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
7937 * sysdeps/s390/multiarch/ifunc-impl-list.c
7938 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
7939 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
7940 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
7941 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
7942 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
7943 * sysdeps/s390/multiarch/wcslen.c: Move to ...
7944 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
7945 * sysdeps/s390/ifunc-wcslen.h: New file.
7946
89bfcbdf
SL
79472018-12-18 Stefan Liebler <stli@linux.ibm.com>
7948
7949 * sysdeps/s390/multiarch/Makefile
7950 (sysdep_routines): Remove memrchr variants.
7951 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
7952 * sysdeps/s390/multiarch/ifunc-impl-list.c
7953 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
7954 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
7955 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
7956 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
7957 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
7958 * sysdeps/s390/multiarch/memrchr.c: Move to ...
7959 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
7960 * sysdeps/s390/ifunc-memrchr.h: New file.
7961
196655ba
SL
79622018-12-18 Stefan Liebler <stli@linux.ibm.com>
7963
7964 * sysdeps/s390/multiarch/Makefile
7965 (sysdep_routines): Remove memccpy variants.
7966 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
7967 * sysdeps/s390/multiarch/ifunc-impl-list.c
7968 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
7969 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
7970 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
7971 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
7972 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
7973 * sysdeps/s390/multiarch/memccpy.c: Move to ...
7974 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
7975 * sysdeps/s390/ifunc-memccpy.h: New file.
7976
4c7b3cec
SL
79772018-12-18 Stefan Liebler <stli@linux.ibm.com>
7978
7979 * sysdeps/s390/multiarch/Makefile
7980 (sysdep_routines): Remove rawmemchr variants.
7981 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
7982 * sysdeps/s390/multiarch/ifunc-impl-list.c
7983 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
7984 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
7985 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
7986 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
7987 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
7988 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
7989 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
7990 * sysdeps/s390/ifunc-rawmemchr.h: New file.
7991
581a051c
SL
79922018-12-18 Stefan Liebler <stli@linux.ibm.com>
7993
7994 * sysdeps/s390/multiarch/Makefile
7995 (sysdep_routines): Remove memchr variants.
7996 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
7997 * sysdeps/s390/multiarch/ifunc-impl-list.c
7998 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
7999 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
8000 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
8001 * sysdeps/s390/multiarch/memchr.c: Move to ...
8002 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
8003 * sysdeps/s390/ifunc-memchr.h: New file.
8004 * sysdeps/s390/s390-64/memchr.S: Move to ...
8005 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
8006 for 31/64bit and ifunc handling.
8007 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
8008 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
8009 * sysdeps/s390/s390-32/memchr.S: Likewise.
8010
5d2ec20a
SL
80112018-12-18 Stefan Liebler <stli@linux.ibm.com>
8012
8013 * sysdeps/s390/multiarch/Makefile
8014 (sysdep_routines): Remove strcspn variants.
8015 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
8016 * sysdeps/s390/multiarch/ifunc-impl-list.c
8017 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
8018 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
8019 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
8020 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
8021 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
8022 * sysdeps/s390/multiarch/strcspn.c: Move to ...
8023 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
8024 * sysdeps/s390/ifunc-strcspn.h: New file.
8025
572cca93
SL
80262018-12-18 Stefan Liebler <stli@linux.ibm.com>
8027
8028 * sysdeps/s390/multiarch/Makefile
8029 (sysdep_routines): Remove strpbrk variants.
8030 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
8031 * sysdeps/s390/multiarch/ifunc-impl-list.c
8032 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
8033 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
8034 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
8035 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
8036 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
8037 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
8038 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
8039 * sysdeps/s390/ifunc-strpbrk.h: New file.
8040
483fc569
SL
80412018-12-18 Stefan Liebler <stli@linux.ibm.com>
8042
8043 * sysdeps/s390/multiarch/Makefile
8044 (sysdep_routines): Remove strspn variants.
8045 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
8046 * sysdeps/s390/multiarch/ifunc-impl-list.c
8047 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
8048 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
8049 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
8050 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
8051 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
8052 * sysdeps/s390/multiarch/strspn.c: Move to ...
8053 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
8054 * sysdeps/s390/ifunc-strspn.h: New file.
8055
26ea8760
SL
80562018-12-18 Stefan Liebler <stli@linux.ibm.com>
8057
8058 * sysdeps/s390/multiarch/Makefile
8059 (sysdep_routines): Remove strrchr variants.
8060 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
8061 * sysdeps/s390/multiarch/ifunc-impl-list.c
8062 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
8063 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
8064 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
8065 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
8066 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
8067 * sysdeps/s390/multiarch/strrchr.c: Move to ...
8068 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
8069 * sysdeps/s390/ifunc-strrchr.h: New file.
8070
a1361e65
SL
80712018-12-18 Stefan Liebler <stli@linux.ibm.com>
8072
8073 * sysdeps/s390/multiarch/Makefile
8074 (sysdep_routines): Remove strchrnul variants.
8075 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
8076 * sysdeps/s390/multiarch/ifunc-impl-list.c
8077 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
8078 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
8079 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
8080 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
8081 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
8082 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
8083 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
8084 * sysdeps/s390/ifunc-strchrnul.h: New file.
8085
32f12653
SL
80862018-12-18 Stefan Liebler <stli@linux.ibm.com>
8087
8088 * sysdeps/s390/multiarch/Makefile
8089 (sysdep_routines): Remove strchr variants.
8090 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
8091 * sysdeps/s390/multiarch/ifunc-impl-list.c
8092 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
8093 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
8094 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
8095 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
8096 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
8097 * sysdeps/s390/multiarch/strchr.c: Move to ...
8098 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
8099 * sysdeps/s390/ifunc-strchr.h: New file.
8100
316b8842
SL
81012018-12-18 Stefan Liebler <stli@linux.ibm.com>
8102
8103 * sysdeps/s390/multiarch/Makefile
8104 (sysdep_routines): Remove strncmp variants.
8105 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
8106 * sysdeps/s390/multiarch/ifunc-impl-list.c
8107 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
8108 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
8109 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
8110 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
8111 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
8112 * sysdeps/s390/multiarch/strncmp.c: Move to ...
8113 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
8114 * sysdeps/s390/ifunc-strncmp.h: New file.
8115
cdab85fe
SL
81162018-12-18 Stefan Liebler <stli@linux.ibm.com>
8117
8118 * sysdeps/s390/multiarch/Makefile
8119 (sysdep_routines): Remove strcmp variants.
8120 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
8121 * sysdeps/s390/multiarch/ifunc-impl-list.c
8122 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
8123 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
8124 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
8125 * sysdeps/s390/multiarch/strcmp.c: Move to ...
8126 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
8127 * sysdeps/s390/ifunc-strcmp.h: New file.
8128 * sysdeps/s390/s390-64/strcmp.S: Move to ...
8129 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
8130 for 31/64bit and ifunc handling.
8131 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
8132 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
8133 * sysdeps/s390/s390-32/strcmp.S: Likewise.
8134
b9353351
SL
81352018-12-18 Stefan Liebler <stli@linux.ibm.com>
8136
8137 * sysdeps/s390/multiarch/Makefile
8138 (sysdep_routines): Remove strncat variants.
8139 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
8140 * sysdeps/s390/multiarch/ifunc-impl-list.c
8141 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
8142 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
8143 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
8144 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
8145 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
8146 * sysdeps/s390/multiarch/strncat.c: Move to ...
8147 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
8148 * sysdeps/s390/ifunc-strncat.h: New file.
8149
8e5a0afb
SL
81502018-12-18 Stefan Liebler <stli@linux.ibm.com>
8151
8152 * sysdeps/s390/multiarch/Makefile
8153 (sysdep_routines): Remove strcat variants.
8154 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
8155 * sysdeps/s390/multiarch/ifunc-impl-list.c
8156 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
8157 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
8158 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
8159 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
8160 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
8161 * sysdeps/s390/multiarch/strcat.c: Move to ...
8162 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
8163 * sysdeps/s390/ifunc-strcat.h: New file.
8164
25218822
SL
81652018-12-18 Stefan Liebler <stli@linux.ibm.com>
8166
8167 * sysdeps/s390/multiarch/Makefile
8168 (sysdep_routines): Remove stpncpy variants.
8169 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
8170 * sysdeps/s390/multiarch/ifunc-impl-list.c
8171 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
8172 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
8173 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
8174 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
8175 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
8176 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
8177 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
8178 * sysdeps/s390/ifunc-stpncpy.h: New file.
8179
d1bdbf38
SL
81802018-12-18 Stefan Liebler <stli@linux.ibm.com>
8181
8182 * sysdeps/s390/multiarch/Makefile
8183 (sysdep_routines): Remove strncpy variants.
8184 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
8185 * sysdeps/s390/multiarch/ifunc-impl-list.c
8186 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
8187 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
8188 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
8189 * sysdeps/s390/multiarch/strncpy.c: Move to ...
8190 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
8191 * sysdeps/s390/ifunc-strncpy.h: New file.
8192 * sysdeps/s390/s390-64/strncpy.S: Move to ...
8193 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
8194 and adjust ifunc handling.
8195 * sysdeps/s390/s390-32/strncpy.S: Move to ...
8196 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
8197 and adjust ifunc handling.
8198 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
8199 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
8200
97044931
SL
82012018-12-18 Stefan Liebler <stli@linux.ibm.com>
8202
8203 * sysdeps/s390/multiarch/Makefile
8204 (sysdep_routines): Remove stpcpy variants.
8205 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
8206 * sysdeps/s390/multiarch/ifunc-impl-list.c
8207 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
8208 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
8209 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
8210 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
8211 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
8212 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
8213 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
8214 * sysdeps/s390/ifunc-stpcpy.h: New file.
8215
914a4e05
SL
82162018-12-18 Stefan Liebler <stli@linux.ibm.com>
8217
8218 * sysdeps/s390/multiarch/Makefile
8219 (sysdep_routines): Remove strcpy variants.
8220 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
8221 * sysdeps/s390/multiarch/ifunc-impl-list.c
8222 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
8223 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
8224 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
8225 * sysdeps/s390/multiarch/strcpy.c: Move to ...
8226 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
8227 * sysdeps/s390/ifunc-strcpy.h: New file.
8228 * sysdeps/s390/s390-64/strcpy.S: Move to ...
8229 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
8230 for 31/64bit and ifunc handling.
8231 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
8232 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
8233 * sysdeps/s390/s390-32/strcpy.S: Likewise.
8234
de10e44d
SL
82352018-12-18 Stefan Liebler <stli@linux.ibm.com>
8236
8237 * sysdeps/s390/multiarch/Makefile
8238 (sysdep_routines): Remove strnlen variants.
8239 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
8240 * sysdeps/s390/multiarch/ifunc-impl-list.c
8241 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
8242 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
8243 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
8244 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
8245 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
8246 * sysdeps/s390/multiarch/strnlen.c: Move to ...
8247 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
8248 * sysdeps/s390/ifunc-strnlen.h: New file.
8249
ff3ca374
SL
82502018-12-18 Stefan Liebler <stli@linux.ibm.com>
8251
8252 * sysdeps/s390/multiarch/Makefile
8253 (sysdep_routines): Remove strlen variants.
8254 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
8255 * sysdeps/s390/multiarch/ifunc-impl-list.c
8256 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
8257 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
8258 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
8259 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
8260 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
8261 * sysdeps/s390/multiarch/strlen.c: Move to ...
8262 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
8263 * sysdeps/s390/ifunc-strlen.h: New file.
8264
d2c4c403
SL
82652018-12-18 Stefan Liebler <stli@linux.ibm.com>
8266
8267 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
8268 * sysdeps/s390/multiarch/ifunc-impl-list.c
8269 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
8270 * sysdeps/s390/ifunc-memmem.h: New file.
8271 * sysdeps/s390/memmem.c: Likewise.
8272 * sysdeps/s390/memmem-c.c: Likewise.
8273 * sysdeps/s390/memmem-vx.c: Likewise.
8274
8c25dddd
SL
82752018-12-18 Stefan Liebler <stli@linux.ibm.com>
8276
8277 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
8278 * sysdeps/s390/multiarch/ifunc-impl-list.c
8279 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
8280 * sysdeps/s390/ifunc-strstr.h: New file.
8281 * sysdeps/s390/strstr.c: Likewise.
8282 * sysdeps/s390/strstr-c.c: Likewise.
8283 * sysdeps/s390/strstr-vx.c: Likewise.
8284
cdd927d9
SL
82852018-12-18 Stefan Liebler <stli@linux.ibm.com>
8286
8287 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
8288 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
8289 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
8290 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
8291 New defines.
8292 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
8293 * sysdeps/s390/memmove-c.c: New file.
8294 * sysdeps/s390/memmove.c: Likewise.
8295 * sysdeps/s390/multiarch/ifunc-impl-list.c
8296 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
8297
2ee1bc57
SL
82982018-12-18 Stefan Liebler <stli@linux.ibm.com>
8299
8300 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
8301 * sysdeps/s390/configure.ac: Add check for z13 support.
8302 * sysdeps/s390/configure: Regenerated.
8303
d097d976
SL
83042018-12-18 Stefan Liebler <stli@linux.ibm.com>
8305
8306 * sysdeps/s390/memcopy.h: New file.
8307
e099aab0
SL
83082018-12-18 Stefan Liebler <stli@linux.ibm.com>
8309
8310 * sysdeps/s390/s390-32/bcopy.S: Remove.
8311 * sysdeps/s390/s390-64/bcopy.S: Likewise.
8312
18eb862d
SL
83132018-12-18 Stefan Liebler <stli@linux.ibm.com>
8314
8315 * sysdeps/s390/ifunc-memcpy.h: New File.
8316 * sysdeps/s390/memcpy.S: Move to ...
8317 * sysdeps/s390/memcpy-z900.S ... here.
8318 Move implementations from memcpy-s390x.s to here.
8319 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
8320 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
8321 Remove memcpy/mempcpy variants.
8322 * sysdeps/s390/Makefile (sysdep_routines):
8323 Add memcpy/mempcpy variants.
8324 * sysdeps/s390/multiarch/ifunc-impl-list.c
8325 (__libc_ifunc_impl_list): Adjust ifunc variants for
8326 memcpy and mempcpy.
8327 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
8328 to ...
8329 * sysdeps/s390/memcpy.c: ... here.
8330 Adjust ifunc variants for memcpy.
8331 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
8332 * sysdeps/s390/mempcpy.c: ... here.
8333 Adjust ifunc variants for mempcpy.
8334 * sysdeps/s390/mempcpy.S: Delete file.
8335
df3eb8de
SL
83362018-12-18 Stefan Liebler <stli@linux.ibm.com>
8337
8338 * sysdeps/s390/s390-64/memcpy.S: Move to ...
8339 * sysdeps/s390/memcpy.S: ... here.
8340 Adjust to be usable for 31/64bit.
8341 * sysdeps/s390/s390-32/memcpy.S: Delete File.
8342 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
8343 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
8344 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
8345 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
8346 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
8347 Adjust to be usable for 31/64bit.
8348 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
8349 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
8350 * sysdeps/s390/multiarch/memcpy.c: ... here.
8351 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
8352
b7e024a8
SL
83532018-12-18 Stefan Liebler <stli@linux.ibm.com>
8354
8355 * sysdeps/s390/ifunc-memcmp.h: New File.
8356 * sysdeps/s390/memcmp.S: Move to ...
8357 * sysdeps/s390/memcmp-z900.S ... here.
8358 Move implementations from memcmp-s390x.s to here.
8359 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
8360 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
8361 Remove memcmp variants.
8362 * sysdeps/s390/Makefile (sysdep_routines):
8363 Add memcmp variants.
8364 * sysdeps/s390/multiarch/ifunc-impl-list.c
8365 (__libc_ifunc_impl_list): Adjust ifunc variants for
8366 memcmp.
8367 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
8368 to ...
8369 * sysdeps/s390/memcmp.c: ... here.
8370 Adjust ifunc variants for memcmp.
8371
6c6b8c74
SL
83722018-12-18 Stefan Liebler <stli@linux.ibm.com>
8373
8374 * sysdeps/s390/s390-64/memcmp.S: Move to ...
8375 * sysdeps/s390/memcmp.S: ... here.
8376 Adjust to be usable for 31/64bit.
8377 * sysdeps/s390/s390-32/memcmp.S: Delete File.
8378 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
8379 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
8380 Remove memcmp.
8381 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
8382 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
8383 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
8384 Adjust to be usable for 31/64bit.
8385 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
8386 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
8387 * sysdeps/s390/multiarch/memcmp.c: ... here.
8388 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
8389
07be3928
SL
83902018-12-18 Stefan Liebler <stli@linux.ibm.com>
8391
8392 * sysdeps/s390/s390-32/bzero.S: Delete file.
8393 * sysdeps/s390/s390-64/bzero.S: Likewise.
8394 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
8395 * sysdeps/s390/bzero.c: New file.
8396 * sysdeps/s390/memset-z900.S: Add bzero entry points.
8397 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
8398 * sysdeps/s390/multiarch/ifunc-impl-list.c
8399 (__libc_ifunc_impl_list): Add bzero ifunc variants.
8400
712a254a
SL
84012018-12-18 Stefan Liebler <stli@linux.ibm.com>
8402
8403 * sysdeps/s390/ifunc-memset.h: New File.
8404 * sysdeps/s390/memset.S: Move to ...
8405 * sysdeps/s390/memset-z900.S ... here.
8406 Move implementations from memset-s390x.s to here.
8407 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
8408 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
8409 Remove memset variants.
8410 * sysdeps/s390/Makefile (sysdep_routines):
8411 Add memset variants.
8412 * sysdeps/s390/multiarch/ifunc-impl-list.c
8413 (__libc_ifunc_impl_list): Adjust ifunc variants for
8414 memset.
8415 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
8416 to ...
8417 * sysdeps/s390/memset.c: ... here.
8418 Adjust ifunc variants for memset.
8419
5f1743d1
SL
84202018-12-18 Stefan Liebler <stli@linux.ibm.com>
8421
8422 * sysdeps/s390/s390-64/memset.S: Move to ...
8423 * sysdeps/s390/memset.S: ... here.
8424 Adjust to be usable for 31/64bit.
8425 * sysdeps/s390/s390-32/memset.S: Delete File.
8426 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
8427 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
8428 Remove memset.
8429 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
8430 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
8431 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
8432 Adjust to be usable for 31/64bit.
8433 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
8434 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
8435 * sysdeps/s390/multiarch/memset.c: ... here.
8436 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
8437
e8023f26
SL
84382018-12-18 Stefan Liebler <stli@linux.ibm.com>
8439
8440 * sysdeps/s390/multiarch/ifunc-resolve.h
8441 (s390_libc_ifunc_init, s390_libc_ifunc,
8442 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
8443
b8686c0d
SL
84442018-12-18 Stefan Liebler <stli@linux.ibm.com>
8445
8446 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
8447 * sysdeps/s390/configure.ac: Add check for z10 support.
8448 * sysdeps/s390/configure: Regenerated.
8449
cd815050
L
84502018-12-18 H.J. Lu <hongjiu.lu@intel.com>
8451
8452 * sysdeps/i386/atomic-machine.h: Merged with ...
8453 * sysdeps/x86_64/atomic-machine.h: To ...
8454 * sysdeps/x86/atomic-machine.h: This. New file.
8455
053c52b1
FW
84562018-12-18 Florian Weimer <fweimer@redhat.com>
8457
8458 Rewrite locale/gen-translit.pl in Python.
8459 * locale/Makefile (generated): Add C-translit.h.
8460 (before-compile): Add $(objpfx)C-translit.h.
8461 (C-translit.h): Move to $(objpfx). Create target directory.
8462 Build using Python script.
8463 * locale/gen-translit.py: New file.
8464 * locale/gen-translit.pl: Remove file.
8465 * locale/C-translit.h.in: Change comment character to '#' for
8466 easier parsing without a C preprocessor.
8467 * locale/C-translit.h: Remove generated file.
8468 * manual/install.texi (Tools for Compilation): Do not mention
8469 C-translit.h.
8470 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
8471 Remove locale/C-translit.h.
8472 * scripts/update-copyrights: Likewise.
8473 * INSTALL: Regenerate.
8474
40e6c1ec
FW
84752018-12-18 Florian Weimer <fweimer@redhat.com>
8476
8477 [BZ #23995]
8478 * localedata/locales/bi_VU: Remove executable bit from file.
8479
6b5c8607 84802018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
6e15f3e2
AA
8481
8482 * include/time.h
8483 (__localtime64): Add.
8484 * manual/maint.texi: Document Y2038 symbol handling.
8485 * time/localtime.c
8486 (__localtime64): Add.
bfb79db4 8487 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
6e15f3e2 8488
df648905
JM
84892018-12-17 Joseph Myers <joseph@codesourcery.com>
8490
551e81d9
JM
8491 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
8492 Do not clobber r12.
8493
df648905
JM
8494 * scripts/glibcextract.py (compare_macro_consts): Take parameters
8495 to allow extra macros from first or second sources.
8496 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
8497 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8498 (tests-special): Add $(objpfx)tst-mman-consts.out.
8499 ($(objpfx)tst-mman-consts.out): New makefile target.
8500
6bbfc5c0
MH
85012018-12-17 Mao Han <han_mao@c-sky.com>
8502
8503 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
8504 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
8505 without stat64 system call support.
8506 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
8507 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
8508 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
8509 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
8510 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
8511 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
8512 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
8513 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
8514 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
8515 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
8516 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
8517
ef202e53
PE
85182018-12-15 Paul Eggert <eggert@cs.ucla.edu>
8519
8520 regex: fix storage-exhaustion error
8521 [BZ #18040]
8522 * posix/regexec.c (get_subexp):
8523 Do not continue if storage is exhausted.
8524
077caf61
AG
85252018-12-15 Assaf Gordon <assafgordon@gmail.com>
8526
8527 regex: fix heap-use-after-free error
8528 [BZ #18040]
8529 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
8530 https://debbugs.gnu.org/32592
8531 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
8532 call extend_buffers which reallocates the re_string_t internal buffer.
8533 Local variable 'buf' was not updated in such case, resulting in
8534 use-after-free.
8535 * posix/regexec.c (get_subexp): Update 'buf' after call to
8536 get_subexp_sub.
8537
0c1719e6
FW
85382018-12-15 Florian Weimer <fweimer@redhat.com>
8539
8540 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
8541 (minimum_stride_size): Use it.
8542 (support_blob_repeat_allocate): Likewise.
8543
033a2c0a
JM
85442018-12-14 Joseph Myers <joseph@codesourcery.com>
8545
8546 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
8547 definition.
8548 (acosh): Likewise.
8549 (atanh): Likewise.
8550
e361dc04
FW
85512018-12-14 Florian Weimer <fweimer@redhat.com>
8552
8553 * manual/process.texi (Process Creation Concepts): Remove
8554 documentation of process (ID) lifetime. List more process
8555 creation functions. Reference Process Identification section.
8556 (Process Identification): Add information about process ID
8557 lifetime. Describe Linux thread/task IDs.
8558 * manual/signal.texi (Signaling Another Process): Mention that the
8559 signal is always sent to the process.
8560
bd51ff5e
GG
85612018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
8562
8563 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
8564 and tst-ldbl-efgcvt.
8565 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
8566 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
8567 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
8568 (fcvt_tests, output_error, output_r_error, do_test): Use the
8569 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
8570 select the type of floating-point variables and arguments; to
8571 produce extra tests for double and conversion specifiers for
8572 printf; and to set the names of called functions.
8573 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
8574 in tst-efgcvt-template.c.
8575 * misc/tst-ldbl-efgcvt.c: Likewise.
8576
268bb71e
SL
85772018-12-14 Stefan Liebler <stli@linux.ibm.com>
8578
8579 * nss/Makefile (tst-nss-test3.out): New rule.
8580
db6df070
JM
85812018-12-13 Joseph Myers <joseph@codesourcery.com>
8582
8583 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
8584 clobber sp.
8585
ade8b817
CD
85862018-12-13 fanjinke <fanjinke@hygon.cn>
8587
8588 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
8589 "HygonGenuine".
8590
3d265911
AS
85912018-12-13 Andreas Schwab <schwab@suse.de>
8592
f21e8f8c 8593 [BZ #23861]
3d265911 8594 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
f21e8f8c
AS
8595 (__pthread_rwlock_rdlock_full): Update expected value for
8596 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
8597 * nptl/tst-rwlock-pwn.c: New file.
8598 * nptl/Makefile (tests): Add tst-rwlock-pwn.
3d265911 8599
bf8ae8c0
JM
86002018-12-12 Joseph Myers <joseph@codesourcery.com>
8601
8602 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
8603 definition.
8604
de099757
LS
86052018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
8606
8607 * benchtests/scripts/compare_bench.py (do_compare): write to
8608 stderr in casestat is not present.
8609 * benchtests/scripts/compare_bench.py (plot_graphs): write to
8610 stderr in case timings field is not present. Also string showing
8611 the output filename goes into the stderr.
8612
1990185f
LS
86132018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
8614
8615 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
8616 and ZeroDivisorError exceptions.
8617 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
8618 argument to loop through user provided statistics.
8619 * benchtests/scripts/compare_bench.py (main): Include the --stats
8620 argument.
8621
587426d4
LS
86222018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
8623
8624 * benchtests/scripts/compare_bench.py (compare_runs): Continue
8625 instead of return.
8626
46703efa
FW
86272018-12-12 Florian Weimer <fweimer@redhat.com>
8628
8629 * sysdeps/posix/timespec_get.c: Add missing “any later version”
8630 clause to copyright header.
8631
1d880d4a
TMQMF
86322018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
8633
8634 [BZ #23614]
8635 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
8636 registers saved in the stack frame.
8637 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
8638 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
8639
1a502f52
GG
86402018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
8641
8642 * include/bits/monetary-ldbl.h: New file.
8643 * include/bits/printf-ldbl.h: Likewise.
8644 * include/bits/stdio-ldbl.h: Likewise.
8645 * include/bits/stdlib-ldbl.h: Likewise.
8646 * include/bits/syslog-ldbl.h: Likewise.
8647 * include/bits/wchar-ldbl.h: Likewise.
8648
df682d1d
GG
86492018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
8650
8651 * libio/libio.h: Remove redirection for _IO_vfprintf.
8652
c2c082c1
AS
86532018-12-11 Andreas Schwab <schwab@suse.de>
8654
8655 * Makerules: Remove all references to abilist-pattern.
8656 (update-all-abi): Simplify find expression.
8657
505b5b29
SN
86582018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
8659
8660 [BZ #23961]
8661 * math/auto-libm-test-in: Add new test case.
8662 * math/auto-libm-test-out-pow: Regenerated.
8663 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
8664
304c61a2
DD
86652018-12-10 DJ Delorie <dj@redhat.com>
8666
8667 [BZ #23948]
8668 * support/test-container.c: Move postclean step to before we
8669 change namespaces.
8670
a8110b72
JM
86712018-12-10 Joseph Myers <joseph@codesourcery.com>
8672
cb7be159
JM
8673 * scripts/gen-as-const.py (main): Handle --python option.
8674 * scripts/gen-py-const.awk: Remove.
8675 * Makerules (py-const-script): Use gen-as-const.py.
8676 ($(py-const)): Likewise.
8677 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
8678 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
8679 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
8680 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
8681 ~PTHREAD_MUTEX_NO_ELISION_NP.
8682 * manual/README.pretty-printers: Update reference to
8683 gen-py-const.awk.
8684
a8110b72
JM
8685 * scripts/glibcextract.py: New file.
8686 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
8687 or tempfile. Import glibcexctract.
8688 (compute_c_consts): Remove. Moved to glibcextract.py.
8689 (gen_test): Update reference to compute_c_consts.
8690 (main): Likewise.
8691 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
8692 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
8693 * sysdeps/unix/sysv/linux/Makefile
8694 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
8695 Redirect stderr as well as stdout.
8696
f9ba9eb8
RÁE
86972018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
8698
8699 [BZ #19767]
8700 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
b39d961c
TS
8701 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
8702 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
f9ba9eb8 8703 ALWAYS_USE_VSYSCALL.
b39d961c 8704 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
f9ba9eb8
RÁE
8705 ALWAYS_USE_VSYSCALL.
8706 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
8707 ALWAYS_USE_VSYSCALL.
8708
8d20a2f4
FW
87092018-12-10 Florian Weimer <fweimer@redhat.com>
8710
8711 [BZ #23972]
8712 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
8713 offset instead of count for clarity. Fix typo in comment.
8714 (__old_getdents64): Keep track of previous offset. Use it to call
8715 handle_overflow.
8716 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
8717 that d_off is never zero.
8718
80472e2f
AS
87192018-12-10 Andreas Schwab <schwab@suse.de>
8720
8721 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
8722 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
8723 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
8724 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
8725 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
8726
0afcb29d
JM
87272018-12-10 Joseph Myers <joseph@codesourcery.com>
8728
8729 * timezone/private.h: Update from tzcode 2018g.
8730 * timezone/tzfile.h: Likewise.
8731 * timezone/tzselect.ksh: Likewise.
8732 * timezone/zdump.c: Likewise.
8733 * timezone/zic.c: Likewise.
8734
b93f4052
PP
87352018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
8736
8737 [BZ #23490]
8738 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
8739 (do_test): Adjust buffer size and fix format.
8740
7c9a7c68
DD
87412018-12-07 DJ Delorie <dj@redhat.com>
8742
8743 [BZ #23907]
8744 * malloc/tst-tcfree3.c: New.
8745 * malloc/Makefile: Add it.
8746
37caec3a
L
87472018-12-07 H.J. Lu <hongjiu.lu@intel.com>
8748
8749 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
8750
10446f5d
GG
87512018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
8752
8753 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
8754 used as a mask for the mode argument of __vfscanf_internal and
8755 __vfwscanf_internal.
8756 * stdio-common/vfscanf-internal.c
8757 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
8758 (__strtof128_internal): Define to __wcstof128_internal.
8759 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
8760 __strtof128_internal or __wcstof128_internal when the format of
8761 long double is the same as _Float128.
8762
45f33aac
ST
87632018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
8764
8765 * include/unistd.h (__confstr): Add prototype and hidden prototype.
8766 * posix/confstr.c (confstr): Rename to __confstr.
8767 (__confstr): Add hidden def.
8768 (confstr): Add weak alias for __confstr.
8769 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
8770 confstr.
8771
a092ca94
L
87722018-12-07 H.J. Lu <hongjiu.lu@intel.com>
8773
8774 * NEWS: Mention getcpu.
8775 * include/sched.h (__getcpu): New libc_hidden_proto.
8776 * manual/resource.texi: Document getcpu.
8777 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
8778 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
8779 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
8780 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8781 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
8782 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
8783 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
8784 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
8785 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
8786 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
8787 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
8788 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
8789 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
8790 Likewise.
8791 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
8792 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
8793 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
8794 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
8795 Likewise.
8796 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
8797 Likewise.
8798 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
8799 Likewise.
8800 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
8801 Likewise.
8802 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
8803 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
8804 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
8805 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
8806 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
8807 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8808 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
8809 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
8810 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
8811 * sysdeps/unix/sysv/linux/getcpu.c: New file.
8812 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
8813 Also check getcpu.
8814
7c857b6f
ST
88152018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
8816
8817 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
8818 functions.
8819 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
8820
3a3fb755
FW
88212018-12-07 Florian Weimer <fweimer@redhat.com>
8822
8823 [BZ #17405]
8824 * posix/Makefile (routines): Add spawn_faction_addfchdir.
8825 * posix/Versions (GLIBC_2.29): Export
8826 posix_spawn_file_actions_addfchdir_np.
8827 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
8828 * posix/spawn_faction_destroy.c
8829 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
8830 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
8831 and the field action.fchdir_action.
8832 * posix/tst-spawn-chdir.c (add_chdir): New function.
8833 (do_test): Add do_fchdir loop. Call add_chdir.
8834 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
8835 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
8836 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
8837 posix_spawn_file_actions_addfchdir_np.
8838 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
8839 Likewise.
8840 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
8841 Likewise.
8842 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
8843 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
8844 Likewise.
8845 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
8846 Likewise.
8847 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
8848 Likewise.
8849 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
8850 Likewise.
8851 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
8852 Likewise.
8853 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
8854 Likewise.
8855 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
8856 (GLIBC_2.29): Likewise.
8857 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
8858 (GLIBC_2.29): Likewise.
8859 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
8860 (GLIBC_2.29): Likewise.
8861 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
8862 (GLIBC_2.29): Likewise.
8863 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
8864 Likewise.
8865 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
8866 (GLIBC_2.29): Likewise.
8867 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
8868 (GLIBC_2.29): Likewise.
8869 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
8870 (GLIBC_2.29): Likewise.
8871 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
8872 (GLIBC_2.29): Likewise.
8873 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
8874 Likewise.
8875 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
8876 Likewise.
8877 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
8878 Likewise.
8879 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
8880 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
8881 Likewise.
8882 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
8883 Likewise.
8884 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
8885 Likewise.
8886 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
8887 Likewise.
8888
c37cd439
JM
88892018-12-06 Joseph Myers <joseph@codesourcery.com>
8890
8891 * manual/texinfo.tex: Update to version 2018-09-21.20 with
8892 trailing whitespace removed.
8893 * scripts/config.guess: Update to version 2018-11-28.
8894 * scripts/config.sub: Update to version 2018-11-28.
8895 * scripts/install-sh: Update to version 2018-03-11.20.
8896 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
8897 * scripts/move-if-change: Update to version 2018-03-07 03:47.
8898
899478c2
FW
88992018-12-07 Florian Weimer <fweimer@redhat.com>
8900
8901 [BZ #23927]
8902 CVE-2018-19591
8903 * inet/tst-if_index-long.c: New file.
8904 * inet/Makefile (tests): Add tst-if_index-long.
8905
f255336a
FW
89062018-12-07 Florian Weimer <fweimer@redhat.com>
8907
8908 * support/check.h (support_record_failure_is_failed): Declare.
8909 * support/descriptors.h: New file.
8910 * support/support_descriptors.c: Likewise.
8911 * support/tst-support_descriptors.c: Likewise.
8912 * support/support_record_failure.c
8913 (support_record_failure_is_failed): New function.
8914 * support/Makefile (libsupport-routines): Add support_descriptors.
8915 (tests): Add tst-support_descriptors.
8916
35caceb1
ZW
89172018-12-05 Zack Weinberg <zackw@panix.com>
8918 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
8919
8920 * stdio-common/vfprintf-internal.c
8921 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
8922 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
8923 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
8924 and __no_long_double.
8925 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
8926 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
8927 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
8928 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
8929 and __nldbl_*syslog* functions.
8930 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
8931 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
8932 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
8933 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
8934 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
8935 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
8936 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
8937 (__nldbl_vwprintf, __nldbl_wprintf):
8938 Directly call the appropriate __v*printf_internal routine, passing
8939 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
8940 variable names.
8941 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
8942 (__nldbl___printf_chk, __nldbl___snprintf_chk)
8943 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
8944 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
8945 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
8946 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
8947 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
8948 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
8949 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
8950 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
8951 Likewise, and also pass PRINTF_FORTIFY when appropriate.
8952 (__nldbl_syslog, __nldbl_vsyslog):
8953 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
8954 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
8955 appropriate.
8956 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
8957 appropriate.
8958
4e2f43f8
ZW
89592018-12-05 Zack Weinberg <zackw@panix.com>
8960 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
8961
8962 [BZ #11319]
8963 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
8964 Moved here from debug/vsprintf_chk.c.
8965 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
8966 and completion logic for the strfile to match exactly what
8967 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
8968 _IO_str_init_static_internal instead of maxlen-1.
8969 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
8970 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
8971 __vsprintf_internal.
8972
8973 * debug/vsprintf_chk.c (__vsprintf_chk)
8974 * debug/sprintf_chk.c (__sprintf_chk):
8975 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
8976 'flags' argument is positive, and slen as maxlen. No need to lock
8977 the FILE and/or construct a temporary FILE. Minimize and normalize
8978 header inclusions and variable names. Do not libc_hidden_def anything.
8979
8980 * debug/asprintf_chk.c (__asprintf_chk)
8981 * debug/dprintf_chk.c (__dprintf_chk)
8982 * debug/fprintf_chk.c (__fprintf_chk)
8983 * debug/fwprintf_chk.c (__fwprintf_chk)
8984 * debug/printf_chk.c (__printf_chk)
8985 * debug/snprintf_chk.c (__snprintf_chk)
8986 * debug/swprintf_chk.c (__swprintf_chk)
8987 * debug/vasprintf_chk.c (__vasprintf_chk)
8988 * debug/vdprintf_chk.c (__vdprintf_chk)
8989 * debug/vfprintf_chk.c (__vfprintf_chk)
8990 * debug/vfwprintf_chk.c (__vfwprintf_chk)
8991 * debug/vprintf_chk.c (__vprintf_chk)
8992 * debug/vsnprintf_chk.c (__vsnprintf_chk)
8993 * debug/vswprintf_chk.c (__vswprintf_chk)
8994 * debug/vwprintf_chk.c (__vwprintf_chk)
8995 * debug/wprintf_chk.c (__wprintf_chk):
8996 Directly call the corresponding vxxprintf_internal function, passing
8997 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
8998 the FILE and/or construct a temporary FILE. Minimize and normalize
8999 header inclusions and variable names. Do not libc_hidden_def anything.
9000
9001 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
9002 __obstack_vprintf_internal.
9003 (__obstack_vprintf_chk): Convert into a wrapper that calls
9004 __obstack_vprintf_internal (these two functions already had the
9005 same code) and move to new file...
9006 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
9007 file.
9008 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
9009 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
9010 * debug/Makefile (routines): Add vobprintf_chk.
9011
9012 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
9013 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
9014 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
9015 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
9016 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
9017 (__nldbl___obstack_vfprintf_chk):
9018 Directly call the corresponding vxxprintf_internal function,
9019 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
9020 duplicate comparison of slen with 0 or maxlen from the corresponding
9021 non-__nldbl function.
9022
9023 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
9024 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
9025 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
9026 Remove libc_hidden_proto.
9027
9028 * stdio-common/vfprintf-internal.c
9029 (__vfprintf_internal, __vfwprintf_internal):
9030 Do not check _IO_FLAGS2_FORTIFY.
9031 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
9032 * libio/libioP.h: Update prototype of __vsprintf_internal and add
9033 a comment explaining why it has the maxlen argument.
9034 (_IO_acquire_lock_clear_flags2_fct): Remove.
9035 (_IO_acquire_lock_clear_flags2): Remove.
9036 (_IO_release_lock): Remove conditional statement which will
9037 now never execute.
9038 (_IO_acquire_lock): Remove variable which is now unused.
9039 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
9040 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
9041
9042 * stdio-common/Makefile (tests): Add tst-bz11319 and
9043 tst-bz11319-fortify2.
9044 (CFLAGS-tst-bz11319-fortify2.c): New macro.
9045 * stdio-common/tst-bz11319-fortify2.c: New file.
9046 * stdio-common/tst-bz11319.c: Likewise.
9047
124fc732
ZW
90482018-12-05 Zack Weinberg <zackw@panix.com>
9049 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9050
9051 * misc/syslog.c: Include libioP.h, not iolibio.h.
9052 (__vsyslog_internal): New function with the former body of
9053 __vsyslog_chk; takes mode_flags argument same as
9054 __v*printf_internal. Call __vfprintf_internal directly.
9055
9056 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
9057 Remove libc_hidden_def.
9058 (__syslog, __syslog_chk): Use __vsyslog_internal.
9059 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
9060
9061 * include/sys/syslog.h: Add multiple inclusion guard.
9062 Add prototype for __vsyslog_internal.
9063 Remove declaration and libc_hidden_proto for __vsyslog_chk.
9064
9065 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
9066 Use __vsyslog_internal.
9067
698fb75b
ZW
90682018-12-05 Zack Weinberg <zackw@panix.com>
9069 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9070
9071 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
9072 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
9073 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
9074 New functions.
9075 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
9076 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
9077
9078 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
9079 Include wctype.h here if COMPILE_WPRINTF is defined.
9080 Define __vfprintf_internal or __vfwprintf_internal, depending
9081 on COMPILE_WPRINTF.
9082 Temporarily, on entry to this function, update mode_flags
9083 according to the environmental settings corresponding to
9084 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
9085 Throughout, check mode_flags instead of __ldbl_is_dbl and
9086 _IO_FLAGS2_FORTIFY on the destination FILE.
9087 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
9088 Include vfprintf-internal.c. Don't include wctype.h.
9089 * stdio-common/vfprintf.c: New file. Just define __vfprintf
9090 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
9091 and vfprintf.
9092 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
9093 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
9094 and vfwprintf.
9095 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
9096
9097 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
9098 and add mode_flags argument; use __vfprintf_internal.
9099 (__vdprintf): New function. Alias vdprintf to this.
9100 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
9101 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
9102 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
9103 (__obstack_printf): Use __obstack_printf_internal.
9104 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
9105 public aliases __vsnprintf and vsnprintf.
9106 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
9107 called internally.
9108 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
9109 public aliases _IO_vsprintf and vsprintf.
9110 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
9111 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
9112 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
9113 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
9114 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
9115
9116 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
9117 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
9118 * stdio-common/fprintf.c, stdio-common/fxprintf.c
9119 * stdio-common/printf.c: Use __vfprintf_internal.
9120
9121 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
9122 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
9123 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
9124
9125 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
9126 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
9127 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
9128 __vfwprintf_internal.
9129
9130 * libio/libio.h: Remove libc_hidden_proto and declaration for
9131 _IO_vfprintf.
9132 Remove declaration of _IO_vfwprintf.
9133 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
9134 _IO_vsprintf.
9135 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
9136 _IO_obstack_printf.
9137 * include/stdio.h: Add prototype for __vasprintf.
9138 (__vsnprintf): Remove declaration, because there are no more
9139 internal calls.
9140 * include/wchar.h (__vfwprintf, __vswprintf): Remove
9141 declaration, because there are no more internal calls.
9142
9143 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
9144 __vsnprintf_internal, instead of _IO_vsnprintf.
9145 * argp/argp-help.c (__argp_error, __argp_failure): Use
9146 __vasprintf_internal, instead of _IO_vasprintf.
9147 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
9148 redefine, because there are no more internal calls.
9149
d91798b3
ZW
91502018-12-05 Zack Weinberg <zackw@panix.com>
9151 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9152
9153 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
9154 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
9155 Include libio/strfile.h instead of libioP.h.
9156 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
9157 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
9158 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
9159 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
9160 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
9161 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
9162 necessary. Do not set __no_long_double. Normalize variable names.
9163 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
9164 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
9165 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
9166 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
9167 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
9168 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
9169 Call __vfscanf_internal / __vfwscanf_internal directly, passing
9170 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
9171 Do not set __no_long_double. Normalize variable names.
9172
b87eb3f8
ZW
91732018-12-05 Zack Weinberg <zackw@panix.com>
9174 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9175
9176 * stdio-common/isoc99_scanf.c
9177 * stdio-common/isoc99_fscanf.c
9178 * stdio-common/isoc99_sscanf.c
9179 * stdio-common/isoc99_vscanf.c
9180 * stdio-common/isoc99_vfscanf.c
9181 * stdio-common/isoc99_vsscanf.c
9182 * wcsmbs/isoc99_wscanf.c
9183 * wcsmbs/isoc99_fwscanf.c
9184 * wcsmbs/isoc99_swscanf.c
9185 * wcsmbs/isoc99_vwscanf.c
9186 * wcsmbs/isoc99_vfwscanf.c
9187 * wcsmbs/isoc99_vswscanf.c:
9188 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
9189 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
9190 No need to lock and unlock the FILE passed to that function.
9191
9192 * stdio-common/vfscanf-internal.c
9193 (__vfscanf_internal, __vfwscanf_internal):
9194 Don't look at _IO_FLAGS2_SCANF_STD.
9195 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
9196 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
9197 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
9198
349718d4
ZW
91992018-12-05 Zack Weinberg <zackw@panix.com>
9200 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9201
9202 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
9203 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
9204 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
9205 * libio/strfile.h: Add multiple inclusion guard.
9206 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
9207
9208 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
9209 consistency with the other version of this file.
9210 (ldbl_compat_symbol): New macro.
9211 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
9212 New macro.
9213
9214 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
9215 Define __vfscanf_internal or __vfwscanf_internal, depending on
9216 COMPILE_WSCANF; don't define any other public symbols.
9217 Remove errval and code to set errp.
9218 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
9219 as the mode_flags argument.
9220 (encode_error, conv_error, input_error): Don't set errval.
9221 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
9222 Include vfscanf-internal.c.
9223 * stdio-common/vfscanf.c: New file defining the public entry
9224 point vfscanf, which calls __vfscanf_internal.
9225 * stdio-common/vfwscanf.c: New file defining the public entry
9226 point vfwscanf, which calls __vfwscanf_internal.
9227
9228 * stdio-common/iovfscanf.c: New file.
9229 * stdio-common/iovfwscanf.c: Likewise.
9230
9231 * stdio-common/Makefile (routines): Add vfscanf-internal,
9232 vfwscanf-internal, iovfscanf, iovfwscanf.
9233 * stdio-common/Versions: Mention GLIBC_2.29, so that
9234 it can be used in SHLIB_COMPAT expressions.
9235 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
9236 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
9237 Call __vfscanf_internal, instead of _IO_vfscanf.
9238 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
9239 _IO_vfscanf.
9240 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
9241 _IO_vfwscanf.
9242
9243 * libio/iovsscanf.c: Clean up includes, when possible. Use
9244 _IO_strfile_read or _IO_strfile_readw, when needed. Call
9245 __vfscanf_internal or __vfwscanf_internal directly.
9246 * libio/iovswscanf.c: Likewise.
9247 * libio/swscanf.c: Likewise.
9248 * libio/vscanf.c: Likewise.
9249 * libio/vwscanf.c: Likewise.
9250 * libio/wscanf.c: Likewise.
9251 * stdio-common/isoc99_fscanf.c: Likewise.
9252 * stdio-common/isoc99_scanf.c: Likewise.
9253 * stdio-common/isoc99_sscanf.c: Likewise.
9254 * stdio-common/isoc99_vfscanf.c: Likewise.
9255 * stdio-common/isoc99_vscanf.c: Likewise.
9256 * stdio-common/isoc99_vsscanf.c: Likewise.
9257 * stdio-common/scanf.c: Likewise.
9258 * stdio-common/sscanf.c: Likewise.
9259 * wcsmbs/isoc99_fwscanf.c: Likewise.
9260 * wcsmbs/isoc99_swscanf.c: Likewise.
9261 * wcsmbs/isoc99_vfwscanf.c: Likewise.
9262 * wcsmbs/isoc99_vswscanf.c: Likewise.
9263 * wcsmbs/isoc99_vwscanf.c: Likewise.
9264 * wcsmbs/isoc99_wscanf.c: Likewise.
9265
6b5c8607 92662018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
72b8692d
AA
9267
9268 * include/time.h
9269 (__tz_compute): Replace time_t with __time64_t.
9270 (__tz_convert): Replace time_t* with __time64_t.
9271 (__offtime): Replace time_t* with __time64_t.
9272 * time/gmtime.c
9273 (__gmtime_r): Adjust call to __tz_convert.
9274 (gmtime): Likewise.
9275 * time/localtime.c
9276 (__localtime_r): Likewise.
9277 (localtime): Likewise.
9278 * time/offtime.c: Replace time_t with __time64_t.
9279 * time/tzset.c: Likewise.
9280
bd598da9
JM
92812018-12-04 Joseph Myers <joseph@codesourcery.com>
9282
9283 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
9284 dynamic linker unless [$(run-built-tests) = yes].
9285
b2e93de0
DD
92862018-12-03 DJ Delorie <dj@delorie.com>
9287
9288 * support/test-container.c (check_for_unshare_hints): New.
9289 (main): Call it if unshare fails. Add support for "su" scriptlet
9290 command.
9291
477a02f6
JM
92922018-12-03 Joseph Myers <joseph@codesourcery.com>
9293
9294 * scripts/gen-as-const.py (compute_c_consts): Take an argument
9295 'START' to indicate that start text should be output.
9296 (gen_test): Likewise.
9297 (main): Generate 'START' for first symbol or '--' line, or at end
9298 of input if not previously generated.
9299
6af956e5
RÁE
93002018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
9301
9302 [BZ #19767]
9303 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
9304 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
9305 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
9306 ALWAYS_USE_VSYSCALL.
9307
f5ec0ea9
AZ
93082018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9309
9310 [BZ #23913]
9311 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
9312 new_argv by one.
9313
8cebd4ff
CD
93142018-12-03 Carlos O'Donell <carlos@redhat.com>
9315
9316 [BZ #23923]
9317 * locale/programs/localedef.c: Declare boolean hard_links default true.
9318 (options): Add --no-hard-links option.
9319 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
9320 * locale/programs/localedef.h: Declare prototype for hard_links.
9321 * locale/programs/locfile.c (write_locale_data): Don't use hard
9322 links if hard_links is false.
9323
c22e4c2a
L
93242018-12-03 H.J. Lu <hongjiu.lu@intel.com>
9325
9326 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
9327 cpu_features_basic.
9328 (__cache_sysconf): Likewise.
9329 (init_cacheinfo): Likewise.
9330 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
9331 populate COMMON_CPUID_INDEX_80000007 and
9332 COMMON_CPUID_INDEX_80000008.
9333 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
9334 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
9335 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
9336 (init_cpu_features): Use _Static_assert on
9337 index_arch_Fast_Unaligned_Load.
9338 __get_cpuid_registers and __get_arch_feature. Updated for
9339 cpu_features_basic. Set stepping in cpu_features.
9340 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
9341 (FEATURE_INDEX_2): New.
9342 (FEATURE_INDEX_MAX): Changed to enum.
9343 (COMMON_CPUID_INDEX_D_ECX_1): New.
9344 (COMMON_CPUID_INDEX_80000007): Likewise.
9345 (COMMON_CPUID_INDEX_80000008): Likewise.
9346 (cpuid_registers): Likewise.
9347 (cpu_features_basic): Likewise.
9348 (CPU_FEATURE_USABLE): Likewise.
9349 (bit_arch_XXX_Usable): Likewise.
9350 (cpu_features): Use cpuid_registers and cpu_features_basic.
9351 (bit_arch_XXX): Reweritten.
9352 (bit_cpu_XXX): Likewise.
9353 (index_cpu_XXX): Likewise.
9354 (reg_XXX): Likewise.
9355 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
9356 <support/check.h>.
9357 (CHECK_CPU_FEATURE): New.
9358 (CHECK_CPU_FEATURE_USABLE): Likewise.
9359 (cpu_kinds): Likewise.
9360 (do_test): Print vendor, family, model and stepping. Check
9361 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
9362 (TEST_FUNCTION): Removed.
9363 Include <support/test-driver.c> instead of
9364 "../../test-skeleton.c".
9365 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
9366 Check POPCNT instead of POPCOUNT.
9367 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
9368
7b36d26b
ST
93692018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
9370
9371 * scripts/gen-as-const.py (main): Avoid emitting empty line when
9372 there is no element in `consts'.
9373
02cd5c1a
FW
93742018-12-01 Florian Weimer <fweimer@redhat.com>
9375
9376 * support/support_capture_subprocess.c
9377 (support_capture_subprocess): Check that pipe descriptors have
9378 expected values. Close original pipe descriptors in subprocess.
9379
fc493bc9
ST
93802018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9381
9382 [BZ #23032]
9383 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
9384 attr with __pthread_default_barrierattr.
9385 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
9386 attr with __pthread_default_condattr.
9387 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
9388 attr with __pthread_default_mutexattr.
9389 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
9390 attr with __pthread_default_rwlockattr.
9391
6310e6be
KW
93922018-12-01 Kemi Wang <kemi.wang@intel.com>
9393
9394 * manual/tunables.texi (POSIX Thread Tunables): New node.
9395 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
9396 * nptl/nptl-init.c: Include pthread_mutex_conf.h
9397 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
9398 __pthread_tunables_init.
9399 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
9400 (max_adaptive_count): Define.
9401 * nptl/pthread_mutex_conf.c: New file.
9402 * nptl/pthread_mutex_conf.h: New file.
9403 * sysdeps/generic/adaptive_spin_count.h: New file.
9404 * sysdeps/nptl/dl-tunables.list: New file.
9405 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
9406 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
9407 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
9408 Likewise.
9409
8e67b39e
PP
94102018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
9411
9412 [BZ #20544]
9413 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
9414 * stdlib/on_exit.c (__on_exit): Likewise.
9415 * stdlib/Makefile (tests): Add tst-bz20544.
9416 * stdlib/tst-bz20544.c: New test.
9417
15b8d67e
RÁE
94182018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
9419
9420 [BZ #19767]
9421 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
9422 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
9423 New.
9424
5e63c240
FW
94252018-11-30 Florian Weimer <fweimer@redhat.com>
9426
9427 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
9428 Extend error logging.
9429 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
9430 symbol.
9431
71058602 94322018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14d0e87d 9433
5fb7fc96
AZ
9434 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
9435 __sigismember instead of sigismember.
9436 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
9437 cancel_handler): New definitions.
9438 (do_system): Use posix_spawn instead of fork and execl and remove
9439 reentracy code.
9440 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
9441 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
9442 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
9443 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
9444 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
9445 * sysdeps/unix/sysv/linux/system.c: Likewise.
9446
14d0e87d
AZ
9447 [BZ #22834]
9448 [BZ #17490]
9449 * NEWS: Add new semantic for atfork with popen and system.
9450 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
9451 fork and execl.
9452
e5d262ef
TMQMF
94532018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9454
9455 [BZ #23690]
9456 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
9457 modification order when accessing reloc_result->addr.
9458 * include/link.h (reloc_result): Add field init.
9459 * nptl/Makefile (tests): Add tst-audit-threads.
9460 (modules-names): Add tst-audit-threads-mod1 and
9461 tst-audit-threads-mod2.
9462 Add rules to build tst-audit-threads.
9463 * nptl/tst-audit-threads-mod1.c: New file.
9464 * nptl/tst-audit-threads-mod2.c: Likewise.
9465 * nptl/tst-audit-threads.c: Likewise.
9466 * nptl/tst-audit-threads.h: Likewise.
9467
7e1d4240
JM
94682018-11-30 Joseph Myers <joseph@codesourcery.com>
9469
9470 * scripts/gen-as-const.py: New file.
9471 * scripts/gen-as-const.awk: Remove.
9472 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
9473 gen-as-const.py.
9474 ($(objpfx)test-as-const-%.c): Likewise.
9475
ce7387cc
L
94762018-11-29 H.J. Lu <hongjiu.lu@intel.com>
9477
9478 * elf/dl-exception.c: Include <_itoa.h>.
9479
c6a5bdc1
ST
94802018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9481
9482 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
9483 returned by __f_setlk.
9484
a5275ba5
L
94852018-11-29 H.J. Lu <hongjiu.lu@intel.com>
9486 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9487
9488 * elf/Makefile (tests-internal): Add tst-create_format1.
9489 * elf/dl-exception.c (_dl_exception_create_format): Support
9490 %x, %lx and %zx.
9491 * elf/tst-create_format1.c: New file.
9492
3a67e81d
CAC
94932018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
9494
9495 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
9496 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
9497 gnulib.)
9498 * argp/argp-help.c (__argp_failure): Likewise.
9499
4975f0c3
MH
95002018-11-29 Mao Han <han_mao@c-sky.com>
9501
9502 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
9503 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
9504 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
9505 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
9506 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
9507 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
9508 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
9509 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
9510 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
9511 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
9512 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
9513 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
9514 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
9515 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
9516 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
9517 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
9518 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
9519 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
9520 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
9521 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
9522 (R_CKCORE_TLS_TPOFF32): New defines.
9523
250102c8
FW
95242018-11-29 Florian Weimer <fweimer@redhat.com>
9525
9526 * posix/Makefile (before-compile): Remove testcases.h and
9527 ptestcases.h.
9528 (generated): Add testcases.h and ptestcases.h.
9529 (testcases.h, ptestcases.h): Move to $(objpfx).
9530 (runtests.o): Add dependency on testcases.h.
9531 (runptests.o): Add dependency on ptestcases.h.
9532 * posix/testcases.h, posix/ptestcases.h: Remove files.
9533 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
9534 not touch posix/testcases.h and posix/ptestcases.h.
9535
96cd0558
FW
95362018-11-28 Florian Weimer <fweimer@redhat.com>
9537
9538 support: Add signal support to support_capture_subprocess_check.
9539 * support/capture_subprocess.h (support_capture_subprocess_check):
9540 Adjust comment and rename parameter.
9541 * support/support_capture_subprocess_check.c
9542 (print_actual_status): New function.
9543 (support_capture_subprocess_check): Support negative
9544 status_or_signal. Call print_actual_status.
9545 * support/tst-support_capture_subprocess.c (do_test): Call
9546 support_capture_subprocess_check.
9547 * libio/tst-vtables-common.c (termination_status)
9548 (init_termination_status): Remove.
9549 (check_for_termination): Adjust support_capture_subprocess_check
9550 call.
9551 (do_test): Remove call to init_termination_status.
9552
530504e3
JM
95532018-11-28 Joseph Myers <joseph@codesourcery.com>
9554
9555 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
9556 source directory instead of a copy.
9557 (CommandList.create_copy_dir): Remove.
9558
9a0b6970
SL
95592018-11-28 Stefan Liebler <stli@linux.ibm.com>
9560
9561 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
9562
47d8d9a2
FW
95632018-11-28 Florian Weimer <fweimer@redhat.com>
9564
9565 * support/support.h (support_quote_string): Do not use str
9566 parameter name.
9567
b473b7d8
JM
95682018-11-27 Joseph Myers <joseph@codesourcery.com>
9569
9570 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
9571 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
9572
c74a91de
FW
95732018-11-27 Florian Weimer <fweimer@redhat.com>
9574
9575 * support/support.h (support_quote_string): Declare.
9576 * support/support_quote_string.c: New file.
9577 * support/tst-support_quote_string.c: Likewise.
9578 * support/Makefile (libsupport-routines): Add
9579 support_quote_string.
9580 (tests): Add tst-support_quote_string.
9581
d527c860
FW
95822018-11-27 Florian Weimer <fweimer@redhat.com>
9583
9584 [BZ #23927]
9585 CVE-2018-19591
9586 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
9587 descriptor leak in case of ENODEV error.
9588
979cfed0
RÁE
95892018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
9590
9591 [BZ #19767]
9592 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
9593 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
9594 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
9595
ce035c6e
CD
95962018-11-26 Carlos O'Donell <carlos@redhat.com>
9597
9598 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
9599 Error for unknown lines.
9600
2bd0bfcc
JM
96012018-11-26 Joseph Myers <joseph@codesourcery.com>
9602
9603 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
9604 Touch additional files.
9605
affec03b
FW
96062018-11-26 Florian Weimer <fweimer@redhat.com>
9607
9608 [BZ #23907]
9609 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
9610 double-frees.
9611
8ae74ead
RÁE
96122018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
9613
9614 [BZ #19767]
9615 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
9616 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
9617 SHARED. Include sysdep.h.
9618 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
9619 ALWAYS_USE_VSYSCALL.
9620 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
9621 ALWAYS_USE_VSYSCALL.
9622
1e8bdc3a
RÁE
96232018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
9624
9625 [BZ #19767]
9626 * nptl/Makefile (tests-static): Add tst-cond11-static.
9627 (tests): Likewise.
9628 * nptl/tst-cond11-static.c: New File.
9629 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
9630 tst-affinity-static.
9631 (tests): Likewise.
9632 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
9633 instead of SHARED.
9634 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
9635 (USE_VSYSCALL): Likewise.
9636 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
9637 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
9638 instead of SHARED.
9639 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
9640 SHARED.
9641 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
9642 New.
9643
1283c478
JM
96442018-11-23 Joseph Myers <joseph@codesourcery.com>
9645
9646 [BZ #23915]
9647 * sysdeps/unix/sysv/linux/arm/kernel-features.h
9648 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
9649 Undefine.
9650
c089fd80
L
96512018-11-23 H.J. Lu <hongjiu.lu@intel.com>
9652
9653 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
9654 (tst-cet-legacy-1a-ARGS): New.
9655 ($(objpfx)tst-cet-legacy-1a): New target.
9656 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
9657
cc6c89fa
JM
96582018-11-22 Joseph Myers <joseph@codesourcery.com>
9659
95edd05c
JM
9660 * conform/conformtest.py (CompileSubTest.__init__): Set
9661 self.run_early to False.
9662 (ExecuteSubTest.__init__): Likewise.
9663 (HeaderTests.run): Try running all non-optional, non-XFAILed
9664 compilation tests in a single execution of the compiler.
9665
cc6c89fa
JM
9666 * conform/conformtest.py (CompileSubTest): New class.
9667 (ExecuteSubTest): Likewise.
9668 (ElementTest.run): Rename to gen_subtests. Append tests to
9669 self.subtests instead of running them.
9670 (ConstantTest.run): Likewise.
9671 (SymbolTest.run): Likewise.
9672 (TypeTest.run): Likewise.
9673 (TagTest.run): Likewise.
9674 (FunctionTest.run): Likewise.
9675 (VariableTest.run): Likewise.
9676 (MacroFunctionTest.run): Likewise.
9677 (MacroStrTest.run): Likewise.
9678 (HeaderTests.handle_test_line): Generate subtests for tests.
9679 (HeaderTests.run): Run subtests for tests.
9680
a502c529
SN
96812018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
9682
9683 * math/Versions (GLIBC_2.29): Add pow.
9684 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
9685 symbol.
9686 * math/w_pow.c: New file.
9687 * sysdeps/i386/fpu/w_pow.c: New file.
9688 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
9689 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
9690 and add necessary aliases.
9691 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
9692 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
9693 * sysdeps/mach/hurd/i386/libm.abilist: Update.
9694 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
9695 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
9696 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
9697 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
9698 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
9699 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
9700 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
9701 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
9702 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
9703 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
9704 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
9705 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
9706 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
9707 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
9708 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
9709 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
9710 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
9711 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
9712 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
9713 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
9714 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
9715 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
9716 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
9717 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
9718 __pow.
9719 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
9720 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
9721 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
9722
718d6542
SN
97232018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
9724
9725 * math/Versions (GLIBC_2.29): Add log2.
9726 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
9727 symbol.
9728 * math/w_log2.c: New file.
9729 * sysdeps/i386/fpu/w_log2.c: New file.
9730 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
9731 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
9732 and add necessary aliases.
9733 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
9734 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
9735 * sysdeps/mach/hurd/i386/libm.abilist: Update.
9736 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
9737 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
9738 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
9739 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
9740 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
9741 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
9742 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
9743 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
9744 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
9745 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
9746 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
9747 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
9748 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
9749 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
9750 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
9751 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
9752 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
9753 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
9754 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
9755 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
9756 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
9757 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
9758 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
9759
f29b7c49
SN
97602018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
9761
9762 * math/Versions (GLIBC_2.29): Add log.
9763 * math/w_log_compat.c (__log_compat): Change to versioned compat
9764 symbol.
9765 * math/w_log.c: New file.
9766 * sysdeps/i386/fpu/w_log.c: New file.
9767 * sysdeps/ia64/fpu/e_log.S: Update.
9768 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
9769 and add necessary aliases.
9770 * sysdeps/ieee754/dbl-64/w_log.c: New file.
9771 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
9772 * sysdeps/mach/hurd/i386/libm.abilist: Update.
9773 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
9774 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
9775 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
9776 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
9777 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
9778 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
9779 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
9780 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
9781 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
9782 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
9783 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
9784 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
9785 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
9786 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
9787 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
9788 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
9789 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
9790 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
9791 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
9792 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
9793 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
9794 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
9795 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
9796 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
9797 __log.
9798 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
9799 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
9800 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
9801 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
9802
c20a1056
SN
98032018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
9804
9805 * math/Versions (GLIBC_2.29): Add exp and exp2.
9806 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
9807 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
9808 * math/w_exp_compat.c (__exp_compat): Likewise.
9809 * math/w_exp.c: New file.
9810 * math/w_exp2.c: New file.
9811 * sysdeps/i386/fpu/w_exp.c: New file.
9812 * sysdeps/i386/fpu/w_exp2.c: New file.
9813 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
9814 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
9815 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
9816 and add necessary aliases.
9817 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
9818 and add necessary aliases.
9819 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
9820 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
9821 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
9822 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
9823 * sysdeps/mach/hurd/i386/libm.abilist: Update.
9824 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
9825 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
9826 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
9827 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
9828 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
9829 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
9830 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
9831 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
9832 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
9833 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
9834 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
9835 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
9836 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
9837 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
9838 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
9839 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
9840 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
9841 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
9842 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
9843 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
9844 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
9845 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
9846 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
9847 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
9848 (__ieee754_exp): Rename to __exp.
9849 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
9850 (__ieee754_exp): Rename to __exp.
9851 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
9852 (__ieee754_exp): Rename to __exp.
9853 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
9854 __exp.
9855 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
9856
bcdaad21
DD
98572018-11-20 DJ Delorie <dj@redhat.com>
9858
9859 * malloc/malloc.c (tcache_entry): Add key field.
9860 (tcache_put): Set it.
9861 (tcache_get): Likewise.
9862 (_int_free): Check for double free in tcache.
9863 * malloc/tst-tcfree1.c: New.
9864 * malloc/tst-tcfree2.c: New.
9865 * malloc/Makefile: Run the new tests.
9866 * manual/probes.texi: Document memory_tcache_double_free probe.
9867
9868 * dlfcn/dlerror.c (check_free): Prevent double frees.
9869
5770c0ad
WD
98702018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
9871
9872 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
9873
9a62a939
JM
98742018-11-20 Joseph Myers <joseph@codesourcery.com>
9875
9876 * conform/conformtest.py (ElementTest.run): Use unique identifiers
9877 in tests. Use names for format arguments.
9878 (ConstantTest.run): Likewise.
9879 (SymbolTest.run): Likewise.
9880 (TypeTest.run): Likewise.
9881 (TagTest.run): Likewise.
9882 (FunctionTest.run): Likewise.
9883 (VariableTest.run): Likewise.
9884 (MacroFunctionTest.run): Likewise.
9885 (MacroStrTest.run): Likewise.
9886 (HeaderTests.__init__): Set self.num_tests.
9887 (HeaderTests.handle_test_line): Set test.num. Increment
9888 self.num_tests.
9889
b15b1a95
ST
98902018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
9891
9892 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
9893 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
9894 SEEK_SET.
9895
0c7f97ae
MH
98962018-11-19 Mao Han <han_mao@c-sky.com>
9897
9898 * scripts/config.guess: Update to version 2018-08-29.
9899 * scripts/config.sub: Update to version 2018-08-29.
9900
35e3fbc4
FW
99012018-11-19 Florian Weimer <fweimer@redhat.com>
9902
9903 support: Print timestamps in timeout handler.
9904 * support/support_test_main.c (print_timestamp): New function.
9905 (signal_handler): Use it to print the termination time and the
9906 time of the last write to standard output.
9907
c75772e3
ZW
99082018-11-16 Zack Weinberg <zackw@panix.com>
9909 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9910
9911 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
9912 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
9913 argument.
9914 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
9915 and add flags argument. Check flags instead of __ldbl_is_dbl when
9916 deciding whether to set is_long_double.
9917 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
9918 passing zero for flags argument.
9919 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
9920
9921 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
9922 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
9923 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
9924 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
9925 variable names. Remove libc_hidden_def/libc_hidden_proto from
9926 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
9927 longer called from within the library.
9928 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
9929 for __nldbl___vstrfmon_l, declare it explicitly.
9930
9931 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
9932
346ef23f
ST
99332018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
9934
9935 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
9936 macros
9937 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
9938 F_SETLK64, F_SETLKW64, respectively.
9939 * sysdeps/mach/hurd/f_setlk.c: New file.
9940 * sysdeps/mach/hurd/f_setlk.h: New file.
9941 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
9942 f_setlk.
9943 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
9944 (__libc_fcntl): Move non-flock operations to...
9945 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
9946 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
9947
de20b81a
PE
99482018-11-15 Paul Eggert <eggert@cs.ucla.edu>
9949
5d8af156
PE
9950 mktime: DEBUG_MKTIME cleanup
9951 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
9952 And it’s no longer needed now that glibc and Gnulib both have
9953 their own testing mechanisms for mktime.
9954 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
9955
86aece3b
PE
9956 mktime: fix non-EOVERFLOW errno handling
9957 [BZ#23789]
9958 mktime was not properly reporting failures when the underlying
9959 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
9960 them like EOVERFLOW failures, and set errno to EOVERFLOW.
9961 The problem could happen on non-glibc platforms, with Gnulib.
9962 * time/mktime.c (guess_time_tm): Remove, replacing with ...
9963 (tm_diff): ... this simpler function, which does not change errno.
9964 All callers changed to deal with errno themselves.
9965 (ranged_convert, __mktime_internal): Return failure immediately if
9966 the underlying function reports any failure other than EOVERFLOW.
9967 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
9968 gap code fails.
9969
f6b3331b
PE
9970 mktime: fix bug with Y2038 DST transition
9971 [BZ#23789]
9972 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
9973 mishandle a DST transition that jumps over the Y2038 boundary.
9974 No such DST transitions are known so this is only a theoretical
9975 bug, but we might as well do things right.
9976
efbdddc3
PE
9977 mktime: make more room for overflow
9978 [BZ#23789]
9979 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
9980 This is so that we can add tm_diff results to a previous guess,
9981 which will be useful in a later patch.
9982
6c90d759
PE
9983 mktime: simplify offset guess
9984 [BZ#23789]
9985 * time/mktime.c (__mktime_internal): Omit excess precision.
9986
32c12f3f
PE
9987 mktime: new test for mktime failure
9988 [BZ#23789]
9989 Based on a test suggested by Albert Aribaud in:
9990 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
9991 * time/Makefile (tests): Add bug-mktime4.
9992 * time/bug-mktime4.c: New file.
9993
de20b81a
PE
9994 mktime: fix EOVERFLOW bug
9995 [BZ#23789]
9996 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
9997 Include libc-config.h, not config.h, for __set_errno.
9998 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
9999
8c6c3fb0
ST
100002018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
10001
10002 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
10003 __attribute_copy__ to copy attributes from name. Drop static qualifier
10004 to avoid warnings about leaf attribute not having effect on static
10005 functions.
10006
6923f6db
FW
100072018-11-13 Florian Weimer <fweimer@redhat.com>
10008
10009 * malloc/malloc.c (fastbin_push_entry): New function.
10010 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
10011 (REMOVE_FB): Remove macro.
10012 (_int_malloc): Use fastbin_pop_entry and reindent.
10013 (_int_free): Use fastbin_push_entry.
10014 (malloc_consolidate): Use atomic_exchange_acquire.
10015
53f5c659
JM
100162018-11-13 Joseph Myers <joseph@codesourcery.com>
10017
0c096dcf
JM
10018 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
10019 alias attribute, not with strong_alias.
10020
9c4b457e
JM
10021 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
10022 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
10023 with additional parameter thread.
10024 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
10025 in terms of __hidden_ver2.
10026 (hidden_tls_def): New macro.
10027 (libc_hidden_tls_def): Likewise.
10028 (rtld_hidden_tls_def): Likewise.
10029 (libm_hidden_tls_def): Likewise.
10030 (libmvec_hidden_tls_def): Likewise.
10031 (libresolv_hidden_tls_def): Likewise.
10032 (librt_hidden_tls_def): Likewise.
10033 (libdl_hidden_tls_def): Likewise.
10034 (libnss_files_hidden_tls_def): Likewise.
10035 (libnsl_hidden_tls_def): Likewise.
10036 (libnss_nisplus_hidden_tls_def): Likewise.
10037 (libutil_hidden_tls_def): Likewise.
10038 (libutil_hidden_tls_def): Likweise.
10039 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
10040 libc_hidden_tls_def.
10041 (__sim_disabled_exceptions_thread): Likewise.
10042 (__sim_round_mode_thread): Likewise.
10043
53f5c659
JM
10044 * sysdeps/sparc/sparc-ifunc.h [SHARED]
10045 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
10046 copy attributes from name.
10047
092dfde6
JM
100482018-11-12 Joseph Myers <joseph@codesourcery.com>
10049
f578f97b
JM
10050 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
10051 Use __attribute_copy__ to copy attributes from name.
10052
9a7c643a
JM
10053 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
10054 with __hidden_ver1 call.
10055 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
10056 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
10057 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
10058 (__cosf): Do not declare here.
10059 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
10060 (__sincosf): Do not declare here.
10061 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
10062 (__sinf): Do not declare here.
10063
092dfde6
JM
10064 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
10065 (__BIG_ENDIAN): Likewise.
10066 (__BYTE_ORDER): Likewise.
10067 (strong_alias): Likewise.
10068 (_strong_alias): Likewise.
10069
1ecba1fa
FW
100702018-11-12 Florian Weimer <fweimer@redhat.com>
10071
10072 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
10073 function. Move after the definition of in_smallbin_range. Do not
10074 use __builtin_expect for paths that lead to a noreturn function.
10075 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
10076 because it is unclear whether this is in fact an unlikely
10077 condition.
10078 (_int_malloc, _int_free): Adjust.
10079 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
10080 variables.
10081 * malloc/arena.c (heap_trim): Likewise.
10082
434c34bd
ST
100832018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
10084
10085 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
10086 it, free it if needed.
10087 (reauthenticate): Test and use ccwdir.
10088 (child_init_port): In non-resetids case, test and use ccwdir.
10089 (child_chdir): New nested function to set ccwdir.
7fa495cd
ST
10090 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
10091 * hurd/hurd/port.h (_hurd_port_move): New function.
10092 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
10093 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
88b26b7e
ST
10094 * hurd/Versions (_hurd_port_move): Export function.
10095 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
10096 symbol.
58bb655a
ST
10097 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
10098 of dtablesize for allocating dtable_cloexec.
434c34bd 10099
1626a1cf
MS
101002018-11-09 Martin Sebor <msebor@redhat.com>
10101
10102 * include/libc-symbols.h (__attribute_copy__): Define macro unless
10103 it's already defined.
10104 (_strong_alias): Use __attribute_copy__.
10105 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
10106 * misc/sys/cdefs.h (__attribute_copy__): New macro.
10107 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
10108 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
10109 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
10110 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
10111 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
10112 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
10113 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
10114 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
10115 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
10116 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
10117 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
10118 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
10119 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
10120 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
10121 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
10122 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
10123 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
10124
968ed530
GG
101252018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10126
10127 * misc/tst-efgcvt.c: Include support/check.h and
10128 support/test-driver.c. Do not include test-skeleton.c.
10129 (error_count): Remove.
10130 (output_error): Replace increments to error_count with calls to
10131 support_record_failure.
10132 (output_r_error): Likewise.
10133 (special): Likewise.
10134 (do_test): Unconditionally return zero.
10135 (TEST_FUNCTION): Remove.
10136
c3ec0972
JM
101372018-11-09 Joseph Myers <joseph@codesourcery.com>
10138
91faaa93
JM
10139 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
10140 not $(@D)/scratch.
10141 ($(linknamespace-header-tests)): Likewise.
10142
c3ec0972
JM
10143 * conform/conformtest.py: New file.
10144 * conform/conformtest.pl: Remove.
10145 * conform/GlibcConform.pm: Likewise.
10146 * conform/glibcconform.py (KEYWORDS_C90): New constant.
10147 (KEYWORDS_C99): Likewise.
10148 (KEYWORDS): Likewise.
10149 * conform/Makefile ($(conformtest-header-tests)): Use
10150 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
10151 option. Use --header instead of --headers.
10152 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
10153 function entries.
10154 * conform/data/spawn.h-data: Likewise.
10155 * conform/data/fcntl.h-data (openat): Add space after function
10156 name.
10157 * conform/data/wchar.h-data (wcscasecmp): Likewise.
10158 (wcscasecmp_l): Likewise.
10159 * conform/data/termios.h-data (c_cc): Add space after element
10160 name.
10161
43257c33
GG
101622018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10163
10164 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
10165 instead of manually comparing and reporting mismatching strings.
10166 * misc/tst-ldbl-error.c (do_one_test): Likewise.
10167 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
10168
e5de3b5b
JM
101692018-11-08 Joseph Myers <joseph@codesourcery.com>
10170
10171 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
10172 __ASSUME_SOCKETCALL.
10173 * sysdeps/unix/sysv/linux/i386/kernel-features.h
10174 (__ASSUME_SOCKETCALL): Remove.
10175 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
10176 (__ASSUME_SOCKETCALL): Likewise.
10177 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10178 (__ASSUME_SOCKETCALL): Likewise.
10179 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
10180 (__ASSUME_SOCKETCALL): Likewise.
10181 * sysdeps/unix/sysv/linux/s390/kernel-features.h
10182 (__ASSUME_SOCKETCALL): Likewise.
10183 * sysdeps/unix/sysv/linux/sh/kernel-features.h
10184 (__ASSUME_SOCKETCALL): Likewise.
10185 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
10186 (__ASSUME_SOCKETCALL): Likewise.
10187
d524fa6c
L
101882018-11-08 H.J. Lu <hongjiu.lu@intel.com>
10189
10190 [BZ #23509]
10191 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
10192 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
10193 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
10194 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
10195 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
10196 lc_unknown.
10197
ac806026
AH
101982018-11-08 Alexandra Hájková <ahajkova@redhat.com>
10199
10200 [BZ #17630]
10201 * resolv/tst-resolv-network.c: Add test for getnetbyname.
10202
596cc360
JM
102032018-11-07 Joseph Myers <joseph@codesourcery.com>
10204
10205 [BZ #23867]
10206 * sysdeps/unix/sysv/linux/arm/kernel-features.h
10207 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
10208 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10209 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
10210
00c86a37
AZ
102112018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10212
10213 * support/support_test_compare_string.c
10214 (support_test_compare_string): Fix printf format.
10215
1df872fd
FW
102162018-11-07 Florian Weimer <fweimer@redhat.com>
10217
10218 Implement TEST_COMPARE_STRING.
10219 * support/check.h (TEST_COMPARE_STRING): Define.
10220 (support_test_compare_string): Declare.
10221 * support/Makefile (libsupport-routines): Add
10222 support_test_compare_string.
10223 (tests): Add tst-test_compare_string.
10224 * support/support_test_compare_string.c: New file.
10225 * support/tst-test_compare_string.c: Likewise.
10226
295132ff
AS
102272018-11-07 Andreas Schwab <schwab@suse.de>
10228
10229 [BZ #23864]
10230 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
10231 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
10232 Undef.
10233
e143ceba
JM
102342018-11-06 Joseph Myers <joseph@codesourcery.com>
10235
10236 [BZ #23862]
10237 * sysdeps/unix/sysv/linux/sh/kernel-features.h
10238 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
10239 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
10240 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
10241 Likewise.
10242
4a938cb2
FW
102432018-11-06 Florian Weimer <fweimer@redhat.com>
10244
10245 [BZ #17405]
10246 * posix/Makefile (routines): Add spawn_faction_addchdir.
10247 (tests): Add tst-spawn-chdir.
10248 * posix/Versions (GLIBC_2.29): Add
10249 posix_spawn_file_actions_addchdir_np.
10250 * posix/spawn_faction_addchdir.c: New file.
10251 * posix/spawn_faction_destroy.c
10252 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
10253 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
10254 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
10255 chdir_action.
10256 * posix/tst-spawn-chdir.c: New file.
10257 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
10258 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
10259 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
10260 posix_spawn_file_actions_addchdir_np.
10261 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
10262 Likewise.
10263 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
10264 Likewise.
10265 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
10266 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
10267 Likewise.
10268 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
10269 Likewise.
10270 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
10271 Likewise.
10272 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
10273 Likewise.
10274 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
10275 Likewise.
10276 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
10277 Likewise.
10278 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
10279 (GLIBC_2.29): Likewise.
10280 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
10281 (GLIBC_2.29): Likewise.
10282 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
10283 (GLIBC_2.29): Likewise.
10284 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
10285 (GLIBC_2.29): Likewise.
10286 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
10287 Likewise.
10288 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
10289 (GLIBC_2.29): Likewise.
10290 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
10291 (GLIBC_2.29): Likewise.
10292 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
10293 (GLIBC_2.29): Likewise.
10294 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
10295 (GLIBC_2.29): Likewise.
10296 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
10297 Likewise.
10298 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
10299 Likewise.
10300 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
10301 Likewise.
10302 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
10303 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
10304 Likewise.
10305 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
10306 Likewise.
10307 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
10308 Likewise.
10309 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
10310 Likewise.
10311
7597b0c7
GG
103122018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10313
10314 * misc/Makefile (tests): Add tst-ldbl-error.
10315 * misc/tst-ldbl-error.c: New file.
10316
9771e6cb
GG
103172018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10318
10319 * misc/Makefile (tests): Add tst-ldbl-warn.
10320 * misc/tst-ldbl-warn.c: New file.
10321
2c03961f
GG
103222018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10323
10324 * argp/Makefile (tests): Add tst-ldbl-argp.
10325 * argp/tst-ldbl-argp.c: New file.
10326
6d6ee046
AS
103272018-11-05 Arjun Shankar <arjun@redhat.com>
10328
10329 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
10330 __gconv_path_elem and call __gconv_get_path unconditionally.
10331
bd3b0fba
AS
103322018-11-05 Andreas Schwab <schwab@suse.de>
10333
10334 [BZ #22927]
10335 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
10336 creating the first helper thread failed.
10337
2e96e980
ST
103382018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10339
10340 * sysdeps/mach/hurd/msync.c: New file.
10341
6e36266c
FW
103422018-11-02 Florian Weimer <fweimer@redhat.com>
10343
10344 * support/shell-container.c (copy_func): Call
10345 support_copy_file_range instead of copy_file_range to support
10346 cross-device copies.
10347
599f7bee
FW
103482018-11-02 Florian Weimer <fweimer@redhat.com>
10349
10350 * support/test-container.c: Include <libc-pointer-arith.h> for
10351 ALIGN_UP.
10352
ff48ea67
ZL
103532018-11-01 Zong Li <zong@andestech.com>
10354
af1d5782
ZL
10355 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
10356 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
10357 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
10358 (__FP_FRAC_SET_8): Add implementation for RV32 use.
10359
ff48ea67
ZL
10360 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
10361 variable to avoid overlap arguments.
10362
daea71c2
JM
103632018-11-01 Joseph Myers <joseph@codesourcery.com>
10364
eac4405a
JM
10365 * posix/bug-regex22.c (main): Use puts with distinct error
10366 messages for unexpected success of re_compile_pattern, not printf
10367 with NULL argument to %s.
10368
6f30e59f
JM
10369 * stdio-common/bug22.c: Include <libc-diag.h>.
10370 (do_test): Disable -Wformat-overflow= warnings around fprintf
10371 calls outputting more than INT_MAX characters.
10372 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
10373 around printf call with NULL %s argument.
10374
daea71c2
JM
10375 [BZ #23848]
10376 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
10377 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
10378 Undefine.
10379 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
10380 (__ASSUME_RECVMSG_SYSCALL): Likewise.
10381 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
10382 (__ASSUME_SENDTO_SYSCALL): Likewise.
10383 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
10384 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
10385 [!__arch64__].
10386 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
10387 (__ASSUME_CONNECT_SYSCALL): Likewise.
10388 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
10389 (__ASSUME_RECVFROM_SYSCALL): Likewise.
10390 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
10391 Define.
10392 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
10393 Likewise.
10394 [__LINUX_KERNEL_VERSION >= 0x040400]
10395 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
10396 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
10397 Remove.
10398 (listen): Likewise.
10399 (setsockopt): Likewise.
10400
8e3c00db
FN
104012018-11-01 Fredrik Noring <noring@nocrew.org>
10402
10403 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
10404 with the ISA override.
10405
9c3dbdbe
RAE
104062018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
10407
10408 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
10409 #endif.
10410
e3a88b3e
ST
104112018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
10412
a67377e7 10413 * manual/errno.texi (EIEIO): Document how translators should
e3a88b3e 10414 translate the error message.
a67377e7
ST
10415 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
10416 printing trailing whitespaces refused by git.
10417 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
10418 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
fc783076 10419 * hurd/Makefile (user-interfaces): Add pci.
e3a88b3e 10420
3ca235ed
JM
104212018-10-30 Joseph Myers <joseph@codesourcery.com>
10422
10423 * conform/linknamespace.py: New file.
10424 * conform/linknamespace.pl: Remove file.
10425 * conform/Makefile ($(linknamespace-header-tests)): Use
10426 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
10427 option.
10428
60708030
FW
104292018-10-30 Florian Weimer <fweimer@redhat.com>
10430
10431 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
10432 memory leaks.
10433
a91e9301
FW
104342018-10-30 Florian Weimer <fweimer@redhat.com>
10435
10436 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
10437
07da99aa
FW
104382018-10-30 Florian Weimer <fweimer@redhat.com>
10439
10440 * stdlib/tst-strtod-overflow.c (do_test): Switch to
10441 support_blob_repeat.
10442
f5e7e959
FW
104432018-10-30 Florian Weimer <fweimer@redhat.com>
10444
10445 Avoid spurious test failures in stdlib/test-bz22786.
10446 * support/Makefile (libsupport-routines): Add blob_repeat.
10447 (tests): Add tst-support_blob_repeat.
10448 * support/blob_repeat.h: New file.
10449 * support/blob_repeat.c: Likewise.
10450 * support/tst-support_blob_repeat.c: Likewise.
10451 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
10452 support_blob_repeat_allocate.
10453
2dd12baa
AS
104542018-10-30 Andreas Schwab <schwab@suse.de>
10455
10456 [BZ #23125]
10457 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
10458 Don't use tail call.
10459 * elf/tst-unwind-main.c: New file.
10460 * elf/Makefile (tests): Add tst-unwind-main.
10461 (CFLAGS-tst-unwind-main.c): Define.
10462
6b5c8607 104632018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
fec8bb7c
SAA
10464
10465 [BZ #23791]
10466 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
10467 n_cs_precedes to 0.
10468 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
10469
c6982f7e
JM
104702018-10-29 Joseph Myers <joseph@codesourcery.com>
10471
954cf3c2
JM
10472 * conform/glibcconform.py: Do not import shutil.
10473 (list_exported_functions): Use tempfile.TemporaryDirectory instead
10474 of mkdtemp.
10475
c6982f7e
JM
10476 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
10477 critic_missing for versions before 3.4.
10478 * configure: Regenerated.
10479 * manual/install.texi (Tools for Compilation): Document
10480 requirement for Python to build glibc.
10481 * INSTALL: Regenerated.
10482 * Rules [PYTHON]: Make code unconditional.
10483 * benchtests/Makefile [PYTHON]: Likewise.
10484 * conform/Makefile [PYTHON]: Likewise.
10485 * manual/Makefile [PYTHON]: Likewise.
10486 * math/Makefile [PYTHON]: Likewise.
10487
46a7f24c
ST
104882018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
10489
10490 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
2d0d1d38 10491 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
b6e7c449 10492 answer to interrupt_operation, return EIEIO instead of EINTR.
5c81be53
ST
10493 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
10494 _hurd_intr_rpc_msg_about_to global point to start of controlled
10495 assembly snippet. Make it check canceled flag.
10496 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
10497 the _hurd_intr_rpc_msg_about_to point.
10498 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
10499 issue, remove cancel flag check.
46a7f24c 10500
e5b8756d
JM
105012018-10-26 Joseph Myers <joseph@codesourcery.com>
10502
10503 * scripts/build-many-glibcs.py: Remove compatibility for missing
10504 os.cpu_count and re.fullmatch.
10505
ba5b14c7
SN
105062018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
10507
10508 [BZ #23822]
10509 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
10510 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
10511 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
10512
fe61f17c
JM
105132018-10-25 Joseph Myers <joseph@codesourcery.com>
10514
10515 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
10516 macro.
10517
7c5e34d7
FW
105182018-10-25 Florian Weimer <fweimer@redhat.com>
10519
10520 [BZ #23562]
10521 [BZ #23821]
10522 XFAIL siginfo_t si_band conform test on sparc64.
10523 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
10524 (__SI_BAND_TYPE): Only override long int default type on sparc64.
10525 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
10526 (conformtest-xfail-conds): Add sparc64-linux.
10527 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
10528 sparc64.
10529 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
10530
5b784e88
JM
105312018-10-25 Joseph Myers <joseph@codesourcery.com>
10532
10533 * elf/elf.h (NT_MIPS_DSP): New macro.
10534 (NT_MIPS_FP_MODE): Likewise.
10535
41432ebe
ZL
105362018-10-25 Zong Li <zong@andestech.com>
10537
10538 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
10539 name by adding the file extension (.so).
10540
d026efea
ST
105412018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
10542
10543 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
10544 (test-xfail-ISO11/threads.h/linknamespace,
10545 test-xfail-ISO11/threads.h/conform): Add.
10546
b71ac2b9
JM
105472018-10-24 Joseph Myers <joseph@codesourcery.com>
10548
10549 * math/gen-libm-test.py: Import os.
10550 (ALL_FLOATS_MANUAL): New constant.
10551 (ALL_FLOATS_SUFFIX): Likewise.
10552 (Ulps.all_functions): New function.
10553 (real_all_ulps): Likewise.
10554 (generate_err_table_sub): Likewise.
10555 (generate_err_table): Likewise.
10556 (main): Handle -s and -m options.
10557 * manual/libm-err-tab.pl: Remove.
10558 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
10559 instead of libm-err-tab.pl.
10560 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
10561 != no].
10562 * manual/install.texi (Tools for Compilation): Document
10563 requirement for Python to build manual.
10564 * INSTALL: Regenerated.
10565
6b5c8607 105662018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
d51f99ce
AA
10567
10568 * bits/time64.h: New file.
10569 * include/time.h: Replace internal_time_t with __time64_t.
10570 * posix/bits/types (__time64_t): Add.
10571 * stdlib/Makefile: Add bits/time64.h to includes.
10572 * time/tzfile.c: Replace internal_time_t with __time64_t.
10573
97d91fcc 105742018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2a973ab7
AZ
10575
10576 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
10577 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
10578 __posix_spawn_file_actions_init, __posix_spawnattr_init,
10579 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
10580 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
10581 prototype.
10582 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
10583 * posix/spawn_faction_addclose.c
10584 (__posix_spawn_file_actions_addclose): Add hidden definition.
10585 * posix/spawn_faction_adddup2.c
10586 (__posix_spawn_file_actions_adddup2): Likewise.
10587 * posix/spawn_faction_destroy.c
10588 (__posix_spawn_file_actions_destroy): Likewise.
10589 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
10590 Likewise.
10591 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
10592 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
10593 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
10594 Likewise.
10595 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
10596 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
10597 Likewise.
10598
2954daf0
AS
105992018-10-24 Andreas Schwab <schwab@suse.de>
10600
10601 [BZ #18093]
10602 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
10603 format cache.
10604 * elf/cache.c (print_cache): Likewise.
10605
6b5c8607 106062018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
a27a4f47
AA
10607
10608 * bits/timesize.h: New file.
10609 * stdlib/Makefile (headers): Add bits/timesize.h.
10610 * sysdeps/unix/sysv/linux/bits/msq-pad.h
10611 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
10612 * sysdeps/unix/sysv/linux/bits/sem-pad.h
10613 (__SEM_PAD_AFTER_TIME): Likewise.
10614 * sysdeps/unix/sysv/linux/bits/shm-pad.h
10615 (__SHM_PAD_AFTER_TIME): Likewise.
10616 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
10617 (__MSQ_PAD_BEFORE_TIME): Likewise.
10618 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
10619 (__SEM_PAD_BEFORE_TIME): Likewise.
10620 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
10621 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
10622 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
b39d961c
TS
10623 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
10624 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
10625 (__MSQ_PAD_BEFORE_TIME): Likewise.
a27a4f47
AA
10626 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
10627 (__SEM_PAD_BEFORE_TIME): Likewise.
10628 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
10629 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
10630 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
10631 (__MSQ_PAD_BEFORE_TIME): Likewise.
10632 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
10633 (__SEM_PAD_BEFORE_TIME): Likewise.
10634 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
10635 (__SHM_PAD_BEFORE_TIME): Likewise.
10636 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
10637 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
10638 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
10639
7cc65773
L
106402018-10-24 H.J. Lu <hongjiu.lu@intel.com>
10641
10642 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
10643 USE_RDTSCP is defined.
10644 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
10645 USE_RDTSCP is defined.
10646
c3d8dc45
AZ
106472018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10648
18ad0de6
AZ
10649 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
10650 defined.
10651
c3d8dc45
AZ
10652 [BZ #23709]
10653 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
10654 independently of other flags.
10655
f1034472
FW
106562018-10-23 Florian Weimer <fweimer@redhat.com>
10657
10658 * time/tst-mktime2.c (N_STRINGS): Remove.
10659 (set_timezone): New function.
10660 (spring_forward_gap): Call it. Use FAIL_EXIT1.
10661 (mktime_test1): Report localtime failure and check errno value.
10662 Use TEST_COMPARE.
10663 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
10664 (do_test): Remove alarm call. Use set_timezone and array_length.
10665
367d7cc2
AS
106662018-10-23 Andreas Schwab <schwab@suse.de>
10667
10668 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
10669 (__start_context): Use END instead of PSEUDO_END.
10670
be8ff03f
JM
106712018-10-22 Joseph Myers <joseph@codesourcery.com>
10672
029ad711
JM
10673 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
10674 version to 4.19.
10675
8190520f
JM
10676 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
10677 version to 4.19.
10678
be8ff03f
JM
10679 [BZ #23793]
10680 * wcsmbs/c32rtomb.c: New file.
10681 * wcsmbs/mbrtoc32.c: Likewise.
10682 * wcsmbs/tst-c32-state.c: Likewise.
10683 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
10684 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
10685 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
10686 (tests): Add tst-c32-state.
10687 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
10688 $(gen-locales).
10689
2dd8e58c
L
106902018-10-21 H.J. Lu <hongjiu.lu@intel.com>
10691
10692 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
10693 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
10694
d0a74159
JM
106952018-10-19 Joseph Myers <joseph@codesourcery.com>
10696
10697 [BZ #23794]
10698 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
10699 pair and return 0 in that case, and use saved character to
10700 interpret following character.
10701 * wcsmbs/tst-c16-surrogate.c: New file.
10702 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
10703 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
10704 Depend on $(gen-locales)
10705
f997b4be
IYM
107062018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10707
10708 [BZ #23562]
10709 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
10710 (struct siginfo_t): Use correct type for si_band.
10711
53b2bb87
FW
107122018-10-19 Florian Weimer <fweimer@redhat.com>
10713
10714 [BZ #23689]
10715 * resource/bits/types/struct_rusage.h (struct rusage): Update
10716 comment on struct. Remove extraneous field comment.
10717
0a271c8f
DM
107182018-10-18 David S. Miller <davem@davemloft.net>
10719
94a3a27f
DM
10720 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
10721 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
10722 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
10723 sysdep_routines in subdir elf.
10724 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
10725 version for __vdso_clock_gettime.
10726 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
10727 Define.
10728 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
10729 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
10730
0a271c8f
DM
10731 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
10732
72771e53
L
107332018-10-17 H.J. Lu <hongjiu.lu@intel.com>
10734
10735 * sysdeps/i386/init-arch.h: Removed.
10736 * sysdeps/i386/i586/init-arch.h: Likewise.
10737 * sysdeps/i386/i686/init-arch.h: Likewise.
10738 * sysdeps/i386/i686/hp-timing.h: Likewise.
10739 * sysdeps/x86_64/hp-timing.h: Likewise.
10740 * sysdeps/i386/isa.h: New file.
10741 * sysdeps/i386/i586/isa.h: Likewise.
10742 * sysdeps/i386/i686/isa.h: Likewise.
10743 * sysdeps/x86_64/isa.h: Likewise.
10744 * sysdeps/x86/hp-timing.h: New file.
10745 * sysdeps/x86/init-arch.h: Include <isa.h>.
10746
c2b7ccad
JM
107472018-10-17 Joseph Myers <joseph@codesourcery.com>
10748
10749 * math/libm-test-pow.inc (pow_test_data): Do not allow
10750 divide-by-zero exception for pow(+/- 0, -Inf).
10751
26756e57
ZW
107522018-10-17 Zack Weinberg <zackw@panix.com>
10753
10754 * manual/job.texi (Job Control is Optional): Remove node, as
10755 job control has not been optional in quite some time.
10756 (Job Control): Mention briefly that systems older than
10757 POSIX.1-2001 might not support job control.
10758 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
10759 defined on systems conforming to POSIX.1-2001.
10760
c5288d37
AS
107612018-10-17 Arjun Shankar <arjun@redhat.com>
10762
10763 [BZ #22062]
10764 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
10765 indentation.
10766 * (__gconv_read_conf): Mark function static.
10767 * (once): New static variable.
10768 * (__gconv_load_conf): New function.
10769 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
10770 * iconv/gconv_db.c (once): Remove static variable.
10771 * (__gconv_compare_alias): Use __gconv_load_conf instead of
10772 __gconv_read_conf.
10773 * (__gconv_find_transform): Likewise.
10774 * iconv/tst-iconv-mt.c: New test.
10775 * iconv/Makefile: Add tst-iconv_mt.
10776
8c8d2a8a
JM
107772018-10-17 Joseph Myers <joseph@codesourcery.com>
10778
10779 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
729f3402
JM
10780 bits/shm-pad.h.
10781 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
10782 (shmatt_t): Define as __syscall_ulong_t.
10783 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
10784 and [__SHM_PAD_AFTER_TIME].
10785 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
10786 Define shm_segsz and associated padding based on
10787 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
10788 Use __syscall_ulong_t instead of unsigned long int.
10789 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
10790 unsigned long int.
10791 [__USE_MISC] (struct shm_info): Likewise.
10792 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
10793 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
10794 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
10795 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
10796 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
10797 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
10798 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
10799 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
10800 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
10801 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
10802 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
10803
10804 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8c8d2a8a
JM
10805 bits/shmlba.h.
10806 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
10807 (SHMLBA): Remove macro.
10808 (__getpagesize): Remove function declaration.
10809 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
10810 <bits/shmlba.h>.
10811 (SHMLBA): Remove macro.
10812 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
10813 <bits/shmlba.h>.
10814 (SHMLBA): Remove macro.
10815 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
10816 <bits/shmlba.h>.
10817 (SHMLBA): Remove macro.
10818 (__getpagesize): Remove function declaration.
10819 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
10820 <bits/shmlba.h>.
10821 (SHMLBA): Remove macro.
10822 (__getshmlba): Remove function declaration.
10823 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
10824 (SHMLBA): Remove macro.
10825 (__getpagesize): Remove function declaration.
10826 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
10827 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
10828 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
10829 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
10830 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
10831 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
10832 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
10833 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
10834 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
10835 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
10836
403b4feb
SL
108372018-10-17 Stefan Liebler <stli@linux.ibm.com>
10838
10839 [BZ #23275]
10840 * nptl/tst-mutex10.c: New File.
10841 * nptl/Makefile (tests): Add tst-mutex10.
10842 (tst-mutex10-ENV): New variable.
10843 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
10844 Ensure that elision path is used if elision is available.
10845 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
10846 Likewise.
10847 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
10848 Likewise.
10849 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
10850 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
10851 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
10852 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
10853 Likewise.
10854 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
10855 (__pthread_mutex_cond_lock_adjust): Likewise.
10856 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
10857 Likewise.
10858 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
10859 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
10860 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
10861 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
10862 Add comments.
10863 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
10864 Use atomic_load_relaxed and atomic_store_relaxed.
10865 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
10866 Use atomic_store_relaxed.
10867
ce5a7de6
AS
108682018-10-17 Andreas Schwab <schwab@suse.de>
10869
10870 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
10871 * crypt/badsalttest.c (TIMEOUT): Likewise.
10872 * crypt/sha256c-test.c (TIMEOUT): Likewise.
10873 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
10874 * io/test-lfs.c (TIMEOUT): Likewise.
10875 * libio/tst-atime.c (TIMEOUT): Likewise.
10876 * localedata/tst-leaks.c (TIMEOUT): Likewise.
10877 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
10878 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
10879 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
10880 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
10881 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
10882 * nptl/tst-cond11.c (TIMEOUT): Likewise.
10883 * nptl/tst-cond14.c (TIMEOUT): Likewise.
10884 * nptl/tst-cond15.c (TIMEOUT): Likewise.
10885 * nptl/tst-cond24.c (TIMEOUT): Likewise.
10886 * nptl/tst-cond25.c (TIMEOUT): Likewise.
10887 * nptl/tst-kill2.c (TIMEOUT): Likewise.
10888 * nptl/tst-kill3.c (TIMEOUT): Likewise.
10889 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
10890 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
10891 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
10892 * nptl/tst-once2.c (TIMEOUT): Likewise.
10893 * nptl/tst-once3.c (TIMEOUT): Likewise.
10894 * nptl/tst-once4.c (TIMEOUT): Likewise.
10895 * nptl/tst-robust8.c (TIMEOUT): Likewise.
10896 * nptl/tst-robust9.c (TIMEOUT): Likewise.
10897 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
10898 * nptl/tst-sem14.c (TIMEOUT): Likewise.
10899 * nptl/tst-sem6.c (TIMEOUT): Likewise.
10900 * nptl/tst-signal3.c (TIMEOUT): Likewise.
10901 * nptl/tst-spin4.c (TIMEOUT): Likewise.
10902 * nptl/tst-tls3.c (TIMEOUT): Likewise.
10903 * nptl/tst-tls4.c (TIMEOUT): Likewise.
10904 * posix/tst-chmod.c (TIMEOUT): Likewise.
10905 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
10906 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
10907 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
10908 * posix/tst-regex2.c (TIMEOUT): Likewise.
10909 * posix/tst-waitid.c (TIMEOUT): Likewise.
10910 * rt/tst-aio.c (TIMEOUT): Likewise.
10911 * rt/tst-aio10.c (TIMEOUT): Likewise.
10912 * rt/tst-aio4.c (TIMEOUT): Likewise.
10913 * rt/tst-aio5.c (TIMEOUT): Likewise.
10914 * rt/tst-aio6.c (TIMEOUT): Likewise.
10915 * rt/tst-aio64.c (TIMEOUT): Likewise.
10916 * rt/tst-aio7.c (TIMEOUT): Likewise.
10917 * rt/tst-aio9.c (TIMEOUT): Likewise.
10918 * rt/tst-clock.c (TIMEOUT): Likewise.
10919 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
10920 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
10921 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
10922 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
10923 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
10924 * rt/tst-timer4.c (TIMEOUT): Likewise.
10925 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
10926 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
10927 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
10928 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
10929 * time/tst-ftime.c (TIMEOUT): Likewise.
10930 * timezone/tst-tzset.c (TIMEOUT): Likewise.
10931
6b5c8607 109322018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
75c1aee5
AY
10933
10934 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
10935 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
10936 for thunderX2.
10937
bcdb1bfa
JM
109382018-10-15 Joseph Myers <joseph@codesourcery.com>
10939
10940 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10941 bits/sem-pad.h.
10942 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
10943 instead of <bits/wordsize.h>.
10944 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
10945 and [__SEM_PAD_AFTER_TIME].
10946 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
10947 __syscall_ulong_t instead of unsigned long int.
10948 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
10949 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
10950 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
10951 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
10952 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
10953 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
10954 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
10955 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
10956 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
10957 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
10958 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
10959
f4efbdfb
PE
109602018-10-14 Paul Eggert <eggert@cs.ucla.edu>
10961
620a5d4c
PE
10962 regex: simplify by using intprops.h
10963 [BZ#23744]
10964 * posix/regex_internal.h [_LIBC]: Include intprops.h.
10965 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
10966 intprops.h defines them.
10967
f4efbdfb
PE
10968 regex: __builtin_expect → __glibc_unlikely
10969 [BZ#23744]
10970 This refactoring was prompted by a problem when the regex code is
10971 used as part of Gnulib and when the builder’s compiler does not grok
10972 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
10973 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
10974 Although this refactoring does not fix the problem directly,
10975 we might as well have Gawk use the now-preferred glibc style for when
10976 __builtin_expect is unavailable.
10977 * posix/regex_internal.h (BE): Remove.
10978 All uses replaced by __glibc_unlikely or __glibc_likely.
10979
9f9feb6d
JM
109802018-10-11 Joseph Myers <joseph@codesourcery.com>
10981
10982 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10983 bits/msq-pad.h.
10984 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
10985 instead of <bits/wordsize.h>.
10986 (msgqnum_t): Define as __syscall_ulong_t.
10987 (msglen_t): Likewise.
10988 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
10989 and [__MSQ_PAD_AFTER_TIME].
10990 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
10991 __syscall_ulong_t instead of unsigned long int.
10992 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
10993 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
10994 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
10995 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
10996 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
10997 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
10998 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
10999 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
11000 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
11001 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
11002 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
11003
b9c0f6c1
JM
110042018-10-10 Joseph Myers <joseph@codesourcery.com>
11005
2a4b25fa
JM
11006 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
11007 (struct shmid_ds): Condition padding after time fields on
11008 [__WORDSIZE == 32].
11009 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
11010 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
11011 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
11012
19e62f26
JM
11013 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
11014 (struct semid_ds): Condition padding after time fields on
11015 [__WORDSIZE == 32].
11016 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
11017 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
11018 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
11019 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
11020
b9c0f6c1
JM
11021 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
11022 (struct msqid_ds): Condition padding after time fields on
11023 [__WORDSIZE == 32].
11024 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
11025 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
11026 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
11027 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
11028
97785a61
SN
110292018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
11030
11031 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
11032
ed643089
SN
110332018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
11034
11035 * libio/tst-readline.c (TIMEOUT): Define.
11036
5a580643
PE
110372018-10-08 Paul Eggert <eggert@cs.ucla.edu>
11038
11039 mktime fix for Gnulib + coreutils
11040 [BZ#23745]
11041 This fix affects only Gnulib. Problem discovered when
11042 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
11043 * time/mktime.c:
11044 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
11045 Do not define since it is not used. Defining an unused static
11046 function prompts a warning from GCC when Coreutils is configured
11047 with --enable-gcc-warnings.
11048
c892ae04
LS
110492018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11050
11051 * benchtests/scripts/compare_bench.py (main): set float type on
11052 threshold argument.
11053
a68ec8ea
RL
110542018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
11055
11056 [BZ #23740]
11057 * localedata/locales/kl_GL (mon): Update, the relative case.
11058 (alt_mon): Add, fill with month names in the nominative case.
11059 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
11060 (d_fmt): Set to "%b %d %Y".
11061
a1987621
JM
110622018-10-04 Joseph Myers <joseph@codesourcery.com>
11063
47c49251
JM
11064 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
11065 <bits/mman-linux.h>.
11066 (PROT_READ): Don't define here.
11067 (PROT_WRITE): Likewise.
11068 (PROT_EXEC): Likewise.
11069 (PROT_NONE): Likewise.
11070 (PROT_GROWSDOWN): Likewise.
11071 (PROT_GROWSUP): Likewise.
11072 (MAP_SHARED): Likewise.
11073 (MAP_PRIVATE): Likewise.
11074 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
11075 [__USE_MISC] (MAP_FILE): Likewise.
11076 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
11077 [__USE_MISC] (MAP_ANON): Likewise.
11078 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
11079 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
11080 (MCL_CURRENT): Likewise.
11081 (MCL_FUTURE): Likewise.
11082 (MCL_ONFAULT): Likewise.
11083 [__USE_MISC] (MADV_NORMAL): Likewise.
11084 [__USE_MISC] (MADV_RANDOM): Likewise.
11085 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
11086 [__USE_MISC] (MADV_WILLNEED): Likewise.
11087 [__USE_MISC] (MADV_DONTNEED): Likewise.
11088 [__USE_MISC] (MADV_FREE): Likewise.
11089 [__USE_MISC] (MADV_REMOVE): Likewise.
11090 [__USE_MISC] (MADV_DONTFORK): Likewise.
11091 [__USE_MISC] (MADV_DOFORK): Likewise.
11092 [__USE_MISC] (MADV_HWPOISON): Likewise.
11093 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
11094 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
11095 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
11096 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
11097 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
11098 (__MAP_ANONYMOUS): New macro.
11099 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
11100 <bits/mman-linux.h> inclusion.
11101 (MAP_FIXED): Likewise.
11102 (MS_SYNC): Likewise.
11103 (MS_ASYNC): Likewise.
11104 (MS_INVALIDATE): Likewise.
11105 [__USE_MISC] (MADV_MERGEABLE): Likewise.
11106 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
11107 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
11108 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
11109 [__USE_MISC] (MADV_DONTDUMP): Likewise.
11110 [__USE_MISC] (MADV_DODUMP): Likewise.
11111 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
11112 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
11113
a1987621
JM
11114 [BZ #23735]
11115 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
11116 Define.
11117 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
11118 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
11119 Add test-nldbl-redirect.
11120 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
11121 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
11122 $(objpfx)libnldbl_nonshared.a.
11123
e7624d70
SL
111242018-10-04 Stefan Liebler <stli@linux.ibm.com>
11125
11126 * support/support.h (support_objdir_elf_ldso): New variable.
11127 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
11128 * support/Makefile (CFLAGS-support_paths.c): Add definition
11129 for OBJDIR_ELF_LDSO_PATH.
11130 * support/test-container.c (main): Search for the ld.so
11131 which is also used by the testsuite.
11132
dae3ed95
RL
111332018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
11134
11135 [BZ #20209]
11136 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
11137 should be "sap" rather than "sab".
11138 (day): Fix spelling of Sunday, should be "sapaat" rather than
11139 "sabaat".
11140
f346b5b3
JM
111412018-10-02 Joseph Myers <joseph@codesourcery.com>
11142
11143 * math/libm-test-fma.inc (fma_test_data): Add more tests.
11144
4a06ceea
MJ
111452018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
11146
11147 [BZ #19444]
11148 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
11149 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
11150 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
11151
a06fc4a5
AZ
111522018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11153
11154 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
11155
a1ccc065
L
111562018-10-02 H.J. Lu <hongjiu.lu@intel.com>
11157
11158 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
11159 Add -mrtm.
11160 (CFLAGS-elision-unlock.c): Likewise.
11161 (CFLAGS-elision-timed.c): Likewise.
11162 (CFLAGS-elision-trylock.c): Likewise.
11163 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
11164
0b727ed4
AZ
111652018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11166
11167 [BZ #21037]
11168 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
11169 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
11170 new fd_to_filename interface.
11171 * libio/freopen64.c (freopen64): Likewise.
11172 * libio/tst-memstream.h: New file.
11173 * libio/tst-memstream4.c: Likewise.
11174 * libio/tst-wmemstream4.c: Likewise.
11175 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
11176 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
11177 and remove internal dynamic allocation.
11178
d0e91e8c
JM
111792018-10-01 Joseph Myers <joseph@codesourcery.com>
11180
11181 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
11182 (MREMAP_MAYMOVE): Do not define here.
11183 [__USE_GNU] (MREMAP_FIXED): Likewise.
11184 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
11185 (MREMAP_MAYMOVE): Define here instead.
11186 [__USE_GNU] (MREMAP_FIXED): Likewise.
11187 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
11188 (MREMAP_MAYMOVE): Remove.
11189 [__USE_GNU] (MREMAP_FIXED): Likewise.
11190
c52944e8
JM
111912018-09-28 Joseph Myers <joseph@codesourcery.com>
11192
11193 * math/fromfp.h: Do not include <math_private.h>.
11194 * math/s_cacosh_template.c: Likewise.
11195 * math/s_casin_template.c: Likewise.
11196 * math/s_casinh_template.c: Likewise.
11197 * math/s_ccos_template.c: Likewise.
11198 * math/s_cproj_template.c: Likewise.
11199 * math/s_fdim_template.c: Likewise.
11200 * math/s_fmaxmag_template.c: Likewise.
11201 * math/s_fminmag_template.c: Likewise.
11202 * math/s_iseqsig_template.c: Likewise.
11203 * math/s_ldexp_template.c: Likewise.
11204 * math/s_nextdown_template.c: Likewise.
11205 * math/w_log1p_template.c: Likewise.
11206 * math/w_scalbln_template.c: Likewise.
11207 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
11208 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
11209 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
11210 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
11211 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
11212 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
11213 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
11214 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
11215 * sysdeps/i386/fpu/s_atanl.c: Likewise.
11216 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
11217 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
11218 * sysdeps/i386/fpu/s_fdim.c: Likewise.
11219 * sysdeps/i386/fpu/s_logbl.c: Likewise.
11220 * sysdeps/i386/fpu/s_rintl.c: Likewise.
11221 * sysdeps/i386/fpu/s_significandl.c: Likewise.
11222 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
11223 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
11224 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11225 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
11226 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
11227 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
11228 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
11229 * sysdeps/ieee754/k_standardf.c: Likewise.
11230 * sysdeps/ieee754/k_standardl.c: Likewise.
11231 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11232 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
11233 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
11234 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
11235 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
11236 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
11237 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
11238 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
11239 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
11240 * sysdeps/ieee754/s_signgam.c: Likewise.
11241 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
11242 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
11243 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
11244 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
11245 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
11246 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
11247 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
11248 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
11249 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
11250 * sysdeps/riscv/rvd/s_finite.c: Likewise.
11251 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
11252 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
11253 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
11254 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
11255 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
11256 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
11257 * sysdeps/riscv/rvf/fegetround.c: Likewise.
11258 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
11259 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
11260 * sysdeps/riscv/rvf/fesetround.c: Likewise.
11261 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
11262 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
11263 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
11264 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
11265 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
11266 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
11267 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
11268 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
11269 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
11270 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
11271 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
11272 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
11273 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
11274 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
11275 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
11276 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
11277 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
11278 <math_private.h>.
11279 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
11280
7b1f9406
L
112812018-09-28 H.J. Lu <hongjiu.lu@intel.com>
11282
11283 [BZ #23716]
11284 * sysdeps/i386/dl-cet.c: Removed.
11285 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
11286 prototype.
11287 (_dl_runtime_profile_shstk): Likewise.
11288 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
11289 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
11290
7a16bdbb
AZ
112912018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11292
11293 [BZ #23579]
11294 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
11295 do_test_with_invalid_iov): New tests.
11296 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
11297 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
11298 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
11299 errno is ENOSYS.
11300 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
11301 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
11302 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
11303
9755bc46
JM
113042018-09-27 Joseph Myers <joseph@codesourcery.com>
11305
81dca813
JM
11306 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
11307 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
11308 (MATH_REDIRECT_BINARY_ARGS): New macro.
11309 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
11310 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
11311 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
11312 header inclusion.
11313 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
11314 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
11315 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
11316 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
11317 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
11318 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11319 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
11320 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
11321 Likewise.
11322 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
11323 Likewise.
11324 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
11325 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
11326 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
11327 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
11328 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
11329 Likewise.
11330 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
11331 Likewise.
11332 * sysdeps/generic/math_private_calls.h
11333 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
11334 Do not declare and define as an inline function.
11335 * math/divtc3.c (__divtc3): Use copysign functions instead of
11336 __copysign variants.
11337 * math/multc3.c (__multc3): Likewise.
11338 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
11339 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
11340 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
11341 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
11342 Likewise.
11343 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
11344 (__ieee754_yn): Likewise.
11345 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
11346 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
11347 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
11348 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
11349 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
11350 (__sin): Likewise.
11351 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
11352 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
11353 Likewise.
11354 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
11355 Likewise.
11356 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
11357 Likewise.
11358 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
11359 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
11360 Likewise.
11361 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
11362 (__ieee754_ynf): Likewise.
11363 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
11364 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
11365 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
11366 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
11367 Likewise.
11368 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
11369 (__ieee754_ynl): Likewise.
11370 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
11371 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
11372 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
11373 Likewise.
11374 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
11375 (__ieee754_ynl): Likewise.
11376 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
11377 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
11378 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
11379 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
11380 Likewise.
11381 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
11382 (__ieee754_ynl)
11383 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
11384 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
11385 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
11386 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
11387 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
11388
9755bc46
JM
11389 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
11390 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
11391 using MATH_REDIRECT.
11392 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
11393 header inclusion.
11394 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
11395 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
11396 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
11397 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
11398 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
11399 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
11400 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
11401 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
11402 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
11403 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
11404 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
11405 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
11406 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
11407 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
11408 (round): Redirect to __round.
11409 (__roundl): Call round instead of __round.
11410 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
11411 Remove macro.
11412 [_ARCH_PWR5X] (__roundf): Likewise.
11413 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
11414 functions instead of __round variants.
11415 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
11416 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
11417 Likewise.
11418 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
11419 Likewise.
11420 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
11421 Likewise.
11422 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
11423 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
11424 __lroundl.
11425 (__ieee754_expl): Call roundl instead of __roundl.
11426
f841c97e
AS
114272018-09-27 Andreas Schwab <schwab@suse.de>
11428
11429 [BZ #23717]
11430 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
11431 (do_test): Make st1 static.
11432
6ca8284e
AS
114332018-09-26 Andreas Schwab <schwab@suse.de>
11434
11435 [BZ #23707]
11436 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
11437 * elf/Makefile (tests): Add tst-unwind-ctor.
11438 (modules-names): Add tst-unwind-ctor-lib.
11439 ($(objpfx)tst-unwind-ctor): Depend on
11440 $(objpfx)tst-unwind-ctor-lib.so.
11441
61d8b5fe
JM
114422018-09-26 Joseph Myers <joseph@codesourcery.com>
11443
11444 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
11445 file. Most contents moved from ....
11446 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
11447 and include <bits/mman-map-flags-generic.h>.
11448 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
11449 (sysdep_headers): Add bits/mman-map-flags-generic.h.
11450 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
11451 <bits/mman-map-flags-generic.h>.
11452 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
11453 macros defined in <bits/mman-map-flags-generic.h>.
11454 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
11455 <bits/mman-map-flags-generic.h>.
11456 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
11457 defined in <bits/mman-map-flags-generic.h>.
11458
46341286
AS
114592018-09-26 Andreas Schwab <schwab@suse.de>
11460
11461 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
11462 output.
11463
b5c45e83
AZ
114642018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
11465 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11466 Fangrui Song <maskray@google.com>
11467
11468 [BZ #20480]
11469 * config.make.in (have-textrel_ifunc): New define.
11470 * configure.ac: Add check if linker supports textrel relocation with
11471 ifunc.
11472 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
11473 tst-ifunc-textrel.
11474 (CFLAGS-tst-ifunc-textrel.c): New rule.
11475 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
11476 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
11477 * elf/tst-ifunc-textrel.c: New file.
11478
8ea4d2b7
JM
114792018-09-25 Joseph Myers <joseph@codesourcery.com>
11480
d62f9ec0
JM
11481 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
11482 <bits/procfs-prregset.h>.
11483 (prgregset_t): Define using __prgregset_t.
11484 (prfpregset_t): Define using __prfpregset_t.
11485 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
11486 (sysdep_headers): Add bits/procfs-prregset.h.
11487 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
11488 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
11489 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
11490 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
11491
d0d8eb43
JM
11492 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
11493 <bits/procfs-id.h> and <bits/procfs-extra.h>.
11494 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
11495 pr_uid and pr_gid.
11496 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
11497 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
11498 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
11499 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
11500 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
11501 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
11502 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
11503 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
11504 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
11505 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
11506 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
11507 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
11508 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
11509 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
11510 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
11511 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
11512 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
11513 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
11514 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
11515 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
11516 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
11517 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
11518 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
11519 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
11520
8ea4d2b7
JM
11521 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
11522 AArch64 version. Include <bits/procfs.h>.
11523 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
11524 (sysdep_headers): Add bits/procfs.h.
11525 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
11526 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
11527 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
11528 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
11529 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
11530 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
11531 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
11532 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
11533 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
11534 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
11535 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
11536 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
11537 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
11538 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
11539 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
11540 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
11541 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
11542
c7027166
AZ
115432018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11544
11545 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
11546 Use libsupport.
11547
335a3b0a
AS
115482018-09-25 Arjun Shankar <arjun@redhat.com>
11549
11550 * iconv/gconv_int.h (__gconv_path_elem): Remove.
11551 (__gconv_max_path_elem_len): Likewise.
11552 (__gconv_nmodules): Likewise.
11553 (__gconv_get_path): Likewise.
11554 (path_elem): Move to ...
11555 * iconv/gconv_conf.c: ... here.
11556 (__gconv_get_path): Mark function static.
11557 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
11558 * iconv/gconv_open.c: ... here.
11559
462d348c
AS
115602018-09-24 Andreas Schwab <schwab@suse.de>
11561
11562 * scripts/haveversions.awk: New file.
11563 * Makerules ($(common-objpfx)Versions.def)
11564 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
11565 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
11566 Move rules ...
11567 * Makeconfig ($(common-objpfx)Versions.def)
11568 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
11569 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
11570 ... here.
11571 ($(common-objpfx)Versions.mk): New rule. Include it.
11572 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
11573 Emit error if build-obsolete-nsl = yes.
11574 * manual/install.texi (Configuring and compiling): Describe
11575 --enable-obsolete-nsl as unavaiable after version 2.28.
11576 * INSTALL: Regenerate.
11577
f0458cf4
AZ
115782018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11579
11580 * NEWS: Add note about new TLE support on powerpc64le.
11581 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
11582 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
11583 __ununsed1.
11584 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
11585 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
11586 * sysdeps/powerpc/powerpc32/sysdep.h,
11587 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
11588 ABORT_TRANSACTION): Remove macros.
11589 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
11590 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
11591 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
11592 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
11593 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
11594 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
11595 usage.
11596 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
11597
434d45fd
RL
115982018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
11599
11600 [BZ #10425]
11601 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
11602 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
11603 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
11604 which is the same as in it_IT.
11605 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
11606 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
11607
d90c9b1a
JM
116082018-09-20 Joseph Myers <joseph@codesourcery.com>
11609
7abf97be
JM
11610 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
11611 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
11612 using MATH_REDIRECT.
11613 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
11614 header inclusion.
11615 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
11616 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
11617 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
11618 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
11619 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
11620 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
11621 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
11622 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
11623 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
11624 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
11625 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
11626 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
11627 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
11628 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
11629 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
11630 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
11631 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
11632 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
11633 (ceil): Redirect to __ceil.
11634 (floor): Redirect to __floor.
11635 (trunc): Redirect to __trunc.
11636 (__truncl): Call trunc instead of __trunc.
11637 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
11638 Remove macro.
11639 [_ARCH_PWR5X] (__truncf): Likewise.
11640 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
11641 trunc functions instead of __trunc variants.
11642 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
11643 Likewise.
11644 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
11645 Likewise.
11646 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
11647 Likewise.
11648 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
11649 Likewise.
11650
d90c9b1a
JM
11651 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
11652 [__i586__ || __pentium__].
11653 [__i486__]: Handle explicitly.
11654 (HAS_CPUID): Define to 1 if above macros are undefined.
11655 (HAS_I586): Likewise.
11656 (HAS_I686): Likewise.
11657
db9a8ad4
FW
116582018-09-20 Florian Weimer <fweimer@redhat.com>
11659
11660 * misc/tst-gethostid.c: New file.
11661 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
11662 (tst-gethostid): Link with -ldl.
11663
1214ba06
MY
116642018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
11665
11666 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
11667 value from gethostbyname_r.
11668
791b350d
CD
116692018-09-19 Carlos O'Donell <carlos@redhat.com>
11670
11671 * stdlib/tst-setcontext9.c (f1): Rename to...
11672 (f1a): ... this.
11673 (f1b): New function implementing lower half of f1 in alternate stack.
11674
8e6fd2bd
PE
116752018-09-19 Paul Eggert <eggert@cs.ucla.edu>
11676
e1080e7e
PE
11677 Fix mktime localtime offset confusion
11678 [BZ #23603]
11679 * include/time.h (__mktime_internal): The localtime offset is now
11680 of type long int instead of time_t. This is the longstanding type
11681 in glibc, and it is more than enough to represent difference
11682 between localtime and gmtime even if it is 32 bits and time_t is
11683 64. Changing it now will let us avoid an unnecessary change when
11684 time_t is widened to 64 bits on 32-bit platforms.
11685 * time/mktime-internal.h (mktime_offset_t): Now long int.
11686
8e6fd2bd
PE
11687 Merge mktime, timegm from upstream Gnulib
11688 [BZ #23603][BZ #16346]
11689 This fixes some obscure problems with integer overflow.
11690 Although it looks scary, it is almost all a byte-for-byte copy
11691 from Gnulib, and the Gnulib code has been tested reasonably well.
11692 * include/intprops.h: New file, copied from Gnulib.
11693 * include/verify.h, time/mktime-internal.h:
11694 New tiny files, simplified from Gnulib.
11695 * time/mktime.c: Copy from Gnulib. This has the following changes:
11696 Do not include config.h if DEBUG_MKTIME is nonzero.
11697 Include stdbool.h, intprops.h, verify.h.
11698 Include string.h only if needed.
11699 Include stdlib.h on MS-Windows.
11700 Include mktime-internal.h.
11701 (DEBUG_MKTIME): Default to 0, and simplify later uses.
11702 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
11703 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
11704 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
11705 simplify later conditionals; default the others to zero. Use
11706 these conditionals to express only the code needed on the current
11707 platform. In uses of these conditionals, explicitly spell out how
11708 _LIBC affects things, so it’s easier to review from a glibc
11709 viewpoint.
11710 (WRAPV): Remove; no longer needed now that we have
11711 systematic overflow checking.
11712 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
11713 compartmentalize tzset issues. Move system-dependent tzsettish
11714 code here from mktime.
11715 (verify): Remove; now done by verify.h. All uses changed.
11716 (long_int): Use a more-conservative definition, to avoid
11717 integer overflow.
11718 (SHR): Remove, replacing with ...
11719 (shr): New function, which means we needn’t worry about side
11720 effects in args, and conversion analysis is simpler.
11721 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
11722 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
11723 (time_t_avg, time_t_add_ok): Remove.
11724 (mktime_min, mktime_max): New constants.
11725 (leapyear, isdst_differ): Use bool for booleans.
11726 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
11727 Use long_int, not time_t, for mktime differences.
11728 (long_int_avg): New function, replacing time_t_avg.
11729 INT_ADD_WRAPV replaces time_t_add_ok.
11730 (guess_time_tm): 6th arg is now long_int, not time_t const *.
11731 All uses changed.
11732 (convert_time): New function.
11733 (ranged_convert): Use it.
11734 (__mktime_internal): Last arg now points to mktime_offset_t, not
11735 time_t. All uses changed. This is a no-op on glibc, where
11736 mktime_offset_t is always time_t. Use int, not time_t, for UTC
11737 offset guess. Directly check for integer overflow instead of
11738 using a heuristic that works only 99.9...% of the time.
11739 Access *OFFSET only once, to avoid an unlikely race if the
11740 compiler delays a load and if this cascades into a signed integer
11741 overflow.
11742 (mktime): Move tzsettish code to my_tzset, and move
11743 localtime_offset to within mktime so that it doesn’t
11744 need a separate ifdef.
11745 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
11746 instead of localtime.
11747 * time/timegm.c: Copy from Gnulib. This has the following changes:
11748 Include mktime-internal.h.
11749 [!_LIBC]: Include config.h and time.h. Do not include
11750 timegm.h or time_r.h. Make __mktime_internal a macro,
11751 and include mktime-internal.h to get its declaration.
11752 (timegm): Temporary is now mktime_offset_t, not time_t.
11753 This affects only Gnulib.
11754
83a552b0
WD
117552018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
11756
11757 [BZ #23637]
11758 * string/test-strstr.c (pr23637): New function.
11759 (test_main): Add tests with longer needles.
11760 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
11761 * string/strstr.c (AVAILABLE): Likewise.
11762
d7347278
SN
117632018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
11764
11765 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
11766
424c4f60
SN
117672018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
11768
11769 * NEWS: Mention pow improvements.
11770 * math/Makefile (type-double-routines): Add e_pow_log_data.
11771 * sysdeps/generic/math_private.h (__exp1): Remove.
11772 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
11773 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
11774 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
11775 contraction.
11776 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
11777 (exp_inline): Remove.
11778 (__ieee754_exp): Only single double input is handled.
11779 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
11780 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
11781 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
11782 (__pow_log_data): Define.
11783 * sysdeps/ieee754/dbl-64/upow.h: Remove.
11784 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
11785 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
11786 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
11787 contraction.
11788 (CFLAGS-e_pow-fma4.c): Likewise.
11789
e4e4fde5
PE
117902018-09-18 Paul Eggert <eggert@cs.ucla.edu>
11791
dab9c348
PE
11792 Simplify tzfile fstat failure code
11793 [BZ #21716]
11794 * time/tzfile.c (__tzfile_read): Simplify slightly.
11795
e4e4fde5
PE
11796 Fix tzfile low-memory assertion failure
11797 [BZ #21716]
11798 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
11799 when registering time zone abbreviations.
11800
50bc59ca
JM
118012018-09-18 Joseph Myers <joseph@codesourcery.com>
11802
d3a43e49
JM
11803 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
11804 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
11805 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
11806 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
11807 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
11808 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
11809 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
11810 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
11811 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
11812
50bc59ca
JM
11813 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
11814 __ceil.
11815 (__ceill): Call ceil instead of __ceil.
11816 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
11817 __floor.
11818 (__floorl): Call floor instead of __floor.
11819
89983cb3
JM
118202018-09-17 Joseph Myers <joseph@codesourcery.com>
11821
71223ef9
JM
11822 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
11823 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
11824 using MATH_REDIRECT.
11825 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
11826 header inclusion.
11827 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
11828 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
11829 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
11830 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
11831 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
11832 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
11833 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
11834 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
11835 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
11836 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
11837 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
11838 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
11839 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
11840 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
11841 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
11842 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
11843 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
11844 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
11845 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
11846 Remove macro.
11847 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
11848 functions instead of __ceil variants.
11849 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
11850 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
11851 Likewise.
11852 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
11853 Likewise.
11854 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
11855 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
11856 Likewise.
11857 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
11858 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
11859
89983cb3
JM
11860 [BZ #21286]
11861 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
11862 constant.
11863 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
11864 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
11865 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
11866 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
11867 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
11868 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
11869 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
11870 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
11871 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
11872 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
11873 (ILL_BADIADDR): Remove constant.
11874 (TRAP_BRANCH): Likewise.
11875 (TRAP_HWBKPT): Likewise.
11876
e44acb20
JM
118772018-09-14 Joseph Myers <joseph@codesourcery.com>
11878
3f7f1d18
JM
11879 [BZ #23656]
11880 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
11881 Remove [_MIPS_SIM = _ABIN32] conditional case.
11882 (struct elf_prpsinfo): Likewise.
11883
d59f3e5e
JM
11884 [BZ #23649]
11885 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
11886 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
11887 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
11888 Likewise.
11889 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
11890 elf_prpsinfo): Likewise.
11891 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
11892 elf_prpsinfo): Likewise.
11893 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
11894 Likewise.
11895
f29b6f17
JM
11896 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
11897 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
11898 using MATH_REDIRECT.
11899 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
11900 header inclusion.
11901 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
11902 * sysdeps/alpha/fpu/s_rint.c: Likewise.
11903 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
11904 * sysdeps/i386/fpu/s_rintl.c: Likewise.
11905 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
11906 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
11907 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
11908 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
11909 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
11910 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
11911 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
11912 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
11913 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
11914 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
11915 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
11916 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
11917 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
11918 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
11919 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
11920 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
11921 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
11922 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
11923 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
11924 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
11925 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
11926 * sysdeps/x86_64/fpu/math_private.h: Remove file.
11927 * math/e_scalb.c (invalid_fn): Use rint functions instead of
11928 __rint variants.
11929 * math/e_scalbf.c (invalid_fn): Likewise.
11930 * math/e_scalbl.c (invalid_fn): Likewise.
11931 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
11932 Likewise.
11933 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
11934 Likewise.
11935 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
11936 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
11937 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
11938 Likewise.
11939 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
11940 Likewise.
11941 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
11942 Likewise.
11943 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
11944 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
11945
e44acb20
JM
11946 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
11947 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
11948 New macro.
11949 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
11950 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
11951 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
11952 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
11953 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
11954 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
11955 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
11956 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
11957 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
11958 && !NO_MATH_REDIRECT] (floor): Likewise.
11959 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
11960 header inclusion.
11961 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
11962 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
11963 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
11964 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
11965 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
11966 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
11967 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
11968 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
11969 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
11970 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
11971 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
11972 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
11973 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
11974 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
11975 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
11976 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
11977 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
11978 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
11979 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
11980 Remove macro.
11981 [_ARCH_PWR5X] (__floorf): Likewise.
11982 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
11983 inline function.
11984 [__SSE4_1__] (__floorf): Likewise.
11985 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
11986 instead of __floor variants.
11987 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
11988 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
11989 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
11990 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
11991 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
11992 * math/w_tgamma_compat.c (__tgamma): Likewise.
11993 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
11994 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
11995 * math/w_tgammal_compat.c (__tgammal): Likewise.
11996 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
11997 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
11998 Likewise.
11999 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
12000 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
12001 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
12002 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
12003 Likewise.
12004 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
12005 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
12006 Likewise.
12007 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
12008 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
12009 Likewise.
12010 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
12011 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
12012 Likewise.
12013 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
12014 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
12015 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
12016 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
12017 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
12018 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
12019
221e4bab
JM
120202018-09-12 Joseph Myers <joseph@codesourcery.com>
12021
12022 * elf/Makefile (modules-names-tests): New variable.
12023
3e08ff54
SN
120242018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
12025
12026 * NEWS: Mention log2 improvements.
12027 * math/Makefile (type-double-routines): Add e_log2_data.
12028 * sysdeps/i386/fpu/e_log2_data.c: New file.
12029 * sysdeps/ia64/fpu/e_log2_data.c: New file.
12030 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
12031 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
12032 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
12033 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
12034 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
12035
f41b0a43
SN
120362018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
12037
12038 * NEWS: Mention log improvement.
12039 * math/Makefile (type-double-routines): Add e_log_data.
12040 * sysdeps/i386/fpu/e_log_data.c: New file.
12041 * sysdeps/ia64/fpu/e_log_data.c: New file.
12042 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
12043 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
12044 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
12045 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
12046 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
12047 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
12048
5a274db4
L
120492018-09-12 H.J. Lu <hongjiu.lu@intel.com>
12050 Xuepeng Guo <xuepeng.guo@intel.com>
12051
12052 [BZ #23606]
12053 * sysdeps/i386/start.S: Include <sysdep.h>
12054 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
12055 enabled. Add cfi_undefined (eip).
12056
b1176270
JM
120572018-09-11 Joseph Myers <joseph@codesourcery.com>
12058
4e7fbdd7
JM
12059 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
12060 (MOVQ): Likewise.
12061 (EXTRACT_WORDS64): Likewise.
12062 (INSERT_WORDS64): Likewise.
12063 (GET_FLOAT_WORD): Likewise.
12064 (SET_FLOAT_WORD): Likewise.
12065
b1176270
JM
12066 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
12067 argument.
12068 (Config.build_gcc): Use --disable-libsanitizer for first GCC
12069 build, but not for second build if --full-gcc. Use
12070 --enable-languages=all for second build if --full-gcc.
12071 (get_parser): Add --full-gcc option.
12072 (main): Update call to Context.
12073
527f355e
RL
120742018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
12075
12076 [BZ #10797]
12077 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
12078 Single Quotation Mark).
12079 (thousands_sep): Likewise.
12080 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
12081 * localedata/locales/it_IT (thousands_sep): Use ".".
12082 (grouping): Use "3;3".
12083
7244f13d
JM
120842018-09-10 Joseph Myers <joseph@codesourcery.com>
12085
12086 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
12087 x86_64 and i686 configs using --enable-obsolete-rpc
12088 --enable-obsolete-nsl.
12089
38245425
SL
120902018-09-06 Stefan Liebler <stli@linux.ibm.com>
12091
12092 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
12093
28669f86
SL
120942018-09-06 Stefan Liebler <stli@linux.ibm.com>
12095
12096 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
12097 Increment size of new_argv by one.
12098
a33650d1
RL
120992018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
12100
12101 [BZ #17426]
12102 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
12103 * localedata/locales/ar_IN (d_fmt): Likewise.
12104 * localedata/locales/bhb_IN (d_fmt): Likewise.
12105 * localedata/locales/bho_IN (d_fmt): Likewise.
12106 * localedata/locales/bn_BD (d_fmt): Likewise.
12107 * localedata/locales/bn_IN (d_fmt): Likewise.
12108 * localedata/locales/doi_IN (d_fmt): Likewise.
12109 * localedata/locales/gu_IN (d_fmt): Likewise.
12110 * localedata/locales/hi_IN (d_fmt): Likewise.
12111 * localedata/locales/hne_IN (d_fmt): Likewise.
12112 * localedata/locales/kn_IN (d_fmt): Likewise.
12113 * localedata/locales/mag_IN (d_fmt): Likewise.
12114 * localedata/locales/mai_IN (d_fmt): Likewise.
12115 * localedata/locales/mjw_IN (d_fmt): Likewise.
12116 * localedata/locales/ml_IN (d_fmt): Likewise.
12117 * localedata/locales/mni_IN (d_fmt): Likewise.
12118 * localedata/locales/mr_IN (d_fmt): Likewise.
12119 * localedata/locales/pa_IN (d_fmt): Likewise.
12120 * localedata/locales/raj_IN (d_fmt): Likewise.
12121 * localedata/locales/sat_IN (d_fmt): Likewise.
12122 * localedata/locales/sd_IN (d_fmt): Likewise.
12123 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
12124 * localedata/locales/ta_IN (d_fmt): Likewise.
12125 * localedata/locales/ta_LK (d_fmt): Likewise.
12126 * localedata/locales/tcy_IN (d_fmt): Likewise.
12127 * localedata/locales/ur_IN (d_fmt): Likewise.
12128
12129 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
12130 * localedata/locales/ks_IN (d_fmt): Likewise.
12131 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
12132
12133 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
12134 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
12135 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
12136 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
12137
d114e6a7
SN
121382018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
12139
12140 * NEWS: Mention exp and exp2 improvements.
12141 * math/Makefile (libm-support): Remove t_exp.
12142 (type-double-routines): Add math_err and e_exp_data.
12143 * sysdeps/aarch64/libm-test-ulps: Update.
12144 * sysdeps/arm/libm-test-ulps: Update.
12145 * sysdeps/i386/fpu/e_exp_data.c: New file.
12146 * sysdeps/i386/fpu/math_err.c: New file.
12147 * sysdeps/i386/fpu/t_exp.c: Remove.
12148 * sysdeps/ia64/fpu/e_exp_data.c: New file.
12149 * sysdeps/ia64/fpu/math_err.c: New file.
12150 * sysdeps/ia64/fpu/t_exp.c: Remove.
12151 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
12152 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
12153 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
12154 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
12155 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
12156 * sysdeps/ieee754/dbl-64/math_config.h: New file.
12157 * sysdeps/ieee754/dbl-64/math_err.c: New file.
12158 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
12159 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
12160 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
12161 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
12162 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
12163 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
12164 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
12165 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12166 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
12167
b9d8c474
JM
121682018-09-05 Joseph Myers <joseph@codesourcery.com>
12169
b7cdc2ae
JM
12170 * sysdeps/alpha/fpu/math_private.h: Remove.
12171
b9d8c474
JM
12172 * sysdeps/generic/math_private.h
12173 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
12174 Move this inline function ....
12175 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
12176 * include/math.h [!_ISOMAC]: To here....
12177
418d99e6
JM
121782018-09-04 Joseph Myers <joseph@codesourcery.com>
12179
12180 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
12181 code ....
12182 [!FE_HAVE_ROUNDING_MODES]: And this code ....
12183 * include/fenv.h [!_ISOMAC]: ... to here.
12184 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
12185 (feraiseexcept): Likewise.
12186 * math/fromfp.h: Do not include <fenv_private.h>.
12187 * math/s_cexp_template.c: Likewise.
12188 * math/s_csin_template.c: Likewise.
12189 * math/s_csinh_template.c: Likewise.
12190 * math/s_ctan_template.c: Likewise.
12191 * math/s_ctanh_template.c: Likewise.
12192 * math/s_iseqsig_template.c: Likewise.
12193 * math/w_acos_compat.c: Likewise.
12194 * math/w_acosf_compat.c: Likewise.
12195 * math/w_acosl_compat.c: Likewise.
12196 * math/w_asin_compat.c: Likewise.
12197 * math/w_asinf_compat.c: Likewise.
12198 * math/w_asinl_compat.c: Likewise.
12199 * math/w_j0_compat.c: Likewise.
12200 * math/w_j0f_compat.c: Likewise.
12201 * math/w_j0l_compat.c: Likewise.
12202 * math/w_j1_compat.c: Likewise.
12203 * math/w_j1f_compat.c: Likewise.
12204 * math/w_j1l_compat.c: Likewise.
12205 * math/w_jn_compat.c: Likewise.
12206 * math/w_jnf_compat.c: Likewise.
12207 * math/w_log10_compat.c: Likewise.
12208 * math/w_log10f_compat.c: Likewise.
12209 * math/w_log10l_compat.c: Likewise.
12210 * math/w_log2_compat.c: Likewise.
12211 * math/w_log2f_compat.c: Likewise.
12212 * math/w_log2l_compat.c: Likewise.
12213 * math/w_log_compat.c: Likewise.
12214 * math/w_logf_compat.c: Likewise.
12215 * math/w_logl_compat.c: Likewise.
12216 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12217 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
12218 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12219 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
12220 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
12221 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12222 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
12223 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12224 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
12225 * sysdeps/ieee754/k_standardl.c: Likewise.
12226 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12227 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
12228 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
12229 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
12230 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
12231 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
12232 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12233 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
12234 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12235 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
12236 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
12237 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
12238 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
12239 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
12240 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
12241 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
12242 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
12243 * math/w_ilogb_template.c: Include <fenv.h> instead of
12244 <fenv_private.h>.
12245 * math/w_llogb_template.c: Likewise.
12246 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
12247 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
12248
70e2ba33
JM
122492018-09-03 Joseph Myers <joseph@codesourcery.com>
12250
12251 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
12252 * math/fromfp.h: Include <fenv_private.h>.
12253 * math/math-narrow.h: Likewise.
12254 * math/s_cexp_template.c: Likewise.
12255 * math/s_csin_template.c: Likewise.
12256 * math/s_csinh_template.c: Likewise.
12257 * math/s_ctan_template.c: Likewise.
12258 * math/s_ctanh_template.c: Likewise.
12259 * math/s_iseqsig_template.c: Likewise.
12260 * math/w_acos_compat.c: Likewise.
12261 * math/w_acosf_compat.c: Likewise.
12262 * math/w_acosl_compat.c: Likewise.
12263 * math/w_asin_compat.c: Likewise.
12264 * math/w_asinf_compat.c: Likewise.
12265 * math/w_asinl_compat.c: Likewise.
12266 * math/w_ilogb_template.c: Likewise.
12267 * math/w_j0_compat.c: Likewise.
12268 * math/w_j0f_compat.c: Likewise.
12269 * math/w_j0l_compat.c: Likewise.
12270 * math/w_j1_compat.c: Likewise.
12271 * math/w_j1f_compat.c: Likewise.
12272 * math/w_j1l_compat.c: Likewise.
12273 * math/w_jn_compat.c: Likewise.
12274 * math/w_jnf_compat.c: Likewise.
12275 * math/w_llogb_template.c: Likewise.
12276 * math/w_log10_compat.c: Likewise.
12277 * math/w_log10f_compat.c: Likewise.
12278 * math/w_log10l_compat.c: Likewise.
12279 * math/w_log2_compat.c: Likewise.
12280 * math/w_log2f_compat.c: Likewise.
12281 * math/w_log2l_compat.c: Likewise.
12282 * math/w_log_compat.c: Likewise.
12283 * math/w_logf_compat.c: Likewise.
12284 * math/w_logl_compat.c: Likewise.
12285 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
12286 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
12287 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
12288 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
12289 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12290 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12291 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12292 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12293 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12294 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12295 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
12296 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12297 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
12298 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
12299 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12300 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
12301 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
12302 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12303 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
12304 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12305 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
12306 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12307 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12308 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12309 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12310 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
12311 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
12312 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
12313 * sysdeps/ieee754/float128/float128_private.h: Likewise.
12314 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12315 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12316 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12317 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
12318 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12319 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
12320 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12321 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
12322 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12323 * sysdeps/ieee754/k_standardl.c: Likewise.
12324 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12325 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
12326 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12327 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12328 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
12329 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
12330 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
12331 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
12332 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
12333 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
12334 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
12335 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12336 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
12337 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
12338 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
12339 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
12340 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12341 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
12342 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12343 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
12344 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
12345 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
12346 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
12347 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12348 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
12349 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
12350 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12351 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
12352 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
12353 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
12354 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
12355 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
12356 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
12357 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
12358 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
12359 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
12360 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
12361 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
12362 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
12363 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
12364 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
12365 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
12366 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
12367 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
12368 * sysdeps/riscv/rvd/s_finite.c: Likewise.
12369 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
12370 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
12371 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
12372 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
12373 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
12374 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
12375 * sysdeps/riscv/rvf/fegetround.c: Likewise.
12376 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
12377 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
12378 * sysdeps/riscv/rvf/fesetround.c: Likewise.
12379 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
12380 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
12381 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
12382 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
12383 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
12384 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
12385 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
12386 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
12387 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
12388 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
12389 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
12390 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
12391 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
12392 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
12393 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
12394 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
12395
a6e8926f
PP
123962018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
12397
12398 [BZ #20271]
12399 * include/stdio.h (__libc_fatal): Mention newline in comment.
12400 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
12401 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
12402 * nscd/initgrcache.c (addinitgroupsX): Likewise.
12403 * nss/nsswitch.c (__nss_next2): Likewise.
12404 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
12405 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
12406 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
12407 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
12408 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
12409 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
12410 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
12411 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
12412 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
12413 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
12414 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
12415 * sysdeps/unix/sysv/linux/netlink_assert_response.c
12416 (__netlink_assert_response): Likewise.
12417
2bbd06bc
JM
124182018-08-31 Joseph Myers <joseph@codesourcery.com>
12419
12420 * conform/glibcconform.py: New file.
12421 * conform/list-header-symbols.py: Likewise.
12422 * conform/list-header-symbols.pl: Remove.
12423 * conform/Makefile (tests-special): Only add linknamespace tests
12424 if [PYTHON].
12425 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
12426
81b9d87b
L
124272018-08-31 H.J. Lu <hongjiu.lu@intel.com>
12428
12429 [BZ #23597]
12430 * support/Makefile (libsupport-routines): Add
12431 support_copy_file_range and xcopy_file_range.
12432 * support/support.h: Include <sys/types.h>.
12433 (support_copy_file_range): New prototype.
12434 * support/support_copy_file_range.c: New file. Copied and
12435 modified from io/copy_file_range-compat.c.
12436 * support/test-container.c (copy_one_file): Call xcopy_file_rang
12437 instead of copy_file_range.
12438 * support/xcopy_file_range.c: New file.
12439 * support/xunistd.h (xcopy_file_range): New prototype.
12440
d330f31a
CD
124412018-08-30 Carlos O'Donell <carlos@redhat.com>
12442
12443 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
12444 xpthread_create and xpthread_join.
12445
2bda273a
FW
124462018-08-30 Florian Weimer <fweimer@redhat.com>
12447
12448 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
12449
3bad2358
SL
124502018-08-30 Stefan Liebler <stli@linux.ibm.com>
12451
12452 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
12453 if malloc fails.
12454
09c12efc
JM
124552018-08-29 Joseph Myers <joseph@codesourcery.com>
12456
12457 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
12458 and minus_oflow as non-finite.
12459
ff6b2450
JM
124602018-08-28 Joseph Myers <joseph@codesourcery.com>
12461
12462 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
12463 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
12464 moved to fenv_private.h except for ...
12465 (TOINT_INTRINSICS): Kept in math_private.h.
12466 (roundtoint): Likewise.
12467 (converttoint): Likewise.
12468 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
12469 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
12470 * sysdeps/arm/math_private.h: Remove.
12471 * sysdeps/generic/fenv_private.h: New file. Contents moved from
12472 ....
12473 * sysdeps/generic/math_private.h: ... this file. Include
12474 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
12475 Include <fenv_private.h>. Remove functions and macros moved to
12476 fenv_private.h.
12477 * sysdeps/i386/fpu/math_private.h: Remove.
12478 * sysdeps/mips/math_private.h: Move to ....
12479 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
12480 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
12481 [__mips_hard_float] conditional. Include next <fenv_private.h>.
12482 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
12483 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
12484 * sysdeps/powerpc/fpu/math_private.h: Do not include
12485 <fenv_private.h>.
12486 * sysdeps/riscv/rvf/math_private.h: Move to ....
12487 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
12488 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
12489 <fenv_private.h>.
12490 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
12491 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
12492 * sysdeps/sparc/fpu/math_private.h: Remove.
12493 * sysdeps/i386/fpu/fenv_private.h: Move to ....
12494 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
12495 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
12496 <fenv_private.h>.
12497 * sysdeps/x86_64/fpu/math_private.h: Do not include
12498 <sysdeps/i386/fpu/fenv_private.h>.
12499
761404b7
FW
125002018-08-28 Florian Weimer <fweimer@redhat.com>
12501
12502 [BZ #23578]
12503 * posix/tst-regcomp-truncated.c: New file.
12504 * posix/Makefile (tests): Add it.
12505 (tst-regcomp-truncated.out): Depend on generated locales.
12506
d6c44c3d
FW
125072018-08-28 Florian Weimer <fweimer@redhat.com>
12508
12509 * support/test-container.c (main): Treat unshare failure with
12510 EPERM as an unsupported test.
12511
745664bd
FW
125122018-08-28 Florian Weimer <fweimer@redhat.com>
12513
12514 [BZ #23520]
12515 nscd: Fix use-after-free in addgetnetgrentX and its callers.
12516 * nscd/netgroupcache.c
12517 (addgetnetgrentX): Add tofreep parameter. Do not free
12518 heap-allocated buffer.
12519 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
12520 (addgetnetgrentX_ignore): New function.
12521 (addgetnetgrent): Call it.
12522 (readdgetnetgrent): Likewise.
12523
c8dd67e7
RS
125242018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
12525
12526 * string/memmem.c: Use memcmp for first match.
12527
5abedf97
RL
125282018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
12529
12530 [BZ #17426]
12531 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
12532
86de0499
DD
125332018-08-27 DJ Delorie <dj@redhat.com>
12534
12535 * support/Makefile (others): Don't list programs explicitly as a
12536 dependency of "others".
12537
c3ab2110
JM
125382018-08-27 Joseph Myers <joseph@codesourcery.com>
12539
12540 * sysdeps/generic/math-tests-trap-force.h: New file.
12541 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
12542 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
12543 * sysdeps/powerpc/math-tests.h: Remove file.
12544 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
12545
6b5c8607
TS
125462018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
12547 Torvald Riegel <triegel@redhat.com>
99ea93ca
MK
12548
12549 [BZ #23538]
12550 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
12551 Update r to include the set wake-request flag if waiters are
12552 remaining after spinning.
12553
4061791f
JM
125542018-08-27 Joseph Myers <joseph@codesourcery.com>
12555
12556 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
12557
bc680b33
PE
125582018-08-25 Paul Eggert <eggert@cs.ucla.edu>
12559
761404b7 12560 [BZ #23578]
bc680b33
PE
12561 regex: fix uninitialized memory access
12562 I introduced this bug into gnulib in commit
12563 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
12564 eventually it was merged into glibc. The bug was found by
12565 project-repo <bugs@feusi.co> and reported here:
12566 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
12567 Diagnosis and draft fix reported by Assaf Gordon here:
12568 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
12569 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
12570 * posix/regex_internal.c (build_wcs_upper_buffer):
12571 Fix bug when mbrtowc returns 0.
12572
02458a52
CD
125732018-08-24 Carlos O'Donell <carlos@redhat.com>
12574
12575 * po/be.po: Update translation.
12576
acc2842a
DD
125772018-08-24 DJ Delorie <dj@delorie.com>
12578
12579 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
12580 $(libunwind).
12581
6c3a8a9d
PP
125822018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
12583
b39d961c
TS
12584 [BZ #23400]
12585 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
12586 create temporary files in source tree.
6c3a8a9d 12587
895ef79e
JM
125882018-08-24 Joseph Myers <joseph@codesourcery.com>
12589
12590 * sysdeps/generic/math-tests-trap.h: New file.
12591 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
12592 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
12593 * sysdeps/aarch64/math-tests.h: Remove file.
12594 * sysdeps/arm/math-tests.h: Likewise.
12595 * sysdeps/riscv/math-tests.h: Likewise.
12596 * sysdeps/aarch64/math-tests-trap.h: New file.
12597 * sysdeps/arm/math-tests-trap.h: Likewise.
12598 * sysdeps/riscv/math-tests-trap.h: Likewise.
12599
ca3aac57
WD
126002018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
12601
12602 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
12603 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
12604 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
12605 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
12606 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
12607 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
12608 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
12609 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
12610 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
12611 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
12612 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
12613 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12614 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12615 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
12616 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
12617 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
12618 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
12619 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
12620
60bcac09
JM
126212018-08-23 Joseph Myers <joseph@codesourcery.com>
12622
12623 * sysdeps/generic/math-tests-exceptions.h: New file.
12624 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
12625 (EXCEPTION_TESTS_float): Do not define here.
12626 (EXCEPTION_TESTS_double): Likewise.
12627 (EXCEPTION_TESTS_long_double): Likewise.
12628 (EXCEPTION_TESTS_float128): Likewise.
12629 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
12630 Likewise.
12631 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
12632 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
12633 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
12634 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
12635 * sysdeps/mips/math-tests.h: Likewise.
12636 * sysdeps/nios2/math-tests.h: Likewise.
12637 * sysdeps/riscv/math-tests.h [!__riscv_flen]
12638 (EXCEPTION_TESTS_float): Do not define here.
12639 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
12640 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
12641 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
12642
3bded567
WD
126432018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
12644
12645 * NEWS: Move optimized sinf entry to 2.29.
12646
900fb446
WD
126472018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
12648
12649 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
12650
561b0bec
DD
126512018-08-22 DJ Delorie <dj@redhat.com>
12652
12653 * Makefile (testroot.pristine): New rules to initialize the
12654 test-in-container "testroot".
12655 * Makerules (all-testsuite): Add tests-container.
12656 * Rules (tests-expected): Add tests-container.
12657 (binaries-all-tests): Likewise.
12658 (tests-container): New, run these tests in the testroot container.
12659 * support/Makefile (others): Add *-container, support_paths.c,
12660 xmkdirp, and links-dso-program.
12661 * support/links-dso-program-c.c: New.
12662 * support/links-dso-program.cc: New.
12663 * support/test-container.c: New.
12664 * support/shell-container.c: New.
12665 * support/echo-container.c: New.
12666 * support/true-container.c: New.
12667 * support/xmkdirp.c: New.
12668 * support/xsymlink.c: New.
12669 * support/support_paths.c: New.
12670 * support/support.h: Add support paths prototypes.
12671 * support/xunistd.h: Add xmkdirp () and xsymlink ().
12672
12673 * nss/tst-nss-test3.c: Convert to test-in-container.
12674 * nss/tst-nss-test3.root/: New.
12675
b35d3509
PE
126762018-08-22 Paul Eggert <eggert@cs.ucla.edu>
12677
12678 regex: port Gnulib code to z/OS POSIX environment
12679 Problem reported by Arnold Robbins in:
12680 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
12681 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
12682 Undef.
12683
16a25138
JM
126842018-08-22 Joseph Myers <joseph@codesourcery.com>
12685
debc4c98
JM
12686 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
12687 (ROUNDING_TESTS_double): Remove.
12688 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
12689 (ROUNDING_TESTS_double): Remove.
12690 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
12691 (ROUNDING_TESTS_double): Remove.
12692 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
12693 (ROUNDING_TESTS_float): Remove.
12694 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
12695 (ROUNDING_TESTS_float): Remove.
12696 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
12697 (ROUNDING_TESTS_float): Remove.
12698 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
12699 !TEST_MATHVEC here.
12700 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
12701 (IF_ROUND_INIT_FE_UPWARD): Likewise.
12702
16a25138
JM
12703 * sysdeps/generic/math-tests-rounding.h: New file.
12704 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
12705 (ROUNDING_TESTS_float): Do not define here.
12706 (ROUNDING_TESTS_double): Likewise.
12707 (ROUNDING_TESTS_long_double): Likewise.
12708 (ROUNDING_TESTS_float128): Likewise.
12709 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
12710 (ROUNDING_TESTS_double): Undefine before defining.
12711 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
12712 (ROUNDING_TESTS_double): Undefine before defining.
12713 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
12714 (ROUNDING_TESTS_double): Undefine before defining.
12715 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
12716 (ROUNDING_TESTS_float): Undefine before defining.
12717 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
12718 (ROUNDING_TESTS_float): Undefine before defining.
12719 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
12720 (ROUNDING_TESTS_float): Undefine before defining.
12721 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
12722 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
12723 not define here.
12724 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
12725 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
12726 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
12727 * sysdeps/riscv/math-tests.h [!__riscv_flen]
12728 (ROUNDING_TESTS_float): Do not define here.
12729 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
12730 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
12731 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
12732 (ROUNDING_TESTS_float): Likewise.
12733 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
12734 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
12735 * sysdeps/mips/math-tests.h [__mips_soft_float]
12736 (ROUNDING_TESTS_float): Likewise.
12737 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
12738 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
12739 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
12740 (ROUNDING_TESTS_double): Likewise.
12741 (ROUNDING_TESTS_long_double): Likewise.
12742
38b0593e
TK
127432018-08-21 Tobias Klauser <tklauser@distanz.ch>
12744
12745 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
12746 (PF_XDP): New macro.
12747 (AF_XDP): New macro.
12748 (SOL_XDP): New macro.
12749
5cd7dbde
JM
127502018-08-21 Joseph Myers <joseph@codesourcery.com>
12751
12752 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
12753 (TCP_INQ): Likewise.
12754 (TCP_CM_INQ): Likewise.
12755 (TCP_REPAIR_ON): Likewise.
12756 (TCP_REPAIR_OFF): Likewise.
12757 (TCP_REPAIR_OFF_NO_WP): Likewise.
12758 (struct tcp_zerocopy_receive): New type.
12759
aa42b3db
FW
127602018-08-21 Florian Weimer <fweimer@redhat.com>
12761
12762 * support/support.h (support_descriptor_supports_holes): Declare.
12763 * support/Makefile (libsupport-routines): Add
12764 support_descriptor_supports_holes.
12765 * support/support_descriptor_supports_holes.c: New file.
12766 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
12767 and stop testing if holes are not supported.
12768 * io/test-lfs.c (do_prepare): Likewise.
12769 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
12770 Likewise.
12771 * timezone/tst-tzset.c (create_tz_file): Likewise.
12772 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
12773 variable.
12774 (do_prepare): Set it.
12775 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
12776
c7627f41
FW
127772018-08-21 Florian Weimer <fweimer@redhat.com>
12778
12779 [BZ #17248]
12780 * Makeconfig (+cflags): Do not sort (and deduplicate).
12781
ef939d92
FW
127822018-08-21 Florian Weimer <fweimer@redhat.com>
12783
12784 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
12785 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
12786
88ffb39d
FW
127872018-08-20 Florian Weimer <fweimer@redhat.com>
12788
12789 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
12790 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
12791
17419540
JM
127922018-08-20 Joseph Myers <joseph@codesourcery.com>
12793
e6edd40d
JM
12794 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
12795 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
12796 and ssi_arch members.
12797
17419540
JM
12798 * elf/elf.c (NT_VMCOREDD): New macro.
12799 (AT_MINSIGSTKSZ): Likewise.
12800
fa78896b
RS
128012018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
12802
12803 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
12804 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
12805 s_cosf-ppc64 and s_cosf-power8.
12806 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
12807 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
12808 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
12809 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
12810 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
12811 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
12812 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
12813 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
12814 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
12815 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
12816 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
12817 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
12818
86a6c75a
FW
128192018-08-17 Florian Weimer <fweimer@redhat.com>
12820
12821 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
12822
35cfefd9
FW
128232018-08-17 Istvan Kurucsai <pistukem@gmail.com>
12824
12825 * malloc/malloc.c (_int_malloc): Additional binning code checks.
12826
6413fcde
FW
128272018-08-16 Florian Weimer <fweimer@redhat.com>
12828
12829 * configure.ac: Add --with-nonshared-cflags option.
12830 * config.make.in (extra-nonshared-cflags): Set variable.
12831 * Makeconfig (CFLAGS-.oS): Use it.
12832 * manual/install.texi (Configuring and compiling): Document
12833 --with-nonshared-cflags.
12834 * configure: Regenerate.
12835 * INSTALL: Likewise.
12836
93a2584c
FW
128372018-08-16 Florian Weimer <fweimer@redhat.com>
12838
12839 * Makeconfig (ASFLAGS): Always append required assembler flags.
12840
f6f275d2 128412018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
d6db68e6
ME
12842
12843 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
12844 (malloc_consolidate): Likewise.
12845
30a17d8c
PC
128462018-08-16 Pochang Chen <johnchen902@gmail.com>
12847
12848 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
12849
953a5a4a
SP
128502018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
12851
34f86d61
SP
12852 * benchtests/bench-strlen.c (do_test): Allocate buffers before
12853 every strlen call.
12854
953a5a4a
SP
12855 * benchtests/bench-strlen.c: Print performance numbers in json.
12856
7793ad7a
RS
128572018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
12858
12859 * sysdeps/powerpc/powerpc64/multiarch/Makefile
12860 (sysdep_routines): Build strcmp-power9 and strncmp-power9
12861 only for little endian.
12862 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
12863 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
12864 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
12865 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
12866 Add check for little endian.
12867 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
12868 (__strcmp_power9): Add check for little endian.
12869 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
12870 Add check for little endian.
12871 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
12872 (__strncmp_power9): Add check for little endian.
12873 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
12874 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
12875 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
12876 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
12877 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
12878
436e4d5b
SP
128792018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
12880
12881 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
12882 [!STRLEN](STRLEN): Set to __strlen.
12883 * sysdeps/aarch64/multiarch/strlen.c: New file.
12884 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
12885 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
12886 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
12887 (__libc_ifunc_impl_list): Add strlen.
12888 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
12889 strlen_generic and strlen_asimd.
12890
126c4e3f
WD
128912018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
12892
12893 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
12894 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
12895 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
12896
49acec17
WD
128972018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
12898
12899 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
12900
fdb16de3
FW
129012018-08-14 Florian Weimer <fweimer@redhat.com>
12902
12903 [BZ #23519]
12904 * include/stdio.h (__vfxprintf): Declare.
12905 * stdio-common/fxprintf.c (__vfxprintf): New function.
12906 (__fxprintf): Call it.
12907 * misc/err.c (convert_and_print): Remove function.
12908 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
12909 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
12910 * misc/Makefile (tests): Add tst-warn-wide.
12911 * misc/tst-warn-wide.c: New file.
12912
599cf397
WD
129132018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
12914 Szabolcs Nagy <szabolcs.nagy@arm.com>
12915
12916 * NEWS: Mention sinf, cosf, sincosf.
12917 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
12918 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
12919 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
12920 constants rather than including generic sincosf.h.
12921 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
12922 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
12923 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
12924 (reduced_cos): Remove.
12925 (sinf_poly): New function.
12926 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
12927
e95c6f61
FW
129282018-08-14 Florian Weimer <fweimer@redhat.com>
12929
12930 [BZ #23521]
12931 [BZ #23522]
12932 * nss/nss_files/files-alias.c (get_next_alias): During :include:
12933 processing, bail out if no room, and close the stream before
12934 returning ERANGE.
12935 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
12936 (tst-nss-files-alias-leak): Link with libdl.
12937 (tst-nss-files-alias-leak.out): Depend on nss_files.
12938
12939 * nss/tst-nss-files-alias-leak.c: New file.
12940
2d7acfac
FW
129412018-08-14 Florian Weimer <fweimer@redhat.com>
12942
12943 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
12944 server_user, stat_user.
12945
f3cd0904
JM
129462018-08-13 Joseph Myers <joseph@codesourcery.com>
12947
17b26500
JM
12948 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
12949 version to 4.18.
12950 (io_pgetevents): New syscall.
12951 (rseq): Likewise.
12952
3c1622eb
JM
12953 * manual/install.texi (Configuring and compiling): Do not list
12954 tools used for testing pretty printers here.
12955 (Tools for Compilation): List Python, PExpect and GDB here.
12956 Update descriptions of uses of Perl and Python.
12957 * INSTALL: Regenerate.
12958
f3cd0904
JM
12959 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
12960 version to 4.18.
12961
b7b52b9d
FW
129622018-08-13 Florian Weimer <fweimer@redhat.com>
12963
12964 * misc/error.c (error): Add missing va_end call.
12965 (error_at_line): Likewise.
12966
01780188
FW
129672018-08-13 Florian Weimer <fweimer@redhat.com>
12968
12969 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
12970
44727aec
SP
129712018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
12972
8cac1f26
SP
12973 * benchtests/scripts/benchout.schema.json (properties): Add
12974 new properties.
12975
44727aec
SP
12976 * benchtests/bench-skeleton.c (main): Add duration and
12977 iterations attributes.
12978
c77bf91b
PE
129792018-08-10 Paul Eggert <eggert@cs.ucla.edu>
12980
12981 regex: Gnulib unibyte RRI uses bytes not chars
12982 Adjust the non-glibc code to agree with what Gawk needs for
12983 rational range interpretation (RRI) for regular expression ranges.
12984 In unibyte locales, Gawk wants ranges to use the underlying byte
12985 rather than the character code point. This change does not affect
12986 glibc proper.
12987 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
12988 In unibyte locales, use the byte value rather than
12989 running it through btowc.
12990
2ce7ba7d
JM
129912018-08-10 Joseph Myers <joseph@codesourcery.com>
12992
12993 * sysdeps/generic/math-tests-snan.h: New file.
12994 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
12995 (SNAN_TESTS_float): Do not define here.
12996 (SNAN_TESTS_double): Likewise.
12997 (SNAN_TESTS_long_double): Likewise.
12998 (SNAN_TESTS_float128): Likewise.
12999 * sysdeps/i386/fpu/math-tests-snan.h: New file.
13000 * sysdeps/i386/fpu/math-tests.h: Remove file.
13001 * sysdeps/ia64/math-tests-snan.h: New file.
13002 * sysdeps/ia64/math-tests.h: Remove file.
13003 * sysdeps/x86/math-tests.h: Likewise.
13004 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
13005
ea5c662c
WD
130062018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
13007 Szabolcs Nagy <szabolcs.nagy@arm.com>
13008
13009 * math/Makefile: Add s_sincosf_data.c.
13010 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
13011 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
13012 (sincosf_poly): Likewise.
13013 (reduce_small): Likewise.
13014 (reduce_large): Likewise.
13015 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
13016 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
13017 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
13018 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
13019
43cfdf8f
SN
130202018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
13021 Szabolcs Nagy <szabolcs.nagy@arm.com>
13022
13023 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
13024 (converttoint): Use lround.
13025 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
13026 document the semantics when TOINT_INTRINSICS is set.
13027 (converttoint): Likewise.
13028 (TOINT_RINT): Remove.
13029 (TOINT_SHIFT): Remove.
13030 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
13031 path.
13032
69065288
FW
130332018-08-10 Florian Weimer <fweimer@redhat.com>
13034
13035 [BZ #23497]
13036 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
13037 function.
13038 (__old_getdents64): Use getdents64. Convert entries without
13039 moving them.
13040 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
13041 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
13042 tst-readdir64-compat.
13043
8f135efc
IL
130442018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13045
13046 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
13047 Fix unwind.
13048
71c01af5
IL
130492018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13050
13051 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
13052 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
13053 code to s390x-mcount.h and #include it.
13054 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
13055 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
13056 (__fentry__): Add.
13057
8d997d22
IL
130582018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13059
13060 * stdlib/Versions: Remove __fentry__.
13061 * sysdeps/i386/Versions: Add __fentry__.
13062 * sysdeps/x86_64/Versions: Add __fentry__.
13063
69e2444a
IL
130642018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13065
13066 * sysdeps/s390/Makefile: Register the new tests.
13067 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
13068 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
13069 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
13070 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
13071 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
13072 * sysdeps/s390/tst-dl-runtime.c: New file.
13073
bde6320f
IL
130742018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13075
13076 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
13077 Do not clobber R0.
13078
5755f5e4
IL
130792018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13080
13081 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
13082 Do not clobber R0.
13083
c8ad8522
IL
130842018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13085
13086 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
13087 Do not clobber R0.
13088
b215eee1
IL
130892018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13090
13091 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
13092 Do not clobber R0.
13093
329c6fec
IL
130942018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13095
13096 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
13097 Use symbolic offsets for stack variables.
13098
0fb7afa2
IL
130992018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13100
13101 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
13102 Use symbolic offsets for stack variables.
13103
6954059a
IL
131042018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13105
13106 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
13107 Use symbolic offsets for stack variables.
13108
c7099673
IL
131092018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13110
13111 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
13112 Use symbolic offsets for stack variables.
13113
2813e41e
JM
131142018-08-09 Joseph Myers <joseph@codesourcery.com>
13115
13116 * math/gen-libm-test.py: New file.
13117 * math/gen-libm-test.pl: Remove.
13118 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
13119 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
13120 gen-libm-test.pl.
13121 ($(libm-test-c-noauto-obj)): Likewise.
13122 ($(libm-test-c-auto-obj)): Likewise.
13123 ($(libm-test-c-narrow-obj)): Likewise.
13124 (regen-ulps): Likewise.
13125 * math/README.libm-test: Update references to gen-libm-test.pl.
13126 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
13127 referencing gen-libm-test.pl.
13128 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
13129 * math/libm-test-support.c: Likewise.
13130 * math/libm-test-support.h: Likewise.
13131 * sysdeps/generic/libm-test-ulps: Likewise.
13132
be64b194
SP
131332018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
13134
13135 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
13136 Fix value.
13137
140137fb
JM
131382018-08-08 Joseph Myers <joseph@codesourcery.com>
13139
13140 * math/libm-test-nextdown.inc (do_test): Move comment to ....
13141 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
13142
b5403eca
ST
131432018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13144
13145 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
13146 symbols.
8ac0f9e6
ST
13147 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
13148 __pthread_setspecific): Add hidden proto.
13149 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
13150 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
b5403eca 13151
014efdd7
SP
131522018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
13153
13154 * benchtests/bench-string.h (buf1_size, buf2_size): New
13155 variables.
13156 (init_sizes): New function.
13157 (test_init): Use it.
13158 (alloc_buf, exit_error): New functions.
13159 (alloc_bufs): Use ALLOC_BUF.
13160 (realloc_bufs): Remove.
13161 * benchtests/bench-memcmp.c (do_test): Adjust.
13162 * benchtests/bench-memset-large.c (do_test): Likewise.
13163 * benchtests/bench-memset-walk.c (do_test): Likewise.
13164 * benchtests/bench-memset.c (do_test): Likewise.
13165 * benchtests/bench-strncmp.c (do_test): Likewise.
13166
92a4cba7
AS
131672018-08-06 Andreas Schwab <schwab@suse.de>
13168
13169 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
13170 of CONST_THREAD_AREA.
13171
fb4c32ae
L
131722018-08-06 H.J. Lu <hongjiu.lu@intel.com>
13173
13174 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
13175 (STATE_SAVE_MASK): Likewise.
13176 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
13177 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
13178 (STATE_SAVE_MASK): Likewise.
13179 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
13180 instead of <cpu-features.h>.
13181
bf418187
DD
131822018-08-03 DJ Delorie <dj@redhat.com>
13183
13184 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
e5721f45 13185 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
bf418187 13186
bb17621a
DD
13187 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
13188
ea705eb5
JM
131892018-08-03 Joseph Myers <joseph@codesourcery.com>
13190
13191 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
13192 after TEST_* calls.
13193 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
13194 * math/libm-test-logb.inc (logb_test_data): Likewise.
13195
284f42bc
WD
131962018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
13197
13198 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
13199 * string/strstr.c (AVAILABLE): Likewise.
13200
430388d5
L
132012018-08-03 H.J. Lu <hongjiu.lu@intel.com>
13202
13203 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
13204 <init-arch.h>.
13205 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
13206 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
13207 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
13208
c5760aa9
CD
132092018-08-03 Carlos O'Donell <carlos@redhat.com>
13210
13211 * po/be.po: Update translation.
13212
6b535b84
CD
13213 * po/be.po: Update translation.
13214
ae67f2e5
L
132152018-08-03 H.J. Lu <hongjiu.lu@intel.com>
13216
13217 * sysdeps/x86/cpu-features-offsets.sym
13218 (rtld_global_ro_offsetof): Removed.
13219 (CPU_FEATURES_SIZE): Likewise.
13220 (CPUID_OFFSET): Likewise.
13221 (CPUID_SIZE): Likewise.
13222 (CPUID_EAX_OFFSET): Likewise.
13223 (CPUID_EBX_OFFSET): Likewise.
13224 (CPUID_ECX_OFFSET): Likewise.
13225 (CPUID_EDX_OFFSET): Likewise.
13226 (FAMILY_OFFSET): Likewise.
13227 (MODEL_OFFSET): Likewise.
13228 (FEATURE_OFFSET): Likewise.
13229 (FEATURE_SIZ): Likewise.
13230 (COMMON_CPUID_INDEX_1): Likewise.
13231 (COMMON_CPUID_INDEX_7): Likewise.
13232 (FEATURE_INDEX_1): Likewise.
13233 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
13234
6b5c8607 132352018-08-02 Carlos O'Donell <carlos@redhat.com>
08a5ee14
CD
13236
13237 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
13238 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
13239 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
13240 (install-locales): Depend on install-locale-archive.
13241 (install-locale-archive): Define.
7b7adbd8 13242 (install-locale-files): Define.
08a5ee14
CD
13243 (build-one-locale): Define macro.
13244 * manual/install.texi (Running make install): Document.
13245 * manual/INSTALL: Regenerate.
13246
525691bd
SP
132472018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
13248
d67d634b
SP
13249 * benchtests/scripts/compare_strings.py: Import traceback.
13250 (parse_file): Pretty-print error.
13251
525691bd
SP
13252 * NEWS: Mention the change.
13253 * elf/dl-tunables.list: Rename tune namespace to cpu.
13254 * sysdeps/powerpc/dl-tunables.list: Likewise.
13255 * sysdeps/x86/dl-tunables.list: Likewise.
13256 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
13257 cpu.name.
13258 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
13259 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
13260 * manual/README.tunables: Likewise.
13261 * manual/tunables.texi: Likewise.
13262 * sysdeps/powerpc/cpu-features.c: Likewise.
13263 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
13264 (init_cpu_features): Likewise.
13265 * sysdeps/x86/cpu-features.c: Likewise.
13266 * sysdeps/x86/cpu-features.h: Likewise.
13267 * sysdeps/x86/cpu-tunables.c: Likewise.
13268 * sysdeps/x86_64/Makefile: Likewise.
13269 * sysdeps/x86/dl-cet.c: Likewise.
13270
506d7fb1
JM
132712018-08-02 Joseph Myers <joseph@codesourcery.com>
13272
13273 [BZ #23479]
13274 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
13275 [__mips_hard_float].
13276 (FE_UNDERFLOW): Likewise.
13277 (FE_OVERFLOW): Likewise.
13278 (FE_DIVBYZERO): Likewise.
13279 (FE_INVALID): Likewise.
13280 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
13281 (FE_TOWARDZERO): Define only if [__mips_hard_float].
13282 (FE_UPWARD): Likewise.
13283 (FE_DOWNWARD): Likewise.
13284 (__FE_UNDEFINED): Define if [!__mips_hard_float]
13285 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
13286 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
13287 [__mips_hard_float].
13288 (FP_ROUNDMODE): Likewise.
13289 (FP_RND_NEAREST): Likewise.
13290 (FP_RND_ZERO): Likewise.
13291 (FP_RND_PINF): Likewise.
13292 (FP_RND_MINF): Likewise.
13293 (FP_EX_INVALID): Likewise.
13294 (FP_EX_OVERFLOW): Likewise.
13295 (FP_EX_UNDERFLOW): Likewise.
13296 (FP_EX_DIVZERO): Likewise.
13297 (FP_EX_INEXACT): Likewise.
13298 (FP_INIT_ROUNDMODE): Likewise.
13299 * sysdeps/mips/nofpu/fesetenv.c: New file.
13300 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
13301
f6dcefbe
JM
133022018-08-01 Joseph Myers <joseph@codesourcery.com>
13303
13304 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
13305 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
13306 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
13307 conditional on [FE_UPWARD].
13308
fa67ba06
PE
133092018-08-01 Paul Eggert <eggert@cs.ucla.edu>
13310
13311 regex: fix memory leak in Gnulib
13312 Problem and fix reported by Assaf Gordon in:
13313 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
13314 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
13315 range_ends members too, as they are defined in 'struct
13316 re_charset_t' even if not _LIBC. This affects only Gnulib.
13317
82c80ac2
L
133182018-08-01 H.J. Lu <hongjiu.lu@intel.com>
13319
13320 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
13321 ...
13322 (get_common_indices): This.
13323 (init_cpu_features): Updated.
13324
c0e7e2c1
JM
133252018-08-01 Joseph Myers <joseph@codesourcery.com>
13326
46f8cf57
JM
13327 * sysdeps/generic/math-tests-snan-payload.h: New file.
13328 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
13329 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
13330 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
13331 * sysdeps/generic/math-tests.h: Include
13332 <math-tests-snan-payload.h>.
13333 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
13334 * sysdeps/hppa/math-tests.h: Remove file.
13335 * sysdeps/mips/math-tests.h [!__mips_nan2008]
13336 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
13337 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
13338 Likewise.
13339
c0e7e2c1
JM
13340 * sysdeps/generic/math-tests-snan-cast.h: New file.
13341 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
13342 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
13343 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
13344 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
13345
74939c83
CD
133462018-08-01 Carlos O'Donel <carlos@redhat.com>
13347
b029723b
CD
13348 * version.h (RELEASE): Set to "development".
13349 (VERSION): Set to "2.28.9000".
13350 * NEWS (2.29): New section.
13351
3c03baca
CD
13352 * version.h (RELEASE): Set to "stable".
13353 (VERSION): Set to "2.28".
13354 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
13355 * NEWS: Add the list of bugs fixed in 2.28.
13356
74939c83
CD
13357 * po/ca.po: Update to latest version.
13358 * po/cs.po: Likewise
13359 * po/da.po: Likewise
13360 * po/el.po: Likewise
13361 * po/eo.po: Likewise
13362 * po/es.po: Likewise
13363 * po/fi.po: Likewise
13364 * po/fr.po: Likewise
13365 * po/gl.po: Likewise
13366 * po/hu.po: Likewise
13367 * po/ia.po: Likewise
13368 * po/id.po: Likewise
13369 * po/it.po: Likewise
13370 * po/ja.po: Likewise
13371 * po/ko.po: Likewise
13372 * po/lt.po: Likewise
13373 * po/nb.po: Likewise
13374 * po/nl.po: Likewise
13375 * po/pt_BR.po: Likewise
13376 * po/ru.po: Likewise
13377 * po/rw.po: Likewise
13378 * po/sk.po: Likewise
13379 * po/sl.po: Likewise
13380 * po/tr.po: Likewise
13381 * po/zh_CN.po: Likewise
13382 * po/zh_TW.po: Likewise
13383
d4b54bdf
ST
133842018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
13385
13386 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
13387 initialization...
13388 (init): ... before initializing libpthread.
13389
42fc12ef
ST
13390 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
13391 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
13392 (__mach_setup_tls): ... new function.
13393 (mach_setup_tls): New alias.
13394 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
13395 __mach_setup_thread.
13396 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
13397 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
13398 * mach/Versions [libc] (mach_setup_tls): Add symbol.
13399 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
13400
6cca855e
CD
134012018-07-31 Carlos O'Donell <carlos@redhat.com>
13402
f650932b
CD
13403 * manual/install.texi: Update versions.
13404 * INSTALL: Regenerate.
13405
6cca855e
CD
13406 * manual/contrib.texi (Contributors): Update contributions.
13407
07fdea47
CD
134082018-07-31 Carlos O'Donell <carlos@redhat.com>
13409
13410 * po/be.po: Update translations.
13411
63d5fad4
AZ
134122018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13413
13414 * sysdeps/sh/libm-test-ulps: Update.
13415
1ff712a6
CD
134162018-07-30 Carlos O'Donell <carlos@redhat.com>
13417
13418 * po/bg.po: Update translations.
13419 * po/de.po: Likewise.
13420 * po/hr.po: Likewise.
13421 * po/pt_BR.po: Likewise.
13422 * po/sv.po: Likewise.
13423 * po/vi.po: Likewise.
13424
98864ed0
L
134252018-07-30 H.J. Lu <hongjiu.lu@intel.com>
13426
13427 [BZ #23467]
13428 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
13429 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
13430 (CFLAGS-tst-cet-property-1.o): New.
13431 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
13432 ($(objpfx)tst-cet-property-2): Likewise.
13433 ($(objpfx)tst-cet-property-2.out): Likewise.
13434 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
13435 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
13436 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
13437 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
13438 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
13439
c92a00d8
L
134402018-07-30 H.J. Lu <hongjiu.lu@intel.com>
13441
13442 [BZ #23458]
13443 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
13444
99bc6241
ST
134452018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
13446
13447 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
13448 __sbrk): Do not set attribute_hidden.
af86087f 13449 * sysdeps/mach/hurd/not-errno.h: New file.
99bc6241
ST
13450 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
13451 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
13452
bcb1c4af
CD
134532018-07-27 Carlos O'Donell <carlos@redhat.com>
13454
13455 * po/uk.po: Update translations.
13456 * po/cs.po: Likewise.
13457 * po/pl.po: Likewise.
13458
4591b7db
L
134592018-07-27 H.J. Lu <hongjiu.lu@intel.com>
13460
13461 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
13462 parse beyond the note end.
13463
2c6da2f4
AZ
134642018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13465
13466 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
13467 kernel does not support OFD locks.
13468 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
13469
20365a31
ST
134702018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
13471
13472 * sysdeps/mach/hurd/Versions (libc): Make __access and
13473 __access_noerrno external so they can override the ld symbols.
13474 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
13475 __writev, __open64, __access_noerrno extern so they can be overrided.
13476 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
13477 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
13478
cb1a43db
CD
134792018-07-26 Carlos O'Donell <carlos@redhat.com>
13480
13481 * po/libc.pot: Regenerate.
13482
74759ae5
JM
134832018-07-26 Joseph Myers <joseph@codesourcery.com>
13484
13485 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
13486
da80612d
L
134872018-07-26 H.J. Lu <hongjiu.lu@intel.com>
13488
13489 [BZ #23459]
13490 * sysdeps/x86/cpu-features.c (get_extended_indices): New
13491 function.
13492 (init_cpu_features): Call get_extended_indices for both Intel
13493 and AMD CPUs.
13494 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
13495 Remove "for AMD" comment.
13496
65d87ade
L
134972018-07-26 H.J. Lu <hongjiu.lu@intel.com>
13498
13499 [BZ # 23456]
13500 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
13501 COMMON_CPUID_INDEX_80000001.
13502
c9dc4d51
SL
135032018-07-26 Stefan Liebler <stli@linux.ibm.com>
13504
13505 * string/tst-xbzero-opt.c (use_test_buffer): New function.
13506 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
13507
cfba5dbb
FW
135082018-07-26 Florian Weimer <fweimer@redhat.com>
13509
13510 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
13511 aliases for symbols not in the implementation namespace.
13512
6b5c8607 135132018-07-25 Carlos O'Donell <carlos@redhat.com>
7cd7d36f
CD
13514
13515 [BZ #23393]
13516 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
13517 lowercase in LATIN script.
13518 * localedata/Makefile (test-input): Add en_US.UTF-8.
13519 * localedata/en_US.UTF-8.in: New file.
13520 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
13521 and restore old tests.
13522 * posix/tst-regexloc.c (do_test): Add back range expression test.
13523
3fb455b3
L
135242018-07-25 H.J. Lu <hongjiu.lu@intel.com>
13525
13526 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
13527
d6499b70
AZ
135282018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13529
13530 * nptl/threads.h: Move to ...
13531 * sysdeps/nptl/threads.h: ... here.
13532 * sysdeps/hurd/stdc-predef.h: New file.
13533
08ac6bed
L
135342018-07-25 H.J. Lu <hongjiu.lu@intel.com>
13535
13536 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
13537 tst-cet-setcontext-1 if CET is enabled.
13538 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
13539 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
13540
9faaf938
AZ
135412018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13542
13543 * include/threads.h: Move to ...
13544 * sysdeps/nptl/threads.h: ... here.
13545 * sysdeps/htl/threads.h: New file.
13546 * conform/Makefile (linknamespace-libs-ISO11): Use
13547 static-thread-library instead of linking libpthread.
13548 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
13549
d6b8f847
FW
135502018-07-25 Florian Weimer <fweimer@redhat.com>
13551
13552 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
13553 nanoseconds into seconds.
13554 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
13555 (do_test): Likewise.
13556 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
13557 (do_test): Likewise. Avoid nanosecond overflow and spurious
13558 timeouts due to system load.
13559 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
13560 (child_wait): Increment it.
13561 (do_test): Wait as long as necessary until all expected threads
13562 have arrived.
13563
25123a1c
L
135642018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
13565 H.J. Lu <hongjiu.lu@intel.com>
13566
13567 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
13568 __ssp.
13569 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
13570 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
13571 (__push___start_context): New.
13572 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
13573 <asm/prctl.h>.
13574 (__getcontext): Record the current shadow stack base. Save the
13575 caller's shadow stack pointer and base.
13576 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
13577 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
13578 (__push___start_context): New prototype.
13579 (__makecontext): Call __push___start_context to allocate a new
13580 shadow stack, push __start_context onto the new stack as well
13581 as the new shadow stack.
13582 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
13583 <asm/prctl.h>.
13584 (__setcontext): Restore the target shadow stack.
13585 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
13586 <asm/prctl.h>.
13587 (__swapcontext): Record the current shadow stack base. Save
13588 the caller's shadow stack pointer and base. Restore the target
13589 shadow stack.
13590 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
13591 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
13592 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
13593
375a4844
L
135942018-07-25 H.J. Lu <hongjiu.lu@intel.com>
13595
13596 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
13597 tst-setcontext8 and tst-setcontext9.
13598 * stdlib/tst-setcontext6.c: New file.
13599 * stdlib/tst-setcontext7.c: Likewise.
13600 * stdlib/tst-setcontext8.c: Likewise.
13601 * stdlib/tst-setcontext9.c: Likewise.
13602
bd4f7903
L
136032018-07-25 H.J. Lu <hongjiu.lu@intel.com>
13604
13605 * stdlib/Makefile ((tests): Add tst-setcontext5.
13606 * stdlib/tst-setcontext5.c: New file.
13607
7e28f203
L
136082018-07-25 H.J. Lu <hongjiu.lu@intel.com>
13609
13610 * stdlib/Makefile (tests): Add tst-setcontext4.
13611 * stdlib/tst-setcontext4.c: New file.
13612
8516ad2d
L
136132018-07-25 H.J. Lu <hongjiu.lu@intel.com>
13614
13615 * stdlib/Makefile (tests): Add tst-swapcontext1.
13616 * stdlib/tst-swapcontext1.c: New test.
13617
fddcd003
L
136182018-07-25 H.J. Lu <hongjiu.lu@intel.com>
13619
13620 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
13621 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
13622 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
13623 and tst-cet-legacy-4c.
13624 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
13625 and tst-cet-legacy-mod-4.
13626 (CFLAGS-tst-cet-legacy-2.c): New.
13627 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
13628 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
13629 (CFLAGS-tst-cet-legacy-3.c): Likewise.
13630 (CFLAGS-tst-cet-legacy-4.c): Likewise.
13631 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
13632 ($(objpfx)tst-cet-legacy-1): Likewise.
13633 ($(objpfx)tst-cet-legacy-2): Likewise.
13634 ($(objpfx)tst-cet-legacy-2.out): Likewise.
13635 ($(objpfx)tst-cet-legacy-2a): Likewise.
13636 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
13637 ($(objpfx)tst-cet-legacy-4): Likewise.
13638 ($(objpfx)tst-cet-legacy-4.out): Likewise.
13639 ($(objpfx)tst-cet-legacy-4a): Likewise.
13640 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
13641 (tst-cet-legacy-4a-ENV): Likewise.
13642 ($(objpfx)tst-cet-legacy-4b): Likewise.
13643 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
13644 (tst-cet-legacy-4b-ENV): Likewise.
13645 ($(objpfx)tst-cet-legacy-4c): Likewise.
13646 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
13647 (tst-cet-legacy-4c-ENV): Likewise.
13648 * sysdeps/x86/tst-cet-legacy-1.c: New file.
13649 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
13650 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
13651 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
13652 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
13653 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
13654 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
13655 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
13656 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
13657 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
13658 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
13659
9aa3113a
L
136602018-07-25 H.J. Lu <hongjiu.lu@intel.com>
13661
13662 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
13663 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
13664 with ssp_base.
13665 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
13666 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
13667 with ssp_base.
13668
9c79cec8
AS
136692018-07-25 Andreas Schwab <schwab@suse.de>
13670
13671 [BZ #23442]
13672 * locale/weightwc.h (findidx): Handle the case where usrc is a
13673 prefix of cp but one character too short.
13674
969c3355
AZ
136752018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13676
13677 * NEWS: Add ISO C threads addition.
13678
e0f9c462
FW
136792018-07-24 Florian Weimer <fweimer@redhat.com>
13680
13681 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
13682 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
13683 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
13684 4.13.
13685
394df381
L
136862018-07-24 H.J. Lu <hongjiu.lu@intel.com>
13687
13688 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
13689 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
13690 <sys/prctl.h> and <asm/prctl.h>.
13691 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
13692 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
13693 and <asm/prctl.h>.
13694 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
13695 ARCH_CET_LEGACY_BITMAP.
13696 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
13697 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
13698 * sysdeps/x86/libc-start.c: Include <startup.h>.
13699
46545530
FW
137002018-07-24 Florian Weimer <fweimer@redhat.com>
13701
13702 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
13703 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
13704
6b5c8607 137052018-07-24 Rical Jasan <rj@2c3t.io>
9d0a979e 13706 Adhemerval Zanella <adhemerval.zanella@linaro.org>
0a07288b
AZ
13707 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
13708
13709 [BZ #14092]
9d0a979e
RJ
13710 * manual/debug.texi: Update adjacent chapter name.
13711 * manual/probes.texi: Likewise.
13712 * manual/threads.texi (ISO C Threads): New section.
13713 (POSIX Threads): Convert to a section.
13714
137152018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13716 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
13717
13718 [BZ# 14092]
0a07288b
AZ
13719 * nptl/Makefile (tests): Add new test files.
13720 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
13721 * nptl/tst-cnd-basic.c: Likewise.
13722 * nptl/tst-cnd-broadcast.c: Likewise.
13723 * nptl/tst-cnd-timedwait.c: Likewise.
13724 * nptl/tst-mtx-basic.c: Likewise.
13725 * nptl/tst-mtx-recursive.c: Likewise.
13726 * nptl/tst-mtx-timedlock.c: Likewise.
13727 * nptl/tst-mtx-trylock.c: Likewise.
13728 * nptl/tst-thrd-basic.c: Likewise.
13729 * nptl/tst-thrd-detach.c: Likewise.
13730 * nptl/tst-thrd-sleep.c: Likewise.
13731 * nptl/tst-tss-basic.c: Likewise.
13732
ce7528f6
AZ
137332018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13734
c6dd669b
AZ
13735 [BZ #14092]
13736 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
13737 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
13738 symbols.
13739 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
13740 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
13741 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
13742 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
13743 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
13744 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
13745 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
13746 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
13747 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
13748 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
13749 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
13750 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
13751 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
13752 Likewise.
13753 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
13754 Likewise.
13755 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
13756 Likewise.
13757 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
13758 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
13759 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
13760 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
13761 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
13762 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
13763 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
13764 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
13765 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
13766 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
13767 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
13768 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
13769 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
13770 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
13771 Likewise.
13772 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
13773 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
13774 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
13775 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
13776 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
13777 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
13778 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
13779 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
13780 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
13781 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
13782 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
13783 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
13784 ikewise.
13785 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
13786 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
13787 Likewise.
13788 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
13789 Likewise.
13790 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
13791 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
13792 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
13793 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
13794 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
13795 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
13796 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
13797 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
13798
78d40132
AZ
13799 [BZ #14092]
13800 * conform/data/threads.h-data (thread_local): New macro.
13801 (TSS_DTOR_ITERATIONS): Likewise.
13802 (tss_t): New type.
13803 (tss_dtor_t): Likewise.
13804 (tss_create): New function.
13805 (tss_get): Likewise.
13806 (tss_set): Likewise.
13807 (tss_delete): Likewise.
13808 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
13809 tss_get, and tss_set objects.
13810 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
13811 * nptl/tss_create.c: New file.
13812 * nptl/tss_delete.c: Likewise.
13813 * nptl/tss_get.c: Likewise.
13814 * nptl/tss_set.c: Likewise.
13815 * sysdeps/nptl/threads.h (thread_local): New define.
13816 (TSS_DTOR_ITERATIONS): Likewise.
13817 (tss_t): New typedef.
13818 (tss_dtor_t): Likewise.
13819 (tss_create): New prototype.
13820 (tss_get): Likewise.
13821 (tss_set): Likewise.
13822 (tss_delete): Likewise.
13823
918311a3
AZ
13824 [BZ #14092]
13825 * conform/data/threads.h-data (cnd_t): New type.
13826 (cnd_init): New function.
13827 (cnd_signal): Likewise.
13828 (cnd_broadcast): Likewise.
13829 (cnd_wait): Likewise.
13830 (cnd_timedwait): Likewise.
13831 (cnd_destroy): Likewise.
13832 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
13833 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
13834 object.
13835 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
13836 * nptl/cnd_broadcast.c: New file.
13837 * nptl/cnd_destroy.c: Likewise.
13838 * nptl/cnd_init.c: Likewise.
13839 * nptl/cnd_signal.c: Likewise.
13840 * nptl/cnd_timedwait.c: Likewise.
13841 * nptl/cnd_wait.c: Likewise.
13842 * sysdeps/nptl/threads.h (cnd_t): New type.
13843 (cnd_init): New prototype.
13844 (cnd_signa): Likewise.
13845 (cnd_broadcast): Likewise.
13846 (cnd_wait): Likewise.
13847 (cnd_timedwait): Likewise.
13848 (cnd_destroy): Likewise.
13849
3c20a679
AZ
13850 [BZ #14092]
13851 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
13852 (once_flag): New type.
13853 (call_once): New function.
13854 * nptl/Makefile (libpthread-routines): Add call_once object.
13855 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
13856 * nptl/call_once.c: New file.
13857 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
13858 (once_flag): New type.
13859 (call_once): New prototype.
13860
18d59c1b
AZ
13861 [BZ #14092]
13862 * conform/data/threads.h-data (mtx_plain): New constant.
13863 (mtx_recursive): Likewise.
13864 (mtx_timed): Likewise.
13865 (mtx_t): New type.
13866 (mtx_init): New function.
13867 (mtx_lock): Likewise.
13868 (mtx_timedlock): Likewise.
13869 (mtx_trylock): Likewise.
13870 (mtx_unlock): Likewise.
13871 (mtx_destroy): Likewise.
13872 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
13873 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
13874 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
13875 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
13876 * nptl/mtx_destroy.c: New file.
13877 * nptl/mtx_init.c: Likewise.
13878 * nptl/mtx_lock.c: Likewise.
13879 * nptl/mtx_timedlock.c: Likewise.
13880 * nptl/mtx_trylock.c: Likewise.
13881 * nptl/mtx_unlock.c: Likewise.
13882 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
13883 (mtx_recursive): Likewise.
13884 (mtx_timed): Likewise.
13885 (mtx_t): New type.
13886 (mtx_init): New prototype.
13887 (mtx_lock): Likewise.
13888 (mtx_timedlock): Likewise.
13889 (mtx_trylock): Likewise.
13890 (mtx_unlock): Likewise.
13891 (mtx_destroy): Likewise.
13892
ce7528f6
AZ
13893 [BZ #14092]
13894 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
13895 (linknamespace-libs-ISO11): Add libpthread.a.
13896 * conform/data/threads.h-data: New file: add C11 thrd_* types and
13897 functions.
13898 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
13899 * nptl/Makefile (headers): Add threads.h.
13900 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
13901 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
13902 thrd_yield.
13903 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
13904 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
13905 thrd_join, thrd_sleep, and thrd_yield symbols.
13906 * nptl/descr.h (struct pthread): Add c11 field.
13907 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
13908 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
13909 routine with expected function prototype.
13910 (__pthread_create_2_1): Add C11 threads check based on attribute
13911 value.
13912 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
13913 * nptl/thrd_create.c: New file.
13914 * nptl/thrd_current.c: Likewise.
13915 * nptl/thrd_detach.c: Likewise.
13916 * nptl/thrd_equal.c: Likewise.
13917 * nptl/thrd_exit.c: Likewise.
13918 * nptl/thrd_join.c: Likewise.
13919 * nptl/thrd_priv.h: Likewise.
13920 * nptl/thrd_sleep.c: Likewise.
13921 * nptl/thrd_yield.c: Likewise.
13922 * include/threads.h: Likewise.
13923
e27f41ba
L
139242018-07-24 H.J. Lu <hongjiu.lu@intel.com>
13925
13926 * bits/indirect-return.h: New file.
13927 * misc/sys/cdefs.h (__glibc_has_attribute): New.
13928 * sysdeps/x86/bits/indirect-return.h: Likewise.
13929 * stdlib/Makefile (headers): Add bits/indirect-return.h.
13930 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
13931 (swapcontext): Add __INDIRECT_RETURN.
13932 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
13933 (prepare_test_buffer): Use it.
13934
21526a50
AS
139352018-07-24 Andreas Schwab <schwab@suse.de>
13936
13937 [BZ #23448]
13938 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
13939 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
13940
3650e1d9
L
139412018-07-24 H.J. Lu <hongjiu.lu@intel.com>
13942
13943 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
13944 Redefine if shadow stack is enabled.
13945 (SYSCALL_ERROR_LABEL): Likewise.
13946 (__vfork): Pop shadow stack and jump back to to caller directly
13947 when shadow stack is in use.
13948 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
13949 Redefine if shadow stack is enabled.
13950 (SYSCALL_ERROR_LABEL): Likewise.
13951 (__vfork): Pop shadow stack and jump back to to caller directly
13952 when shadow stack is in use.
13953
ca027e0f
L
139542018-07-24 H.J. Lu <hongjiu.lu@intel.com>
13955
13956 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
13957 enabled.
13958 (foo): Likewise.
13959 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
13960 (foo): Likewise.
13961
b99f1c95
JM
139622018-07-20 Joseph Myers <joseph@codesourcery.com>
13963
13964 * scripts/build-many-glibcs.py (Context.checkout): Default
13965 binutils version to 2.31 branch.
13966
c8fabb84
ZL
139672018-07-20 Zong Li <zong@andestech.com>
13968
13969 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
13970 URL of gcc's tarball.
13971
786658a0
FW
139722018-07-20 Florian Weimer <fweimer@redhat.com>
13973
13974 [BZ #23396]
13975 * posix/regcomp.c (build_equiv_class): When comparing weights, do
13976 not compare an extra byte after the end of the weights.
13977
46f2474e
ST
139782018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
13979
13980 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
13981 to 1.
8ba1520e
ST
13982 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
13983 hidden prototypes.
13984 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
13985 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
2d5c41de
ST
13986 * scripts/check-execstack.awk: Consider `xfail' variable containing a
13987 list of libraries whose stack executability is expected.
13988 * elf/Makefile ($(objpfx)check-execstack.out): Pass
13989 $(check-execstack-xfail) to check-execstack.awk through `xfail'
13990 variable.
13991 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
13992 libc.so libpthread.so.
46f2474e 13993
60088242
TS
139942018-07-20 Thomas Schwinge <tschwinge@gnu.org>
13995
13996 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
13997 SOCK_NONBLOCK.
75d5e4a0
TS
13998 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
13999 and SOCK_NONBLOCK.
de195be0
TS
14000 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
14001 implement __pipe2.
14002 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
60088242 14003
1cf4ae7f
LS
140042018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
14005
14006 * benchtests/scripts/compare_bench.py (__main__): use the argparse
14007 library to improve command line parsing.
14008 (__main__): make schema file as optional parameter (--schema),
14009 defaulting to benchtests/scripts/benchout.schema.json.
14010 (main): move out of the parsing stuff to __main_  and leave it
14011 only as caller of main comparison functions.
14012
e84bd851
L
140132018-07-19 H.J. Lu <hongjiu.lu@intel.com>
14014
14015 * NEWS: Add a note for Intel CET status.
14016 * manual/install.texi: Likewise.
14017 * INSTALL: Regenerated.
14018
df467d22
QP
140192018-07-18 Quentin PAGÈS <provaires@quentino.fr>
14020
14021 [BZ #23140]
14022 * localedata/locales/oc_FR (mon): Rename to...
14023 (alt_mon): This, then update October (typo fix).
14024 (mon): New content (genitive case, month names preceded by
14025 "de" or "d’").
14026
14027 [BZ #23422]
14028 * localedata/locales/oc_FR (abday): Update all items.
14029 (day): Update Wednesday and Saturday (typo fixes).
14030 (abmon): Update all items, except May.
14031 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
14032 (LC_IDENTIFICATION): Bump the revision number and date.
14033 Keep the "category" entries in alphabetic order.
14034 (LC_ADDRESS): Remove no longer needed comment.
14035 (LC_COLLATE): Use “copy "ca_ES"”.
14036 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
14037 "name_mrs".
14038
5c112f1b
JM
140392018-07-18 Joseph Myers <joseph@codesourcery.com>
14040
14041 * grp/tst_fgetgrent.c: Include <unistd.h>.
14042 (main): Use mkstemp instead of tmpnam.
14043 * io/test-utime.c (main): Likewise.
14044 * posix/annexc.c (macrofile): Change to modifiable array.
14045 (main): Remove macrofile here.
14046 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
14047 macrofile here.
14048 (check_header): Do not remove macrofile here.
14049 * posix/bug-getopt1.c: Include <stdlib.h>.
14050 (do_test): Use mkstemp instead of tmpnam.
14051 * posix/bug-getopt2.c: Include <stdlib.h>.
14052 (do_test): Use mkstemp instead of tmpnam.
14053 * posix/bug-getopt3.c: Include <stdlib.h>.
14054 (do_test): Use mkstemp instead of tmpnam.
14055 * posix/bug-getopt4.c: Include <stdlib.h>.
14056 (do_test): Use mkstemp instead of tmpnam.
14057 * posix/bug-getopt5.c: Include <stdlib.h>.
14058 (do_test): Use mkstemp instead of tmpnam.
14059 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
14060 (main): Use mkstemp instead of tmpnam.
14061 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
14062 (main): Use mkstemp instead of tmpnam.
14063 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
14064 (main): use mkstemp instead of tmpnam.
14065 * stdlib/isomac.c (macrofile): Change to modifiable array.
14066 (main): Remove macrofile here.
14067 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
14068 macrofile here.
14069 (check_header): Do not remove macrofile here.
14070
6d90776d
L
140712018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14072
14073 * manual/tunables.texi: Document glibc.tune.x86_ibt and
14074 glibc.tune.x86_shstk.
14075
e6c69509
L
140762018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14077
14078 * NEWS: Mention --enable-cet.
14079 * manual/install.texi: Document --enable-cet.
14080 * INSTALL: Regenerated.
14081
e2d40a88
L
140822018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14083
14084 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
14085 Add _CET_NOTRACK before indirect jump to jump table.
14086
77a8ae09
L
140872018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14088
14089 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
14090 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14091 to jump table.
14092
90d15dc5
L
140932018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14094
14095 * sysdeps/i386/i686/multiarch/strcat-sse2.S
14096 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14097 to jump table.
14098
f1574581
L
140992018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14100
14101 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
14102 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14103 to jump table.
14104
7fb61336
L
141052018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14106
14107 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
14108 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14109 to jump table.
14110
0a899af0
L
141112018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14112
14113 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
14114 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14115 to jump table.
14116 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
14117
177824e2
L
141182018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14119
14120 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
14121 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14122 to jump table.
14123
00e7b76a
L
141242018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14125
14126 * sysdeps/i386/i686/multiarch/memset-sse2.S
14127 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14128 to jump table.
14129
7e119cd5
L
141302018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14131
14132 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
14133 indirect jump to jump table.
14134
03aaf49b
L
141352018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14136
14137 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
14138 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14139 to jump table.
14140 (MEMCPY): Likewise.
14141
811e9e52
L
141422018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14143
14144 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
14145 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14146 to jump table.
14147 (MEMCPY): Likewise.
14148
8817df42
L
141492018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14150
14151 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
14152 _CET_NOTRACK before indirect jump to jump table.
14153
921595d1
L
141542018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14155
14156 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
14157 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14158 to jump table.
14159
4ef60d95
L
141602018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14161
14162 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
14163 indirect jump to jump table.
14164
61c4aad7
VT
141652018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
14166
14167 [BZ #22241]
14168 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
14169 (LOCALES): Likewise.
14170 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
14171 * localedata/locales/sah_RU: New file.
14172 * localedata/sah_RU.UTF-8.in: New file.
14173
be9ccd27
L
141742018-07-17 H.J. Lu <hongjiu.lu@intel.com>
14175
14176 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
14177 "sysdep.h".
14178 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
14179 _CET_ENDBR to indirect jump targets and adjust jump destination
14180 for _CET_ENDBR.
14181 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
14182 "sysdep.h".
14183 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
14184 _CET_ENDBR to indirect jump targets and adjust jump destination
14185 for _CET_ENDBR.
14186 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
14187 "sysdep.h".
14188 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
14189 _CET_ENDBR to indirect jump targets and adjust jump destination
14190 for _CET_ENDBR.
14191
5efc6777
L
141922018-07-17 H.J. Lu <hongjiu.lu@intel.com>
14193
14194 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
14195 _CET_ENDBR.
14196
562837c0
L
141972018-07-17 H.J. Lu <hongjiu.lu@intel.com>
14198
14199 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
14200 _CET_ENDBR.
14201 (_dl_tlsdesc_undefweak): Likewise.
14202 (_dl_tlsdesc_dynamic): Likewise.
14203 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
14204 (_dl_tlsdesc_resolve_rel): Likewise.
14205 (_dl_tlsdesc_resolve_rela): Likewise.
14206 (_dl_tlsdesc_resolve_hold): Likewise.
14207 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
14208 (_dl_tlsdesc_undefweak): Likewise.
14209 (_dl_tlsdesc_dynamic): Likewise.
14210 (_dl_tlsdesc_resolve_rela): Likewise.
14211 (_dl_tlsdesc_resolve_hold): Likewise.
14212
124bcde6
L
142132018-07-17 H.J. Lu <hongjiu.lu@intel.com>
14214
14215 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
14216 (_fini): Likewise.
14217 * sysdeps/x86_64/crti.S (_init): Likewise.
14218 (_fini): Likewise.
14219
9145f033
RL
142202018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
14221
14222 [BZ #23140]
14223 * localedata/locales/os_RU (mon): Rename to...
14224 (alt_mon): This.
14225 (mon): Import from CLDR (genitive case).
14226
ba2ea23d
L
142272018-07-17 H.J. Lu <hongjiu.lu@intel.com>
14228
14229 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
14230 cet-tunables.h> when CET is enabled.
14231
f753fa7d
L
142322018-07-16 H.J. Lu <hongjiu.lu@intel.com>
14233
6b5c8607 14234 [BZ #21598]
f753fa7d
L
14235 * configure.ac: Add --enable-cet.
14236 * configure: Regenerated.
14237 * elf/Makefille (all-built-dso): Add a comment.
14238 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
14239 Include <dl-prop.h>.
14240 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
14241 segment.
14242 * elf/dl-open.c: Include <dl-prop.h>.
14243 (dl_open_worker): Call _dl_open_check.
14244 * elf/rtld.c: Include <dl-prop.h>.
14245 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
14246 _rtld_main_check.
14247 * sysdeps/generic/dl-prop.h: New file.
14248 * sysdeps/i386/dl-cet.c: Likewise.
14249 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
14250 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
14251 * sysdeps/x86/cet-tunables.h: Likewise.
14252 * sysdeps/x86/check-cet.awk: Likewise.
14253 * sysdeps/x86/configure: Likewise.
14254 * sysdeps/x86/configure.ac: Likewise.
14255 * sysdeps/x86/dl-cet.c: Likewise.
14256 * sysdeps/x86/dl-procruntime.c: Likewise.
14257 * sysdeps/x86/dl-prop.h: Likewise.
14258 * sysdeps/x86/libc-start.h: Likewise.
14259 * sysdeps/x86/link_map.h: Likewise.
14260 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
14261 _CET_ENDBR.
14262 (_dl_runtime_profile): Likewise.
14263 (_dl_runtime_resolve_shstk): New.
14264 (_dl_runtime_profile_shstk): Likewise.
14265 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
14266 if CET is enabled.
14267 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
14268 (CFLAGS-.os): Likewise.
14269 (CFLAGS-.op): Likewise.
14270 (CFLAGS-.oS): Likewise.
14271 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
14272 is enabled.
14273 (tests-special): Add $(objpfx)check-cet.out.
14274 (cet-built-dso): New.
14275 (+$(cet-built-dso:=.note)): Likewise.
14276 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
14277 ($(objpfx)check-cet.out): New.
14278 (generated): Add check-cet.out.
14279 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
14280 <cet-tunables.h>.
14281 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
14282 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
14283 (init_cpu_features): Call get_cet_status to check CET status
14284 and update dl_x86_feature_1 with CET status. Call
14285 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
14286 (set_x86_shstk). Disable and lock CET in libc.a.
14287 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
14288 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
14289 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
14290 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
14291 (_CET_ENDBR): Define if not defined.
14292 (ENTRY): Add _CET_ENDBR.
14293 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
14294 x86_shstk.
14295 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
14296 _CET_ENDBR.
14297 (_dl_runtime_profile): Likewise.
14298
52b2a80f
RA
142992018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
14300
14301 [BZ #21895]
14302 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
14303 restore r2 on longjmp.
14304 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
14305 test list.
14306 Added rules to build test tst-setjmp-bug21895-static.
14307 Added module setjmp-bug21895 and rules to build a shared object from it.
14308 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
14309 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
14310
3ae725df
WD
143112018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
14312
14313 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
14314 * benchtests/bench-strstr.c: Likewise.
14315 * string/memmem.c (FASTSEARCH): Define.
14316 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
14317 Add support for FASTSEARCH.
14318 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
14319 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
14320 (FASTSEARCH): Define.
14321 * string/test-strcasestr.c: Rename __strnlen to strnlen.
14322 * string/test-strstr.c: Likewise.
14323
31e422ca
L
143242018-07-15 H.J. Lu <hongjiu.lu@intel.com>
14325
14326 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
14327 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
14328
faaee1f0
L
143292018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
14330 H.J. Lu <hongjiu.lu@intel.com>
14331
14332 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
14333 (__longjmp): Restore shadow stack pointer if shadow stack is
14334 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
14335 isn't defined for __longjmp_cancel.
14336 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
14337 (_setjmp): Save shadow stack pointer if shadow stack is enabled
14338 and SHADOW_STACK_POINTER_OFFSET is defined.
14339 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
14340 (setjmp): Save shadow stack pointer if shadow stack is enabled
14341 and SHADOW_STACK_POINTER_OFFSET is defined.
14342 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
14343 (__sigsetjmp): Save shadow stack pointer if shadow stack is
14344 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
14345 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
14346 <jmp_buf-ssp.h>.
14347 (____longjmp_chk): Restore shadow stack pointer if shadow stack
14348 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
14349 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
14350 Remove jmp_buf-ssp.sym.
14351 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
14352 <jmp_buf-ssp.h>.
14353 (____longjmp_chk): Restore shadow stack pointer if shadow stack
14354 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
14355 * sysdeps/x86/Makefile (gen-as-const-headers): Add
14356 jmp_buf-ssp.sym.
14357 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
14358 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
14359 (__longjmp): Restore shadow stack pointer if shadow stack is
14360 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
14361 isn't defined for __longjmp_cancel.
14362 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
14363 (__sigsetjmp): Save shadow stack pointer if shadow stack is
14364 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
14365
ebff9c5c
L
143662018-07-14 H.J. Lu <hongjiu.lu@intel.com>
14367
14368 [BZ #22563]
14369 * nptl/pthread_create.c: Include <tls-setup.h>.
14370 (__pthread_create_2_1): Call tls_setup_tcbhead.
14371 * sysdeps/generic/tls-setup.h: New file.
14372 * sysdeps/x86/nptl/tls-setup.h: Likewise.
14373 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
14374 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
14375 Likewise.
14376 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
14377 to feature_1.
14378 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
14379 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
14380 (X86_FEATURE_1_SHSTK): Likewise.
14381 (CET_ENABLED): Likewise.
14382 (IBT_ENABLED): Likewise.
14383 (SHSTK_ENABLED): Likewise.
14384
0a83bad2
RL
143852018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
14386
14387 [BZ #23208]
14388 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
14389 (LOCALES): Likewise.
14390 * localedata/dsb_DE.UTF-8.in: New file.
14391 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
14392
046bfed9
FW
143932018-07-12 Florian Weimer <fweimer@redhat.com>
14394
14395 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
14396 __mprotect, not mprotect.
14397
93304f5f
FW
143982018-07-11 Florian Weimer <fweimer@redhat.com>
14399
14400 * io/Makefile (headers): Add bits/statx.h.
14401
4beefeeb
MF
144022018-07-10 Mike FABIAN <mfabian@redhat.com>
14403
14404 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
14405 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
14406 and headers.
14407 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
14408 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
14409 for utf8_gen.py
14410
fd70af45
FW
144112018-07-10 Florian Weimer <fweimer@redhat.com>
14412
14413 * io/Makefile (routines): Add statx.
14414 (tests-internal): Add tst-statx.
14415 * io/Versions (GLIBC_2.28): Export statx.
14416 * io/bits/statx.h: New file.
14417 * io/sys/stat.h [__USE_GNU]: Include it.
14418 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
14419 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
14420 Define.
14421 * io/statx.c: New file.
14422 * io/statx_generic.: Likewise.
14423 * io/tst-statx.: Likewise.
14424 * include/bits/statx.h: Likewise.
14425 * sysdeps/unix/sysv/linux/kernel-features.h
14426 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
14427 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
14428 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
14429 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
14430 Undefine.
14431 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
14432 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
14433 * sysdeps/unix/sysv/linux/statx.c: New file.
14434 * manual/filesys.texi: Note that statx is undocumented.
14435 * sysdeps/**/libc*.abilist: Update.
14436
b444e8f7
AZ
144372018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14438
14439 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
14440 a kernel issue which lead to test failure in some cases.
14441
7b2f4ced
FW
144422018-07-10 Florian Weimer <fweimer@redhat.com>
14443
14444 [BZ #23036]
14445 * posix/regexec.c (check_node_accept_bytes): When comparing
14446 weights, do not compare an extra byte after the end of the
14447 weights.
14448
4fa34da6
FW
144492018-07-10 Florian Weimer <fweimer@redhat.com>
14450
14451 * libio/readline.c: Fix copyright year.
14452 * libio/tst-readline.c Likewise.
14453 * nss/tst-nss-files-hosts-getent.c: Likewise.
14454
916124ed
FW
144552018-07-06 Florian Weimer <fweimer@redhat.com>
14456
14457 [BZ #18991]
14458 * nss/nss_files/files-XXX.c (internal_getent): Use
14459 __libc_readline_unlocked. Seek back to the start of the line if
14460 parsing failes with ERANGE.
14461 (get_contents_ret, get_contents): Remove.
14462 * nss/tst-nss-files-hosts-getent.c: New file.
14463 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
14464 (tst-nss-files-hosts-getent): Link with -ldl.
14465
3f5e3f5d
FW
144662018-07-06 Florian Weimer <fweimer@redhat.com>
14467
14468 * include/stdio.h (__libc_readline_unlocked): Declare.
14469 (__ftello64, __fseeko64): Declare aliases.
14470 * libio/readline.c: New file.
14471 * libio/tst-readline.c: Likewise.
14472 (routines): Add readline.
14473 (tests-internal): Add tst-readlime.
14474 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
14475 __libc_readline_unlocked.
14476 * libio/fseeko.c (__fseeko): Rename from fseeko.
14477 (fseeko): Add alias.
14478 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
14479 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
14480 (fseeko64): Add alias.
14481 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
14482 * libio/ftello64.c (__ftello64): Rename from ftello64.
14483 (ftello64): Add alias.
14484
397c54c1
SN
144852018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
14486
14487 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
14488 HWCAP_ATOMICS.
14489
d0cd7980
SN
144902018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
14491
14492 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
14493 Use dl_hwcap without masking.
14494 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
14495 Remove HWCAP_CPUID.
14496
ddb3c626
FW
144972018-07-06 Florian Weimer <fweimer@redhat.com>
14498
14499 * conform/conformtest.pl (checknamespace): Escape literal braces
14500 in regular expressions.
14501
bce5911b
AP
145022018-07-06 Amit Pawar <amit.pawar@amd.com>
14503
14504 * sysdeps/x86/cpu-features.c (get_common_indeces):
14505 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
14506 * sysdeps/x86/cpu-features.c (init_cpu_features):
14507 AVX_Fast_Unaligned_Load is disabled for Excavator core.
14508
3a885c1f
FW
145092018-07-05 Florian Weimer <fweimer@redhat.com>
14510
14511 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
14512 protector.
14513 (CFLAGS-elf-init.oS): Likewise.
14514
38cade0c
FW
145152018-07-05 Florian Weimer <fweimer@redhat.com>
14516 Carlos O'Donell <carlos@redhat.com>
14517
14518 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
14519 $(no-stack-protector). stack_chk_fail_local.c can be compiled
14520 with stack protector enabled because there is no risk of infinite
14521 recursion.
14522
9449a295
MR
145232018-07-05 Maciej W. Rozycki <macro@mips.com>
14524
14525 [BZ #19818]
14526 [BZ #23307]
14527 * libc-abis (ABSOLUTE): New ABI.
14528 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
14529 * NEWS: Mention the new ABI.
14530
d6da5cb6
FW
145312018-07-05 Florian Weimer <fweimer@redhat.com>
14532
14533 [BZ # 17662]
14534 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
14535 (RENAME_WHITEOUT): Define.
14536 [__USE_GNU] (renameat2): Declare.
14537 * stdio-common/Makefile (routines): Add renameat2.
14538 (tests): Add tst-renameat2.
14539 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
14540 * stdio-common/renameat2.c: New file.
14541 * stdio-common/tst-renameat2.c: Likewise.
14542 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
14543 * manual/filesys.texi (Temporary Files): Note that renameat2 is
14544 undocumented.
14545 * sysdeps/unix/sysv/linux/kernel-features.h
14546 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
14547 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
14548 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
14549 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
14550 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
14551 * sysdeps/unix/sysv/linux/sh/kernel-features.h
14552 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
14553 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
14554 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
14555 * include/stdio.h (__renameat): Add alias for renameat.
14556 * stdio-common/renameat.c (__renameat): Rename from renameat.
14557 Add hidden definition and alias.
14558 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
14559 * sysdeps/mach/hurd/renameat.c: Likewise.
14560 * sysdeps/**/libc*.abilist: Add renameat2.
14561
1002d708
AZ
145622018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14563
14564 * posix/bug-regex33.c: Fix build after regex sync.
14565
34fdb893
CD
145662018-07-04 Carlos O'Donell <carlos@redhat.com>
14567
14568 [BZ #23164]
14569 * localedata/tst-langinfo-setlocale.c: New file.
14570 * localedata/tst-langinfo-setlocale-static.c: New file.
14571 * localedata/tst-langinfo-newlocale.c: New file.
14572 * localedata/tst-langinfo-newlocale-static.c: New file.
14573 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
14574 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
14575 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
14576 (tests-static): Remove tst-langinfo-static. Add
14577 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
14578 (tests-special): Remove $(objpfx)tst-langinfo.out,
14579 $(objpfx)tst-langinfo-static.out. Add
14580 $(objpfx)tst-langinfo-setlocale.out,
14581 $(objpfx)tst-langinfo-newlocale.out,
14582 $(objpfx)tst-langinfo-setlocale-static.out,
14583 $(objpfx)tst-langinfo-newlocale-static.out.
14584 ($(objpfx)tst-langinfo.out): Remove.
14585 ($(objpfx)tst-langinfo-static.out): Remove.
14586 ($(objpfx)tst-langinfo-newlocale.out): New target.
14587 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
14588 (test-xfail-tst-langinfo-newlocale-static): Add.
14589 ($(objpfx)tst-langinfo-setlocale.out): New target.
14590 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
14591 * localedata/tst-langinfo.c: Call test_locale.
14592 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
14593 data.
14594
f2873d2d
FW
145952018-07-04 Florian Weimer <fweimer@redhat.com>
14596
14597 testrun.sh: Implement --tool=strace, --tool=valgrind
14598 * Makefile (testrun-script): Define variable.
14599 (testrun.sh): Use variable.
14600 * manual/install.texi (Tools for Compilation): make 4.0 or later
14601 is required.
14602 * configure.ac: Check for make 4.0 or later.
14603 * INSTALL: Regenerate.
14604 * configure: Likewise.
14605
eb04c213
AZ
146062018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14607
14608 [BZ #23233]
14609 [BZ #21163]
14610 [BZ #18986]
14611 [BZ #13762]
14612 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
14613 * posix/PCRE.tests: Remove invalid test.
14614 * posix/bug-regex28.c: Fix expected values for used syntax.
14615 * posix/bug-regex37.c: New file.
14616 * posix/bug-regex38.c: Likewise.
14617 * posix/regcomp.c: Sync with gnulib.
14618 * posix/regex.c: Likewise.
14619 * posix/regex.h: Likewise.
14620 * posix/regex_internal.c: Likewise.
14621 * posix/regex_internal.h: Likewise.
14622 * posix/regexec.c: Likewise.
14623
b11643c2
MF
146242018-06-26 Mike FABIAN <mfabian@redhat.com>
14625
14626 [BZ #23308]
14627 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
14628 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
14629 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
14630 * localedata/unicode-gen/PropList.txt: likewise.
14631 * localedata/unicode-gen/UnicodeData.txt: likewise.
14632 * localedata/charmaps/UTF-8: Regenerate.
14633 * localedata/locales/i18n_ctype: likewise.
14634 * localedata/locales/tr_TR: likewise.
14635 * localedata/locales/translit_circle: likewise.
14636 * localedata/locales/translit_cjk_compat: likewise.
14637 * localedata/locales/translit_combining: likewise.
14638 * localedata/locales/translit_compat: likewise.
14639 * localedata/locales/translit_font: likewise.
14640 * localedata/locales/translit_fraction: likewise.
14641
5a357506
FW
146422018-07-03 Florian Weimer <fweimer@redhat.com>
14643
14644 [BZ #23363]
14645 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
14646 * stdio-common/tst-printf.sh: Adjust expected output.
14647 * LICENSES: Update.
14648
7279af00
AZ
146492018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14650
14651 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
14652 symbol.
14653
b7b88cea
GG
146542018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
14655
14656 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
14657 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
14658 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
14659 * stdio-common/tst-printfsz-islongdouble.c: New file.
14660 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
14661 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
14662 [subdir == stdio-common] (routines): Add ieee128-printf_size.
14663 [subdir == stdio-common] (tests-internal): Add
14664 test-printf-size-ieee128, and test-printf-size-ibm128.
14665 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
14666 (CFLAGS-test-printf-size-ibm128.c): New variables.
14667 [subdir == stdio-common] (tests-special): Add
14668 $(objpfx)test-printf-size-ieee128.out and
14669 $(objpfx)test-printf-size-ibm128.out.
14670 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
14671 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
14672 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
14673 __printf_sizeieee128.
14674 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
14675 New file.
14676 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
14677 Likewise.
14678 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
14679 Likewise.
14680
2b445206
SN
146812018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
14682
14683 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
14684 (exp2f_inline): Likewise.
14685 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
14686 (__math_uflowf): Likewise.
14687 (__math_may_uflowf): Likewise.
14688 (__math_divzerof): Likewise.
14689 (__math_invalidf): Likewise.
14690 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
14691 (__math_oflowf): Likewise.
14692 (__math_uflowf): Likewise.
14693 (__math_may_uflowf): Likewise.
14694 (__math_divzerof): Likewise.
14695 (__math_invalidf): Likewise.
14696
2827ab99
CD
146972018-06-29 DJ Delorie <dj@redhat.com>
14698 Carlos O'Donell <carlos@redhat.com>
14699
14700 [BZ #23329]
14701 * include/libc-symbols.h: Comment the freeres framework.
14702 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
14703 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
14704 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
14705 * dlfcn/dlerror.c: Include libc-symbols.h
14706 (__dlerror_main_freeres): New function.
14707 * dlfcn/dlfreeres.c: New file.
14708 * dlfcn/sdlfreeres.c: New file.
14709 * include/dlfcn.h: Declare __dlerror_main_freeres.
14710 * malloc/set-freeres.c: Declare __libdl_freeres, and
14711 __libpthread_freeres.
14712 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
14713 the releavant libraries are loaded.
14714 * malloc/thread-freeres.c: Add comments.
14715 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
14716 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
14717 * nptl/allocatestack.c (__nptl_free_stacks): New function.
14718 (__free_stacks): Rename to...
14719 (free_stacks): ...this. Mark static.
14720 (queue_stack): Call free_stacks.
14721 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
14722 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
14723 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
14724 ptr_freeres element from struct.
14725 (pthread_functions): Remove .ptr_freeres from struct initializer.
14726 [SHARED] (nptl_freeres): Remove.
14727 * nptl/nptlfreeres.c: New file.
14728 * nptl/pthreadP.h
14729 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
14730 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
14731 attribute_hidden.
14732 (__free_stacks): Rename to...
14733 (__nptl_stacks_freeres): ...this.
14734 (__shm_directory_freeres): Declare.
14735 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
14736 (__nptl_unwind_freeres): ...this.
14737 * resolv/res-close.c: Add comment.
14738 * resolv/resolv_conf.c: Include libc-symbols.h.
14739 * string/strerror_l.c: Include libc-symbols.h.
14740 * sunrpc/rpc_thread.c: Include libc-symbols.h.
14741 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
14742 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
14743 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
14744
37d3d244
RS
147452018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
14746
14747 * stdlib/tst-strfmon_l.c: Add tests for long double.
14748
a1e0c5fa
MW
147492018-06-29 Michael Wolf <milupo@sorbzilla.de>
14750
14751 [BZ #23208]
14752 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
14753 * localedata/locales/dsb_DE: New file.
14754
2e0c5de6
RL
147552018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
14756
14757 [BZ #23140]
14758 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
14759 genitive case).
14760 (alt_mon): New entry, import from CLDR (nominative case).
14761
cdb52c71
SL
147622018-06-29 Sylvain Lesage <severo@rednegra.net>
14763
14764 [BZ #22996]
14765 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
14766
ce76a5cb
SP
147672018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
14768
0aec4c1d
SP
14769 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
14770 Use vector registers.
14771
ce76a5cb
SP
14772 * sysdeps/aarch64/multiarch/memmove_falkor.S
14773 (__memcpy_falkor): Use vector registers.
14774
7e8989d0
MS
147752018-06-29 Martin Sebor <msebor@redhat.com>
14776
14777 * manual/stdio.texi (Customizing Printf): Mention interaction
14778 with GCC built-ins.
14779
bac15a72
MR
147802018-06-29 Maciej W. Rozycki <macro@mips.com>
14781
14782 [BZ #23307]
14783 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
14784 `st_value' is 0 if `st_shndx' is SHN_ABS.
14785 * elf/tst-absolute-zero.c: New file.
14786 * elf/tst-absolute-zero-lib.c: New file.
14787 * elf/tst-absolute-zero-lib.lds: New file.
14788 * elf/Makefile (tests): Add `tst-absolute-zero'.
14789 (modules-names): Add `tst-absolute-zero-lib'.
14790 (LDLIBS-tst-absolute-zero-lib.so): New variable.
14791 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
14792 ($(objpfx)tst-absolute-zero: New dependency.
14793
e69d994a
ZW
147942018-06-29 Zack Weinberg <zackw@panix.com>
14795
14796 * configure.ac: New command-line option --disable-crypt.
14797 Force --disable-nss-crypt when --disable-crypt is given, with a
14798 warning if it was explicitly enabled.
14799 * configure: Regenerate.
14800 * config.make.in: New boolean substitution variable $(build-crypt).
14801 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
14802 when $(build-crypt).
14803 * manual/install.texi: Document --disable-crypt.
14804 * INSTALL: Regenerate.
14805
14806 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
14807 which is never set.
14808 * conform/Makefile: Only include libcrypt.a in
14809 linknamespace-libs-xsi and linknamespace-libs-XPG4
14810 when $(build-crypt).
14811 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
14812 USE_CRYPT to 1 when $(build-crypt).
14813 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
14814 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
14815 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
14816
841785ba
ZW
148172018-06-29 Zack Weinberg <zackw@panix.com>
14818
14819 * crypt/crypt.h, posix/unistd.h: Update comments and
14820 prototypes for crypt and crypt_r.
14821
14822 * manual/crypt.texi (Cryptographic Functions): New initial
14823 exposition.
14824 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
14825 (Unpredictable Bytes): Improve initial exposition. Clarify error
14826 behavior of getentropy and getrandom.
14827 * manual/examples/genpass.c: Generate a salt using getentropy
14828 instead of the current time. Use hash $5$ (SHA-2-256).
14829 * manual/examples/testpass.c: Demonstrate validation against
14830 hashes generated with three different one-way functions.
14831
14832 * manual/intro.texi: crypt.texi does not need an overview
14833 anymore.
14834
14835 * manual/nss.texi, manual/memory.texi, manual/socket.texi
14836 * manual/terminal.texi: Consistently refer to "passphrases"
14837 * instead of "passwords", and to the "user database" instead
14838 * of the "password database".
14839 * manual/users.texi: Similarly. Add notes about how actual
14840 passphrase hashes are now stored in the shadow database.
14841 Remove 20-year-old junk todo note.
14842
6ab902e4
ZW
148432018-06-29 Zack Weinberg <zackw@panix.com>
14844
14845 * manual/crypt.texi: Use a normal top-level @node declaration.
14846 Move most of the introductory text to the 'crypt' section.
14847 Move the example programs below the @deftypefun for 'crypt_r'.
14848 Move the 'getpass' section...
14849 * manual/terminal.texi: ...here.
14850
b10a0acc
ZW
148512018-06-29 Zack Weinberg <zackw@panix.com>
14852 Florian Weimer <fweimer@redhat.com>
14853
14854 * posix/unistd.h: Do not declare encrypt.
14855 (_XOPEN_CRYPT): Remove macro definition.
14856 (crypt): Declare only for _USE_MISC.
14857 * stdlib/stdlib.h: Do not declare setkey.
14858 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
14859 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
14860
14861 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
14862 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
14863 into compat symbols. Don't define initial_perm if it's not
14864 going to be used.
14865 * crypt/cert.c: Link explicitly with the expected versions for
14866 setkey and encrypt. If they are not available at all, mark
14867 the test as unsupported.
14868
14869 * sunrpc/des_crypt.c: Unconditionally block linkage with
14870 cbc_crypt and ecb_crypt for new binaries.
14871 * sunrpc/des_soft.c: Unconditionally block linkage with
14872 des_setparity for new binaries.
14873
14874 * manual/crypt.texi: Remove the entire "DES Encryption"
14875 section. Also remove the paragraph talking about FIPS 140-2
14876 from the introduction.
14877 * manual/string.texi (strfry, memfrob): Revise. Recommend use
14878 of libgcrypt for "real" encryption, not DES.
14879 * manual/conf.texi (Constants for Sysconf): Mention that
14880 _XOPEN_CRYPT is no longer impelemented.
14881
14882 * conform/data/unistd.h-data: Remove crypt function declaration.
14883
524d796d
FW
148842018-06-29 Florian Weimer <fweimer@redhat.com>
14885
14886 [BZ #23351]
14887 * malloc/hooks.c: Update comments on restoring of dumped heaps.
14888 (disallow_malloc_check): Remove variable.
14889 (__malloc_check_init): Adjust.
14890 (malloc_set_state): Update comment.
14891 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
14892 declarations.
14893
339124ab
RL
148942018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
14895
14896 [BZ #23140]
14897 * localedata/locales/ast_ES (mon): Rename to...
14898 (alt_mon): This.
14899 (mon): Import from CLDR (genitive case).
14900
c1f86a33
DA
149012018-06-29 Daniel Alvarez <dalvarez@redhat.com>
14902 Jakub Sitnicki <jkbs@redhat.com>
14903
14904 [BZ #21812]
14905 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
14906 on NLM_F_DUMP_INTR.
14907
0b11b649
SN
149082018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
14909
14910 * manual/llio.texi: Remove spurious space.
14911
c1c2848b
FW
149122018-06-28 Florian Weimer <fweimer@redhat.com>
14913
14914 [BZ #23349]
14915 * time/bits/types/struct_timespec.h: Change header inclusion guard to
14916 _STRUCT_TIMESPEC.
14917
86a0f561
RS
149182018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
14919
14920 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
6b5c8607 14921 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
86a0f561
RS
14922 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
14923 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
14924 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
14925 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
14926 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
14927
780684eb
MR
149282018-06-27 Maciej W. Rozycki <macro@mips.com>
14929
14930 [BZ #23266]
14931 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
14932 Copy and null-terminate entries that are not terminated, in
14933 addition to empty ones.
14934
c49e1822
FW
149352018-06-27 Florian Weimer <fweimer@redhat.com>
14936
14937 [BZ #18023]
b39d961c
TS
14938 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
14939 (extend_alloca_account): Remove.
c49e1822
FW
14940 * manual/stdio.texi (Variable Arguments Output): Update comment.
14941
a833e627
JM
149422018-06-27 Joseph Myers <joseph@codesourcery.com>
14943
14944 * nptl/sockperf.c: Remove file.
14945
92d6aa85
FW
149462018-06-27 Florian Weimer <fweimer@redhat.com>
14947
14948 [BZ #18023]
14949 * elf/dl-deps.c (_dl_map_object_deps): Use struct
14950 scratch_buffer instead of extend_alloca.
14951
890c2ced
FW
149522018-06-27 Florian Weimer <fweimer@redhat.com>
14953
14954 [BZ #18023]
14955 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
14956 scratch_buffer instead of extend_alloca. Update comments.
14957
4272059d
FW
149582018-06-27 Florian Weimer <fweimer@redhat.com>
14959
14960 [BZ #18023]
14961 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
14962 instead of extend_alloca.
14963
27f10a09
JM
149642018-06-26 Joseph Myers <joseph@codesourcery.com>
14965
14966 [BZ #13888]
14967 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
14968 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
14969 /tmp.
14970 * scripts/test-installation.pl: Put temporary files in build
14971 directory, not /tmp.
14972 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
14973 (CFLAGS-bug4.c): Likewise.
14974 (CFLAGS-bug5.c): Likewise.
14975 (CFLAGS-test-fseek.c): Likewise.
14976 (CFLAGS-test-popen.c): Likewise.
14977 (CFLAGS-test_rdwr.c): Likewise.
14978 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
14979 /tmp.
14980 * stdio-common/bug4.c (main): Likewise.
14981 * stdio-common/bug5.c (main): Likewise.
14982 * stdio-common/test-fseek.c (TESTFILE): Likewise.
14983 * stdio-common/test-popen.c (do_test): Likewise.
14984 * stdio-common/test_rdwr.c (main): Likewise.
14985
05598a09
PF
149862018-06-26 Patsy Franklin <pfrankli@redhat.com>
14987
14988 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
14989 (sem_open): Set sem.newsem.pad to zero for valgrind.
14990
06ab719d
AZ
149912018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14992
14993 [BZ #20251]
14994 * NEWS: Mention fcntl64 addition.
14995 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
14996 * login/utmp_file.c: Likewise.
14997 * sysdeps/posix/fdopendir.c: Likewise.
14998 * sysdeps/posix/opendir.c: Likewise.
14999 * sysdeps/unix/pt-fcntl.c: Likewise.
15000 * include/fcntl.h (__libc_fcntl64, __fcntl64,
15001 __fcntl64_nocancel_adjusted): New prototype.
15002 (__fcntl_nocancel_adjusted): Remove prototype.
15003 * io/Makefile (routines): Add fcntl64.
15004 (CFLAGS-fcntl64.c): New rule.
15005 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
15006 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
15007 * io/fcntl.h (fcntl64): Add prototype and redirect if
15008 __USE_FILE_OFFSET64 is defined.
15009 * io/fcntl64.c: New file.
15010 * manual/llio.text: Add a note for which commands fcntl acts a
15011 cancellation point.
15012 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
15013 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
15014 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
15015 New symbols.
15016 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
15017 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
15018 non-LFS case.
15019 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
15020 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
15021 to __fcntl64_nocancel.
15022 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
15023 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
15024 to __fcntl64_nocancel.
15025 * sysdeps/generic/not-cancel.h: Likewise.
15026 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
15027 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
15028 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
15029 (fcntl64): New symbol.
15030 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
15031 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
15032 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
15033 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
15034 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
15035 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
15036 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
15037 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
15038 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
15039 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
15040 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
15041 fcntl64): Likewise.
15042 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
15043 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
15044 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
15045 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
15046 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
15047 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
15048 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
15049 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
15050 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
15051 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
15052 Likewise.
15053 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
15054 Likewise.
15055 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
15056 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
15057 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
15058
124e0258
FW
150592018-06-26 Florian Weimer <fweimer@redhat.com>
15060
15061 Run thread shutdown functions in an explicit order.
15062 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
15063 definition.
15064 (__libc_thread_freeres): Call thread shutdown functions
15065 explicitly.
15066 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
15067 * include/string.h (__strerror_thread_freeres): Declare.
15068 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
15069 arena_thread_freeres. No longer static. Remove thread shutdown
15070 hook registration.
15071 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
15072 Declare.
15073 * resolv/res-close.c (__res_thread_freeres): Renamed from
15074 res_thread_freeres. No longer static. Remove thread shutdown
15075 hook registration.
15076 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
15077 * resolv/resolv_conf.c (freeres): Remove incorrect section
15078 attribute and use libc_freeres_fn.
15079 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
15080 strerror_thread_freeres. No longer static. Remove thread
15081 shutdown hook registration.
15082 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
15083 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
15084 shutdown hook registration.
15085 * Makerules (shlib.lds): Do not provide section boundary symbols
15086 for __libc_thread_subfreeres.
15087 * manual/memory.texi (Basic Allocation): Update comment.
15088
935d920e
FW
150892018-06-26 Florian Weimer <fweimer@redhat.com>
15090
15091 Remove always-defined _RPC_THREAD_SAFE_ macro.
15092 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
15093 Do not define _RPC_THREAD_SAFE_.
15094 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
15095 conditional.
15096 * sunrpc/clnt_perr.c: Likewise.
15097 * sunrpc/clnt_raw.c: Likewise.
15098 * sunrpc/clnt_simp.c: Likewise.
15099 * sunrpc/key_call.c: Likewise.
15100 * sunrpc/rpc_common.c: Likewise.
15101 * sunrpc/rpc_main.c: Likewise.
15102 * sunrpc/rpc_thread.c: Likewise.
15103 * sunrpc/svc.c: Likewise.
15104 * sunrpc/svc_raw.c: Likewise.
15105 * sunrpc/svc_simple.c: Likewise.
15106 * sumrpc/svcauth_des.c: Likewise.
15107
29055464
FW
151082018-06-26 Florian Weimer <fweimer@redhat.com>
15109
15110 * libio/Makefile (tests-internal): Add tst-vtables,
15111 tst-vtables-interposed.
15112 * libio/tst-vtables.c: New file.
15113 * libio/tst-vtables-common.c: Likewise.
15114 * libio/tst-vtables-interposed.c: Likewise.
15115
5c0202af
FW
151162018-06-26 Florian Weimer <fweimer@redhat.com>
15117
15118 * support/support_test_main.c (support_test_main): Only call
15119 setvbuf if not disables.
15120 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
15121 * support/test-driver.h (struct test_config): Add no_setvbuf member.
15122
c402355d
FW
151232018-06-26 Florian Weimer <fweimer@redhat.com>
15124
15125 [BZ #23313]
15126 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
15127
43b1048a
FW
151282018-06-25 Florian Weimer <fweimer@redhat.com>
15129
15130 [BZ #18023]
15131 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15132 Use struct scratch_buffer instead of extend_alloca.
15133
1599ed4e
FW
151342018-06-25 Florian Weimer <fweimer@redhat.com>
15135
15136 [BZ #18023]
15137 * nss/getent.c (initgroups_keys): Use dynarray instead of
15138 extend_alloca.
15139
a26fe163
FW
151402018-06-25 Florian Weimer <fweimer@redhat.com>
15141
15142 [BZ #18023]
15143 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
15144 Use struct scratch_buffer instead of extend_alloca.
15145
90d9d9ce
FW
151462018-06-25 Florian Weimer <fweimer@redhat.com>
15147
15148 [BZ #18023]
15149 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
15150 back to malloc directly, without stack allocations.
15151
6b7b2aba
FW
151522018-06-25 Florian Weimer <fweimer@redhat.com>
15153
15154 [BZ #18023]
15155 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
15156 of extend_alloca.
15157
2f9f0d18
FW
151582018-06-25 Florian Weimer <fweimer@redhat.com>
15159
15160 [BZ #18023]
15161 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
15162 of extend_alloca.
15163 * nscd/hstcache.c (addhstbyX): Likewise.
15164 * nscd/pwdcache.c (addpwbyX): Likewise.
15165 * nscd/servicescache.c (addservbyX): Likewise.
15166
318bad78
FW
151672018-06-25 Florian Weimer <fweimer@redhat.com>
15168
15169 [BZ #18023]
15170 * nscd/connections.c (read_cmdline): New function.
15171 (restart): Use it. Update comment.
15172
189699ab
RL
151732018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
15174
15175 [BZ #23140]
15176 * localedata/locales/csb_PL (mon): Rename to...
15177 (alt_mon): This.
15178 (abmon): Rename to...
15179 (ab_alt_mon): This.
15180 (mon): Add with proper genitive forms, copy from Wikipedia.
15181 (abmon): Likewise.
15182
0ea3f13c
RL
151832018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
15184
15185 [BZ #19485]
15186 * localedata/locales/csb_PL (mon): Fix typos:
15187 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
15188 (yesstr): Add, value is "jo".
15189 (nostr): Add, value is "nié".
15190
d93f4ff1
TMQMF
151912018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15192
15193 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
15194 all log1p and significand functions on m680x0.
15195 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
15196 of s_significand.c..
15197 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
15198 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
15199 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
15200 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
15201 s_log1p.c and include it..
15202
f6299d2a
VC
152032018-06-21 Vincent Chen <vincentc@andestech.com>
15204
15205 * elf/elf.h (R_NDS32_NONE): New define.
15206 (R_NDS32_32_RELA): Likewise.
15207 (R_NDS32_COPY): Likewise.
15208 (R_NDS32_GLOB_DAT): Likewise.
15209 (R_NDS32_JUMP_SLOT): Likewise.
15210 (R_NDS32_RELATIVE): Likewise.
15211 (R_NDS32_TLS_TPOFF): Likewise.
15212 (R_NDS32_TLS_DESC): Likewise.
15213
61ab61c2
MW
152142018-06-21 Mark Wielaard <mark@klomp.org>
15215
15216 * elf/elf.h (R_BPF_MAP_FD): Removed.
15217 (R_BPF_64_64, R_BPF_64_32): New.
15218
f496b28e
FW
152192018-06-21 Florian Weimer <fweimer@redhat.com>
15220
15221 [BZ #23253]
15222 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
15223 Renamed from libc_feholdsetround_ctx.
15224 (default_libc_feresetround_ctx): Renamed from
15225 libc_feresetround_ctx.
15226 (default_libc_feholdsetround_noex_ctx): Renamed from
15227 libc_feholdsetround_noex_ctx.
15228 (default_libc_feresetround_noex_ctx): Renamed from
15229 libc_feresetround_noex_ctx.
15230 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
15231 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
15232 forwardning to the old implementations under the new names.
15233 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
15234 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
15235 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
15236 (libc_feresetround_ctx): Forward to default implements for i386
15237 and MATH_SET_BOTH_ROUNDING_MODES.
15238 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
15239 Add -DMATH_SET_BOTH_ROUNDING_MODES.
15240
1760daad
JM
152412018-06-20 Joseph Myers <joseph@codesourcery.com>
15242
99c7adf9
JM
15243 * string/tst-cmp.c: Include <libc-diag.h>.
15244 (strncmp_max): Disable -Wstringop-overflow= around call to
15245 strncmp.
15246 (strncasecmp_max): Disable -Wstringop-overflow= around call to
15247 strncasecmp.
15248
1760daad
JM
15249 * string/bug-strpbrk1.c: Include <libc-diag.h>.
15250 (main): Disable -Wunused-value around call to strpbrk.
15251 * string/bug-strspn1.c: Include <libc-diag.h>.
15252 (main): Disable -Wunused-value around call to strspn.
15253
209ae17c
TMQMF
152542018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15255 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
15256
15257 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
15258 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
15259
badba23c
TMQMF
152602018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15261
5e79e029
TMQMF
15262 * math/Makefile (libm-calls): Move s_significandF to...
15263 (gen-libm-calls): ... here.
15264 * math/s_significand_template.c: New file.
15265 * math/s_significand.c: Removed.
15266 * math/s_significandf.c: Removed.
15267 * math/s_significandl.c: Removed.
15268 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
15269 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
15270
badba23c
TMQMF
15271 * math/e_exp2_template.c (declare_mgen_finite_alias,
15272 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
15273 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
15274 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
15275
2d1c89a5
FW
152762018-06-20 Florian Weimer <fweimer@redhat.com>
15277
15278 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
15279
646c2833
JM
152802018-06-19 Joseph Myers <joseph@codesourcery.com>
15281
15282 [BZ #23280]
15283 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
15284 floating-point number to strtod functions rather than possibly
15285 negating result of those functions.
15286 * stdio-common/tst-scanf-round.c: New file.
15287 * stdio-common/Makefile (tests): Add tst-scanf-round.
15288 ($(objpfx)tst-scanf-round): Depend on $(libm).
15289
c77e4dc0
ST
152902018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
15291
15292 * sysdeps/mach/hurd/localplt.data: Move to...
15293 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
15294 R_386_GLOB_DAT like on Linux i386.
15295
91b2f3e5
JM
152962018-06-18 Joseph Myers <joseph@codesourcery.com>
15297
f2857da7
JM
15298 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
15299 (SHM_STAT_ANY): New macro.
15300 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
15301 (SHM_STAT_ANY): Likewise.
15302 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
15303 (SHM_STAT_ANY): Likewise.
15304 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
15305 (SHM_STAT_ANY): Likewise.
15306 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
15307 (SHM_STAT_ANY): Likewise.
15308 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
15309 (SHM_STAT_ANY): Likewise.
15310 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
15311 (SHM_STAT_ANY): Likewise.
15312 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
15313 (SHM_STAT_ANY): Likewise.
15314 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
15315 (SHM_STAT_ANY): Likewise.
15316 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
15317 (SHM_STAT_ANY): Likewise.
15318 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
15319 (SHM_STAT_ANY): Likewise.
15320 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
15321 (SHM_STAT_ANY): Likewise.
15322
176c7fee
JM
15323 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
15324 (SEM_STAT_ANY): New macro.
15325 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
15326 (SEM_STAT_ANY): Likewise.
15327 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
15328 (SEM_STAT_ANY): Likewise.
15329 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
15330 (SEM_STAT_ANY): Likewise.
15331 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
15332 (SEM_STAT_ANY): Likewise.
15333 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
15334 (SEM_STAT_ANY): Likewise.
15335 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
15336 (SEM_STAT_ANY): Likewise.
15337 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
15338 (SEM_STAT_ANY): Likewise.
15339 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
15340 (SEM_STAT_ANY): Likewise.
15341 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
15342 (SEM_STAT_ANY): Likewise.
15343
86bf0019
JM
15344 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
15345 (MSG_STAT_ANY): New macro.
15346 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
15347 (MSG_STAT_ANY): Likewise.
15348 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
15349 (MSG_STAT_ANY): Likewise.
15350 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
15351 (MSG_STAT_ANY): Likewise.
15352 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
15353 (MSG_STAT_ANY): Likewise.
15354 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
15355 (MSG_STAT_ANY): Likewise.
15356 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
15357 (MSG_STAT_ANY): Likewise.
15358 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
15359 (MSG_STAT_ANY): Likewise.
15360 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
15361 (MSG_STAT_ANY): Likewise.
15362 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
15363 (MSG_STAT_ANY): Likewise.
15364
91b2f3e5
JM
15365 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
15366 (MAP_TYPE): Change value to 0x2b.
15367
3fe8fc79
FW
153682018-06-18 Florian Weimer <fweimer@redhat.com>
15369
15370 [BZ #15722]
15371 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
15372 socket with SOCK_CLOEXEC.
15373
809dc95d
JM
153742018-06-18 Joseph Myers <joseph@codesourcery.com>
15375
15376 [BZ #23303]
15377 * sysdeps/powerpc/powerpc64/le/Makefile
15378 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
15379 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
15380 (gnulib-tests): Also add $(f128-loader-link) for
15381 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
15382
298a8b59
ST
153832018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
15384
15385 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
15386 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
15387 of sendfile.
15388 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
15389 (sendfile64): New strong alias.
faf7bbc2
ST
15390 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
15391 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
15392 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
f96a85e0
ST
15393 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
15394 attribute.
15395 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
15396 ___pthread_get_cleanup_stack.
932d05f0 15397 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
c1b7586c
ST
15398 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
15399 * mach/shortcut.awk: Make syscall stubs include
15400 <mach-shortcuts-hidden.h> and add hidden definition.
15401 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
7a646a93
ST
15402 (__mach_msg): Add hidden prototype.
15403 * mach/msg.c: Include <mach.h>.
15404 (__mach_msg): Add hidden definition.
b0344cf5
ST
15405 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
15406 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
15407 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
15408 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
8c9d5342
ST
15409 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
15410 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
4d0ac037
ST
15411 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
15412 prototype and definition.
15413 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
15414 hidden target for _hurd_self_sigstate.
298a8b59 15415
b12c1e79
JM
154162018-06-15 Joseph Myers <joseph@codesourcery.com>
15417
15418 [BZ #23007]
15419 * stdlib/tst-strtod-nan-sign-main.c: New file.
15420 * stdlib/tst-strtod-nan-sign.c: Likewise.
15421 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
15422 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
15423 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
15424 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
15425 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
15426
b0debe14
HB
154272018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
15428
15429 [BZ #23007]
15430 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
15431 appropriate sign.
15432
14beef75
FW
154332018-06-14 Florian Weimer <fweimer@redhat.com>
15434
15435 [BZ #23290]
15436 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
15437 that the result stays within the ISO-8859-1 range.
15438 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
15439 characters are defined in IBM273.
15440
c596630b
ST
154412018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
15442
15443 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
15444 __mach_task_self): Remove attribute_hidden.
15445
35ebb6b0
JM
154462018-06-14 Joseph Myers <joseph@codesourcery.com>
15447
15448 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
15449 ignore -Wrestrict for one test.
15450
3c7b9f1f
SE
154512018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
15452 Szabolcs Nagy <szabolcs.nagy@arm.com>
15453
15454 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
15455
c59ee916
FW
154562018-06-14 Florian Weimer <fweimer@redhat.com>
15457
15458 * scripts/update-abilist.sh: Accept empty list of files to patch.
15459
43b5ff50
ST
154602018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
15461
15462 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
15463 test-xfail-check-abi-libmachuser): Add.
c8c910ed
ST
15464 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
15465 __libc_read and __libc_write to __read and __write.
c8c6e6d6 15466 * sysdeps/hurd/include/hurd/port.h: New file.
126b3ec3
ST
15467 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
15468 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
15469 __thread_switch, __evc_wait): Move declarations to...
15470 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
15471 attribute_hidden.
06d1a826
ST
15472 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
15473 use PLT to call _hurd_self_sigstate.
43b5ff50 15474
fcd6b5ac
JM
154752018-06-13 Joseph Myers <joseph@codesourcery.com>
15476
15477 [BZ #23279]
15478 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
15479 MAX_EXP as overflowing.
15480 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
15481 overflow flag.
15482 (round_str): Output also whether result overflows in each rounding
15483 mode.
15484 * stdlib/tst-strtod-round-data: Add more tests.
15485 * stdlib/tst-strtod-round-data.h: Regenerated.
15486 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
15487 (TEST): Handle extra arguments for overflow flags.
15488 (struct test_overflow): New type.
15489 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
15490 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
15491 (test_in_one_mode): Take argument with overflow information.
15492 (do_test): Update calls to test_in_one_mode.
15493
35df5a77
CD
154942018-06-12 Carlos O'Donell <carlos@redhat.com>
15495
a745c837
CD
15496 * elf/dl-load (_dl_dst_substitute): Correct comment.
15497 (_dl_dst_count): Likewise.
15498
35df5a77
CD
15499 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
15500 lll_futex_timed_wait.
15501
48b12ed5
JM
155022018-06-12 Joseph Myers <joseph@codesourcery.com>
15503
15504 [BZ #23277]
15505 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
15506 attribute.
15507 * math/test-nan-const.c: New file.
15508 * math/Makefile (tests): Add test-nan-const.
15509 (CFLAGS-test-nan-const.c): New variable.
15510
cb8f6aff
L
155112018-06-12 H.J. Lu <hongjiu.lu@intel.com>
15512
15513 * benchtests/scripts/compare_strings.py (process_results): Add
15514 funcs argument. Compare only functions which are selected.
15515 (main): Check if base function is among selected functions.
15516 Pass selected functions to process_results.
15517 (__main__): Add -f/--functions argument.
15518
fc2ba803
HZ
155192018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
15520 Hongbo Zhang <hongbo.zhang@linaro.org>
15521
15522 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
15523 __memcpy_falkor for phecda core.
15524 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
15525 __memmove_falkor for phecda core.
15526 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
15527 __memset_falkor for phecda core.
15528 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
15529 for phecda core.
15530 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
15531 macro to identify phecda core.
15532
5aad5f61
CD
155332018-06-12 Carlos O'Donell <carlos@redhat.com>
15534 Andreas Schwab <schwab@suse.de>
15535 Dmitry V. Levin <ldv@altlinux.org>
6b5c8607 15536 Florian Weimer <fweimer@redhat.com>
5aad5f61
CD
15537
15538 [BZ #23102]
15539 [BZ #21942]
15540 [BZ #18018]
15541 [BZ #23259]
15542 CVE-2011-0536
15543 * elf/dl-dst.h: Remove DL_DST_COUNT.
15544 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
15545 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
15546 (is_dst): Comment. Support ELF gABI.
15547 (_dl_dst_count): Comment. Simplify and count DSTs.
15548 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
15549 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
15550 locals.
15551
329ea513
ZW
155522018-06-12 Zack Weinberg <zackw@panix.com>
15553
15554 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
15555 * sysdeps/unix/sysv/linux/dl-sysdep.c
15556 Include not-cancel.h. Use __close_nocancel instead of __close,
15557 __open64_nocancel instead of __open, __read_nocancel instead of
15558 __libc_read, and __write_nocancel instead of __libc_write.
15559
15560 * csu/check_fds.c (check_one_fd)
15561 * sysdeps/posix/fdopendir.c (__fdopendir)
15562 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
b39d961c 15563 instead of __fcntl and/or __libc_fcntl.
329ea513
ZW
15564
15565 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
15566 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
b39d961c 15567 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
329ea513
ZW
15568 Use __open64_nocancel instead of __open_nocancel.
15569
15570 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
15571 hidden_proto declarations to the end and issue them if either
15572 IS_IN(libc) or IS_IN(rtld).
15573 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
15574 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
15575 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
15576 read_nocancel, waitpid_nocancel, write_nocancel.
15577
b39d961c
TS
15578 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
15579 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
15580 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
329ea513 15581
b39d961c
TS
15582 * nptl/pt-fcntl.c: New file.
15583 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
15584 (libpthread-routines): Add pt-fcntl.
15585 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
15586 (__libc_fcntl): Remove attribute_hidden.
329ea513
ZW
15587 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
15588 __fcntl_nocancel_adjusted, not fcntl_common.
b39d961c 15589 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
329ea513
ZW
15590 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
15591 to fcntl_nocancel.c.
15592 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
15593 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
15594 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
15595 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
15596
15597 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
15598 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
15599 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
15600 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
15601 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
15602 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
15603 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
15604 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
15605 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
15606 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
15607 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
15608 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
15609 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
15610 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
15611 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
15612 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
15613 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
15614 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
15615 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
15616 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
15617
b39d961c
TS
15618 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
15619 libpthread-routines.
15620 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
15621 defines nothing.
329ea513 15622
b39d961c
TS
15623 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
15624 __libc_read, and __write instead of __libc_write. Define
15625 __open64 in addition to __open.
329ea513 15626
0221ce2a
L
156272018-06-12 H.J. Lu <hongjiu.lu@intel.com>
15628
15629 [BZ #23250]
15630 [BZ #10686]
15631 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
15632 to _private_tm[3] and add __glibc_reserved2.
15633 Add _Static_assert of offset of __private_ss == 0x30.
15634 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
15635 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
15636
e826574c
FW
156372018-06-12 Florian Weimer <fweimer@redhat.com>
15638
15639 x86: Make strncmp usable from rtld.
15640 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
15641 __strncmp_ia32 if in libc (and not in rtld).
15642 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
15643 strncmp if not in libc (and not to __strncmp_sse2).
15644
c4ad5782
RL
156452018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
15646
15647 [BZ #23140]
15648 * localedata/locales/gd_GB (mon): Rename to...
15649 (alt_mon): This.
15650 (mon): Import from CLDR (genitive case).
15651 * localedata/locales/hsb_DE (mon): Rename to...
15652 (alt_mon): This.
15653 (mon): Import from CLDR (genitive case).
15654 * localedata/locales/wa_BE (mon): Rename to...
15655 (alt_mon): This.
15656 (mon): Add, fill with the proper genitive forms, but CLDR data
15657 is incomplete; completed according to the comments in this file.
15658 (d_t_fmt): Do not use "di" before the month name, no longer needed.
15659
15660 * localedata/locales/wa_BE (country_name): Reword
15661 "Beljike" -> "Beldjike".
15662
ca121b11
JM
156632018-06-11 Joseph Myers <joseph@codesourcery.com>
15664
15665 [BZ #23272]
15666 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
15667 cases of non-finite arguments.
15668 * math/libm-test-fma.inc (fma_test_data): Add more tests.
15669
2b69fecb
JDA
156702018-06-10 John David Anglin <danglin@gcc.gnu.org>
15671
15672 [BZ #23174]
15673 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
15674
283d9851
AZ
156752018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15676
15677 [BZ #23264]
15678 * include/unistd.h (__execvpex): New prototype.
15679 * posix/Makefile (tests): Add tst-spawn4.
15680 (tests-internal): Add tst-spawn4-compat.
15681 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
15682 * posix/tst-spawn4-compat.c: New file.
15683 * posix/tst-spawn4.c: Likewise.
15684 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
15685 binaries as shell scripts.
15686 * sysdeps/posix/spawni.c (__spawni): Likewise.
15687
67c05796
L
156882018-06-08 H.J. Lu <hongjiu.lu@intel.com>
15689
15690 [BZ #23145]
15691 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
15692 ($(all-built-dso:=.dynsym): New target.
15693 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
15694 ($(objpfx)check-initfini.out): New target.
15695 (generated): Add check-initfini.out.
15696 * scripts/check-initfini.awk: New file.
15697 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
15698 (_fini): Likewise.
15699 * sysdeps/alpha/crti.S (_init): Mark as hidden.
15700 (_fini): Likewise.
15701 * sysdeps/arm/crti.S (_init): Mark as hidden.
15702 (_fini): Likewise.
15703 * sysdeps/hppa/crti.S (_init): Mark as hidden.
15704 (_fini): Likewise.
15705 * sysdeps/i386/crti.S (_init): Mark as hidden.
15706 (_fini): Likewise.
15707 * sysdeps/ia64/crti.S (_init): Mark as hidden.
15708 (_fini): Likewise.
15709 * sysdeps/m68k/crti.S (_init): Mark as hidden.
15710 (_fini): Likewise.
15711 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
15712 (_fini): Likewise.
15713 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
15714 (_fini): Likewise.
15715 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
15716 (_fini): Likewise.
15717 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
15718 (_fini): Likewise.
15719 * sysdeps/nios2/crti.S (_init): Mark as hidden.
15720 (_fini): Likewise.
15721 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
15722 (_fini): Likewise.
15723 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
15724 (_fini): Likewise.
15725 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
15726 (_fini): Likewise.
15727 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
15728 (_fini): Likewise.
15729 * sysdeps/sh/crti.S (_init): Mark as hidden.
15730 (_fini): Likewise.
15731 * sysdeps/sparc/crti.S (_init): Mark as hidden.
15732 (_fini): Likewise.
15733 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
15734 (_fini): Likewise.
15735
1c09524e
TMQMF
157362018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15737
15738 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
15739 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
15740 and TF redirection to KFtype and KF only when the default
15741 long double type is not the IEEE 128-bit floating point type.
15742
0e0577c9
JM
157432018-06-05 Joseph Myers <joseph@codesourcery.com>
15744
0c1c33b2
JM
15745 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
15746 macro.
15747 (HWCAP_USCAT): Likewise.
15748 (HWCAP_ILRCPC): Likewise.
15749 (HWCAP_FLAGM): Likewise.
15750 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
15751 Increase to 28.
15752 (_dl_aarch64_cap_flags): Add new flag names.
15753
bef1cbf4
JM
15754 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
15755 (MAP_FIXED_NOREPLACE): New macro.
15756 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
15757 (MAP_FIXED_NOREPLACE): Likewise.
15758 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
15759 (MAP_FIXED_NOREPLACE): Likewise.
15760 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
15761 (MAP_FIXED_NOREPLACE): Likewise.
15762 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
15763 (MAP_FIXED_NOREPLACE): Likewise.
15764 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
15765 (MAP_FIXED_NOREPLACE): Likewise.
15766 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
15767 (MAP_FIXED_NOREPLACE): Likewise.
15768 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
15769 (MAP_FIXED_NOREPLACE): Likewise.
15770 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
15771 (MAP_FIXED_NOREPLACE): Likewise.
15772 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
15773 (MAP_FIXED_NOREPLACE): Likewise.
15774 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
15775 (MAP_FIXED_NOREPLACE): Likewise.
15776 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
15777 (MAP_FIXED_NOREPLACE): Likewise.
15778 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
15779 (MAP_FIXED_NOREPLACE): Likewise.
15780 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
15781 (MAP_FIXED_NOREPLACE): Likewise.
15782 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
15783 (MAP_FIXED_NOREPLACE): Likewise.
15784
0e0577c9
JM
15785 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
15786 version to 4.17.
15787
ab3a0da0
JM
157882018-06-04 Joseph Myers <joseph@codesourcery.com>
15789
15790 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
15791 version to 4.17
15792
d2d9dfb6
ST
157932018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
15794
15795 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
15796 int.
15797 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
15798
a650b05e
LS
157992018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
15800
15801 * benchtests/scripts/compare_string.py: (process_results) Catch
15802 exception in non-existent base_func and catch exception in
15803 non-existent attribute.
15804 (parse_file) Catch exception if input file does not exist.
15805
195abbf4
LS
158062018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
15807
15808 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
15809 options to avoid diff calculation and omit header, respectively.
15810 (main): process --no-diff and --no-header
15811
14570163
LS
158122018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
15813 H.J. Lu <hongjiu.lu@intel.com>
15814
15815 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15816 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
15817 wcsncmp-sse2.
15818 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
15819 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
15820 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
15821 and __wcsncmp_sse2.
15822 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
15823 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
15824 AVX unaligned load is fast and vzeroupper is preferred.
15825 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
15826 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
15827 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
15828 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
15829 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
15830 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
15831 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
15832 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
15833 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
15834 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
15835 is undefined.
15836
e02c026f
FW
158372018-06-01 Florian Weimer <fweimer@redhat.com>
15838
15839 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
15840 configuring with --disable-multi-arch, building with
15841 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
15842 Haswell-era CPU.
15843
d8c19275
FW
158442018-06-01 Florian Weimer <fweimer@redhat.com>
15845
15846 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
15847 results from building with “-march=x86-64 -mtune=generic
15848 -mfpmath=sse” and running on a Haswell-era CPU.
15849
0d2163eb
JM
158502018-06-01 Joseph Myers <joseph@codesourcery.com>
15851
15852 [BZ #18473]
15853 * soft-fp/sqrttf2.c: Remove file.
15854 * soft-fp/sqrtdf2.c: Move to ....
15855 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
15856 <shlib-compat.h>.
15857 (__sqrtdf2): Make conditional on
15858 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
15859 symbol.
15860 * soft-fp/sqrtsf2.c: Move to ....
15861 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
15862 <shlib-compat.h>.
15863 (__sqrtsf2): Make conditional on
15864 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
15865 symbol.
15866 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
15867 (gcc-double-routines): Remove sqrtdf2.
15868 (gcc-quad-routines): Remove sqrttf2.
15869 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
15870 Do not filter out sqrtsf2 and sqrtdf2.
15871 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
15872 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
15873
10450210
FW
158742018-06-01 Florian Weimer <fweimer@redhat.com>
15875
15876 * sysdeps/generic/libcidn.abilist: Remove file.
15877
4e8a6346
FW
158782018-06-01 Florian Weimer <fweimer@redhat.com>
15879
15880 [BZ #23236]
15881 * libio/strfile.h (struct _IO_str_fields): Rename members to
15882 discourage their use and add comment.
15883 (_IO_STR_DYNAMIC): Remove unused macro.
15884 * libio/strops.c (_IO_str_init_static_internal): Do not use
15885 callback pointers. Call malloc and free.
15886 (_IO_str_overflow): Do not use callback pointers. Call malloc
15887 and free.
15888 (enlarge_userbuf): Likewise.
15889 (_IO_str_finish): Call free.
15890 * libio/wstrops.c (_IO_wstr_init_static): Initialize
15891 _allocate_buffer_unused.
15892 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
15893 and free.
15894 (enlarge_userbuf): Likewise.
15895 (_IO_wstr_finish): Call free.
15896 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
15897 _allocate_buffer_unused, _free_buffer_unused.
15898 * libio/memstream.c (__open_memstream): Likewise.
15899 * libio/vasprintf.c (_IO_vasprintf): Likewise.
15900 * libio/wmemstream.c (open_wmemstream): Likewise.
15901
50d004c9
PP
159022018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
15903
15904 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
15905 AMD Ryzen 7 1800X.
15906
2c93fce7
RS
159072018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
15908
15909 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
15910 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
15911 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
15912 New file.
15913 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
15914 Likewise.
15915 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
15916
0ce2fa69
FW
159172018-05-29 Florian Weimer <fweimer@redhat.com>
15918
15919 * support/Makefile (libsupport-routines): Add
15920 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
15921 xpthread_barrierattr_setpshared.
15922 * support/xpthread_barrierattr_destroy.c: New file.
15923 * support/xpthread_barrierattr_init.c: Likewise.
15924 * support/xpthread_barrierattr_setpshared.c: Likewise.
15925
7f7b5d8d
L
159262018-05-29 H.J. Lu <hongjiu.lu@intel.com>
15927
15928 [BZ #23206]
15929 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
15930 _r_debug and update DT_DEBUG for debugger.
15931
e4890300
FW
159322018-05-29 Florian Weimer <fweimer@redhat.com>
15933
15934 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
15935 (tst-strtod5i.out): Likewise.
15936
2c753f3e
JM
159372018-05-25 Joseph Myers <joseph@codesourcery.com>
15938
b5453d9f
JM
15939 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
15940 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
15941 (sparc64-quad-routines): New variable. Moved from ....
15942 [$(subdir) = soft-fp] (sysdep_routines): Add
15943 $(sparc64-quad-routines). Moved from ....
15944 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
15945 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
15946 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
15947 moved from ....
15948 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
15949 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
15950 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
15951 * sysdeps/sparc/sparc64/qp_add.c: ... here.
15952 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
15953 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
15954 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
15955 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
15956 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
15957 * sysdeps/sparc/sparc64/qp_div.c: ... here.
15958 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
15959 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
15960 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
15961 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
15962 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
15963 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
15964 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
15965 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
15966 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
15967 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
15968 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
15969 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
15970 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
15971 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
15972 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
15973 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
15974 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
15975 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
15976 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
15977 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
15978 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
15979 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
15980 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
15981 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
15982 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
15983 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
15984 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
15985 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
15986 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
15987 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
15988 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
15989 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
15990 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
15991 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
15992 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
15993 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
15994 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
15995 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
15996 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
15997 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
15998 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
15999 * sysdeps/sparc/sparc64/qp_util.c: ... here.
16000 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
16001 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
16002 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
16003 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
16004 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
16005 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
16006
2c753f3e
JM
16007 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
16008 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
16009 (sparc32-quad-routines): New variable. Moved from ....
16010 [$(subdir) = soft-fp] (sysdep_routines): Add
16011 $(sparc32-quad-routines). Moved from ....
16012 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
16013 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
16014 moved from ....
16015 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
16016 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
16017 * sysdeps/sparc/sparc32/q_add.c: ... here.
16018 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
16019 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
16020 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
16021 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
16022 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
16023 * sysdeps/sparc/sparc32/q_div.c: ... here.
16024 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
16025 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
16026 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
16027 * sysdeps/sparc/sparc32/q_feq.c: ... here.
16028 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
16029 * sysdeps/sparc/sparc32/q_fge.c: ... here.
16030 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
16031 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
16032 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
16033 * sysdeps/sparc/sparc32/q_fle.c: ... here.
16034 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
16035 * sysdeps/sparc/sparc32/q_flt.c: ... here.
16036 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
16037 * sysdeps/sparc/sparc32/q_fne.c: ... here.
16038 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
16039 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
16040 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
16041 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
16042 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
16043 * sysdeps/sparc/sparc32/q_mul.c: ... here.
16044 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
16045 * sysdeps/sparc/sparc32/q_neg.c: ... here.
16046 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
16047 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
16048 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
16049 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
16050 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
16051 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
16052 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
16053 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
16054 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
16055 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
16056 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
16057 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
16058 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
16059 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
16060 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
16061 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
16062 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
16063 * sysdeps/sparc/sparc32/q_sub.c: ... here.
16064 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
16065 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
16066 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
16067 * sysdeps/sparc/sparc32/q_util.c: ... here.
16068 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
16069 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
16070 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
16071 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
16072
c1dc1e1b
TMQMF
160732018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16074 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
16075
16076 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
16077 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
16078 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
16079 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
16080
14186e8d
JM
160812018-05-24 Joseph Myers <joseph@codesourcery.com>
16082
16083 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
16084 powerpc/soft-fp.
16085 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
16086 Likewise.
16087 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
16088 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
16089
fb0e10b8
GG
160902018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
16091
16092 [BZ #23171]
16093 * math/math.h [C++] (iseqsig): Fix parameter type for the long
16094 double version.
16095
1dfeb17e
JM
160962018-05-23 Joseph Myers <joseph@codesourcery.com>
16097
16098 * sysdeps/sh/Implies: Remove sh/soft-fp.
16099 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
16100 * sysdeps/sh/sfp-machine.h: ... here.
16101
727b38df
L
161022018-05-23 H.J. Lu <hongjiu.lu@intel.com>
16103
16104 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
16105 (__mempcpy_erms): Skip zero length.
16106 (__memmove_erms): Likewise.
16107 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
16108 (__memset_erms): Likewise.
16109
2834fb46
JM
161102018-05-23 Joseph Myers <joseph@codesourcery.com>
16111
16112 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
16113 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
16114 Add functions moved from ....
16115 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
16116 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
16117 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
16118 from ....
16119 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
16120 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
16121 * sysdeps/alpha/e_sqrtl.c: ... here.
16122 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
16123 * sysdeps/alpha/local-soft-fp.h: ... here.
16124 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
16125 * sysdeps/alpha/ots_add.c: ... here.
16126 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
16127 * sysdeps/alpha/ots_cmp.c: ... here.
16128 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
16129 * sysdeps/alpha/ots_cmpe.c: ... here.
16130 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
16131 * sysdeps/alpha/ots_cvtqux.c: ... here.
16132 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
16133 * sysdeps/alpha/ots_cvtqx.c: ... here.
16134 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
16135 * sysdeps/alpha/ots_cvttx.c: ... here.
16136 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
16137 * sysdeps/alpha/ots_cvtxq.c: ... here.
16138 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
16139 * sysdeps/alpha/ots_cvtxt.c: ... here.
16140 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
16141 * sysdeps/alpha/ots_div.c: ... here.
16142 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
16143 * sysdeps/alpha/ots_mul.c: ... here.
16144 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
16145 * sysdeps/alpha/ots_nintxq.c: ... here.
16146 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
16147 * sysdeps/alpha/ots_sub.c: ... here.
16148 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
16149 * sysdeps/alpha/sfp-machine.h: ... here.
16150
7f9f1ecb
FW
161512018-05-23 Florian Weimer <fweimer@redhat.com>
16152
16153 [BZ #19728]
16154 [BZ #19729]
16155 [BZ #22247]
16156 CVE-2016-6261
16157 CVE-2016-6263
16158 CVE-2017-14062
16159 Switch to extern IDNA implementation (libidn2).
16160 * libidn: Remove subdirectory.
16161 * LICENSES: Do not mention licensing conditions for the removed
16162 libidn code.
16163 * config.h.in (HAVE_LIBIDN): Remove.
16164 * include/dlfcn.h (__libc_dlopen): Update comment.
16165 * include/idna.h: Remove file.
16166 * inet/Makefile (routines): Add idna.
16167 (tests-static, tests-internal): Add tst-idna_name_classify.
16168 (LOCALES): Generate locales for tests.
16169 (tst-idna_name_classify.out): Depend on generated locales.
16170 * inet/idna_name_classify.c: New file.
16171 * inet/tst-idna_name_classify.c: Likewise.
16172 * inet/net-internal.h (__idna_to_dns_encoding)
16173 (__idna_from_dns_encoding): Declare.
16174 * inet/net-internal.h (enum idna_name_classification): Define.
16175 (__idna_name_classify): Declare.
16176 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
16177 __idna_from_dns_encoding.
16178 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
16179 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
16180 name as a fallback in case of encoding errors.
16181 (getnameinfo): Use DEPRECATED_NI_IDN.
16182 * inet/idna.c: New file.
16183 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
16184 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
16185 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
16186 (modules-names): Add tst-no-libidn2.
16187 (extra-test-objs): Add tst-no-libidn2.os.
16188 (LDFLAGS-tst-no-libidn2.so): Set soname.
16189 (LOCALES): Set, and generate locales.
16190 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
16191 (tst-resolv-ai_idn-latin1): Likewise.
16192 (tst-resolv-ai_idn-nolibidn2): Likewise.
16193 (tst-resolv-ai_idn.out): Depend on locales.
16194 (tst-resolv-ai_idn-latin1.out): Depend on locales.
16195 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
16196 tst-no-libidn2.so.
16197 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
16198 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
16199 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
16200 * resolv/tst-resolv-ai_idn.c: New file.
16201 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
16202 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
16203 * resolv/tst-no-libidn2.c: Likewise.
16204 * support/support_format_addrinfo.c (format_ai_flags): Do not
16205 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
16206 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
16207 (gaih_inet): Call __idna_to_dns_encoding and
16208 __idna_from_dns_encoding, and use the original (punycode) name if
16209 __idna_from_dns_encoding fails due to an encoding error.
16210 (getaddrinfo): Use DEPRECATED_AI_IDN.
16211 * sysdeps/unix/inet/Subdirs (libidn): Remove.
16212 * sysdeps/unix/inet/configure: Remove file.
16213 * sysdeps/unix/inet/configure.ac: Likewise.
16214
5f7b841d
FW
162152018-05-23 Florian Weimer <fweimer@redhat.com>
16216
16217 Implement allocate_once.
16218 * include/allocate_once.h: New file.
16219 * misc/allocate_once.c: Likewise.
16220 * misc/tst-allocate_once.c: Likewise.
16221 * misc/Makefile (routines): Add allocate_once.
16222 (tests-internal): Add tst-allocate_once.
16223 (generated): Add tst-allocate_once.mtrace,
16224 tst-allocate_once-mem.out.
16225 (tests-special): Add tst-allocate_once-mem.out.
16226 (tst-allocate_once-ENV): Set MALLOC_TRACE.
16227 (tst-allocate_once-mem.out): Call mtrace.
16228 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
16229
ed983107
L
162302018-05-23 H.J. Lu <hongjiu.lu@intel.com>
16231
16232 [BZ #23196]
16233 * string/test-memcpy.c (do_test1): New function.
16234 (test_main): Call it.
16235
9aaaab7c
AS
162362018-05-23 Andreas Schwab <schwab@suse.de>
16237
16238 [BZ #23196]
16239 CVE-2018-11237
16240 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
16241 (L(preloop_large)): Save initial destination pointer in %r11 and
16242 use it instead of %rax after the loop.
16243 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
16244
5c5c0dd7
JM
162452018-05-22 Joseph Myers <joseph@codesourcery.com>
16246
8f145c77
JM
16247 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
16248 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
16249 -I../soft-fp. Moved from ....
16250 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
16251 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
16252 * sysdeps/aarch64/e_sqrtl.c: ... here.
16253 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
16254 * sysdeps/aarch64/sfp-machine.h: ... here.
16255
3d6302a5
JM
16256 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
16257 -Wmaybe-uninitialized around access to fq[0].
16258 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
16259 Likewise.
16260
5c5c0dd7
JM
16261 [BZ #18471]
16262 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
16263 aliases for non-libc case of versioned symbols.
16264 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
16265 (llseek): Define as compat symbol if
16266 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
16267 with link warning.
16268 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
16269 Make into a compat symbol, disabled for minimum symbol version
16270 GLIBC_2.28 and later.
16271 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
16272
ed0d6988
FW
162732018-05-22 Florian Weimer <fweimer@redhat.com>
16274
16275 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
16276 not add -mpreferred-stack-boundary=4.
16277 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
16278 (stack-align-test-flags): Likewise.
16279 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
16280 Likewise.
16281 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
16282 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
16283 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
16284 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
16285 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
16286 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
16287 (CFLAGS-tst-align2.c): Likewise.
16288
e28e9b1e
L
162892018-05-21 H.J. Lu <hongjiu.lu@intel.com>
16290
16291 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
16292 (index_arch_Prefer_FSRM): Likewise.
16293 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
16294 Also check Prefer_FSRM.
16295 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
16296 Also return OPTIMIZE (erms) for Prefer_FSRM.
16297
1af30adc
L
162982018-05-21 H.J. Lu <hongjiu.lu@intel.com>
16299
16300 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
16301 (index_cpu_FSRM): Likewise.
16302 (reg_FSRM): Likewise.
16303
78274dc8
JM
163042018-05-18 Joseph Myers <joseph@codesourcery.com>
16305
7c67e6e8
JM
16306 * math/gen-tgmath-tests.py: Import sys.
16307 (Tests.__init__): Initialize macros_seen.
16308 (Tests.add_tests): Add macro to macros_seen. Only generate tests
16309 if requested to do so for this macro.
16310 (Tests.add_all_tests): Take argument for macro for which to
16311 generate tests.
16312 (Tests.check_macro_list): New function.
16313 (main): Handle check-list argument and argument specifying macro
16314 for which to generate tests.
16315 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
16316 [PYTHON] (tgmath3-macro-tests): Likewise.
16317 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
16318 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
16319 not test-tgmath3.c.
16320 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
16321 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
16322 to CFLAGS.
16323 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
16324 [PYTHON] ($(foreach
16325 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
16326 rule.
16327 [PYTHON] (tests-special): Add
16328 $(objpfx)test-tgmath3-macro-list.out.
16329 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
16330
ebc129fd
JM
16331 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
16332 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
16333 later.
16334
78274dc8
JM
16335 [BZ #22639]
16336 * time/tzset.c (SECSPERDAY): Cast to time_t.
16337 * time/tst-y2039.c: New file.
16338 * time/Makefile (tests): Add tst-y2039.
16339
6f7fdeeb
LS
163402018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
16341
16342 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
16343 (PREFETCH_ONE_SET): Remove duplicate line.
16344
e363a91c
FW
163452018-05-17 Florian Weimer <fweimer@redhat.com>
16346
16347 * sysdeps/generic/math-type-macros-double.h: Include
16348 <math-nan-payload-double.h> after <libm-alias-double.h>.
16349 * sysdeps/generic/math-type-macros-float.h: Include
16350 <math-nan-payload-float.h> after <libm-alias-float.h>.
16351 * sysdeps/generic/math-type-macros-float128.h: Include
16352 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
16353 * sysdeps/generic/math-type-macros-ldouble.h: Include
16354 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
16355
dae6c43c
AS
163562018-05-17 Andreas Schwab <schwab@suse.de>
16357
16358 * resolv/res_send.c (__res_context_send): Don't set errno when
16359 returing error after malloc failure.
16360
0068c085
L
163612018-05-17 H.J. Lu <hongjiu.lu@intel.com>
16362
16363 * nptl/allocatestack.c (allocate_stack): Remove the
16364 !__ASSUME_PRIVATE_FUTEX paths.
16365 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
16366 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
16367 Likewise.
16368 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
16369 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
16370 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
16371 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
16372 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
16373 !__ASSUME_PRIVATE_FUTEX path.
16374 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
16375 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
16376 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
16377 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
16378 !__ASSUME_PRIVATE_FUTEX macros.
16379 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
16380 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
16381 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
16382 * sysdeps/unix/sysv/linux/kernel-features.h
16383 (__ASSUME_PRIVATE_FUTEX): Removed.
16384
632a6cbe
JM
163852018-05-17 Joseph Myers <joseph@codesourcery.com>
16386
16387 * math/Makefile (libm-narrow-fns): Add div.
16388 (libm-test-funcs-narrow): Likewise.
16389 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
16390 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
16391 * math/gen-auto-libm-tests.c (test_functions): Add div.
16392 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
16393 (NARROW_DIV_ROUND_TO_ODD): Likewise.
16394 (NARROW_DIV_TRIVIAL): Likewise.
16395 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
16396 macro.
16397 (__ddivl): Likewise.
16398 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
16399 ddiv.
16400 (CFLAGS-nldbl-ddiv.c): New variable.
16401 (CFLAGS-nldbl-fdiv.c): Likewise.
16402 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
16403 __nldbl_ddivl.
16404 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
16405 prototype.
16406 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
16407 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
16408 * math/auto-libm-test-in: Add tests of div.
16409 * math/auto-libm-test-out-narrow-div: New generated file.
16410 * math/libm-test-narrow-div.inc: New file.
16411 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
16412 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
16413 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
16414 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
16415 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
16416 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
16417 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
16418 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
16419 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
16420 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
16421 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
16422 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
16423 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
16424 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
16425 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
16426 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
16427 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
16428 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
16429 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16430 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
16431 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
16432 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
16433 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
16434 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
16435 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
16436 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
16437 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
16438 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
16439 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
16440 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
16441 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
16442 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
16443 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
16444 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
16445 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
16446 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
16447 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16448 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
16449 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
16450 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
16451 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
16452 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
16453 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
16454 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
16455
8c78faa9
AZ
164562018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16457
16458 [BZ #23178]
16459 * nscd/nscd-client.h (sendfileall): Remove prototype.
16460 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
16461 (handle_request): Use writeall instead of sendfileall.
16462 * nscd/aicache.c (addhstaiX): Likewise.
16463 * nscd/grpcache.c (cache_addgr): Likewise.
16464 * nscd/hstcache.c (cache_addhst): Likewise.
16465 * nscd/initgrcache.c (addinitgroupsX): Likewise.
16466 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
16467 * nscd/pwdcache.c (cache_addpw): Likewise.
16468 * nscd/servicescache.c (cache_addserv): Likewise.
16469 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
16470 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
16471 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
16472 Remove define.
16473
04958880
L
164742018-05-16 H.J. Lu <hongjiu.lu@intel.com>
16475
16476 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
16477 Include <string/strncat.c>.
16478 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
16479 alias.
16480 (__GI___strncat): New hidden alias.
16481
c9992d13
JM
164822018-05-16 Joseph Myers <joseph@codesourcery.com>
16483
16484 * sysdeps/mips/mips32/libm-test-ulps: Update.
16485 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
16486
2afece36
FW
164872018-05-16 Florian Weimer <fweimer@redhat.com>
16488
16489 * support/Makefile (libsupport-routines): Add support_quote_blob,
16490 support_test_compare_blob.
16491 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
16492 * support/check.h (TEST_COMPARE_BLOB): Define.
16493 (support_test_compare_blob): Declare.
16494 * support/support.h (support_quote_blob): Declare.
16495 * support/support_quote_blob.c: New file.
16496 * support/support_test_compare_blob.c: Likewise.
16497 * support/tst-support_quote_blob.c: Likewise.
16498 * support/tst-test_compare_blob.c: Likewise.
16499
9761bf4d
FW
165002018-05-16 Florian Weimer <fweimer@redhat.com>
16501
16502 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
16503 of <strtod_nan_double.h>.
16504 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
16505 instead of SET_MANTISSA.
16506 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
16507 of include <strtod_nan_float.h>.
16508 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
16509 instead of <strtod_nan_ldouble.h>.
16510 * stdlib/strtod_nan_double.h: Move to ...
16511 * sysdeps/generic/math-nan-payload-double.h: ... here.
16512 (FLOAT): Remove definition.
16513 (SET_MANTISSA): Rename to ...
16514 (SET_NAN_PAYLOAD): ... this.
16515 * stdlib/strtod_nan_float.h: Move to ...
16516 * sysdeps/generic/math-nan-payload-float.h: ... here.
16517 (FLOAT): Remove definition.
16518 (SET_MANTISSA): Rename to ...
16519 (SET_NAN_PAYLOAD): ... this.
16520 * sysdeps/generic/math-type-macros-double.h: Include
16521 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
16522 instead of <math-svid-compat.h>.
16523 * sysdeps/generic/math-type-macros-float.h: Include
16524 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
16525 instead of <math-svid-compat.h>.
16526 * sysdeps/generic/math-type-macros-float128.h: Include
16527 <math-nan-payload-float128.h>.
16528 * sysdeps/generic/math-type-macros-ldouble.h: Include
16529 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
16530 instead of <math-svid-compat.h>.
16531 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
16532 check for definition.
16533 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
16534 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
16535 Include <ieee754_float128.h>.
16536 (FLOAT): Remove definition.
16537 (SET_MANTISSA): Rename to ...
16538 (SET_NAN_PAYLOAD): ... this.
16539 * sysdeps/ieee754/float128/strtof128_nan.c: Include
16540 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
16541 Do not include <float128_private.h>.
16542 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
16543 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
16544 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
16545 (FLOAT): Remove definition.
16546 (SET_MANTISSA): Rename to ...
16547 (SET_NAN_PAYLOAD): ... this.
16548 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
16549 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
16550 (FLOAT): Remove definition.
16551 (SET_MANTISSA): Rename to ...
16552 (SET_NAN_PAYLOAD): ... this.
16553 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
16554 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
16555 (FLOAT): Remove definition.
16556 (SET_MANTISSA): Rename to ...
16557 (SET_NAN_PAYLOAD): ... this.
16558 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
16559 of "../stdlib/strtod_nan_double.h".
16560 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
16561 of "../stdlib/strtod_nan_float.h".
16562 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
16563 instead of "../stdlib/strtod_nan_ldouble.h".
16564 * manual/arith.texi (Parsing of Floats): Adjust comment.
16565
69a01461
JM
165662018-05-16 Joseph Myers <joseph@codesourcery.com>
16567
16568 * math/Makefile (libm-narrow-fns): Add mul.
16569 (libm-test-funcs-narrow): Likewise.
16570 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
16571 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
16572 * math/gen-auto-libm-tests.c (test_functions): Add mul.
16573 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
16574 (NARROW_MUL_ROUND_TO_ODD): Likewise.
16575 (NARROW_MUL_TRIVIAL): Likewise.
16576 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
16577 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
16578 macro.
16579 (__dmull): Likewise.
16580 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
16581 dmul.
16582 (CFLAGS-nldbl-dmul.c): New variable.
16583 (CFLAGS-nldbl-fmul.c): Likewise.
16584 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
16585 __nldbl_dmull.
16586 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
16587 prototype.
16588 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
16589 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
16590 * math/auto-libm-test-in: Add tests of mul.
16591 * math/auto-libm-test-out-narrow-mul: New generated file.
16592 * math/libm-test-narrow-mul.inc: New file.
16593 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
16594 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
16595 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
16596 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
16597 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
16598 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
16599 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
16600 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
16601 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
16602 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
16603 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
16604 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
16605 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
16606 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
16607 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
16608 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
16609 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
16610 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
16611 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16612 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
16613 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
16614 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
16615 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
16616 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
16617 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
16618 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
16619 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
16620 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
16621 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
16622 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
16623 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
16624 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
16625 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
16626 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
16627 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
16628 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
16629 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16630 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
16631 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
16632 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
16633 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
16634 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
16635 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
16636 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
16637
a15529fd
L
166382018-05-14 H.J. Lu <hongjiu.lu@intel.com>
16639
16640 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
16641 with *%eax in call.
16642
98ee36c7
L
166432018-05-14 H.J. Lu <hongjiu.lu@intel.com>
16644
16645 * sysdeps/i386/ldsodefs.h: Removed.
16646 * sysdeps/x86_64/ldsodefs.h: Moved to ...
16647 * sysdeps/x86/ldsodefs.h: This.
16648 (La_i86_regs): New.
16649 (La_i86_retval): Likewise.
16650 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
16651 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
16652
e322ec32
L
166532018-05-14 H.J. Lu <hongjiu.lu@intel.com>
16654
16655 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
16656 unnecessary testl.
16657
0937e209
AM
166582018-05-13 Alan Modra <amodra@gmail.com>
16659
16660 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
16661 R_PARISC_TLS_DTPOFF32 reloc addend.
16662
5db7d705
TMQMF
166632018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16664
16665 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
16666 * math/math.h: Restrict the prototype definition for the functions
16667 issignaling(_Float128) and iszero(_Float128); and template
16668 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
16669 __HAVE_FLOAT128_UNLIKE_LDBL.
16670 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
16671 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
16672 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
16673 __f128() constants; define the type _Float128 as long double;
16674 and reuse long double in __CFLOAT128.
16675
b4d5b8b0
JM
166762018-05-11 Joseph Myers <joseph@codesourcery.com>
16677
16678 * sysdeps/generic/math_private.h: Do not include
16679 <math-barriers.h>.
16680 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
16681 <math_private.h>.
16682 * math/fromfp.h: Include <math-barriers.h>.
16683 * math/math-narrow.h: Likewise.
16684 * math/s_nextafter.c: Likewise.
16685 * math/s_nexttowardf.c: Likewise.
16686 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
16687 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
16688 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
16689 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
16690 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
16691 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
16692 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
16693 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16694 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
16695 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16696 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
16697 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
16698 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
16699 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
16700 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
16701 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
16702 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
16703 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
16704 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
16705 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
16706 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
16707 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
16708 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
16709 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
16710 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
16711 * sysdeps/ieee754/k_standardl.c: Likewise.
16712 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
16713 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
16714 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
16715 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
16716 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
16717 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
16718 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
16719 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
16720 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
16721 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
16722 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
16723 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
16724 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
16725 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
16726 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
16727 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
16728 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
16729 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
16730 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
16731 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
16732 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
16733 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
16734
fc79706a
FW
167352018-05-11 Florian Weimer <fweimer@redhat.com>
16736
16737 Use 64-bit epoch values in the time zone file parser.
16738 * include/time.h (internal_time_t): Define.
16739 (__tzfile_compute): Use it.
16740 * time/tzfile.c (struct leap): Use internal_time_t for epoch
16741 member.
16742 (transitions): Switch to internal_time_t.
16743 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
16744 types.
16745 (__tzfile_compute): Use internal_time_t for timer argument. Check
16746 for truncation before calling __offtime.
16747
89aacb51
FW
167482018-05-11 Florian Weimer <fweimer@redhat.com>
16749
16750 [BZ #23166]
16751 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
16752 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
16753 Likewise.
16754 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
16755 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
16756 export without --enable-obsolete-rpc.
16757 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
16758 symbol. This should not have been exported, ever.
16759
bb066cb8
RL
167602018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
16761
16762 [BZ #23152]
16763 * localedata/locales/gd_GB (abmon): Fix typo in May:
16764 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
16765
70c97f84
SP
167662018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
16767
db725a45
SP
16768 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
16769 Use multiple registers to copy data in loop tail.
16770
70c97f84
SP
16771 * sysdeps/aarch64/multiarch/memmove_falkor.S
16772 (__memmove_falkor): Use multiple registers to move data in
16773 loop tail.
16774
8f5b00d3
JM
167752018-05-10 Joseph Myers <joseph@codesourcery.com>
16776
16777 * math/math-underflow.h: New file.
16778 * sysdeps/generic/math_private.h: Do not include <float.h>.
16779 (fabs_tg): Remove macro. Moved to math-underflow.h.
16780 (min_of_type_f): Likewise.
16781 (min_of_type_): Likewise.
16782 (min_of_type_l): Likewise.
16783 (min_of_type_f128): Likewise.
16784 (min_of_type): Likewise.
16785 (math_check_force_underflow): Likewise.
16786 (math_check_force_underflow_nonneg): Likewise.
16787 (math_check_force_underflow_complex): Likewise.
16788 * math/e_exp2_template.c: Include <math-underflow.h>.
16789 * math/k_casinh_template.c: Likewise.
16790 * math/s_catan_template.c: Likewise.
16791 * math/s_catanh_template.c: Likewise.
16792 * math/s_ccosh_template.c: Likewise.
16793 * math/s_cexp_template.c: Likewise.
16794 * math/s_clog10_template.c: Likewise.
16795 * math/s_clog_template.c: Likewise.
16796 * math/s_csin_template.c: Likewise.
16797 * math/s_csinh_template.c: Likewise.
16798 * math/s_csqrt_template.c: Likewise.
16799 * math/s_ctan_template.c: Likewise.
16800 * math/s_ctanh_template.c: Likewise.
16801 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
16802 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
16803 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
16804 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
16805 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
16806 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
16807 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
16808 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16809 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
16810 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
16811 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16812 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
16813 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
16814 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
16815 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
16816 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
16817 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16818 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
16819 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
16820 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
16821 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
16822 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
16823 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16824 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
16825 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
16826 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
16827 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
16828 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
16829 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
16830 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
16831 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
16832 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
16833 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
16834 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
16835 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
16836 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
16837 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
16838 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
16839 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16840 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
16841 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
16842 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
16843 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
16844 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
16845 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
16846 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
16847 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
16848 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
16849 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
16850 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
16851 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
16852 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
16853 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
16854 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
16855 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
16856 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
16857 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
16858 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
16859 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
16860 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
16861 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
16862 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
16863 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
16864 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
16865 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
16866 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
16867 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
16868 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
16869 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
16870 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
16871 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16872 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
16873 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
16874 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
16875 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
16876 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
16877 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
16878 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
16879 * sysdeps/x86/fpu/powl_helper.c: Likewise.
16880 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
16881 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
16882 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
16883 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
16884 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
16885
9ed2e15f
JM
168862018-05-09 Joseph Myers <joseph@codesourcery.com>
16887
16888 * sysdeps/generic/math-barriers.h: New file.
16889 * sysdeps/generic/math_private.h [!math_opt_barrier]
16890 (math_opt_barrier): Move to math-barriers.h.
16891 [!math_opt_barrier] (math_force_eval): Likewise.
16892 * sysdeps/aarch64/fpu/math-barriers.h: New file.
16893 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
16894 math-barriers.h.
16895 (math_force_eval): Likewise.
16896 * sysdeps/alpha/fpu/math-barriers.h: New file.
16897 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
16898 math-barriers.h.
16899 (math_force_eval): Likewise.
16900 * sysdeps/x86/fpu/math-barriers.h: New file.
16901 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
16902 math-barriers.h.
16903 (math_force_eval): Likewise.
16904 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
16905 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
16906 multiple-include guard for rename.
16907 * sysdeps/powerpc/fpu/math-barriers.h: New file.
16908 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
16909 math-barriers.h.
16910 (math_force_eval): Likewise.
16911
5460617d
PP
169122018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
16913
16914 [BZ #22786]
43d4f3d5 16915 CVE-2018-11236
5460617d
PP
16916 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
16917 computation.
16918 * stdlib/Makefile (test-bz22786): New test.
16919 * stdlib/test-bz22786.c: New test.
16920
aaee3cd8
JM
169212018-05-09 Joseph Myers <joseph@codesourcery.com>
16922
16923 * include/math-narrow-eval.h: New file. Contents moved from ....
16924 * sysdeps/generic/math_private.h: ... here.
16925 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
16926 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
16927 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
16928 * stdlib/strtod_l.c: Likewise.
16929 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
16930 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
16931 * sysdeps/i386/fpu/s_fdim.c: Likewise.
16932 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
16933 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
16934 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
16935 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
16936 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
16937 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
16938 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
16939 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
16940 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
16941 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
16942 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
16943 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
16944 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
16945 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
16946 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
16947 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
16948 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
16949 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16950 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
16951 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
16952 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
16953 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
16954 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
16955 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
16956 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
16957 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
16958
0555c477
AS
169592018-05-08 Andreas Schwab <schwab@suse.de>
16960
16961 * sysdeps/nptl/internaltypes.h: Fix comment.
16962
50d7d351
L
169632018-05-07 H.J. Lu <hongjiu.lu@intel.com>
16964
16965 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
16966 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
16967 hidden.
16968
543477f7
SP
169692018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
16970
16971 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
16972 of I into loop header.
16973 * benchtests/bench-memmove-walk.c
16974 (test_main): Likewise.
16975
169762018-05-07 Alexandre Oliva <oliva@gnu.org>
ffa81c22
AO
16977
16978 Revert:
16979 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
16980 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
16981
0065aaaa
PP
169822018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
16983
16984 [BZ #20419]
16985 * elf/dl-load.c (open_verify): Fix stack overflow.
16986 * elf/Makefile (tst-big-note): New test.
16987 * elf/tst-big-note-lib.S: New.
16988 * elf/tst-big-note.c: New.
16989
b289cd9d
JM
169902018-05-04 Joseph Myers <joseph@codesourcery.com>
16991
16992 * scripts/abilist.awk: Ignore absolute symbols.
16993 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
16994 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
16995 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
16996 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
16997 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
16998 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
16999 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17000 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
17001 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
17002 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
17003 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
17004 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
17005 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
17006 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
17007 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
17008 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
17009 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
17010 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
17011 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17012 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
17013 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
17014 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
17015 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
17016 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
17017 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
17018 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
17019 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
17020 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
17021 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
17022 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
17023 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
17024 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17025 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
17026 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
17027 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
17028 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
17029 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
17030 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
17031 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
17032 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
17033 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
17034 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
17035 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
17036 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
17037 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17038 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
17039 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
17040 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
17041 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
17042 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
17043 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
17044 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
17045 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
17046 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
17047 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
17048 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
17049 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
17050 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17051 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
17052 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
17053 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
17054 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
17055 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
17056 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
17057 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
17058 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
17059 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
17060 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
17061 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
17062 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
17063 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17064 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
17065 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
17066 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
17067 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
17068 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
17069 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
17070 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
17071 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
17072 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
17073 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
17074 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
17075 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
17076 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17077 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
17078 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
17079 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
17080 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
17081 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
17082 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
17083 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
17084 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
17085 Likewise.
17086 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
17087 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
17088 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
17089 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
17090 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17091 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
17092 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
17093 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
17094 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
17095 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
17096 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
17097 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
17098 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
17099 Likewise.
17100 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
17101 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
17102 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
17103 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
17104 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17105 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
17106 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
17107 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
17108 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
17109 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
17110 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
17111 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
17112 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
17113 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
17114 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
17115 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
17116 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
17117 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17118 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
17119 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
17120 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
17121 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
17122 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
17123 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
17124 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
17125 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
17126 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
17127 Likewise.
17128 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
17129 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
17130 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
17131 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
17132 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17133 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
17134 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
17135 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
17136 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
17137 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
17138 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
17139 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
17140 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
17141 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
17142 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
17143 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
17144 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
17145 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
17146 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
17147 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
17148 Likewise.
17149 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
17150 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
17151 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
17152 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17153 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
17154 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
17155 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
17156 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
17157 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
17158 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
17159 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
17160 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
17161 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
17162 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
17163 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
17164 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
17165 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
17166 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
17167 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
17168 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
17169 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
17170 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17171 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
17172 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
17173 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
17174 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
17175 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
17176 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
17177 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
17178 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17179 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
17180 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
17181 Likewise.
17182 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
17183 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
17184 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
17185 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
17186 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
17187 Likewise.
17188 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
17189 Likewise.
17190 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
17191 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
17192 Likewise.
17193 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
17194 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
17195 Likewise.
17196 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
17197 Likewise.
17198 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
17199 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
17200 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
17201 Likewise.
17202 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
17203 Likewise.
17204 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
17205 Likewise.
17206 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
17207 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
17208 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
17209 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
17210 Likewise.
17211 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
17212 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
17213 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
17214 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17215 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17216 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
17217 Likewise.
17218 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
17219 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
17220 Likewise.
17221 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
17222 Likewise.
17223 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
17224 Likewise.
17225 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
17226 Likewise.
17227 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
17228 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
17229 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
17230 Likewise.
17231 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
17232 Likewise.
17233 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
17234 Likewise.
17235 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
17236 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
17237 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
17238 Likewise.
17239 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
17240 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
17241 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
17242 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
17243 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17244 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
17245 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
17246 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
17247 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
17248 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
17249 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
17250 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
17251 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
17252 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
17253 Likewise.
17254 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
17255 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
17256 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
17257 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17258 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
17259 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
17260 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
17261 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
17262 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
17263 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
17264 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
17265 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
17266 Likewise.
17267 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
17268 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
17269 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
17270 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17271 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
17272 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
17273 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
17274 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
17275 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
17276 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
17277 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
17278 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
17279 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
17280 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
17281 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
17282 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
17283 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
17284 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
17285 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
17286 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
17287 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
17288 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
17289 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
17290 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
17291 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
17292 Likewise.
17293 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
17294 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
17295 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
17296 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
17297 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17298 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
17299 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
17300 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
17301 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
17302 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
17303 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
17304 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
17305 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
17306 Likewise.
17307 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
17308 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
17309 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
17310 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
17311 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17312 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
17313 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
17314 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
17315 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
17316 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
17317 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
17318 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
17319 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
17320 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
17321 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
17322 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
17323 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
17324 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17325 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
17326 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
17327 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
17328 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
17329 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
17330 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
17331 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
17332 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
17333 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
17334 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
17335 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
17336 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
17337 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
17338 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
17339 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
17340 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
17341 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
17342 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
17343 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
17344 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
17345
16609018
SL
173462018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
17347
17348 [BZ #23137]
17349 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
17350 Use atomic_load_acquire to load __tid.
17351
556f5c46
L
173522018-05-02 H.J. Lu <hongjiu.lu@intel.com>
17353
17354 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
17355 Restore the pointer into %rdx, after syscall and use %rdx,
17356 instead of %rsi, to restore context.
17357
8b8f32b2
L
173582018-05-02 H.J. Lu <hongjiu.lu@intel.com>
17359
17360 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
17361 Pop the pointer into %rdx after syscall and use %rdx, instead
17362 of %rsi, to restore context.
17363
d6cc1829
L
173642018-05-02 H.J. Lu <hongjiu.lu@intel.com>
17365
17366 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
17367 handlers after setjmp.
17368 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
17369 defined.
17370 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
17371 <libc-pointer-arith.h>.
17372 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
17373 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
17374 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
17375 _JUMP_BUF_SIGSET_BITS_PER_WORD.
17376 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
17377 * sysdeps/x86/__longjmp_cancel.S: New file.
17378 * sysdeps/x86/longjmp.c: Likewise.
17379 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
17380
cf2478d5
AZ
173812018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17382
17383 * NEWS: Add ustat.h deprecation entry.
17384 * bits/ustat.h: Remove file.
17385 * misc/sys/ustat.h: Likewise.
17386 * misc/ustat.h: Likewise.
17387 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
17388 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
17389 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
17390 compatibility mode.
17391 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
17392 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
17393 generic Linux implementation.
17394
dc115e1c
TMQMF
173952018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
17396
17397 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
17398 * math/w_expl_compat.c: Likewise.
17399 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
17400
6b5c8607 174012018-04-30 Raymond Nicholson <rain1@airmail.cc>
340d9652
RN
17402
17403 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
17404
c57bf7c1
AZ
174052018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17406
17407 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
17408 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
17409 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
17410 Remove.
17411 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
17412 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
17413 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
17414 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
17415 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
17416 and SYSCALL_LL64.
17417
06135c33
TMQMF
174182018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
17419
33927914
TMQMF
17420 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
17421
06135c33
TMQMF
17422 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
17423 * math/w_asin_template.c: Likewise.
17424 * math/w_atanh_template.c: Likewise.
17425
3a33b069
GG
174262018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
17427
17428 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
17429 to powerpc/powerpc64/be for big-endian.
17430 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
17431 little-endian.
17432
17433 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
17434 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
17435 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
17436 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
17437 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
17438 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
17439 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
17440 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
17441 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
17442 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
17443 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
17444 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
17445 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
17446 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
17447 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
17448 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
17449 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
17450 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
17451 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
17452 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
17453 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
17454 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
17455 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
17456 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
17457 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
17458 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
17459 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
17460 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
17461 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
17462 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
17463 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
17464 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
17465
17466 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
17467 adjusted to imply powerpc64 and older processors on powerpc64/be.
17468 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
17469 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
17470 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
17471 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
17472 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
17473 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
17474 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
17475 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
17476 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
17477 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
17478 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
17479 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
17480 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
17481 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
17482 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
17483 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
17484 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
17485 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
17486 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
17487 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
17488 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
17489 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
17490 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
17491 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
17492 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
17493 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
17494 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
17495 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
17496 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
17497 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
17498 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
17499
17500 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
17501 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
17502 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
17503 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
17504
17505 * sysdeps/powerpc/powerpc64/be/Implies: New file.
17506 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
17507 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
17508 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
17509
17510 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
17511 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
17512 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
17513 * sysdeps/powerpc/powerpc64le/configure: Likewise.
17514 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
17515 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
17516 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
17517 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
17518 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
17519 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
17520 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
17521
17522 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
17523 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
17524 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
17525 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
17526 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
17527 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
17528 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
17529 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
17530 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
17531 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
17532 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
17533
17534 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
17535 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
17536 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
17537 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
17538 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
17539 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
17540 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
17541 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
17542 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
17543 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
17544 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
17545 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
17546
17547 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
17548 and adjusted to imply olders processors.
17549 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
17550 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
17551 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
17552 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
17553 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
17554 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
17555 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
17556 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
17557 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
17558 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
17559 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
17560
17561 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
17562 powerpc64/le.
17563 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
17564 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
17565
17566 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
17567 powerpc64le.
17568 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
17569 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
17570
17571 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
17572 powerpc64/be.
17573 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
17574 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
17575 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
17576
17577 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
17578 powerpc64 and adjusted.
17579 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
17580 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
17581 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
17582 Likewise.
17583
a3fb6b6b
JM
175842018-04-27 Joseph Myers <joseph@codesourcery.com>
17585
17586 * sysdeps/tile: Remove.
17587 * sysdeps/unix/sysv/linux/tile: Likewise.
17588 * README (tilegx-*-linux-gnu): Remove from list of supported
17589 configurations.
17590 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
17591 contribution of support for generic Linux kernel syscall
17592 interface.
17593 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
17594 tilegx configurations.
17595 (Config.install_linux_headers): Do not handle tile.
17596 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
17597 in comment.
17598 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
17599 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
17600 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
17601 conditional undefine and redefine.
17602 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
17603 in comment.
17604 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
17605 conditional undefine and redefine.
17606
7a6f7478
AJ
176072018-04-26 Aurelien Jarno <aurelien@aurel32.net>
17608
17609 * signal/tst-sigaction.c: New file to test BZ #23069.
17610 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
17611
81b49e96
TMQMF
176122018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
17613
17614 [BZ #22766]
17615 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
17616 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
17617 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
17618 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
17619
7d80f48e
AZ
176202018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17621
17622 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
17623 _DIRENT_MATCHES_DIRENT64 is not defined.
17624 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
17625 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
17626 is defined.
17627 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
17628 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
17629
42a2bf58
JM
176302018-04-25 Joseph Myers <joseph@codesourcery.com>
17631
17632 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
17633 version to GCC 8 branch.
17634
9320ca88
JM
176352018-04-24 Joseph Myers <joseph@codesourcery.com>
17636
5e14bb97
JM
17637 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
17638 (check_no_hidden): Use type of original function when declaring
17639 alias.
17640
9320ca88
JM
17641 * sysdeps/unix/sysv/linux/sys/ptrace.h
17642 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
17643 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
17644 (struct __ptrace_seccomp_metadata): New type.
17645 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
17646 (PTRACE_SECCOMP_GET_METADATA): Likewise.
17647 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
17648 (PTRACE_SECCOMP_GET_METADATA): Likewise.
17649 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
17650 (PTRACE_SECCOMP_GET_METADATA): Likewise.
17651 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
17652 (PTRACE_SECCOMP_GET_METADATA): Likewise.
17653 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
17654 (PTRACE_SECCOMP_GET_METADATA): Likewise.
17655 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
17656 (PTRACE_SECCOMP_GET_METADATA): Likewise.
17657 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
17658 (PTRACE_SECCOMP_GET_METADATA): Likewise.
17659 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
17660 (PTRACE_SECCOMP_GET_METADATA): Likewise.
17661
af7e376b
AZ
176622018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17663
17664 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
17665 defined.
17666 * dirent/versionsort.c (versionsort): Likewise.
17667 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
17668 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
17669 * dirent/versionsort64.c (versionsort64): Likewise.
17670 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
17671 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
17672 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
17673 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
17674 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
17675 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
17676 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
17677 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
17678 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
17679 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
17680 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
17681 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
17682 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
17683 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
17684
da5e0361
JM
176852018-04-23 Joseph Myers <joseph@codesourcery.com>
17686
17687 * elf/elf.h (NT_PPC_PKEY): New macro.
17688
6b5c8607 176892018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
ea76691a
DSN
17690
17691 [BZ #23094]
17692 * localedata/locales/hr_HR: fix thousands_sep and
17693 mon_thousands_sep
17694
573963e3
JM
176952018-04-20 Joseph Myers <joseph@codesourcery.com>
17696
17697 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
17698 (XTABS): Define to TAB3.
17699
c0123b3b
AZ
177002018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17701
0900a849
AZ
17702 * sysdeps/hppa/fpu/libm-test-ulps: Update.
17703
c0123b3b
AZ
17704 * dirent/scandir-tail-common.c: New file.
17705 * dirent/scandir-tail.c: Use scandir-tail-common.c.
17706 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
17707 * dirent/scandir.c: Use scandir-tail-common.c.
17708 * dirent/scandirat.c: Likewise.
17709 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
17710 * dirent/scandir64.c (scandir64): Always build and alias to scandir
17711 if _DIRENT_MATCHES_DIRENT64 is defined.
17712 * dirent/scandirat64.c (scandirat64): Likewise.
17713 * include/dirent.h (__scandir_tail): Only define iff
17714 _DIRENT_MATCHES_DIRENT64 is not defined.
17715 (__scandir64_tail): Define regardless.
17716 (__scandirat, scandirat64): Remove libc_hidden_proto.
17717 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
17718 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
17719 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
17720 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
17721 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
17722 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
17723 * sysdeps/unix/sysv/linux/scandir64.c: New file.
17724
458b94f6
JM
177252018-04-20 Joseph Myers <joseph@codesourcery.com>
17726
17727 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
17728 New macro.
17729 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
17730 Increase to 24.
17731 (_dl_aarch64_cap_flags): Add asimdfhm.
17732
9f0437e8
CLT
177332018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
17734
17735 * sysdeps/nios2/libm-test-ulps: Update.
17736
298d0e31
AZ
177372018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17738
50511ca4
AZ
17739 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
17740 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
17741
298d0e31
AZ
17742 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
17743 requirements.
6b5c8607 17744 (_DIRENT_MATCHES_DIRENT64): Undef
298d0e31
AZ
17745 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
17746 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
17747 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
17748 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
17749 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
17750 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
17751 use getdents64 syscalls as base.
17752 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
17753 symbol if required.
17754 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
17755 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
17756 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
17757 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
17758 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
17759 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
17760 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
17761 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
17762 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
17763 (__get_clockfreq_via_proc_openprom): Use __getdents64.
17764 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
17765
0085be14
SL
177662018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
17767
17768 * scripts/test_printers_common.py (init_test): Disable lock elision.
17769
da796524
SL
177702018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
17771
17772 * math/test-tgmath.c (count_double, count_float,
17773 count_ldouble, count_cdouble, count_cfloat,
17774 count_cldouble): Use volatile int.
17775
0dd25301
ST
177762018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
17777
17778 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
17779 (conformtest-xfail-conds): Add i386-gnu.
cbc256b1 17780 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
0dd25301
ST
17781 i386-gnu.
17782 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
17783 ipc_perm.cuid, ipc_perm.cgid): Likewise.
17784 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
17785 msqid_ds.msg_lrpid): Likewise.
17786 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
17787 Likewise.
17788 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
17789 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
9d9f8f03
ST
17790 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
17791 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
17792 unsigned int.
17793 (struct statvfs64): Likewise.
f55a4fde
ST
17794 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
17795 Likewise.
77b93390
ST
17796 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
17797 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
17798 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
17799 instead of wait_queue.
17800 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
17801 instead of vm_area_struct.
5cd2931a
ST
17802 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
17803 struct sched_param definition to it.
e60c3f2b
ST
17804 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
17805 * bits/types/struct_sched_param.h: New file.
17806 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
17807 <bits/types/struct_sched_param.h> instead of <sched.h>.
17808 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
5cd2931a
ST
17809 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
17810 generic version but include <bits/pthreadtypes.h> to make struct
17811 sigevent's sigev_notify_attributes field a pthread_attr_t*.
ed370924
ST
17812 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
17813 non-compliant.
a564872d
ST
17814 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
17815 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
17816 [__USE_XOPEN] (OFDEL): New macro.
17817 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
a279b8ed 17818 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
5dbfe13b
ST
17819 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
17820 prototypes.
17821 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
17822 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
81b032c8
ST
17823 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
17824 non-compliant.
17825 * sysdeps/i386/sys/ucontext.h: Likewise.
17826 * sysdeps/m68k/sys/ucontext.h: Likewise.
17827 * sysdeps/mips/sys/ucontext.h: Likewise.
17828 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
f00b62ec
ST
17829 * sysdeps/mach/hurd/i386/Makefile
17830 (test-xfail-POSIX/fcntl.h/conform): Add.
17831 (test-xfail-POSIX/signal.h/conform): Add.
17832 (test-xfail-POSIX/semaphore.h/conform): Add.
17833 (test-xfail-POSIX/regex.h/conform): Add.
17834 (test-xfail-POSIX/aio.h/conform): Add.
17835 (test-xfail-POSIX/mqueue.h/conform): Add.
17836 (test-xfail-POSIX/sys/types.h/conform): Add.
17837 (test-xfail-UNIX98/fcntl.h/conform): Add.
17838 (test-xfail-UNIX98/netdb.h/conform): Add.
17839 (test-xfail-UNIX98/signal.h/conform): Add.
17840 (test-xfail-UNIX98/semaphore.h/conform): Add.
17841 (test-xfail-UNIX98/regex.h/conform): Add.
17842 (test-xfail-UNIX98/aio.h/conform): Add.
17843 (test-xfail-UNIX98/ftw.h/conform): Add.
17844 (test-xfail-UNIX98/mqueue.h/conform): Add.
17845 (test-xfail-UNIX98/netinet/in.h/conform): Add.
17846 (test-xfail-UNIX98/sys/wait.h/conform): Add.
17847 (test-xfail-UNIX98/sys/sem.h/conform): Add.
17848 (test-xfail-UNIX98/sys/uio.h/conform): Add.
17849 (test-xfail-UNIX98/sys/socket.h/conform): Add.
17850 (test-xfail-UNIX98/sys/types.h/conform): Add.
17851 (test-xfail-UNIX98/stdlib.h/conform): Add.
17852 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
17853 (test-xfail-POSIX2008/fcntl.h/conform): Add.
17854 (test-xfail-POSIX2008/netdb.h/conform): Add.
17855 (test-xfail-POSIX2008/signal.h/conform): Add.
17856 (test-xfail-POSIX2008/semaphore.h/conform): Add.
17857 (test-xfail-POSIX2008/regex.h/conform): Add.
17858 (test-xfail-POSIX2008/aio.h/conform): Add.
17859 (test-xfail-POSIX2008/mqueue.h/conform): Add.
17860 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
17861 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
17862 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
17863 (test-xfail-POSIX2008/sys/types.h/conform): Add.
17864 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
17865 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
17866 (test-xfail-XOPEN2K/netdb.h/conform): Add.
17867 (test-xfail-XOPEN2K/signal.h/conform): Add.
17868 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
17869 (test-xfail-XOPEN2K/regex.h/conform): Add.
17870 (test-xfail-XOPEN2K/aio.h/conform): Add.
17871 (test-xfail-XOPEN2K/ftw.h/conform): Add.
17872 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
17873 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
17874 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
17875 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
17876 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
17877 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
17878 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
17879 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
17880 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
17881 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
17882 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
17883 (test-xfail-XOPEN2K8/signal.h/conform): Add.
17884 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
17885 (test-xfail-XOPEN2K8/regex.h/conform): Add.
17886 (test-xfail-XOPEN2K8/aio.h/conform): Add.
17887 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
17888 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
17889 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
17890 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
17891 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
17892 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
17893 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
17894 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
17895 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
17896 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
cbc256b1
ST
17897 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
17898 i386-gnu.
17899 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
17900 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
0dd25301 17901
d6397de3
JM
179022018-04-18 Joseph Myers <joseph@codesourcery.com>
17903
17904 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
17905 --enable-obsolete for powerpc-linux-gnuspe.
17906
8323a902
ST
179072018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
17908
3dc0814c 17909 * conform/data/sys/un.h-data: Allow sun_ prefix.
c5896a45 17910 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
d4379e02 17911 prototypes.
c5896a45
ST
17912 * sysdeps/mach/include/mach.h: Likewise.
17913 * sysdeps/mach/include/mach/mig_support.h: Likewise.
17914 * sysdeps/mach/include/mach_error.h: Likewise.
8323a902 17915
743b9c2a
AZ
179162018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17917
17918 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
17919 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
17920 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
17921 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
17922
326e74e7
AS
179232018-04-16 Andreas Schwab <schwab@suse.de>
17924
17925 [BZ #19527]
17926 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
17927
6b5c8607 179282018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
a14d8acd
PM
17929
17930 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
17931 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
17932
a700e7cb
DD
179332018-04-12 DJ Delorie <dj@redhat.com>
17934
17935 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
17936 version to 4.16.
17937
d8abfab7
SL
179382018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
17939
17940 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
17941 (struct kernel_sigaction): Use the same definition on 31bit as is used
17942 on 64bit.
17943
583a27d5
FW
179442018-04-09 Florian Weimer <fweimer@redhat.com>
17945
17946 [BZ #23037]
17947 * resolv/res_send.c (send_dg): Use designated initializers instead
17948 of assignment to zero-initialize other fields of struct mmsghdr.
17949
243f59e5
AZ
179502018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17951
942de61a
AZ
17952 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
17953 __READDIR_ALIAS): Undefine after usage.
17954 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
17955 __READDIR_R_ALIAS): Likewise.
17956 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
17957 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
17958 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
17959 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
17960 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
17961 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
17962 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
17963 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
17964 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
17965 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
17966 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
17967 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
17968 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
17969 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
17970 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
17971 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
17972 * sysdeps/unix/sysv/linux/readdir.c: New file.
17973 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
17974 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
17975 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
17976
243f59e5
AZ
17977 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
17978
690c3475
AS
179792018-04-06 Andreas Schwab <schwab@linux-m68k.org>
17980
17981 * manual/charset.texi (Converting a Character): Fix typo.
17982
6b5c8607 179832018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
b4a5d26d 17984
bbc2062a
AZ
17985 * sysdeps/sparc/fpu/libm-test-ulps: Update.
17986
fa7c6199
AZ
17987 * sysdeps/arm/libm-test-ulps: Update.
17988
b4a5d26d
AZ
17989 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
17990 as base implementation.
17991 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
17992 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
17993 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
17994 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
17995 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
17996 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
17997 remove unrequired definitions and update comments.
17998 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
17999 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
18000 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
18001 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
18002 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
18003 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
18004 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
18005 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
18006 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
18007 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
18008 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
18009 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
18010 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
18011 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
18012 and RESET_SA_RESTORER hooks.
18013
db9e55ff
SL
180142018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
18015
18016 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
18017
cf138b0c
FW
180182018-04-05 Florian Weimer <fweimer@redhat.com>
18019
18020 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
18021 integer overflow, memory leak on error, and indeterminate errno
18022 value. Add a null wide character to terminate the result string.
18023 * manual/charset.texi (Converting a Character): Mention embedded
18024 null bytes in the mbrtowc input string. Explain what happens in
18025 the -2 result case. Do not claim that mbrtowc is simple or
18026 obvious to use. Adjust the description of the code example. Use
18027 @code, not @var, for concrete variables.
18028
0f339252
FW
180292018-04-05 Florian Weimer <fweimer@redhat.com>
18030
18031 * manual/examples/mbstouwcs.c: New file.
18032 * manual/charset.texi (Converting a Character): Include it.
18033
e5f9508a
ST
180342018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
18035
c120981d
ST
18036 * include/dirent.h (dirfd): Add hidden proto.
18037 * dirent/dirfd.c (dirfd): Add hidden def.
18038 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
18039 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
e5f9508a 18040
b2fd61ca
TMQMF
180412018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18042
18043 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
18044 sin, cos and sincos to 1 ULP.
18045
10a446dd
MR
180462018-04-04 Maciej W. Rozycki <macro@mips.com>
18047
e7feec37
MR
18048 [BZ #19818]
18049 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
18050 symbols.
18051 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
18052 * elf/tst-absolute-sym.c: New file.
18053 * elf/tst-absolute-sym-lib.c: New file.
18054 * elf/tst-absolute-sym-lib.lds: New file.
18055 * elf/Makefile (tests): Add `tst-absolute-sym'.
18056 (modules-names): Add `tst-absolute-sym-lib'.
18057 (LDLIBS-tst-absolute-sym-lib.so): New variable.
18058 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
18059 ($(objpfx)tst-absolute-sym): New dependency.
18060
10a446dd
MR
18061 [BZ #19818]
18062 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
18063 parameter.
18064 (SYMBOL_ADDRESS): New macro.
18065 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
18066 SYMBOL_ADDRESS for symbol address calculation.
18067 * elf/dl-runtime.c (_dl_fixup): Likewise.
18068 (_dl_profile_fixup): Likewise.
18069 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
18070 * elf/rtld.c (dl_main): Likewise.
18071 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
18072 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
18073 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
18074 (elf_machine_rela): Likewise.
18075 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
18076 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
18077 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
18078 (elf_machine_rela): Likewise.
18079 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
18080 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
18081 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
18082 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
18083 Likewise.
18084 (elf_machine_reloc): Likewise.
18085 (elf_machine_got_rel): Likewise.
18086 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
18087 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
18088 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
18089 Likewise.
18090 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
18091 Likewise.
18092 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
18093 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
18094 Likewise.
18095 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
18096 Likewise.
18097 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
18098 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
18099 Likewise.
18100 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
18101 Likewise.
18102 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
18103 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
18104
9185f86d
ZW
181052018-04-04 Zack Weinberg <zackw@panix.com>
18106
18107 * sysdeps/generic/internal-signals.h: Include signal.h,
18108 sigsetops.h, and stdbool.h.
18109 (__libc_signal_block_all): Actually block all signals.
18110 (__libc_signal_block_app): Likewise.
18111 (__libc_signal_restore_set): Actually restore the signal mask.
18112
b07367bc
FW
181132018-04-04 Florian Weimer <fweimer@redhat.com>
18114
18115 inet: Actually build and run tst-deadline.
18116 * inet/Makefile (tests-internal): Add tst-deadline and do not
18117 overwrite the variable.
18118 (tests-static-internal): Remove variable.
18119
f2652643
L
181202018-04-03 H.J. Lu <hongjiu.lu@intel.com>
18121
18122 [BZ #22947]
18123 * bits/uio-ext.h (RWF_APPEND): New.
18124 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
18125 * manual/llio.texi: Document RWF_APPEND.
18126 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
18127 (RWF_SUPPORTED): Add RWF_APPEND.
18128
6b5c8607 181292018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
d2dc5467
AZ
18130
18131 [BZ #22391]
18132 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
18133 check for internal nptl signals.
18134 * nptl/sigaction.c (__sigaction): Likewise.
18135 * signal/sigaddset.c (sigaddset): Likewise.
18136 * signal/sigdelset.c (sigdelset): Likewise.
18137 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
18138 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
18139 value.
18140 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
18141 to filter out internal nptl signals.
18142 * signal/tst-sigset.c (do_test): Check ech signal indidually and
18143 also check realtime signals using standard macros.
18144 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
18145 __is_internal_signal, __libc_signal_block_all,
18146 __libc_signal_block_app, __libc_signal_restore_set): New functions.
18147 * sysdeps/nptl/sigfillset.c: Remove file.
18148 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
18149 Change return to bool.
18150 (__clear_internal_signals): Remove SIGTIMER clean since it is
18151 equal to SIGCANEL on Linux.
18152 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
18153 signal set was constructed using standard functions.
18154
511ed56f
ST
181552018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
18156
92846492
ST
18157 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
18158 ifname is too long.
e8ef51b1
ST
18159 * hurd/hurdsig.c (interrupted_reply_port_location): Use
18160 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
ff297b70
ST
18161 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
18162 hidden def.
18163 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
d8440a21
ST
18164 * signal/sigaddset.c: Include <sigsetopts.h>.
18165 * signal/sigdelset.c: Likewise.
511ed56f 18166
e88ecbbf
WD
181672018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18168
18169 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
18170 (__cos): Likewise.
18171 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
18172 logic as sin and cos.
18173
aef3e255
WD
181742018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18175
18176 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
18177 inputs. Return correct sign.
18178 (do_sincos): Remove small input check before do_sin, let do_sin set
18179 the sign.
18180 (__sin): Likewise.
18181 (__cos): Likewise.
18182
72f6e9a3
WD
181832018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18184
18185 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
18186 (do_cos_slow): Likewise.
18187 (do_sin_slow): Likewise.
18188 (reduce_and_compute): Likewise.
18189 (slow): Likewise.
18190 (slow1): Likewise.
18191 (slow2): Likewise.
18192 (sloww): Likewise.
18193 (sloww1): Likewise.
18194 (sloww2): Likewise.
18195 (bslow): Likewise.
18196 (bslow1): Likewise.
18197 (bslow2): Likewise.
18198 (cslow2): Likewise.
18199
64909583
WD
182002018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18201
18202 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
18203 (do_cos): Remove corp parameter and calculations.
18204 (do_sin): Likewise.
18205 (do_sincos): Remove cor variable.
18206 (__sin): Use do_sincos for huge inputs.
18207 (__cos): Likewise.
18208 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
18209 (reduce_and_compute_sincos): Remove unused function.
18210
d9469deb
WD
182112018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18212
18213 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
18214 reduce_sincos, improve accuracy to 136 bits.
18215 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
18216 (__sin): Use improved reduction and simplified do_sincos calculation.
18217 (__cos): Likewise.
18218 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
18219
7a5640f2
WD
182202018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18221
18222 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
18223 (do_sincos_2): Likewise.
18224 (__sin): Remove middle range reduction case.
18225 (__cos): Likewise.
18226 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
18227 reduction case.
18228
19a8b9a3
WD
182292018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18230
18231 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
18232 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
18233 inputs.
18234 (__cos): Likewise.
18235 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
18236
f72aa11d
JM
182372018-04-03 Joseph Myers <joseph@codesourcery.com>
18238
18239 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
19a8b9a3 18240 version to 4.16
f72aa11d 18241
8e4754ed
AZ
182422018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18243
18244 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
18245 Remove definitions.
18246 (opendir_oflags): Use O_DIRECTORY regardless.
18247 (__opendir, __opendirat): Remove need_isdir_precheck usage.
18248 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
18249
8e2666ea
ST
182502018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
18251
18252 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
18253 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
18254 macros.
18255 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
18256 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
18257 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
18258 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
deed72f6
ST
18259 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
18260 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
8e2666ea 18261
ad2b41bf
ST
18262 * htl/Makefile: Bump licence to LGPL 2.1+.
18263 * htl/alloca_cutoff.c: Likewise.
18264 * htl/cthreads-compat.c: Likewise.
18265 * htl/lockfile.c: Likewise.
18266 * htl/pt-alloc.c: Likewise.
18267 * htl/pt-cancel.c: Likewise.
18268 * htl/pt-cleanup.c: Likewise.
18269 * htl/pt-create.c: Likewise.
18270 * htl/pt-dealloc.c: Likewise.
18271 * htl/pt-detach.c: Likewise.
18272 * htl/pt-exit.c: Likewise.
18273 * htl/pt-getattr.c: Likewise.
18274 * htl/pt-initialize.c: Likewise.
18275 * htl/pt-internal.h: Likewise.
18276 * htl/pt-join.c: Likewise.
18277 * htl/pt-self.c: Likewise.
18278 * htl/pt-setcancelstate.c: Likewise.
18279 * htl/pt-setcanceltype.c: Likewise.
18280 * htl/pt-sigmask.c: Likewise.
18281 * htl/pt-spin-inlines.c: Likewise.
18282 * htl/pt-testcancel.c: Likewise.
18283 * htl/pt-yield.c: Likewise.
18284 * htl/tests/test-1.c: Likewise.
18285 * htl/tests/test-10.c: Likewise.
18286 * htl/tests/test-11.c: Likewise.
18287 * htl/tests/test-12.c: Likewise.
18288 * htl/tests/test-13.c: Likewise.
18289 * htl/tests/test-14.c: Likewise.
18290 * htl/tests/test-15.c: Likewise.
18291 * htl/tests/test-16.c: Likewise.
18292 * htl/tests/test-17.c: Likewise.
18293 * htl/tests/test-2.c: Likewise.
18294 * htl/tests/test-3.c: Likewise.
18295 * htl/tests/test-4.c: Likewise.
18296 * htl/tests/test-5.c: Likewise.
18297 * htl/tests/test-6.c: Likewise.
18298 * htl/tests/test-7.c: Likewise.
18299 * htl/tests/test-8.c: Likewise.
18300 * htl/tests/test-9.c: Likewise.
18301 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
18302 * sysdeps/htl/bits/cancelation.h: Likewise.
18303 * sysdeps/htl/bits/pthread-np.h: Likewise.
18304 * sysdeps/htl/bits/pthread.h: Likewise.
18305 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
18306 * sysdeps/htl/bits/semaphore.h: Likewise.
18307 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
18308 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
18309 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
18310 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
18311 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
18312 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
18313 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
18314 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
18315 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
18316 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
18317 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
18318 * sysdeps/htl/old_pt-atfork.c: Likewise.
18319 * sysdeps/htl/pt-atfork.c: Likewise.
18320 * sysdeps/htl/pt-attr-destroy.c: Likewise.
18321 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
18322 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
18323 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
18324 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
18325 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
18326 * sysdeps/htl/pt-attr-getscope.c: Likewise.
18327 * sysdeps/htl/pt-attr-getstack.c: Likewise.
18328 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
18329 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
18330 * sysdeps/htl/pt-attr-init.c: Likewise.
18331 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
18332 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
18333 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
18334 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
18335 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
18336 * sysdeps/htl/pt-attr-setscope.c: Likewise.
18337 * sysdeps/htl/pt-attr-setstack.c: Likewise.
18338 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
18339 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
18340 * sysdeps/htl/pt-attr.c: Likewise.
18341 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
18342 * sysdeps/htl/pt-barrier-init.c: Likewise.
18343 * sysdeps/htl/pt-barrier-wait.c: Likewise.
18344 * sysdeps/htl/pt-barrier.c: Likewise.
18345 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
18346 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
18347 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
18348 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
18349 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
18350 * sysdeps/htl/pt-cond-destroy.c: Likewise.
18351 * sysdeps/htl/pt-cond-init.c: Likewise.
18352 * sysdeps/htl/pt-cond-signal.c: Likewise.
18353 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
18354 * sysdeps/htl/pt-cond-wait.c: Likewise.
18355 * sysdeps/htl/pt-cond.c: Likewise.
18356 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
18357 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
18358 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
18359 * sysdeps/htl/pt-condattr-init.c: Likewise.
18360 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
18361 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
18362 * sysdeps/htl/pt-destroy-specific.c: Likewise.
18363 * sysdeps/htl/pt-equal.c: Likewise.
18364 * sysdeps/htl/pt-getconcurrency.c: Likewise.
18365 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
18366 * sysdeps/htl/pt-getschedparam.c: Likewise.
18367 * sysdeps/htl/pt-getspecific.c: Likewise.
18368 * sysdeps/htl/pt-init-specific.c: Likewise.
18369 * sysdeps/htl/pt-key-create.c: Likewise.
18370 * sysdeps/htl/pt-key-delete.c: Likewise.
18371 * sysdeps/htl/pt-key.h: Likewise.
18372 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
18373 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
18374 * sysdeps/htl/pt-mutex-init.c: Likewise.
18375 * sysdeps/htl/pt-mutex-lock.c: Likewise.
18376 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
18377 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
18378 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
18379 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
18380 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
18381 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
18382 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
18383 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
18384 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
18385 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
18386 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
18387 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
18388 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
18389 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
18390 * sysdeps/htl/pt-mutexattr.c: Likewise.
18391 * sysdeps/htl/pt-once.c: Likewise.
18392 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
18393 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
18394 * sysdeps/htl/pt-rwlock-init.c: Likewise.
18395 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
18396 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
18397 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
18398 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
18399 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
18400 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
18401 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
18402 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
18403 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
18404 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
18405 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
18406 * sysdeps/htl/pt-setconcurrency.c: Likewise.
18407 * sysdeps/htl/pt-setschedparam.c: Likewise.
18408 * sysdeps/htl/pt-setschedprio.c: Likewise.
18409 * sysdeps/htl/pt-setspecific.c: Likewise.
18410 * sysdeps/htl/pt-spin.c: Likewise.
18411 * sysdeps/htl/pt-startup.c: Likewise.
18412 * sysdeps/htl/pthread.h: Likewise.
18413 * sysdeps/htl/sem-close.c: Likewise.
18414 * sysdeps/htl/sem-destroy.c: Likewise.
18415 * sysdeps/htl/sem-getvalue.c: Likewise.
18416 * sysdeps/htl/sem-init.c: Likewise.
18417 * sysdeps/htl/sem-open.c: Likewise.
18418 * sysdeps/htl/sem-post.c: Likewise.
18419 * sysdeps/htl/sem-timedwait.c: Likewise.
18420 * sysdeps/htl/sem-trywait.c: Likewise.
18421 * sysdeps/htl/sem-unlink.c: Likewise.
18422 * sysdeps/htl/sem-wait.c: Likewise.
18423 * sysdeps/hurd/htl/pt-kill.c: Likewise.
18424 * sysdeps/i386/htl/pt-machdep.h: Likewise.
18425 * sysdeps/mach/htl/pt-block.c: Likewise.
18426 * sysdeps/mach/htl/pt-spin.c: Likewise.
18427 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
18428 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
18429 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
18430 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
18431 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
18432 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
18433 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
18434 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
18435 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
18436 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
18437 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
18438 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
18439 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
18440 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
18441 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
18442 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
18443 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
18444 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
18445 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
18446 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
18447 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
18448 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
18449 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
18450 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
18451 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
18452 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
18453 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
18454 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
18455 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
18456 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
18457 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
18458 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
18459 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
18460 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
18461 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
18462 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
18463 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
18464 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
18465 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
18466 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
18467 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
18468 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
18469 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
18470
fb03b04b
ST
18471 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
18472 * README: Remove the mention of out-of-tree patches needed for
18473 GNU/Hurd.
18474
fa9e1555
ST
18475 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
18476 (UTIME_NOW, UTIME_OMIT): Define macros.
18477
f6fb29d2
ST
18478 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
18479 instead of pthread_detach.
18480 (__cthread_fork): Call __pthread_create instead of pthread_create.
18481 (__cthread_keycreate): Call __pthread_key_create instead of
18482 pthread_key_create.
18483 (__cthread_getspecific): Call __pthread_getspecific instead of
18484 pthread_getspecific.
18485 (__cthread_setspecific): Call __pthread_setspecific instead of
18486 pthread_setspecific.
18487 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
18488 __pthread_mutex_unlock instead of pthread_mutex_lock and
18489 pthread_mutex_unlock.
18490 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
18491 ___pthread_get_cleanup_stack.
18492 (__pthread_get_cleanup_stack): New strong alias.
18493 * htl/pt-create.c: Include <pthreadP.h>.
18494 (entry_point): Call __pthread_exit instead of pthread_exit.
18495 (pthread_create): Rename to __pthread_create.
18496 (pthread_create): New strong alias.
18497 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
18498 (pthread_detach): New strong alias.
18499 (__pthread_detach): Call __pthread_cond_broadcast instead of
18500 pthread_cond_broadcast.
fe9748cc
ST
18501 * htl/pt-exit.c: Include <pthreadP.h>.
18502 (__pthread_exit): Call __pthread_setcancelstate and
18503 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
18504 __pthread_get_cleanup_stack.
f6fb29d2
ST
18505 * htl/pt-testcancel.c: Include <pthreadP.h>.
18506 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
18507 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
18508 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
18509 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
18510 pthread_attr_getstacksize.
18511 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
18512 Rename to __pthread_attr_getstackaddr.
18513 (pthread_attr_getstackaddr): New strong alias.
18514 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
18515 Rename to __pthread_attr_getstacksize.
18516 (pthread_attr_getstacksize): New strong alias.
18517 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
18518 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
18519 (pthread_attr_setstack): New strong alias.
18520 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
18521 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
18522 pthread_attr_getstacksize, pthread_attr_setstacksize and
18523 pthread_attr_setstackaddr.
18524 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
18525 Rename to __pthread_attr_setstackaddr.
18526 (pthread_attr_setstackaddr): New strong alias.
18527 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
18528 Rename to __pthread_attr_setstacksize.
18529 (pthread_attr_setstacksize): New strong alias.
18530 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
18531 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
18532 pthread_exit.
18533 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
18534 (__pthread_key_create): New hidden def.
18535 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
18536 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
18537 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
18538 __pthread_exit, __pthread_key_create, __pthread_getspecific,
18539 __pthread_setspecific, __pthread_setcancelstate,
18540 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
18541 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
18542 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
18543 declarations.
18544 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
18545 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
18546 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
18547 (pthread_attr_setstackaddr): New strong alias.
18548 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
18549 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
18550 (pthread_attr_setstacksize): New strong alias.
18551 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
18552 (call_exit): Call __pthread_exit instead of pthread_exit.
18553 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
18554 (_pthread_mutex_init): New hidden definition.
18555 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
18556 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
18557 instead of pthread_attr_init and pthread_attr_setstack.
18558
dba2bdbe
ST
18559 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
18560 __vm_deallocate instead of vm_allocate and vm_deallocate.
18561 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
18562 setenv.
18563 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
18564 of geteuid.
18565 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
18566 strdup.
18567 * hurd/siginfo.c: Include <libioP.h>.
18568 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
18569 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
18570 munmap.
dba2bdbe
ST
18571 * mach/devstream.c: Include <libioP.h>.
18572 (dealloc_ref): Call __mach_port_deallocate instead of
18573 mach_port_deallocate.
18574 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
18575 Call __mach_port_deallocate instead of mach_port_deallocate.
18576 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
18577 pathconf.
18578 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
18579 munmap.
18580 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
18581 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
18582 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
18583 of munmap.
18584 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
18585 of close.
18586 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
18587 instead of sysconf.
18588 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
18589 __clock_gettime instead of clock_gettime.
18590 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
18591 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
18592 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
18593 * sysdeps/unix/bsd/stty.c (stty): Likewise.
18594 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
18595 tcgetattr.
18596 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
18597 __clock_gettime and __nanosleep instead of clock_gettime and
18598 nanosleep.
7a8f45e3
ST
18599 * hurd/catch-signal.c (hurd_catch_signal): Rename to
18600 __hurd_catch_signal.
18601 (hurd_catch_signal): New strong alias.
18602 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
18603 __hurd_catch_signal instead of hurd_catch_signal.
18604 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
18605 * hurd/hurdexec.c (_hurd_init): Add hidden def.
18606 * hurd/hurdinit.c (_hurd_init): Add hidden def.
18607 * hurd/hurdsig.c: Include <mach/mig_support.h>.
18608 (_hurd_thread_sigstate): Add hidden def.
18609 (_hurd_internal_post_signal): Use __mutex_unlock instead of
18610 mutex_unlock.
18611 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
18612 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
18613 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
18614 __hurd_file_name_path_lookup.
18615 (hurd_file_name_path_lookup): New strong alias.
18616 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
18617 hurd_file_name_path_lookup.
18618 * mach/errstring.c (mach_error_type): Add hidden def.
18619 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
18620 * mach/mutex-init.c (__mutex_init): Add hidden def.
18621 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
18622 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
18623 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
18624 * sysdeps/mach/hurd/getcwd.c
18625 (_hurd_canonicalize_directory_name_internal): Rename to
18626 __hurd_canonicalize_directory_name_internal.
18627 (_hurd_canonicalize_directory_name_internal): New strong alias.
18628 (__canonicalize_directory_name_internal, __getcwd): Call
18629 __hurd_canonicalize_directory_name_internal instead of
18630 _hurd_canonicalize_directory_name_internal.
18631 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
18632 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
18633 hidden defs.
18634 * sysdeps/hurd/include/hurd.h: New file.
18635 * sysdeps/hurd/include/hurd/fd.h: New file.
18636 * sysdeps/hurd/include/hurd/signal.h: New file.
18637 * sysdeps/mach/include/lock-intern.h: New file.
18638 * sysdeps/mach/include/mach.h: New file.
18639 * sysdeps/mach/include/mach/mig_support.h: New file.
18640 * sysdeps/mach/include/mach_error.h: New file.
a758c293
ST
18641 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
18642 prototype.
18643 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
18644 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
18645 _HEADER_H_HIDDEN_DEF macro.
18646 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
18647 _hurd_fd_error_signal): Add hidden prototype.
18648 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
18649 hidden def.
82dbf555
ST
18650 * libio/iolibio.h (_IO_puts): New hidden prototype.
18651 * libio/ioputs.c (_IO_puts): New hidden def.
171488a2
ST
18652 * sysdeps/mach/hurd/localplt.data: New file.
18653
33574c17 186542018-04-02 Agustina Arzille <avarzille@riseup.net>
b39d961c
TS
18655 Amos Jeffries <squid3@treenet.co.nz>
18656 David Michael <fedora.dm0@gmail.com>
18657 Marco Gerards <marco@gnu.org>
18658 Marcus Brinkmann <marcus@gnu.org>
18659 Neal H. Walfield <neal@gnu.org>
18660 Pino Toscano <toscano.pino@tiscali.it>
18661 Richard Braun <rbraun@sceen.net>
18662 Roland McGrath <roland@gnu.org>
18663 Samuel Thibault <samuel.thibault@ens-lyon.org>
18664 Thomas DiModica <ricinwich@yahoo.com>
18665 Thomas Schwinge <tschwinge@gnu.org>
33574c17
ST
18666
18667 * htl: New directory.
18668 * sysdeps/htl: New directory.
18669 * sysdeps/hurd/htl: New directory.
18670 * sysdeps/i386/htl: New directory.
18671 * sysdeps/mach/htl: New directory.
18672 * sysdeps/mach/hurd/htl: New directory.
18673 * sysdeps/mach/hurd/i386/htl: New directory.
18674 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
18675 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
18676 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
18677
03e2aa50
ST
186782018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
18679
18680 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
18681 signals in thread created for runing timers.
18682
1aa52ced
FW
186832018-04-01 Florian Weimer <fweimer@redhat.com>
18684
18685 * support/support_format_addrinfo.c (support_format_addrinfo):
18686 Include unknown error number in formatted result.
18687
4d76d3e5
FW
186882018-03-29 Florian Weimer <fweimer@redhat.com>
18689
18690 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
18691 capture SIGBUS.
18692
d39c0a45
AZ
186932018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18694
18695 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
18696 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
18697 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
18698 (__ASSUME_CLONE_BACKWARDS): Define.
18699
cc8a1620
JH
187002018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
18701
57408435 18702 [BZ #23024]
cc8a1620
JH
18703 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
18704 early when linux sentinel value is set.
18705
8bfd94d0
ST
187062018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
18707
18708 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
18709
f178e59f
AS
187102018-03-27 Andreas Schwab <schwab@suse.de>
18711
18712 [BZ #23005]
18713 * resolv/res_send.c (__res_context_send): Return ENOMEM if
18714 allocation of private copy of nsaddr_list fails.
18715
5f45f96a
JM
187162018-03-26 Joseph Myers <joseph@codesourcery.com>
18717
18718 [BZ #16552]
18719 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
18720 * sysdeps/unix/sysv/linux/umount.c: ... here.
18721 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
18722 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
18723 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
18724 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
18725 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
18726 * sysdeps/unix/sysv/linux/umount.S: Likewise.
18727 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
18728
3dfd23eb
AS
187292018-03-26 Andreas Schwab <schwab@suse.de>
18730
18731 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
18732 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
18733 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
18734 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
18735 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
18736 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
18737 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
18738 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
18739 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
18740 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
18741 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
18742 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
18743 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
18744 (R_RISCV_NUM): Define.
18745
fa97d2ab
ST
187462018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
18747
18748 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
18749 TLS declaration of errno.
37be82a0
ST
18750 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
18751 __libc_setup_tls.
18752 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
18753 (ARCH_SETUP_TLS): Likewise.
18754 * sysdeps/mach/hurd/libc-start.h: New file copied from
18755 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
978a6803
ST
18756 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
18757 instead of __libc_setup_tls.
37be82a0 18758 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
978a6803
ST
18759 __libc_setup_tls before initializing libpthread and running _hurd_init
18760 which starts the signal thread.
18761 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
18762 Declare function.
2d813d7b 18763 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
fa97d2ab 18764
b8114edd
L
187652018-03-24 H.J. Lu <hongjiu.lu@intel.com>
18766
18767 [BZ #22998]
18768 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
18769 after it is defined.
18770
cd66c0e5
AS
187712018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
18772 Max Horn <max@quendi.de>
18773
18774 [BZ #22644]
43d4f3d5 18775 CVE-2017-18269
cd66c0e5
AS
18776 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
18777 branch conditions.
18778 * string/test-memmove.c (do_test2): New testcase.
18779
a4406139
JM
187802018-03-22 Joseph Myers <joseph@codesourcery.com>
18781
18782 * sysdeps/generic/frame.h: Remove file.
18783 * sysdeps/arm/frame.h: Likewise.
18784 * sysdeps/hppa/frame.h: Likewise.
18785 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
18786 macro.
18787 (GET_FRAME): Likewise.
18788 (GET_STACK): Likewise.
18789 (CALL_SIGHANDLER): Likewise.
18790 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
18791 Likewise.
18792 (GET_FRAME): Likewise.
18793 (GET_STACK): Likewise.
18794 (CALL_SIGHANDLER): Likewise.
18795 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
18796 (SIGCONTEXT_EXTRA_ARGS): Likewise.
18797 (GET_FRAME): Likewise.
18798 (GET_STACK): Likewise.
18799 (CALL_SIGHANDLER): Likewise.
18800 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
18801 (SIGCONTEXT_EXTRA_ARGS): Likewise.
18802 (GET_FRAME): Likewise.
18803 (GET_STACK): Likewise.
18804 (ADVANCE_STACK_FRAME): Likewise.
18805 (CALL_SIGHANDLER): Likewise.
18806 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
18807 (SIGCONTEXT_EXTRA_ARGS): Likewise.
18808 (GET_FRAME): Likewise.
18809 (GET_STACK): Likewise.
18810 (CALL_SIGHANDLER): Likewise.
18811 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
18812 (SIGCONTEXT_EXTRA_ARGS): Likewise.
18813 (GET_FRAME): Likewise.
18814 (GET_STACK): Likewise.
18815 (CALL_SIGHANDLER): Likewise.
18816 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
18817 (SIGCONTEXT_EXTRA_ARGS): Likewise.
18818 (GET_FRAME): Likewise.
18819 (GET_STACK): Likewise.
18820 (CALL_SIGHANDLER): Likewise.
18821 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
18822 (SIGCONTEXT_EXTRA_ARGS): Likewise.
18823 (GET_FRAME): Likewise.
18824 (GET_STACK): Likewise.
18825 (CALL_SIGHANDLER): Likewise.
18826 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
18827 (SIGCONTEXT_EXTRA_ARGS): Likewise.
18828 (GET_FRAME): Likewise.
18829 (GET_STACK): Likewise.
18830 (CALL_SIGHANDLER): Likewise.
18831 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
18832 (SIGCONTEXT_EXTRA_ARGS): Likewise.
18833 (GET_FRAME): Likewise.
18834 (GET_STACK): Likewise.
18835 (CALL_SIGHANDLER): Likewise.
18836 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
18837 (SIGCONTEXT_EXTRA_ARGS): Likewise.
18838 (GET_FRAME): Likewise.
18839 (GET_STACK): Likewise.
18840 (CALL_SIGHANDLER): Likewise.
18841 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
18842 (SIGCONTEXT_EXTRA_ARGS): Likewise.
18843 (GET_FRAME): Likewise.
18844 (GET_STACK): Likewise.
18845 (CALL_SIGHANDLER): Likewise.
18846 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
18847 (SIGCONTEXT_EXTRA_ARGS): Likewise.
18848 (GET_FRAME): Likewise.
18849 (GET_STACK): Likewise.
18850 (CALL_SIGHANDLER): Likewise.
18851 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
18852 (SIGCONTEXT_EXTRA_ARGS): Likewise.
18853 (FIRST_FRAME_POINTER): Likewise.
18854 (ADVANCE_STACK_FRAME): Likewise.
18855 (GET_STACK): Likewise.
18856 (GET_FRAME): Likewise.
18857 (CALL_SIGHANDLER): Likewise.
18858 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
18859 (SIGCONTEXT_EXTRA_ARGS): Likewise.
18860 (ADVANCE_STACK_FRAME): Likewise.
18861 (GET_STACK): Likewise.
18862 (GET_FRAME): Likewise.
18863 (CALL_SIGHANDLER): Likewise.
18864 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
18865 (SIGCONTEXT_EXTRA_ARGS): Likewise.
18866 (GET_FRAME): Likewise.
18867 (GET_STACK): Likewise.
18868 (CALL_SIGHANDLER): Likewise.
18869 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
18870 (SIGCONTEXT_EXTRA_ARGS): Likewise.
18871 (GET_FRAME): Likewise.
18872 (GET_STACK): Likewise.
18873 (CALL_SIGHANDLER): Likewise.
18874
ffec7b27
JM
188752018-03-21 Joseph Myers <joseph@codesourcery.com>
18876
18877 * sysdeps/x86_64/backtrace.c: Move to ....
18878 * debug/backtrace.c: ... here.
18879 * sysdeps/aarch64/backtrace.c: Remove file.
18880 * sysdeps/alpha/backtrace.c: Likewise.
18881 * sysdeps/hppa/backtrace.c: Likewise.
18882 * sysdeps/ia64/backtrace.c: Likewise.
18883 * sysdeps/mips/backtrace.c: Likewise.
18884 * sysdeps/nios2/backtrace.c: Likewise.
18885 * sysdeps/riscv/backtrace.c: Likewise.
18886 * sysdeps/sh/backtrace.c: Likewise.
18887 * sysdeps/tile/backtrace.c: Likewise.
18888
8a07b0c4
JM
188892018-03-20 Joseph Myers <joseph@codesourcery.com>
18890
d0c5d731
JM
18891 [BZ #22987]
18892 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
18893 function.
18894 (fdimf): Likewise.
18895 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
18896
8a07b0c4
JM
18897 [BZ #17343]
18898 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
18899 possibly overflowing computations.
18900
ceb54b9b
ST
189012018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
18902
18903 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
18904 values from Linux-specific section now that it is in the GNU section.
18905 * sysdeps/gnu/errlist.c: Regenerate.
18906
8d3f9e85
JM
189072018-03-20 Joseph Myers <joseph@codesourcery.com>
18908
18909 * math/Makefile (libm-narrow-fns): Add sub.
18910 (libm-test-funcs-narrow): Likewise.
18911 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
18912 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
18913 * math/gen-auto-libm-tests.c (test_functions): Add sub.
18914 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
18915 (NARROW_SUB_ROUND_TO_ODD): Likewise.
18916 (NARROW_SUB_TRIVIAL): Likewise.
18917 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
18918 macro.
18919 (__dsubl): Likewise.
18920 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
18921 dsub.
18922 (CFLAGS-nldbl-dsub.c): New variable.
18923 (CFLAGS-nldbl-fsub.c): Likewise.
18924 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
18925 __nldbl_dsubl.
18926 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
18927 prototype.
18928 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
18929 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
18930 * math/auto-libm-test-in: Add tests of sub.
18931 * math/auto-libm-test-out-narrow-sub: New generated file.
18932 * math/libm-test-narrow-sub.inc: New file.
18933 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
18934 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
18935 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
18936 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
18937 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
18938 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
18939 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
18940 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
18941 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
18942 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
18943 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
18944 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
18945 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
18946 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
18947 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
18948 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
18949 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
18950 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
18951 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18952 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
18953 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18954 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18955 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18956 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18957 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18958 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18959 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18960 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18961 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18962 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18963 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18964 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18965 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
18966 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
18967 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
18968 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
18969 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
18970 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18971 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18972 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18973 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18974 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18975 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
18976 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
18977 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18978 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18979
d473f015
JM
189802018-03-19 Joseph Myers <joseph@codesourcery.com>
18981
18982 [BZ #20079]
18983 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
18984
fbce6f72
WD
189852018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
18986
18987 * benchtests/bench-timing.h (attribute_hidden): Undefine.
18988
72e7ffc3
RB
189892018-03-18 Richard Braun <rbraun@sceen.net>
18990
18991 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
18992 thread reference.
18993
542c20a1
AA
189942018-03-18 Agustina Arzille <avarzille@riseup.net>
18995
18996 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
18997 (__libc_cleanup_fct): Define function.
18998 (__libc_cleanup_region_start, __libc_cleanup_region_end,
18999 __libc_cleanup_end): Rewrite implementation using
19000 __attribute__ ((__cleanup__)).
19001 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
fb4cc8a0
AA
19002 * hurd/Makefile (routines): Add hurdlock.
19003 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
19004 interface.
19005 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
19006 * hurd/hurdpid.c: Include <lowlevellock.h>
19007 (_S_msg_proc_newids): Use lll_wait to synchronize.
19008 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
19009 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
19010 * mach/Makefile (lock-headers): Remove machine-lock.h.
19011 * mach/lock-intern.h: Include <lowlevellock.h> instead of
19012 <machine-lock.h>.
19013 (__spin_lock_t): New type.
19014 (__SPIN_LOCK_INITIALIZER): New macro.
19015 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
19016 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
19017 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
19018 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
19019 (__mutex_init): Initialize with lll.
19020 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
19021 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
19022 needing lll.
19023 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
19024 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
19025 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
19026 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
19027 (__setpgid): Use lll for synchronization.
19028 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
19029 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
19030 instead of <cthreads.h>.
19031 (_IO_lock_inexpensive): New macro
19032 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
19033 (__libc_lock_self0): New declaration.
19034 (__libc_lock_owner_self): New macro.
19035 (__libc_key_t): Remove type.
19036 (_LIBC_LOCK_INITIALIZER): New macro.
19037 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
19038 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
19039 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
19040 __libc_lock_define_initialized_recursive,
19041 __rtld_lock_define_initialized_recursive,
19042 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
19043 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
19044 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
19045 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
19046 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
19047 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
19048 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
19049 New macros.
19050 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
19051 * hurd/hurdlock.c: New file.
19052 * hurd/hurdlock.h: New file.
19053 * mach/lowlevellock.h: New file
542c20a1 19054
9a37922e
ST
190552018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
19056
19057 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
489999cc
ST
19058 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
19059 when opening a symlink with O_NOFOLLOW.
72103e73
ST
19060 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
19061 path when flags contains O_NOFOLLOW.
19062 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
19063 if flags contains O_DIRECTORY and the result is a directory.
aa218929
ST
19064 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
19065 oneself when the pointer given in D is nul (as set by ext2fs).
20bc801b
ST
19066 * sysdeps/mach/hurd/mlockall.c: New file.
19067 * sysdeps/mach/hurd/munlockall.c: New file.
9a37922e 19068
34e6a869
ST
190692018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
19070
19071 * hurd/hurdsig.c: Include <pthread.h>.
19072 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
19073 get the signal thread stack layout.
dc33bef3
ST
19074 * hurd/Makefile (headers): Remove threadvar.h.
19075 (inline-headers): Remove threadvar.h.
19076 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
19077 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
19078 __hurd_threadvar_max, __hurd_errno_location.
19079 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
19080 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
19081 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
19082 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
19083 unless TLS is not initialized yet, in which case we do not need a
19084 critical section yet anyway.
19085 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
19086 <machine-sp.h>.
19087 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
19088 declarations.
19089 (__hurd_threadvar_index): Remove enum.
19090 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
19091 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
19092 inlines.
19093 (__hurd_reply_port0): New variable declaration.
19094 (__hurd_local_reply_port): New macro.
19095 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
19096 (interrupted_reply_port_location): Add thread_t parameter. Use it
19097 with THREAD_TCB to access thread-local variables.
19098 (_hurdsig_abort_rpcs): Pass ss->thread to
19099 interrupted_reply_port_location.
19100 (_hurd_internal_post_signal): Likewise.
19101 (_hurdsig_init): Use presence of cthread_fork instead of
19102 __hurd_threadvar_stack_mask to start signal thread by hand.
19103 Remove signal thread threadvar initialization.
19104 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
19105 * hurd/sigunwind.c: Include <hurd/threadvar.h>
19106 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
19107 of threadvar.
19108 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
19109 __libc_lock_self0.
19110 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
19111 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
19112 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
19113 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
19114 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
19115 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
19116 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
19117 define variables.
19118 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
19119 <hurd/threadvar.h>.
19120 [IS_IN(rtld)] (rtld_errno): New variable.
19121 [IS_IN(rtld)] (__errno_location): New weak function.
19122 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
19123 * sysdeps/mach/hurd/errno.c: Remove file.
19124 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
19125 (__fork): Remove THREADVAR_SPACE macro and its use.
19126 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
19127 variable.
19128 (init): Do not initialize threadvar.
19129 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
19130 symbol.
19131 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
19132 __hurd_local_reply_port instead of threadvar.
19133 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
19134 _hurd_sigstate fields.
19135 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
19136 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
19137 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
19138 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
19139 instead of threadvar.
19140 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
19141 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
19142 (use_threadvar, global_reply_port): Remove variables.
19143 (__hurd_reply_port0): New variable.
19144 (__mig_get_reply_port): Use __hurd_local_reply_port and
19145 __hurd_reply_port0 instead of threadvar.
19146 (__mig_dealloc_reply_port): Likewise.
19147 (__mig_init): Do not initialize threadvar.
19148 * sysdeps/mach/hurd/profil.c: Fix comment.
c2fb08c7
ST
19149 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
19150 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
19151 cthread_keycreate, cthread_getspecific, cthread_setspecific to
19152 __cthread_fork, __cthread_detach, __pthread_getattr_np,
19153 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
19154 __cthread_setspecific.
19155 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
19156 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
19157 __cthread_t instead of cthread_fork, cthread_detach,
19158 pthread_getattr_np, pthread_attr_getstack.
19159 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
19160 __cthread_keycreate.
19161 (cthread_getspecific): Rename to __cthread_getspecific.
19162 (cthread_setspecific): Rename to __cthread_setspecific.
19163 (__libc_getspecific): Use __cthread_getspecific instead of
19164 cthread_getspecific.
19165 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
19166 __cthread_keycreate instead of cthread_keycreate.
19167 (__libc_setspecific): Use __cthread_setspecific instead of
19168 cthread_setspecific.
19169 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
19170 Likewise.
dd28d4ba
ST
19171 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
19172 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
19173 testing whether it is defined.
34e6a869 19174
f8baf2a2
ST
191752018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
19176
19177 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
19178 Define macro.
19179 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
19180 * sysdeps/mach/i386/thread_state.h
19181 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
19182 i386_THREAD_STATE.
19183 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
19184 i386_THREAD_STATE.
19185 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
19186
19187 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
19188 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
19189
19190 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
19191 macros.
19192 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
19193 descriptor instead of creating a new one.
19194 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
19195
19196 * mach/setup-thread.c: Include <ldsodefs.h>.
19197 (__mach_setup_thread): Call _dl_allocate_tls, pass
19198 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
19199 MACHINE_THREAD_STATE_FLAVOR, before getting
19200 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
19201 MACHINE_THREAD_STATE_FLAVOR with the result.
19202 * hurd/hurdfault.c (_hurdsig_fault_init): Call
19203 MACHINE_THREAD_STATE_FIX_NEW.
19204 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
19205 too. Add original thread parameter.
19206
34ba96b8
JM
192072018-03-16 Joseph Myers <joseph@codesourcery.com>
19208
5d75b75f
JM
19209 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
19210 Remove inline function.
19211
34ba96b8
JM
19212 * sysdeps/i386/fpu/libm-test-ulps: Update.
19213 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19214
22679b2c
WD
192152018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
19216
19217 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
19218 commit.
19219
c429a8d8
JM
192202018-03-15 Joseph Myers <joseph@codesourcery.com>
19221
19222 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
19223 (__sincos_code): Remove define and undefine.
19224 [__FAST_MATH__] (__sincos): Remove inline function.
19225 [__FAST_MATH__] (__sincosf): Remove inline function.
19226 [__FAST_MATH__] (__sincosl): Remove inline function.
19227 (__atan2l): Remove inline functions.
19228 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
19229 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
19230 function.
19231 (floor): Remove inline function.
19232 (ceil): Likewise.
19233 [__FAST_MATH__] (__ldexp_code): Remove macro.
19234 [__FAST_MATH__] (ldexp): Remove inline function.
19235 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
19236 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
19237 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
19238 [__USE_ISOC99] (__lrint_code): Remove macro.
19239 [__USE_ISOC99] (__llrint_code): Likewise.
19240 [__USE_ISOC99] (lrintf): Remove inline function.
19241 [__USE_ISOC99] (lrint): Likewise.
19242 [__USE_ISOC99] (lrintl): Likewise.
19243 [__USE_ISOC99] (llrint): Likewise.
19244 [__USE_ISOC99] (llrintf): Likewise.
19245 [__USE_ISOC99] (llrintl): Likewise.
19246
700593fd
WD
192472018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
19248
19249 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
19250 (__ieee754_sqrtf): Remove.
19251 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
19252 (__ieee754_sqrtf): Remove.
19253 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
19254 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
19255 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
19256 (__ieee754_sqrtf): Remove.
19257 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
19258 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
19259 (sqrtf): Remove.
19260 (sqrtl): Remove.
19261 (__ieee754_sqrt): Remove.
19262 (__ieee754_sqrtf): Remove.
19263 (__ieee754_sqrtl): Remove.
19264 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
19265 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
19266 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
19267 (__ieee754_sqrtf): Remove.
19268 (__ieee754_sqrtl): Remove.
19269
f67a8147
WD
192702018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
19271
19272 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
19273 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
19274 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
19275 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
19276 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
19277 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
19278 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
19279 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
19280 Likewise.
19281 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
19282 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
19283 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
19284 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
19285 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
19286 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
19287 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
19288 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
19289 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
19290 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
19291 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
19292 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
19293 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
19294 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
19295 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
19296 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
19297 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
19298 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
19299 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
19300 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
19301 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
19302 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
19303 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
19304 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
19305 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
19306 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
19307 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
19308 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
19309 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
19310 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
19311 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
19312 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
19313 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
19314 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
19315 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
19316 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
19317 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
19318 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
19319 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
19320 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
19321
1294b189
WD
193222018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
19323
19324 * include/math.h (sqrt): Declare with asm redirect.
19325 (sqrtf): Likewise.
19326 (sqrtl): Likewise.
19327 (sqrtf128): Likewise.
19328 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
19329 nonlib and libnldbl with -fmath-errno.
19330 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
19331 * math/w_sqrt_template.c: Likewise.
19332 * math/w_sqrtf_compat.c: Likewise.
19333 * math/w_sqrtl_compat.c: Likewise.
19334 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
19335 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
19336 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
19337 complex.h.
19338
f1c8185d
WD
193392018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
19340
19341 * benchtests/Makefile: Define _ISOMAC.
19342 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
19343 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
19344 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
19345 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
19346 * benchtests/bench-timing.h: Define attribute_hidden.
19347
b47c3e76
SP
193482018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
19349
19350 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
19351 mov + lsr.
19352
807fee29
RL
193532018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
19354
19355 [BZ #22963]
19356 * localedata/locales/cs_CZ (mon): Rename to...
19357 (alt_mon): This.
19358 (mon): Import from CLDR (genitive case).
19359
e7155a28
RL
193602018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
19361
19362 [BZ #22937]
19363 * localedata/locales/el_CY (abmon): Rename to...
19364 (ab_alt_mon): This.
19365 (abmon): Import from CLDR (abbreviated genitive case).
19366 * localedata/locales/el_GR (abmon): Rename to...
19367 (ab_alt_mon): This.
19368 (abmon): Import from CLDR (abbreviated genitive case).
19369
71d7b121
RL
193702018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
19371
19372 [BZ #22932]
19373 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
19374
a00bffe8
RB
193752018-03-15 Robert Buj <robert.buj@gmail.com>
19376
19377 [BZ #22848]
19378 * localedata/locales/ca_ES (abmon): Rename to...
19379 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
19380 (mon): Rename to...
19381 (alt_mon): This.
19382 (abmon): Import from CLDR (genitive case, month names preceded by
19383 "de" or "d’").
19384 (mon): Likewise.
19385 (abday): Synchronize with CLDR.
19386 (d_t_fmt): Likewise.
19387 (d_fmt): Likewise.
19388 (am_pm): Likewise.
19389
19390 (LC_TIME): Improve indentation.
19391 (LC_TELEPHONE): Likewise.
19392 (LC_NAME): Likewise.
19393 (LC_ADDRESS): Likewise.
19394
f9555d73
JM
193952018-03-14 Joseph Myers <joseph@codesourcery.com>
19396
19397 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
19398 (lrintf): Remove definitions used only with old GCC.
19399 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
19400 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
19401 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
19402 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
19403 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
19404 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
19405 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
19406 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
19407 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
19408 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
19409 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
19410 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
19411 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
19412 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
19413 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
19414 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
19415 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
19416 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
19417 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
19418 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
19419 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
19420 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
19421 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
19422 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
19423 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
19424 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
19425 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
19426 [__FAST_MATH__] (__M_SQRT2): Remove macro.
19427
d46f84de
SP
194282018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
19429
19430 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
19431 instruction to unbreak builds with binutils 2.26 and older.
19432
7108f1f9
SP
194332018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
19434
19435 * sysdeps/aarch64/strncmp.S (count): New macro.
19436 (strncmp): Store misaligned length in SRC1 in COUNT.
19437 (mutual_align): Adjust.
19438 (misaligned8): Load dword at a time when it is safe.
19439
2cc7bad0
ZW
194402018-03-12 Zack Weinberg <zackw@panix.com>
19441
19442 [BZ #1190]
19443 [BZ #19476]
19444 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
19445 if the _IO_EOF_SEEN bit is already set; update commentary.
19446 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
19447 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
19448
19449 * support/support_openpty.c, support/tty.h: New files.
19450 * support/Makefile (libsupport-routines): Add support_openpty.
19451
19452 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
19453 New test cases.
19454 * libio/Makefile (tests): Add tst-fgetc-after-eof.
19455 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
19456
778f1974
DL
194572018-03-12 Dmitry V. Levin <ldv@altlinux.org>
19458
19459 * po/pt_BR.po: Update translations.
19460
6b5c8607 194612018-03-12 David Michael <fedora.dm0@gmail.com>
da6d4404
DM
19462
19463 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
19464 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
19465 get a port to the startup server.
19466
d3da750d
ZW
194672018-03-11 Zack Weinberg <zackw@panix.com>
19468
19469 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
19470 before nldbl-compat.h.
19471
054b72cc
ZW
194722018-03-10 Zack Weinberg <zackw@panix.com>
19473
0d13dfa1
ZW
19474 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
19475 math.h or math_private.h.
19476
19477 * sysdeps/alpha/fpu/s_isnan.c
19478 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
19479 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
19480 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
19481 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
19482 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
19483 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
19484 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
19485 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
19486 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
19487 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
19488 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
19489 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
19490 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
19491 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
19492 Include math_private.h.
19493
19494 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
19495 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
19496 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
19497 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
19498 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
19499 * sysdeps/powerpc/power7/fpu/s_logb.c:
19500 Include math.h and math_private.h.
19501
054b72cc
ZW
19502 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
19503 uses of $at in .set noat / .set at.
19504
6253bacd
L
195052018-03-10 H.J. Lu <hongjiu.lu@intel.com>
19506
19507 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
19508 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
19509 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
19510 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
19511 Likewise.
19512
229855e5
FW
195132018-03-09 Florian Weimer <fweimer@redhat.com>
19514
19515 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
19516 in comment.
19517
9aa5c222
AJ
195182018-03-09 Aurelien Jarno <aurelien@aurel32.net>
19519
19520 [BZ #22919]
19521 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
19522 Add nop before __startcontext, add explaining comments.
19523
3dc21497
AZ
195242018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19525
e921c89e
AZ
19526 [BZ #22926]
19527 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
19528 empty for __SPE__.
19529 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
19530 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
19531 Do not build hardware transactional code for __SPE__.
19532 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
19533 (__lll_trylock_elision): Likewise.
19534 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
19535 (__lll_unlock_elision): Likewise.
19536
d9f26dab 19537 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
3dc21497
AZ
19538 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
19539 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
19540 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
19541 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
19542 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
19543 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
19544 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
19545 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
19546 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
19547 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
19548 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
19549 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
19550 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
19551 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
19552 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
19553 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
19554 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
19555 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
19556 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
19557 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
19558 * sysdeps/unix/sysv/linux/arm/kernel-features.h
19559 (__ASSUME_CLONE_BACKWARDS): Define.
19560 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
19561 __clone2 if __NR_clone2 is defined.
19562 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
19563 (__ASSUME_CLONE_BACKWARDS): Likewise.
19564 * sysdeps/unix/sysv/linux/i386/kernel-features.h
19565 (__ASSUME_CLONE_BACKWARDS): Likewise.
19566 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
19567 (__ASSUME_CLONE2): Likewise.
19568 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
19569 (__ASSUME_CLONE_BACKWARDS3): Likewise.
19570 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
19571 variants and the define architecture can use.
19572 (__ASSUME_CLONE_DEFAULT): Define as default.
19573 * sysdeps/unix/sysv/linux/mips/kernel-features.h
19574 (__ASSUME_CLONE_BACKWARDS): Likewise.
19575 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
19576 (__ASSUME_CLONE_BACKWARDS): Likewise.
19577 * sysdeps/unix/sysv/linux/s390/kernel-features.h
19578 (__ASSUME_CLONE_BACKWARDS2): Likewise.
19579
adc95fb0
SP
195802018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
19581
4e54d918
SP
19582 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
19583
30a81dae
SP
19584 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
19585 time.
19586
adc95fb0
SP
19587 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
19588 (do_test_limit): Likewise.
19589
19590 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
19591 for every implementation.
19592 (do_test): Likewise.
19593
19594 * benchtests/bench-strncmp.c: Convert output to json.
19595
4e9066bc
ST
195962018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
19597
19598 * io/futimens.c: Add missing start-of-file descriptive comment.
19599 * io/utime.c: Likewise.
19600 * misc/futimesat.c: Likewise.
19601 * misc/utimes.c: Likewise.
19602 * sysdeps/mach/hurd/futimesat.c: Likewise.
19603 * sysdeps/mach/hurd/utimes.c: Likewise.
19604 * sysdeps/posix/utime.c: Likewise.
19605 * sysdeps/posix/utimes.c: Likewise.
19606 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
19607 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
19608 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
19609 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
19610
ec1300cf
ST
196112018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
19612
19613 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
19614 hurd_futimes.
19615 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
19616 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
19617 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
19618 (__futimens): Move implementation to...
19619 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
19620 utime_tvalue_from_tspec): ... new helper functions.
19621 (hurd_futimens): New function.
19622 * sysdeps/mach/hurd/futimesat.c: New file.
19623 * sysdeps/mach/hurd/utimensat.c: New file.
19624
bbe762d1
FC
196252018-03-05 Flávio Cruz <flaviocruz@gmail.com>
19626
19627 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
19628 UTIME_OMIT): New macros.
19629 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
19630 before reverting to converting time spec to time value and calling
19631 __file_utimes.
19632 * sysdeps/mach/hurd/utime-helper.c: New file.
19633 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
19634 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
19635 reverting to utime_tvalue_from_tval and __file_utimes.
19636 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
19637 (__lutimes): Just call hurd_futimens after lookup.
19638 * sysdeps/mach/hurd/utimes.c: Likewise.
19639
a1ede3a4
ST
196402018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
19641
19642 * bits/sigaction.h: Add include guard.
19643 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
19644 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
19645 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
19646 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
19647 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
19648 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
19649 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
19650 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
19651 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
19652
6900d2ca
JM
196532018-03-05 Joseph Myers <joseph@codesourcery.com>
19654
19655 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
19656 -Wmaybe-uninitialized for -Os.
19657 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
19658 this disabling.
19659
68448be2
AZ
196602018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19661
5226a81f
AZ
19662 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
19663 __INO_T_MATCHES_INO64_T is defined.
19664 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
19665 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
19666 of definition.
19667 * dirent/alphasort64.c: Likewise.
19668 * dirent/scandir.c: Likewise.
19669 * dirent/scandir64-tail.c: Likewise.
19670 * dirent/scandir64.c: Likewise.
19671 * dirent/scandirat.c: Likewise.
19672 * dirent/scandirat64.c: Likewise.
19673 * dirent/versionsort.c: Likewise.
19674 * dirent/versionsort64.c: Likewise.
19675 * include/dirent.h: Likewise.
19676
fbd01e6c
AZ
19677 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
19678 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
19679 for socketpair endpoint.
19680 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
19681 WRITE_BUFFER_SIZE as buffer size for sending socket.
19682 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
19683 issue on system where send is implemented with sendto syscall.
19684 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
19685 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
19686 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
19687 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
19688
68448be2
AZ
19689 [BZ #21269]
19690 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
19691 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
19692 sa_restorer for vDSO case.
19693 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
19694
eb1ca47e
ST
196952018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
19696
19697 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
e30c291a
ST
19698 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
19699 * hurd/hurd/ioctl.h: Include <mach/port.h>
19700 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
f4bff843
ST
19701 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
19702 <mach/mach_types.h> and <mach/message.h>.
430fd945
ST
19703 (headers): Move mach/param.h to bits/mach/param.h.
19704 * sysdeps/mach/i386/mach/param.h: Move file to ...
19705 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
19706 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
19707 of <mach/param.h>.
3403cb7d
ST
19708 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
19709 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
19710 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
48d34cbc
ST
19711 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
19712 trivial, for C++ conformity.
44c6376c 19713 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
95dfdbd2
ST
19714 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
19715 Process mig output through $(migheadersed).
19716 * hurd/Makefile (migheadersed): Define variable.
a726c87a
ST
19717 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
19718 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
19719 headers.
ba89615d
ST
19720 * hurd/hurd.h: Include <bits/types/sigset_t.h>
19721 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
19722 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
19723 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
19724 <bits/types/sigset_t.h>.
19725 [!defined __USE_GNU]: Do not #error out.
19726 (struct hurd_sigstate): Use _NSIG instead of NSIG.
19727 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
19728 Include <stddef.h> and <bits/types/sigset_t.h>
19729 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
19730 instead of sighandler_t.
974393ea
ST
19731 * stdlib/errno.h (error_t): Move definition to...
19732 * bits/types/error_t.h: ... new header.
19733 * stdlib/Makefile (headers): Add bits/types/error_t.h.
19734 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
19735 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
19736 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
19737 * hurd/hurd.h: Include <bits/types/error_t.h>
19738 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
19739 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
19740 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
19741 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
19742 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
19743 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
8d965cde 19744 * sysdeps/mach/hurd/futimens.c: New file.
eb1ca47e 19745
eaf6753f
AS
197462018-03-03 Andreas Schwab <schwab@linux-m68k.org>
19747
19748 [BZ #22918]
19749 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
19750 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
19751 * nscd/gai.c (__nss_hosts_database): Readd definition.
19752 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
19753 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
19754 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
19755
4dc23804
JM
197562018-03-02 Joseph Myers <joseph@codesourcery.com>
19757
19758 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
19759 (ifunc_one): Likewise.
19760
1c81d55f
DD
197612018-03-01 DJ Delorie <dj@delorie.com>
19762
19763 [BZ #22342]
19764 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
19765 key value.
19766
b717c14f
MR
197672018-03-01 Maciej W. Rozycki <macro@mips.com>
19768
19769 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
19770 `match_pid' parameter.
19771 (td_ta_thr_iter): Update accordingly.
19772
1efe1358
FW
197732018-03-01 Florian Weimer <fweimer@redhat.com>
19774
19775 * nptl/Makefile (install-lib-ldscripts): Remove.
19776 (install): Remove rule.
19777 ($(inst_libdir)/libpthread.so): Likewise.
19778
a527f09c
MF
197792018-03-01 Mike FABIAN <mfabian@redhat.com>
19780
19781 [BZ #22896]
19782 * localedata/locales/an_ES: update month and day names,
19783 improve d_fmt, improve postal_fmt, add country_post,
19784 add country_isbn
19785
35d660b0
MF
197862018-03-01 Mike FABIAN <mfabian@redhat.com>
19787
19788 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
19789 Ukrainian instead of Bulgarian.
19790
1a2f44a8
FW
197912018-03-01 Florian Weimer <fweimer@redhat.com>
19792
19793 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
19794 reference.
19795
bd60ce86
FW
197962018-03-01 Florian Weimer <fweimer@redhat.com>
19797
19798 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
19799 * nptl/Makefile (routines): Add pthread_atfork.
19800 (static-only-routines): Set to pthread_atfork.
19801 (libpthread-routines): Remove pthread_atfork.
19802 (libpthread-static-only-routines): Remove.
19803 (install): Update comment.
19804 (libpthread.so): Do not install libpthread_nonshared.a.
19805 (tests): Do not link with libpthread_nonshared.a.
19806 (generated): Remove libpthread_nonshared.a.
19807 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
19808 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
19809 with libpthread_nonshared.a.
19810
000f290f
JM
198112018-02-28 Joseph Myers <joseph@codesourcery.com>
19812
e2bcf6a8
JM
19813 [BZ #22902]
19814 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
19815 (libc_feholdexcept_setroundf128): New macro.
19816 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
19817
000f290f
JM
19818 [BZ #15105]
19819 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
19820 libc_hidden_def.
19821 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
19822 * include/inttypes.h: New file.
19823
02f2fead
JM
198242018-02-27 Joseph Myers <joseph@codesourcery.com>
19825
19826 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
19827 -Os in two more places.
19828
874c56d7
MF
198292018-02-27 Mike FABIAN <mfabian@redhat.com>
19830
19831 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
19832 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
19833 be sorted correctly at the moment because of a bug.
19834
15973854
MF
198352018-02-27 Mike FABIAN <mfabian@redhat.com>
19836
19837 [BZ #22550] - es_ES locale (and other es_* locales): collation should
19838 treat ñ as a primary different character, sync the collation
19839 for Spanish with CLDR.
19840 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
19841 * localedata/Makefile: Add new test files.
19842 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
19843 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
19844 collation order.
19845 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
19846 * localedata/am_ET.UTF-8.in: New test file.
19847 * localedata/az_AZ.UTF-8.in: Likewise.
19848 * localedata/be_BY.UTF-8.in: Likewise.
19849 * localedata/ber_DZ.UTF-8.in: Likewise.
19850 * localedata/ber_MA.UTF-8.in: Likewise.
19851 * localedata/bg_BG.UTF-8.in: Likewise.
19852 * localedata/br_FR.UTF-8.in: Likewise.
19853 * localedata/cmn_TW.UTF-8.in: Likewise.
19854 * localedata/crh_UA.UTF-8.in: Likewise.
19855 * localedata/csb_PL.UTF-8.in: Likewise.
19856 * localedata/cv_RU.UTF-8.in: Likewise.
19857 * localedata/cy_GB.UTF-8.in: Likewise.
19858 * localedata/dz_BT.UTF-8.in: Likewise.
19859 * localedata/eo.UTF-8.in: Likewise.
19860 * localedata/es_ES.UTF-8.in: Likewise.
19861 * localedata/fa_IR.UTF-8.in: Likewise.
19862 * localedata/fi_FI.UTF-8.in: Likewise.
19863 * localedata/fil_PH.UTF-8.in: Likewise.
19864 * localedata/fur_IT.UTF-8.in: Likewise.
19865 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
19866 * localedata/ha_NG.UTF-8.in: Likewise.
19867 * localedata/ig_NG.UTF-8.in: Likewise.
19868 * localedata/ik_CA.UTF-8.in: Likewise.
19869 * localedata/kk_KZ.UTF-8.in: Likewise.
19870 * localedata/ku_TR.UTF-8.in: Likewise.
19871 * localedata/ky_KG.UTF-8.in: Likewise.
19872 * localedata/ln_CD.UTF-8.in: Likewise.
19873 * localedata/mi_NZ.UTF-8.in: Likewise.
19874 * localedata/ml_IN.UTF-8.in: Likewise.
19875 * localedata/mn_MN.UTF-8.in: Likewise.
19876 * localedata/mr_IN.UTF-8.in: Likewise.
19877 * localedata/mt_MT.UTF-8.in: Likewise.
19878 * localedata/nb_NO.UTF-8.in: Likewise.
19879 * localedata/om_KE.UTF-8.in: Likewise.
19880 * localedata/os_RU.UTF-8.in: Likewise.
19881 * localedata/ps_AF.UTF-8.in: Likewise.
19882 * localedata/ro_RO.UTF-8.in: Likewise.
19883 * localedata/ru_RU.UTF-8.in: Likewise.
19884 * localedata/sc_IT.UTF-8.in: Likewise.
19885 * localedata/se_NO.UTF-8.in: Likewise.
19886 * localedata/sq_AL.UTF-8.in: Likewise.
19887 * localedata/sv_SE.UTF-8.in: Likewise.
19888 * localedata/szl_PL.UTF-8.in: Likewise.
19889 * localedata/tg_TJ.UTF-8.in: Likewise.
19890 * localedata/tk_TM.UTF-8.in: Likewise.
19891 * localedata/tt_RU.UTF-8.in: Likewise.
19892 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
19893 * localedata/ug_CN.UTF-8.in: Likewise.
19894 * localedata/uz_UZ.UTF-8.in: Likewise.
19895 * localedata/vi_VN.UTF-8.in: Likewise.
19896 * localedata/yi_US.UTF-8.in: Likewise.
19897 * localedata/yo_NG.UTF-8.in: Likewise.
19898 * localedata/zh_CN.UTF-8.in: Likewise.
19899 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
19900 file and fix bugs in the collation.
19901 * localedata/locales/az_AZ: Likewise.
19902 * localedata/locales/be_BY: Likewise.
19903 * localedata/locales/ber_DZ: Likewise.
19904 * localedata/locales/ber_MA: Likewise.
19905 * localedata/locales/bg_BG: Likewise.
19906 * localedata/locales/br_FR: Likewise.
19907 * localedata/locales/br_FR@euro: Likewise.
19908 * localedata/locales/ca_ES: Likewise.
19909 * localedata/locales/cns11643_stroke: Likewise.
19910 * localedata/locales/crh_UA: Likewise.
19911 * localedata/locales/cs_CZ: Likewise.
19912 * localedata/locales/csb_PL: Likewise.
19913 * localedata/locales/cv_RU: Likewise.
19914 * localedata/locales/cy_GB: Likewise.
19915 * localedata/locales/da_DK: Likewise.
19916 * localedata/locales/dz_BT: Likewise.
19917 * localedata/locales/en_CA: Likewise.
19918 * localedata/locales/eo: Likewise.
19919 * localedata/locales/es_CU: Likewise.
19920 * localedata/locales/es_EC: Likewise.
19921 * localedata/locales/es_ES: Likewise.
19922 * localedata/locales/es_US: Likewise.
19923 * localedata/locales/et_EE: Likewise.
19924 * localedata/locales/fa_IR: Likewise.
19925 * localedata/locales/fi_FI: Likewise.
19926 * localedata/locales/fil_PH: Likewise.
19927 * localedata/locales/fur_IT: Likewise.
19928 * localedata/locales/gez_ER@abegede: Likewise.
19929 * localedata/locales/ha_NG: Likewise.
19930 * localedata/locales/hr_HR: Likewise.
19931 * localedata/locales/hsb_DE: Likewise.
19932 * localedata/locales/hu_HU: Likewise.
19933 * localedata/locales/ig_NG: Likewise.
19934 * localedata/locales/ik_CA: Likewise.
19935 * localedata/locales/is_IS: Likewise.
19936 * localedata/locales/iso14651_t1_pinyin: Likewise.
19937 * localedata/locales/kk_KZ: Likewise.
19938 * localedata/locales/ku_TR: Likewise.
19939 * localedata/locales/ky_KG: Likewise.
19940 * localedata/locales/ln_CD: Likewise.
19941 * localedata/locales/lt_LT: Likewise.
19942 * localedata/locales/lv_LV: Likewise.
19943 * localedata/locales/mi_NZ: Likewise.
19944 * localedata/locales/ml_IN: Likewise.
19945 * localedata/locales/mn_MN: Likewise.
19946 * localedata/locales/mr_IN: Likewise.
19947 * localedata/locales/mt_MT: Likewise.
19948 * localedata/locales/nb_NO: Likewise.
19949 * localedata/locales/om_KE: Likewise.
19950 * localedata/locales/os_RU: Likewise.
19951 * localedata/locales/pl_PL: Likewise.
19952 * localedata/locales/ps_AF: Likewise.
19953 * localedata/locales/ro_RO: Likewise.
19954 * localedata/locales/ru_RU: Likewise.
19955 * localedata/locales/ru_UA: Likewise.
19956 * localedata/locales/sc_IT: Likewise.
19957 * localedata/locales/se_NO: Likewise.
19958 * localedata/locales/si_LK: Likewise.
19959 * localedata/locales/sq_AL: Likewise.
19960 * localedata/locales/sv_FI: Likewise.
19961 * localedata/locales/sv_FI@euro: Likewise.
19962 * localedata/locales/sv_SE: Likewise.
19963 * localedata/locales/szl_PL: Likewise.
19964 * localedata/locales/tg_TJ: Likewise.
19965 * localedata/locales/ti_ER: Likewise.
19966 * localedata/locales/tk_TM: Likewise.
19967 * localedata/locales/tl_PH: Likewise.
19968 * localedata/locales/tr_TR: Likewise.
19969 * localedata/locales/tt_RU: Likewise.
19970 * localedata/locales/tt_RU@iqtelif: Likewise.
19971 * localedata/locales/ug_CN: Likewise.
19972 * localedata/locales/uk_UA: Likewise.
19973 * localedata/locales/uz_UZ: Likewise.
19974 * localedata/locales/uz_UZ@cyrillic: Likewise.
19975 * localedata/locales/vi_VN: Likewise.
19976 * localedata/locales/yi_US: Likewise.
19977 * localedata/locales/yo_NG: Likewise.
19978
ce6636b0
MF
199792018-02-27 Mike FABIAN <mfabian@redhat.com>
19980
19981 * gen-locales.mk: Make test files which contain @ modifiers in their
19982 name work.
19983 * localedata/gen-locale.sh: Likewise.
19984
ac3a3b4b
MF
199852018-02-27 Mike FABIAN <mfabian@redhat.com>
19986
19987 * posix/tst-fnmatch.input: Fix results for range expressions
19988 for non C locales.
19989 * posix/tst-regexloc.c: Do not use a range expression for
19990 de_DE.ISO-8859-1 locale.
19991
770cbe14
MF
199922018-02-27 Mike FABIAN <mfabian@redhat.com>
19993
19994 * posix/bug-regex5.c: Fix test case because with the new
19995 iso14651_t1_common file, the da_DK locale now has 6 collating elements
19996 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
19997 file.
19998
0fc355d9
MF
199992018-02-27 Mike FABIAN <mfabian@redhat.com>
20000
20001 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
20002 downloaded from ISO, the collation order of @-. and space has changed.
20003 Therefore, this test file needed to be adapted.
20004 * localedata/fr_CA.UTF-8.in: Likewise.
20005 * localedata/fr_FR.UTF-8.in: Likewise.
20006 * localedata/uk_UA.UTF-8.in: Likewise.
20007
43f3893f
MF
200082018-02-27 Mike FABIAN <mfabian@redhat.com>
20009
20010 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
20011 order of ȥ in the new iso14651_t1_common file.
20012 * localedata/pl_PL.UTF-8.in: Likewise.
20013
df74ef78
MF
200142018-02-27 Mike FABIAN <mfabian@redhat.com>
20015
20016 * localedata/locales/iso14651_t1_common: Add sections for various
20017 scripts to the iso14651_t1_common file.
20018
d5adfbad
MF
200192018-02-27 Mike FABIAN <mfabian@redhat.com>
20020
20021 * localedata/locales/iso14651_t1_common: Use the code point of a
20022 character in the fourth collation level instead of IGNORE for all
20023 entries which have IGNORE on all 4 levels.
20024
5f5a9610
MF
200252018-02-27 Mike FABIAN <mfabian@redhat.com>
20026
20027 * localedata/locales/iso14651_t1_common: Add some convenient collation
20028 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
20029 rules similar to those in CLDR.
20030
8a97e900
MF
200312018-02-27 Mike FABIAN <mfabian@redhat.com>
20032
20033 * localedata/locales/iso14651_t1_common: The new version of this
20034 file downloaded from ISO contained several syntax errors which
20035 are fixed by this patch.
20036
bbdd2fba
MF
200372018-02-27 Mike FABIAN <mfabian@redhat.com>
20038
20039 * localedata/locales/iso14651_t1_common: replace all <U.....>
20040 with <U000.....> because glibc understands only 4 digit or 8 digit
20041
1569e551
MF
200422018-02-27 Mike FABIAN <mfabian@redhat.com>
20043
20044 * localedata/locales/iso14651_t1_common: Necessary changes
20045 to make the file downloaded from ISO usable by glibc.
20046
9479b6d5
MF
200472018-02-27 Mike FABIAN <mfabian@redhat.com>
20048
20049 [BZ #14095]
20050 * localedata/locales/iso14651_t1_common: Update file to
20051 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
20052
03b540b3
ST
200532018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
20054
20055 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
20056 of <nptl/pthreadP.h>
20057 (thread_attr_compare): Move function to...
eb937a52 20058 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
03b540b3 20059 * sysdeps/nptl/timer_routines.h: ... new header.
7211eba6 20060 * sysdeps/mach/hurd/gai_misc.h: New file.
03b540b3 20061
20602c72
JM
200622018-02-26 Joseph Myers <joseph@codesourcery.com>
20063
f54d8f73
JM
20064 * string/strcoll_l.c: Include <libc-diag.h>.
20065 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
20066 declarations of seq1 and seq2.
20067
20602c72
JM
20068 [BZ #15105]
20069 * stdlib/atoi.c (atoi): Use libc_hidden_def.
20070 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
20071
f5f473a9
DL
200722018-02-26 Dmitry V. Levin <ldv@altlinux.org>
20073
20074 [BZ #22433]
20075 [BZ #22807]
20076 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
20077 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
20078 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
20079 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
20080 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
20081 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
20082
398c6fdd
TMQMF
200832018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
20084
20085 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
20086 macros used in __ptrace_request.
20087
f5d1f629
L
200882018-02-23 H.J. Lu <hongjiu.lu@intel.com>
20089
20090 [BZ #22792]
20091 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
20092 to $(CC).
20093 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
20094 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
20095 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
20096 <tcb-offsets.h>.
20097
54412d20
JM
200982018-02-23 Joseph Myers <joseph@codesourcery.com>
20099
20100 [BZ #15105]
20101 * ctype/ctype.c (tolower): Use libc_hidden_def.
20102 (toupper): Likewise.
20103 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
20104 [!_ISOMAC] (toupper): Likewise.
20105
81be4b5e
MF
201062018-02-23 Mike FABIAN <mfabian@redhat.com>
20107
20108 * localedata/Makefile: Remove --quiet argument when
20109 installing locales
20110
9d5cfd8e
MF
201112018-02-23 Mike FABIAN <mfabian@redhat.com>
20112
20113 [BZ #17438]
20114 * localedata/locales/pt_BR (LC_TIME): use / instead of -
20115 in d_fmt.
20116 * localedata/locales/pt_PT (LC_TIME): likewise
20117
6c7269f3
MF
201182018-02-23 Mike FABIAN <mfabian@redhat.com>
20119
20120 [BZ #22646]
20121 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
20122 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
20123 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
20124
92aabad9
AZ
201252018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20126
4cdc25a4
AZ
20127 * sysdeps/sparc/fpu/libm-test-ulps: Update.
20128
27761a10
AZ
20129 * nptl/Makefile (routines): Remove unregister-atfork.
20130 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
20131 (fork_handler_alloc): Remove function.
20132 (fork_handlers, fork_handler_init): New variables.
20133 (__fork_lock): Rename to atfork_lock.
20134 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
20135 to use a dynamic array to add/remove atfork handlers.
20136 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
20137 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
20138 Remove declaration.
20139 (fork_handler): Remove next, refcntr, and need_signal member.
20140 (__run_fork_handler_type): New enum.
20141 (__run_fork_handlers): New prototype.
20142 * nptl/register-atfork.c: Remove file.
20143 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
20144
92aabad9
AZ
20145 * sysdeps/nptl/nptl-signals.h: Move to ...
20146 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
20147 comments.
20148 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
20149 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
20150 unnecessary check for SIGTIMER.
20151 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
20152 remove unnecessary removal of SIGTIMER.
20153 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
20154 include-signals.h rename.
20155 * nptl/pthreadP.h: Likewise.
20156 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
20157 __is_internal_signal instead of __nptl_is_internal_signal.
20158
6b5c8607 201592018-02-22 Andrew Waterman <andrew@sifive.com>
fdcc6253 20160
7e04eb29 20161 [BZ # 22884]
fdcc6253
AW
20162 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
20163 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
20164 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
20165 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
20166
8090720a
DD
201672018-02-22 DJ Delorie <dj@delorie.com>
20168
20169 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
20170
6ca24c43
SP
201712018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
20172
20173 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
20174 do_misaligned, not misaligned8.
20175
e9537ddd
SE
201762018-02-22 Steve Ellcey <sellcey@cavium.com>
20177
20178 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
20179 Add memcpy_thunderx2.
20180 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
20181 Increment to 4.
20182 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
20183 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
20184 and IS_THUNDERX2PA checks.
20185 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
20186 Use macro to set name appropriately.
20187 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
20188 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
20189 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
20190 New macro.
20191 (IS_THUNDERX2): New macro.
20192
6e336476
SL
201932018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
20194
20195 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
20196
34957904
ZW
201972018-02-21 Zack Weinberg <zackw@panix.com>
20198
30bfee26
ZW
20199 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
20200 Define here, unconditionally.
20201 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
20202 * libio/libioP.h: Remove #if 0 blocks.
20203 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
20204 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
20205 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
20206
20207 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
20208 Assume weak_alias is always defined.
20209
20210 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
20211 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
20212 Remove #if 0 and #ifdef TODO blocks.
20213 Assume text_set_element is always defined.
20214
20215 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
20216 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
20217 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
20218
df6c012b
ZW
20219 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
20220 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
20221 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
20222 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
20223 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
20224 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
20225 Reformat bit flags for _flags field to make occupancy clearer.
20226 Update commentary.
20227 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
20228 Keep definitions consistent with those in libio/libio.h.
20229
20230 * libio/libio.h (_IO_file_flags): Remove macro.
20231 All uses changed to _flags.
20232
177aad3f
ZW
20233 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
20234 (__HAVE_COLUMN, _IO_BE): Don't define.
20235 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
20236 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
20237 * libio/libioP.h (EOF): Don't define.
20238 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
20239 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
20240 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
20241 testing _IO_UNIFIED_JUMPTABLES.
20242
9964a145
ZW
20243 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
20244 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
20245 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
20246 (_IO_size_t): Delete; all uses changed to size_t.
20247 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
20248 (_IO_off_t): Delete; all uses changed to off_t.
20249 (_IO_off64_t): Delete; all uses changed to off64_t.
20250 (_IO_pid_t): Delete; all uses changed to pid_t.
20251 (_IO_uid_t): Delete; all uses changed to uid_t.
20252 (_IO_wint_t): Delete; all uses changed to wint_t.
20253 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
20254 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
20255 (_IO_cookie_io_functions_t): Delete; all uses changed to
20256 cookie_io_functions_t.
20257 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
20258 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
20259 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
20260 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
20261
20262 * libio/iofopncook.c: Remove unnecessary forward declarations.
20263 * libio/iolibio.h: Correct outdated commentary.
20264 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
20265 * stdio-common/fxprintf.c (__fxprintf_nocancel):
20266 Remove unnecessary casts.
20267 * stdio-common/getline.c: Use _IO_getdelim directly.
20268 Don't redefine ssize_t.
20269 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
20270 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
20271 Remove outdated comments.
20272 * stdio-common/vfscanf.c: Don't redefine va_list.
20273
34957904
ZW
20274 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
20275 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
20276 Remove preprocessor conditionals on _LIBC and __USE_GNU,
20277 which are always true, and __cplusplus, which is always false.
20278
30ac923d
JM
202792018-02-21 Joseph Myers <joseph@codesourcery.com>
20280
039c721a
JM
20281 [BZ #15105]
20282 [BZ #19463]
20283 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
20284 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
20285 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
20286 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
20287 libc_hidden_proto.
20288 [!_ISOMAC] (putc_unlocked): Likewise.
20289 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
20290 define inline if [__USE_EXTERN_INLINES].
20291 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
20292 putc_unlocked.
20293
30ac923d
JM
20294 [BZ #15105]
20295 [BZ #19463]
20296 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
20297 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
20298 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
20299 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
20300 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
20301 getc_unlocked.
20302 * time/tzfile.c (__tzfile_read): Likewise.
20303
7ec5f946
MF
203042018-02-21 Mike FABIAN <mfabian@redhat.com>
20305
20306 [BZ #22517]
20307 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
20308
0d217f40
RJ
203092018-02-21 Rical Jasan <ricaljasan@pacific.net>
20310
20311 * io/fcntl.h: Fix a typo in a comment.
20312
862b4502
RJ
203132018-02-21 Rical Jasan <ricaljasan@pacific.net>
20314
20315 [BZ #22862]
20316 * include/features.h: Add _ISOC11_SOURCE to test for whether to
20317 define _DEFAULT_SOURCE.
20318 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
20319
999a6dab
FW
203202018-02-21 Florian Weimer <fweimer@redhat.com>
20321
20322 [BZ #20890]
20323 * elf/cache.c (save_cache): Call fsync on temporary file before
20324 renaming it.
20325 (save_aux_cache): Call fdatasync on temporary file before renaming
20326 it.
20327
52a01100
FW
203282018-02-21 Florian Weimer <fweimer@redhat.com>
20329
20330 [BZ #22787]
20331 * include/caller.h: Remove file.
20332 * elf/dl-caller.c: Likewise.
20333 * elf/Makefile (dl-routines): Remove dl-caller.
20334 (shared-only-routines): Do not add dl-caller.
20335 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
20336 __check_caller.
20337 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
20338 member.
20339 (dl_open_worker): Do not call __check_caller.
20340 (_dl_open): Do not set caller_dl_open member.
20341 * elf/rtld.c (_rtld_global_ro): Do not initialize
20342 _dl_check_caller member.
20343 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
20344 _dl_check_caller member.
20345 (_dl_check_caller): Remove declaration.
20346 * sysdeps/unix/sysv/linux/dl-execstack.c
20347 (_dl_make_stack_executable): Do not call __check_caller.
20348
b5bf62e4
ST
203492018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
20350
20351 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
315304d2 20352 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
b5bf62e4 20353
e8d190b9
RJ
203542018-02-20 Rical Jasan <ricaljasan@pacific.net>
20355
20356 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
20357 description.
20358
6a3962c4
RJ
203592018-02-20 Rical Jasan <ricaljasan@pacific.net>
20360
da81ae64 20361 [BZ #16335]
6a3962c4
RJ
20362 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
20363 of 199606L, 200112L, and 200809L.
20364 (_XOPEN_SOURCE): Document special values of 600 and 700.
20365 (_ISOC11_SOURCE): Document macro.
20366 (_ATFILE_SOURCE): Likewise.
20367 (_FORTIFY_SOURCE): Likewise.
20368
ec481ad8
JM
203692018-02-19 Joseph Myers <joseph@codesourcery.com>
20370
20371 [BZ #15105]
20372 [BZ #19463]
20373 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
20374 and define as weak alias of __ferror_unlocked. Use
20375 libc_hidden_weak.
20376 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
20377 libc_hidden_proto.
20378 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
20379 function if [__USE_EXTERN_INLINES].
20380 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
20381 ferror_unlocked.
20382
7d15ef84
RJ
203832018-02-19 Rical Jasan <ricaljasan@pacific.net>
20384
20385 [BZ #6889]
20386 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
20387
f8d79582
AJ
203882018-02-18 Aurelien Jarno <aurelien@aurel32.net>
20389
20390 [BZ #22818]
20391 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
20392 the GLIBC_2.1 version.
20393
56456a2a
AJ
203942018-02-18 Aurelien Jarno <aurelien@aurel32.net>
20395
20396 [BZ #21508]
20397 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
20398 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
20399 intl/tst-gettext-de.po from po/de.po by removing the
20400 POT-Creation-Date line.
20401 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
20402 ../po/de.po.
20403 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
20404 ../po/de.po.
20405
13768813
ST
204062018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
20407
20408 * mach/Makefile (headers): Add mach/param.h.
20409 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
20410 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
dd1efd8c
ST
20411 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
20412 (__ptsname_r): Move implementation to...
20413 (__ptsname_internal): ... new function. Add filling the STP
20414 structure.
13768813 20415
6aca1b61
JDA
204162018-02-17 John David Anglin <danglin@gcc.gnu.org>
20417
20418 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
20419 idouble to 1 ULP.
20420
16efad51
RJ
204212018-02-16 Rical Jasan <ricaljasan@pacific.net>
20422
20423 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
20424 syntax.
20425
87245073
SL
204262018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
20427
20428 * nptl/Makefile (tst-mutex8-ENV): Delete.
20429 * nptl/tst-mutex8.c (check_type):
20430 Add runtime check if mutex will be elided.
20431
7fc03cf3
JM
204322018-02-15 Joseph Myers <joseph@codesourcery.com>
20433
db9881ec
JM
20434 [BZ #20980]
20435 [BZ #21234]
20436 * manual/install.texi (Configuring and compiling): Describe
20437 passing CC and CFLAGS on configure command line, not as
20438 environment variables. Use @code markup on those variables.
20439 Specify what options go in CC and what go in CFLAGS. Note the
20440 requirement to compile with optimization.
20441 * INSTALL: Regenerated.
20442
3785b31c
JM
20443 [BZ #18124]
20444 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
20445 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
20446 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
20447 __sigprocmask instead of sigprocmask.
20448 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
20449 Likewise.
20450 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
20451 __sigsetjmp and sigprocmask.
20452
055ac2a7
JM
20453 [BZ #15105]
20454 * include/argz.h (argz_next): Use libc_hidden_proto.
20455 (__argz_next): Likewise.
20456 * string-argz-next.c (__argz_next): Use libc_hidden_def.
20457 (argz_next): Use libc_hidden_weak.
20458
e4452a2d
JM
20459 [BZ #15105]
20460 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
20461 libc_hidden_proto.
20462 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
20463 libc_hidden_def.
20464
499b3153
JM
20465 [BZ #15105]
20466 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
20467 libc_hidden_proto.
20468 * libio/iofputs.c (fputs): Use libc_hidden_weak.
20469
7fc03cf3
JM
20470 [BZ #15105]
20471 [BZ #19463]
20472 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
20473 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
20474 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
20475 (__feof_unlocked): New declaration, and inline function if
20476 [__USE_EXTERN_INLINES].
20477 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
20478 instead of feof_unlocked.
20479 * intl/localealias.c [_LIBC] (FEOF): Likewise.
20480 * nss/nsswitch.c (nss_parse_file): Likewise.
20481 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
20482 Likewise.
20483 * time/getdate.c (__getdate_r): Likewise.
20484 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
20485 Define as macro to call __feof_unlocked.
20486
0c8a67a5
WD
204872018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
20488
20489 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
20490
610ee1fc
WD
204912018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
20492
20493 * math/Makefile: Remove mpexp.c and mplog.c
20494 * sysdeps/i386/fpu/mpexp.c: Delete file.
20495 * sysdeps/i386/fpu/mplog.c: Likewise.
20496 * sysdeps/ia64/fpu/mpexp.c: Likewise.
20497 * sysdeps/ia64/fpu/mplog.c: Likewise.
20498 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
20499 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
20500 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
20501 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
20502 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
20503 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
20504 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
20505 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
20506 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
20507 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
20508 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
20509 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
20510 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
20511 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
20512 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
20513 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
20514
8e7196c8
SL
205152018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
20516
20517 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
20518
4f55ad0b
AZ
205192018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20520
20521 * sysdeps/sh/libm-test-ulps: Update.
20522
261a851c
TMQMF
205232018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
20524
20525 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
20526 idouble to 1 ULP.
20527
e16deca6
ZW
205282018-02-12 Zack Weinberg <zackw@panix.com>
20529
20530 [BZ #19239]
20531 * posix/sys/types.h: Don't include sys/sysmacros.h.
20532 * misc/sys/sysmacros.h: Remove the conditional deprecation
20533 warnings for the macros defined by this header.
20534
de800d83
SN
205352018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
20536
20537 * manual/probes.texi: Remove slowexp probes.
20538 * math/Makefile: Remove slowexp.
20539 * sysdeps/generic/math_private.h (__slowexp): Remove.
20540 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
20541 document error bounds.
20542 * sysdeps/i386/fpu/slowexp.c: Remove.
20543 * sysdeps/ia64/fpu/slowexp.c: Remove.
20544 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
20545 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
20546 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
20547 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
20548 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
20549 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
20550 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
20551 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
20552 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
20553 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
20554 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
20555
c3d466cb
WD
205562018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
20557
20558 [BZ #13932]
20559 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
20560 * benchtests/pow-inputs: Update comment for slow path cases.
20561 * manual/probes.texi (slowpow_p10): Delete removed probe.
20562 (slowpow_p10): Likewise.
20563 * math/Makefile: Remove halfulp.c and slowpow.c.
20564 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
20565 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
20566 (__halfulp): Remove.
20567 (__slowpow): Remove.
20568 * sysdeps/i386/fpu/halfulp.c: Delete file.
20569 * sysdeps/i386/fpu/slowpow.c: Likewise.
20570 * sysdeps/ia64/fpu/halfulp.c: Likewise.
20571 * sysdeps/ia64/fpu/slowpow.c: Likewise.
20572 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
20573 improve comments and add error analysis.
20574 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
20575 (power1): Remove function:
20576 (log1): Remove error argument, add error analysis.
20577 (my_log2): Remove function.
20578 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
20579 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
20580 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
20581 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
20582 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
20583 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
20584 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
20585 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
20586 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
20587 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
20588 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
20589 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
20590 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
20591 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
20592
7bb087bd
ST
205932018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
20594
20595 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
20596 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
20597
2fd4bbaa
DL
205982018-02-10 Dmitry V. Levin <ldv@altlinux.org>
20599
20600 [BZ #22433]
20601 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
20602 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
20603 and PTRACE_SETHBPREGS.
20604
402ecba4
ZW
206052018-02-10 Zack Weinberg <zackw@panix.com>
20606
20607 [BZ #22830]
20608 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
20609 correctly.
20610 * malloc/tst-malloc-stats-cancellation.c: New test case.
20611 * malloc/Makefile: Add new test case.
20612
4f5b921e
WD
206132018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
20614
20615 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
20616
a85b70db
JM
206172018-02-10 Joseph Myers <joseph@codesourcery.com>
20618
d8742dd8
JM
20619 * math/Makefile (libm-narrow-fns): Add add.
20620 (libm-test-funcs-narrow): Likewise.
20621 * math/Versions (GLIBC_2.28): Add narrowing add functions.
20622 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
20623 * math/gen-auto-libm-tests.c (test_functions): Add add.
20624 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
20625 (NARROW_ADD_ROUND_TO_ODD): Likewise.
20626 (NARROW_ADD_TRIVIAL): Likewise.
20627 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
20628 macro.
20629 (__daddl): Likewise.
20630 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
20631 dadd.
20632 (CFLAGS-nldbl-dadd.c): New variable.
20633 (CFLAGS-nldbl-fadd.c): Likewise.
20634 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
20635 __nldbl_daddl.
20636 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
20637 prototype.
20638 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
20639 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
20640 * math/auto-libm-test-in: Add tests of add.
20641 * math/auto-libm-test-out-narrow-add: New generated file.
20642 * math/libm-test-narrow-add.inc: New file.
20643 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
20644 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
20645 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
20646 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
20647 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
20648 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
20649 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
20650 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
20651 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
20652 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
20653 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
20654 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
20655 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
20656 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
20657 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
20658 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
20659 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
20660 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
20661 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20662 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
20663 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
20664 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
20665 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
20666 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
20667 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
20668 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
20669 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
20670 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
20671 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
20672 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
20673 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
20674 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
20675 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
20676 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
20677 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
20678 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
20679 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
20680 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
20681 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
20682 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
20683 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
20684 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
20685 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
20686 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
20687 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
20688 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
20689
a85b70db
JM
20690 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
20691 (f128-pairs): New variable.
20692 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
20693 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
20694 to CFLAGS.
20695 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
20696 Also make tests add $(f128-loader-link) to gnulib-tests.
20697
6a1ff640
DD
206982018-02-09 DJ Delorie <dj@redhat.com>
20699
20700 [BZ #22827]
20701 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
20702 64-bit ELF type for 64-bit ELF objects.
20703
bfd47587
JM
207042018-02-09 Joseph Myers <joseph@codesourcery.com>
20705
31958338
JM
20706 * math/libm-test-driver.c (snan_tests_arg): New variable.
20707 * math/libm-test-support.h (snan_tests_arg): New declaration.
20708 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
20709
8e554659
JM
20710 * math/Makefile (test-type-pairs): New variable.
20711 (test-type-pairs-f64xf128-yes): Likewise.
20712 (tests): Add test-narrow-macros.
20713 (libm-test-funcs-narrow): New variable.
20714 (libm-test-c-narrow): Likewise.
20715 (generated): Add $(libm-test-c-narrow).
20716 (libm-tests-base-narrow): New variable.
20717 (libm-tests-narrow): Likewise.
20718 (libm-tests): Add $(libm-tests-narrow).
20719 (libm-tests-for-type): Handle $(libm-tests-narrow).
20720 (libm-test-c-narrow-obj): New variable.
20721 ($(libm-test-c-narrow-obj)): New rule.
20722 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
20723 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
20724 $(o-iterator) to set dependencies and CFLAGS.
20725 * math/gen-auto-libm-tests.c: Document use for narrowing
20726 functions.
20727 (output_for_one_input_case): Take argument NARROW.
20728 (generate_output): Likewise. Update call to
20729 output_for_one_input_case.
20730 (main): Take --narrow option. Update call to generate_output.
20731 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
20732 (apply_lit): Update call to _apply_lit.
20733 (apply_arglit): New function.
20734 (parse_args): Handle "a" arguments.
20735 (parse_auto_input): Handle format names using ":".
20736 * math/README.libm-test: Document "a" parameter type.
20737 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
20738 (ARG_TYPE_TRUE_MIN): Likewise.
20739 (ARG_TYPE_MAX): Likwise.
20740 (ARG_MIN_EXP): Likewise.
20741 (ARG_MAX_EXP): Likewise.
20742 (ARG_MANT_DIG): Likewise.
20743 (TEST_COND_arg_ibm128): Likewise.
20744 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
20745 (TEST_COND_arg_fmt): New macro.
20746 (init_max_error): Update prototype.
20747 * math/libm-test-support.c (test_ibm128): New variable.
20748 (init_max_error): Take argument testing_ibm128 and set test_ibm128
20749 instead of using [TEST_COND_ibm128] conditional.
20750 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
20751 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
20752 [TEST_NARROW] (TEST_MSG): New definition.
20753 (arg_plus_zero): New macro.
20754 (arg_minus_zero): Likewise.
20755 (arg_plus_infty): Likewise.
20756 (arg_minus_infty): Likewise.
20757 (arg_qnan_value_pl): Likewise.
20758 (arg_qnan_value): Likewise.
20759 (arg_snan_value_pl): Likewise.
20760 (arg_snan_value): Likewise.
20761 (arg_max_value): Likewise.
20762 (arg_min_value): Likewise.
20763 (arg_min_subnorm_value): Likewise.
20764 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
20765 (RUN_TEST_LOOP_aa_f): New macro.
20766 (TEST_SUFF): New macro.
20767 (TEST_SUFF_STR): Likewise.
20768 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
20769 (TEST_COND_any_ibm128): New macro.
20770 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
20771 this_func. Update call to init_max_error.
20772 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
20773 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
20774 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
20775 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
20776 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
20777 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
20778 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
20779 * math/test-math-scalar.h (TEST_NARROW): Likewise.
20780 * math/test-math-vector.h (TEST_NARROW): Likewise.
20781 * math/test-arg-double.h: New file.
20782 * math/test-arg-float128.h: Likewise.
20783 * math/test-arg-float32x.h: Likewise.
20784 * math/test-arg-float64.h: Likewise.
20785 * math/test-arg-float64x.h: Likewise.
20786 * math/test-arg-ldouble.h: Likewise.
20787 * math/test-math-narrow.h: Likewise.
20788 * math/test-narrow-macros.c: Likewise.
20789 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
20790 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
20791 test-narrow-macros-ldbl-64.
20792 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
20793
63716ab2
JM
20794 * math/bits/mathcalls-narrow.h: New file.
20795 * include/bits/mathcalls-narrow.h: Likewise.
20796 * math/math-narrow.h: Likewise.
20797 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
20798 (__MATHCALL_NARROW_ARGS_2): Likewise.
20799 (__MATHCALL_NARROW_ARGS_3): Likewise.
20800 (__MATHCALL_NARROW_NORMAL): Likewise.
20801 (__MATHCALL_NARROW_REDIR): Likewise.
20802 (__MATHCALL_NARROW): Likewise.
20803 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
20804 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
20805 defined.
20806 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
20807 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
20808 (libm-narrow-fns): New variable.
20809 (libm-narrow-types-basic): Likewise.
20810 (libm-narrow-types-ldouble-yes): Likewise.
20811 (libm-narrow-types-float128-yes): Likewise.
20812 (libm-narrow-types-float128-alias-yes): Likewise.
20813 (libm-narrow-types): Likewise.
20814 (libm-routines): Add narrowing functions.
20815 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
20816 (libc_feholdexcept_setroundf128): New macro.
20817 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
20818 * sysdeps/ieee754/float128/float128_private.h: Include
20819 <math/math-narrow.h>.
20820 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
20821 Undefine and redefine.
20822 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
20823 (libm_alias_float_ldouble): Undefine and redefine.
20824 (libm_alias_double_ldouble): Likewise.
20825
bfd47587
JM
20826 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
20827
3f8d9d58
WD
208282018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
20829
20830 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
20831 FPCR/FPSR.
20832
1f6676d7
RJ
208332018-02-09 Rical Jasan <ricaljasan@pacific.net>
20834
20835 * manual/creature.texi: Convert references to gcc.info to gcc.
20836 * manual/stdio.texi: Likewise.
20837 * manual/string.texi: Likewise.
20838
d80441dd
JM
208392018-02-07 Joseph Myers <joseph@codesourcery.com>
20840
15081be9
JM
20841 [BZ #17979]
20842 * posix/bits/types.h (__int_least8_t): New typedef.
20843 (__uint_least8_t): Likewise.
20844 (__int_least16_t): Likewise.
20845 (__uint_least16_t): Likewise.
20846 (__int_least32_t): Likewise.
20847 (__uint_least32_t): Likewise.
20848 (__int_least64_t): Likewise.
20849 (__uint_least64_t): Likewise.
20850 * sysdeps/generic/stdint.h (int_least8_t): Define using
20851 __int_least8_t.
20852 (int_least16_t): Define using __int_least16_t.
20853 (int_least32_t): Define using __int_least32_t.
20854 (int_least64_t): Define using __int_least64_t.
20855 (uint_least8_t): Define using __uint_least8_t.
20856 (uint_least16_t): Define using __uint_least16_t.
20857 (uint_least32_t): Define using __uint_least32_t.
20858 (uint_least64_t): Define using __uint_least64_t.
20859 * wcsmbs/uchar.h: Include <bits/types.h>.
20860 (char16_t): Define using __uint_least16_t conditional only on
20861 [!__USE_ISOCXX11].
20862 (char32_t): Define using __uint_least32_t conditional only on
20863 [!__USE_ISOCXX11].
20864 * wcsmbs/test-char-types.c: New file.
20865 * wcsmbs/Makefile (tests): Add test-char-types.
20866
d80441dd
JM
20867 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
20868 version to 4.0.1.
20869
6c6c962a
ZW
208702018-02-07 Zack Weinberg <zackw@panix.com>
20871
63fb8f9a
ZW
20872 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
20873 Delete all contents except for definitions of _G_HAVE_MMAP and
20874 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
20875 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
20876 sysdeps/unix/sysv/linux/_G_config.h. Make same content
20877 change as above.
20878
20879 * libio/libio.h: Don't include bits/_G_config.h here.
20880 Include stddef.h with __need_wchar_t defined. Include
20881 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
20882 Define _IO_iconv_t here, directly.
20883 Don't define _IO_HAVE_ST_BLKSIZE.
20884 * libio/libioP.h: Include _G_config.h here. Move include of
20885 shlib-compat.h up with rest of includes. Simplify conditionals
20886 controlling definition of _IO_JUMPS_OFFSET.
20887
20888 * csu/init.c: Remove always-true #if around entire file.
20889 Don't include stdio.h. Set _IO_stdin_used to hardwired
20890 constant 0x20001, and update commentary.
20891 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
20892 Replace all uses of _G_va_list with __gnuc_va_list.
20893 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
20894 instead of #if _IO_HAVE_ST_BLKSIZE.
20895 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
20896 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
20897 not #ifdef.
20898
6c6c962a
ZW
20899 * libio/bits/libio.h: Move back to libio/libio.h and adjust
20900 multiple-include guard to match.
20901 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
20902 into this file.
20903 Remove preprocessor conditionals that are always true and/or
20904 redundant to other preprocessor conditionals in the same nest.
20905 Include shlib-compat.h unconditionally.
20906 Error out if _LIBC is not defined, or if _ISOMAC is defined,
20907 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
20908 defined after including stdio.h.
20909 Use __BEGIN_DECLS/__END_DECLS.
20910
20911 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
20912 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
20913 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
20914
a4fea3f2
ZW
209152018-02-07 Zack Weinberg <zackw@panix.com>
20916
20917 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
20918 New single-type headers split from _G_config.h.
20919 * libio/bits/types/cookie_io_functions_t.h
20920 * libio/bits/types/struct_FILE.h
20921 New single-type headers split from libio.h.
20922
20923 * libio/Makefile: Install the above new headers. Don't install
20924 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
20925 bits/libio-ldbl.h.
20926 * libio/_G_config.h, libio/libio.h: Delete file.
20927
20928 * libio/bits/libio.h: Remove improper-inclusion guard.
20929 Include stdio.h and don't repeat anything that it does.
20930 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
20931 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
20932 __io_read_fn as cookie_read_function_t,
20933 __io_write_fn as cookie_write_function_t,
20934 __io_seek_fn as cookie_seek_function_t,
20935 __io_close_fn as cookie_close_function_t,
20936 and _IO_cookie_io_functions_t as cookie_io_functions_t.
20937 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
20938 here, in the "compatibility defines" section. Remove an #if 0
6c6c962a 20939 block. Use the "body" macros from bits/types/struct_FILE.h to
a4fea3f2
ZW
20940 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
20941 and _IO_ferror_unlocked.
20942 Move prototypes of __uflow and __overflow...
20943
20944 * libio/stdio.h: ...here. Don't include bits/libio.h.
20945 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
6c6c962a 20946 directly from stdarg.h. Include bits/types/__fpos_t.h,
a4fea3f2
ZW
20947 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
20948 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
20949 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
20950 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
20951 cookie_io_functions_t, not _IO_cookie_io_functions_t;
20952 __ssize_t, not _IO_ssize_t. Unconditionally define
20953 BUFSIZ as 8192 and EOF as (-1).
20954
20955 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
20956 macros from bits/types/struct_FILE.h instead of _IO_* macros
20957 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
20958 instead of _IO_ssize_t.
20959 * libio/bits/stdio2.h: Similarly.
20960
20961 * libio/iolibio.h: Add multiple-include guard.
20962 Include bits/libio.h after stdio.h.
20963 * libio/libioP.h: Add multiple-include guard.
20964 Include stdio.h and bits/libio.h before iolibio.h.
20965
6c6c962a 20966 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
a4fea3f2
ZW
20967 * include/bits/types/cookie_io_functions_t.h
20968 * include/bits/types/struct_FILE.h: New wrappers.
20969
20970 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
6c6c962a
ZW
20971 Get definitions of _G_fpos_t and _G_fpos64_t from
20972 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
20973 respectively. Remove improper-inclusion guards.
a4fea3f2 20974
6c6c962a 20975 * conform/data/stdio.h-data: Update expectations of va_list.
a4fea3f2 20976 * scripts/check-installed-headers.sh: Remove special case for
6c6c962a 20977 libio.h and _G_config.h.
a4fea3f2 20978
ce999220
JM
209792018-02-07 Joseph Myers <joseph@codesourcery.com>
20980
8b4a1182
JM
20981 [BZ #15105]
20982 [BZ #19463]
20983 * include/sys/sysmacros.h [!_ISOMAC]
20984 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
20985 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
20986 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
20987 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
20988 libc_hidden_proto.
20989 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
20990 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
20991 Likewise.
20992 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
20993 Undefine and redefine to add use __gnu_dev_ prefix.
20994 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
20995 Likewise.
20996 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
20997 and define as hidden inline function.
20998 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
20999 Likewise.
21000 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
21001 Likewise.
21002 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
21003 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
21004 (gnu_dev_minor): Likewise.
21005 (gnu_dev_makedev): Likewise.
21006 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
21007 makedev.
21008 * posix/wordexp.c (exec_comm_child): Likewise.
21009 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
21010 instead of minor and __gnu_dev_major instead of major.
21011 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
21012 __gnu_dev_major instead of major.
21013 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
21014 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
21015 instead of gnu_dev_minor.
21016 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
21017 (SLAVE_P): Likewise.
21018 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
21019 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
21020 instead of major.
21021
ce999220
JM
21022 [BZ #21313]
21023 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
21024 in another place.
21025 * locale/weightwc.h (findidx): Likewise.
21026
b7c83ca3
WD
210272018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
21028
21029 * manual/probes.texi (slowlog): Delete documentation of removed probe.
21030 (slowlog_inexact): Likewise
21031 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
21032 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
21033
388ff7bd
IG
210342018-02-07 Igor Gnatenko <ignatenko@redhat.com>
21035
21036 [BZ #22797]
21037 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
21038 missing second underscore to parameter name.
21039
663e7d78
JM
210402018-02-06 Joseph Myers <joseph@codesourcery.com>
21041
0d40d0ec
JM
21042 [BZ #14508]
21043 [BZ #15512]
21044 [BZ #17082]
21045 [BZ #20530]
21046 * bits/byteswap.h: Update file comment. Do not include
21047 <bits/byteswap-16.h>.
21048 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
21049 constant.
21050 (__bswap_16): Define as inline function.
21051 (__bswap_constant_32): Reformat definition.
21052 (__bswap_32): Always define as inline function, not macro, using
21053 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
21054 otherwise __bswap_constant_32.
21055 (__bswap_constant_64): Reformat definition. Do not use
21056 __extension__ here.
21057 (__bswap_64): Always define as inline function, not macro. Use
21058 __extension__ on function definition. Use __builtin_bswap64 if
21059 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
21060 * string/test-endian-file-scope.c: New file.
21061 * string/test-endian-sign-conversion.c: Likewise.
21062 * string/Makefile (headers): Remove bits/byteswap-16.h.
21063 (tests): Add test-endian-file-scope and
21064 test-endian-sign-conversion.
21065 (CFLAGS-test-endian-sign-conversion.c): New variable.
21066 * bits/byteswap-16.h: Remove file.
21067 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
21068 * sysdeps/ia64/bits/byteswap.h: Likewise.
21069 * sysdeps/m68k/bits/byteswap.h: Likewise.
21070 * sysdeps/s390/bits/byteswap-16.h: Likewise.
21071 * sysdeps/s390/bits/byteswap.h: Likewise.
21072 * sysdeps/tile/bits/byteswap.h: Likewise.
21073 * sysdeps/x86/bits/byteswap-16.h: Likewise.
21074 * sysdeps/x86/bits/byteswap.h: Likewise.
21075
383e87c9
JM
21076 [BZ #17721]
21077 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
21078 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
21079 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
21080 199901L] (__restrict): Define to restrict.
21081
d92c2759
JM
21082 [BZ #19667]
21083 * string/testcopy.c: Include <support/support.h>. Do not include
21084 <malloc.h>. Use <support/test-driver.c>.
21085 (main): Rename to do_test. Make static. Use xmalloc instead of
21086 malloc.
21087
625fb764
JM
21088 [BZ #13575]
21089 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
21090 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
21091 (SSIZE_MAX): Define to INT_MAX.
21092 * posix/test-ssize-max.c: New file.
21093 * posix/Makefile (tests): Add test-ssize-max.
21094
02325d6c
JM
21095 [BZ #19668]
21096 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
21097 <support/support.h>. Do not include <malloc.h>.
21098 (query_auxv): Use xmalloc instead of malloc.
21099
663e7d78
JM
21100 [BZ #14553]
21101 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
21102 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
21103 instead of loff_t.
21104
6b5c8607 211052018-02-06 Florian Weimer <fweimer@redhat.com>
6d7aa2b5
FW
21106
21107 [BZ #18023]
21108 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
21109 Use scratch_buffer instead of extend_alloca.
21110
de6da571
ZW
211112018-02-06 Zack Weinberg <zackw@panix.com>
21112
26c07172
ZW
21113 * libio/stdio.h: Don't define getc or putc as macros.
21114 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
21115 not _IO_getc and _IO_putc.
21116
de6da571
ZW
21117 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
21118 * stdio-common/tstgetln.c: Don't redefine ssize_t.
21119
92669d6e
JM
211202018-02-06 Joseph Myers <joseph@codesourcery.com>
21121
c2b84df9
JM
21122 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
21123 (TCP_FASTOPEN_NO_COOKIE): Likewise.
21124
41376f8c
JM
21125 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
21126
d28bf648
JM
21127 [BZ #14890]
21128 * elf/elf.h (NT_PRFPREG): New macro.
21129 (NT_S390_VXRS_LOW): Likewise.
21130 (NT_S390_VXRS_HIGH): Likewise.
21131 (NT_S390_GS_CB): Likewise.
21132 (NT_S390_GS_BC): Likewise.
21133 (NT_S390_RI_CB): Likewise.
21134
e76def72
JM
21135 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
21136 (MAP_SYNC): New macro.
21137 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
21138 Likewise.
21139 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
21140 (MAP_SYNC): Likewise.
21141 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
21142 (MAP_SYNC): Likewise.
21143 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
21144 (MAP_SYNC): Likewise.
21145 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
21146 (MAP_SYNC): Likewise.
21147 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
21148 (MAP_SYNC): Likewise.
21149 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
21150 (MAP_SYNC): Likewise.
21151 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
21152 Likewise.
21153 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
21154 Likewise.
21155
92669d6e
JM
21156 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
21157 (MAP_SHARED_VALIDATE): New macro.
21158 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
21159 (MAP_SHARED_VALIDATE): Likewise.
21160
6a5cac49
L
211612018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21162
21163 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
21164 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
21165 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
21166
b44e0dfb
L
211672018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21168
21169 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
21170 (DT_NUM): Updated to 35.
21171
f886c16c
L
211722018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21173
21174 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
21175 __builtin_expect with __glibc_likely and __glibc_unlikely.
21176 (elf_machine_rela): Likewise.
21177 (elf_machine_lazy_rel): Likewise.
21178
06fbebff
L
211792018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21180
21181 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
8f4bf93f 21182 __builtin_expect with __glibc_likely and __glibc_unlikely.
06fbebff
L
21183 (elf_machine_lazy_rel): Likewise.
21184
371b220f
L
211852018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21186
21187 [BZ #22638]
21188 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
21189 SHARED.
65805016 21190 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
371b220f 21191
f649a1b8
AS
211922018-02-05 Andreas Schwab <schwab@suse.de>
21193
21194 [BZ #22761]
21195 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
21196 string.
21197
9fdb340e
ST
211982018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
21199
21200 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
21201 not check against PTHREAD_STACK_MIN.
21202
09e56b9e
SM
212032018-02-02 Sean McKean <smckean83@gmail.com>
21204
21205 [BZ #22735]
21206 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
21207
d4b4a00a
FW
212082018-02-02 Florian Weimer <fweimer@redhat.com>
21209
21210 [BZ #22753]
21211 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
21212 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
21213 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
21214 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
21215 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
21216 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
21217 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
21218 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
21219 * manual/llio.texi (Scatter-Gather): Mention offset -1.
21220 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
21221 * misc/tst-preadvwritev2.c (do_test): Call it.
21222 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
21223
3dfcbfa1
SP
212242018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
21225
84c94d2f
SP
21226 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
21227
96e6a716
SP
21228 * benchtests/bench-memcmp.c: Print json instead of plain text.
21229
3dfcbfa1
SP
21230 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
21231 every test run.
21232
049375e2
JM
212332018-02-01 Joseph Myers <joseph@codesourcery.com>
21234
39f898c6
JM
21235 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
21236 version to 4.15.
21237 (s390_sthyi): New syscall.
21238
6f9a3dd8
JM
21239 * sysdeps/generic/ldbl-classify-compat.h: New file.
21240 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
21241 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
21242 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
21243 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
21244 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
21245 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
21246 * sysdeps/ieee754/dbl-64/s_finite.c: Include
21247 <ldbl-classify-compat.h>.
21248 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
21249 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
21250 <ldbl-classify-compat.h>.
21251 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
21252 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
21253 <ldbl-classify-compat.h>.
21254 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
21255 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
21256 <ldbl-classify-compat.h>.
21257 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
21258 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
21259 <ldbl-classify-compat.h>.
21260 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
21261 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
21262 <ldbl-classify-compat.h>.
21263 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
21264 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
21265 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
21266 * sysdeps/m68k/coldfire/math_private.h: Remove file.
21267 * sysdeps/microblaze/math_private.h: Likewise.
21268 * sysdeps/nios2/math_private.h: Likewise.
21269 * sysdeps/sh/math_private.h: Likewise.
21270
eb65a3d5
JM
21271 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
21272 * sysdeps/m68k/coldfire/math_private.h: ... here.
21273 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
21274 * sysdeps/tile/math_private.h: Likewise.
21275 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
21276 Remove macro.
21277 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
21278 Likewise.
21279
8a6bb1d0
JM
21280 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
21281 Remove macro.
21282 (libc_fetestexcept): Likewise.
21283 (libc_feupdateenv_test): Likewise.
21284 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
21285 (libc_fetestexcept): Likewise.
21286 (libc_feupdateenv_test): Likewise.
21287 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
21288 (libc_fetestexcept): Likewise.
21289 (libc_feupdateenv_test): Likewise.
21290 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
21291 (libc_fetestexcept): Likewise.
21292 (libc_feupdateenv_test): Likewise.
21293
ae1fcb7b
JM
21294 * sysdeps/generic/math_private.h
21295 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
21296 New inline function.
21297 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
21298 Likewise.
21299
b1c347e2
JM
21300 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
21301 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
21302 * sysdeps/generic/math_private.h
21303 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
21304 inline function.
21305 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
21306 Likewise.
21307 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
21308 Likewise.
21309 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
21310 Likewise.
21311 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
21312 Likewise.
21313 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
21314 Likewise.
21315 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
21316 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
21317 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
21318 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
21319 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
21320 (__fegetenv): Likewise.
21321 (fesetenv): Likewise.
21322 (__fesetenv): Likewise.
21323 (feupdateenv): Likewise.
21324 (__feupdateenv): Likewise.
21325 (fegetround): Likewise.
21326 (__fegetround): Likewise.
21327 (fesetround): Likewise.
21328 (__fesetround): Likewise.
21329
d23a4962
JM
21330 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
21331 (feraiseexcept): New macro.
21332 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
21333 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
21334 Remove macro.
21335 (__feraiseexcept): Likewise.
21336 (feclearexcept): Likewise.
21337 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
21338 (__feraiseexcept): Likewise.
21339 (feclearexcept): Likewise.
21340 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
21341 (__feraiseexcept): Likewise.
21342 (feclearexcept): Likewise.
21343 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
21344 (__feraiseexcept): Likewise.
21345 (feclearexcept): Likewise.
21346 (fetestexcept): Likewise.
21347
5f167950
JM
21348 * sysdeps/m68k/coldfire/math-tests.h: New file.
21349
ccc9035a
JM
21350 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
21351 * sysdeps/m68k/bits/fenv.h: ... here.
21352 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
21353 not define.
21354 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
21355 Likewise.
21356 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
21357 Likewise.
21358 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
21359 Likewise.
21360 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
21361 Likewise.
21362 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
21363 Define to 0.
21364 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
21365 (__FE_UNDEFINED): New enum constant.
21366 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
21367 Do not define.
21368 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
21369 Likewise.
21370 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
21371 Likewise.
21372 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
21373 to match generic bits/fenv.h.
21374 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
21375 Do not define.
21376
049375e2
JM
21377 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
21378 packed on bits.
21379 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
21380 * soft-fp/half.h (union _FP_UNION_H): Likewise.
21381 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
21382 * soft-fp/single.h (union _FP_UNION_S): Likewise.
21383
f1d73681
CD
213842018-02-01 Carlos O'Donell <carlos@redhat.com>
21385 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
21386 Joseph Myers <joseph@codesourcery.com>
21387
21388 [BZ #21314]
21389 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
21390 (__log1p): Disable -Wmaybe-uninitialized for -Os around
21391 computation using c.
21392 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
21393 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
21394 computation using c.
21395
242cbc90
DL
213962018-02-01 Dmitry V. Levin <ldv@altlinux.org>
21397
086ee48e
DL
21398 * version.h (RELEASE): Set to "development".
21399 (VERSION): Set to "2.27.9000".
21400 * NEWS (2.28): New section.
21401
23158b08
DL
21402 * version.h (RELEASE): Set to "stable".
21403 (VERSION): Set to "2.27".
21404 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
21405
242cbc90
DL
21406 * NEWS: Add the list of bugs fixed in 2.27.
21407
673e2305
AZ
214082018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21409
21410 * stdlib/test-atexit-race-common.c (do_test): Check stack size
21411 against PTHREAD_STACK_MIN.
21412
ced64e01
DL
214132018-02-01 Dmitry V. Levin <ldv@altlinux.org>
21414
21415 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
21416 New entries.
21417 (Rafal Luzynski, Andreas Schwab): Update.
21418
c10c9a5e
RL
214192018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
21420
21421 [BZ #10871]
21422 * NEWS: List the languages which actually use the alternative
21423 months feature in this release. Also explain that "alt_mon" and
21424 "ab_alt_mon" are optional.
21425
650ba77a
IM
214262018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
21427
21428 [BZ #22765]
21429 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
21430
93493119
DL
214312018-01-31 Dmitry V. Levin <ldv@altlinux.org>
21432
21433 * manual/install.texi (Tools for Compilation): Update the newest
21434 versions of gcc, binutils, texinfo, gawk, bison, and sed.
21435 * INSTALL: Regenerated.
21436
363e4519 214372018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
407552cf
ST
21438
21439 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
21440 instead of __builtin_expect.
21441
d7536874
FW
214422018-01-30 Florian Weimer <fweimer@redhat.com>
21443
21444 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
21445 data.
21446 * nss/tst-nss-getpwent.c (do_test): Likewise.
21447
9a1b267d
RL
214482018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
21449
21450 [BZ #10871]
21451 * localedata/locales/hr_HR (mon): Rename to...
21452 (alt_mon): This.
21453 (mon): Import from CLDR (genitive case).
21454 (d_t_fmt): Update the comment.
21455
9a179328
AS
214562018-01-29 Andreas Schwab <schwab@linux-m68k.org>
21457
21458 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
21459 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
21460 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
21461
e01e0ddc
ST
214622018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
21463
21464 * mach/Versions: Fix version when __mach_host_self_ was added.
21465 * hurd/Versions: Fix version when _hurd_exec_paths was added.
21466 * sysdeps/mach/hurd/i386/ld.abilist: New file.
21467 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
21468 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
21469 * sysdeps/mach/hurd/i386/libc.abilist: New file.
21470 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
21471 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
21472 * sysdeps/mach/hurd/i386/libm.abilist: New file.
21473 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
21474 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
21475 * sysdeps/mach/hurd/i386/librt.abilist: New file.
21476 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
ba729de6
ST
21477 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
21478 || to respect codestyle.
2aadb705
ST
21479 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
21480 (do_test_bz20181): Rename accordingly.
406e7a0a
ST
21481 * malloc/malloc.c: Include <assert.h>.
21482 (assert): Do not define.
21483 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
99dfbef4
ST
21484 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
21485 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
ac56adbb 21486 * sysdeps/mach/hurd/hp-timing.h: New file.
ef4cf463 21487 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
e01e0ddc 21488
521877e1
PD
214892018-01-29 Darius Rad <darius@bluespec.com>
21490
21491 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
21492
532cf290
PD
214932018-01-29 Palmer Dabbelt <palmer@sifive.com>
21494
21495 * sysdeps/init_array/crti.S (.section .init_array): Add
21496 PREINIT_FUNCTION when defined.
40ca951b 21497 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
4215e276 21498 * config.h.in: Regenerate.
ba9e25a6
PD
21499 * manual/platform.texi: Add RISC-V documenation for
21500 __riscv_flush_icache.
c776fa11
PD
21501 * sysdeps/riscv/__longjmp.S: New file.
21502 * sysdeps/riscv/backtrace.c: Likewise.
21503 * sysdeps/riscv/bits/endian.h: Likewise.
21504 * sysdeps/riscv/bits/setjmp.h: Likewise.
21505 * sysdeps/riscv/bits/wordsize.h: Likewise.
21506 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
21507 * sysdeps/riscv/bsd-setjmp.c: Likewise.
21508 * sysdeps/riscv/dl-trampoline.S: Likewise.
21509 * sysdeps/riscv/gccframe.h: Likewise.
21510 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
21511 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
21512 * sysdeps/riscv/machine-gmon.h: Likewise.
21513 * sysdeps/riscv/memusage.h: Likewise.
21514 * sysdeps/riscv/setjmp.S: Likewise.
21515 * sysdeps/riscv/sys/asm.h: Likewise.
21516 * sysdeps/riscv/tls-macros.h: Likewise.
33712660
PD
21517 * sysdeps/riscv/dl-tls.h: New file.
21518 * sysdeps/riscv/libc-tls.c: Likewise.
21519 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
21520 * sysdeps/riscv/nptl/tls.h: Likewise.
21521 * sysdeps/riscv/stackinfo.h: Likewise.
67236aeb
PD
21522 * sysdeps/riscv/bits/fenv.h: New file.
21523 * sysdeps/riscv/e_sqrtl.c: Likewise.
21524 * sysdeps/riscv/fpu_control.h: Likewise.
21525 * sysdeps/riscv/math-tests.h: Likewise.
21526 * sysdeps/riscv/nofpu/Implies: Likewise.
21527 * sysdeps/riscv/sfp-machine.h: Likewise.
21528 * sysdeps/riscv/tininess.h: Likewise.
b2cb5e02
PD
21529 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
21530 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
21531 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
21532 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
21533 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
21534 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
21535 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
21536 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
21537 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
21538 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
21539 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
21540 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
21541 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
21542 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
21543 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
21544 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
21545 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
21546 * sysdeps/riscv/rvd/s_finite.c: Likewise.
21547 * sysdeps/riscv/rvd/s_fma.c: Likewise.
21548 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
21549 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
21550 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
21551 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
21552 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
21553 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
21554 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
21555 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
21556 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
21557 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
21558 * sysdeps/riscv/rvf/fegetround.c: Likewise.
21559 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
21560 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
21561 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
21562 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
21563 * sysdeps/riscv/rvf/fesetround.c: Likewise.
21564 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
21565 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
21566 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
21567 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
21568 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
21569 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
21570 * sysdeps/riscv/rvf/math_private.h: Likewise.
21571 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
21572 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
21573 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
21574 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
21575 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
21576 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
21577 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
21578 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
21579 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
21580 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
21581 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
21582 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
21583 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
21584 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
21585 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
21586 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
d1c09b24
PD
21587 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
21588 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
21589 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
21590 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
36960f0c
PD
21591 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
21592 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
21593 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
21594 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
21595 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
21596 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
21597 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
21598 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
21599 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
7f33b09c
PD
21600 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
21601 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
21602 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
21603 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
21604 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
21605 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
21606 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
21607 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
21608 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
21609 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
21610 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
21611 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
21612 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
21613 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
21614 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
21615 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
21616 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
21617 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
21618 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
21619 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
21620 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
21621 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
ee53fed9
PD
21622 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
21623 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
21624 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
2268c433
PD
21625 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
21626 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
21627 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
21628 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
21629 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
21630 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
21631 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
21632 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
21633 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
21634 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
21635 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
21636 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
21637 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
21638 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
c5061557
PD
21639 * sysdeps/riscv/Implies: New file.
21640 * sysdeps/riscv/Makefile: Likewise.
21641 * sysdeps/riscv/configure: Likewise.
21642 * sysdeps/riscv/configure.ac: Likewise.
21643 * sysdeps/riscv/nptl/Makefile: Likewise.
21644 * sysdeps/riscv/preconfigure: Likewise.
21645 * sysdeps/riscv/rv64/Implies-after: Likewise.
21646 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
21647 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
21648 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
21649 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
21650 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
21651 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
21652 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
21653 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
21654 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
21655 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
21656 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
0fd5d876
PD
21657 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
21658 (Config): Likewise.
532cf290 21659
cdd14619
FW
216602018-01-29 Florian Weimer <fweimer@redhat.com>
21661
21662 [BZ #22701]
21663 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
21664 libnsl_hidden_proto.
21665 * include/rpcsvc/yp.h (yp_xdrall): Declare with
21666 libnsl_hidden_proto.
21667 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
21668 * nis/Makefile (libnsl-routines): Add nss-default only for
21669 build-obsolete-nsl.
21670 * nis/nis_defaults.c (__nis_default_ttl): Add
21671 libnsl_hidden_nolink_def.
21672 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
21673 declaration.
21674 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
21675 * nis/ypclnt.c (yp_maplist): Likewise.
21676
b7ccb5de
RN
216772018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
21678
21679 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
21680 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
21681
522623e4
JM
216822018-01-29 Joseph Myers <joseph@codesourcery.com>
21683
e3aa6999
JM
21684 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
21685 clean -dxfq for git updates when replacing sources.
21686
088de7d0
JM
21687 * scripts/build-many-glibcs.py (Config.build_gcc): Use
21688 --disable-libcilkrts unconditionally, not just for the final GCC
21689 build for Hurd.
21690
522623e4
JM
21691 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
21692 version to 4.15.
21693
8b406f87
RL
216942018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
21695
21696 [BZ #10871]
21697 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
21698 case).
21699
105e90bd
RL
217002018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
21701
21702 [BZ #10871]
21703 * localedata/locales/be_BY (mon): Rename to...
21704 (alt_mon): This, then synchronize with CLDR (nominative case).
21705 (abmon): Rename to...
21706 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
21707 (mon): Import from CLDR (genitive case).
21708 (abmon): Likewise.
21709 * localedata/locales/be_BY@latin (mon): Rename to...
21710 (alt_mon): This.
21711 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
21712
21713 * localedata/locales/be_BY@latin (lang_name): Reworded to
21714 "biełaruskaja mova".
21715
561cb414
RL
217162018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
21717
21718 [BZ #10871]
21719 * localedata/locales/el_CY (mon): Renamed to...
21720 (alt_mon): This.
21721 (mon): Import from CLDR (genitive case).
21722 * localedata/locales/el_GR: Likewise.
21723
f7bdf30d
RL
217242018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
21725
21726 [BZ #10871]
21727 * localedata/locales/ru_RU (mon): Rename to...
21728 (alt_mon): This.
21729 (abmon): Rename to...
21730 (ab_alt_mon): This.
21731 (mon): Import from CLDR (genitive case).
21732 (abmon): Copy from the old content except the 5th month which is
21733 now in the genitive case, even when abbreviated.
21734 * localedata/locales/ru_UA: Likewise.
21735 * time/tst-strptime.c (day_tests): Add an actual example of
21736 a difference between %b and %Ob in Russian.
21737
85285a0c
ST
217382018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
21739
21740 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
da8168df
ST
21741 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
21742 a `c' variable.
3538a4b6 21743 * resolv/res-close.c: Include <stdlib.h>.
b29848b9
ST
21744 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
21745 <sys/wait.h>, <time.h>, <sys/uio.h>.
21746 (NOT_CANCEL_H): Add inclusion guard.
4f66dc23 21747 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
147d1dbb
ST
21748 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
21749 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
21750 return 0.
05ebfe87
ST
21751 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
21752 vm_address_t * to ElfW(Addr) * for dl_main parameter.
61a3a8c6
ST
21753 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
21754 instead of void *.
21755 * sysdeps/pthread/timer_create.c (timer_create): Do not use
21756 timer_ptr2id to cast struct timer_node * to void *.
d4d5b2dd
ST
21757 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
21758 --disable-libcilkrts to gcc configure.
19fd8d0d
ST
21759 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
21760 and make them the default for now.
903d3633
ST
21761 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
21762 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
7dab2d00
ST
21763 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
21764 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
21765 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
21766 MACH_IPC_COMPAT.
06fac9f5
ST
21767 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
21768 __task_terminate would ever return successfully.
f8177753
ST
21769 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
21770 to global scope.
41cdb1eb
ST
21771 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
21772 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
660b7bff
ST
21773 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
21774 critical section to make code simpler and avoid warning.
21775 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
21776 critical section to make code simpler and avoid warning.
844bf921
ST
21777 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
21778 const char * instead of char *.
f8bee46c
ST
21779 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
21780 __hurd_file_name_split, hurd_file_name_split,
21781 __hurd_directory_name_split, hurd_directory_name_split,
21782 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
21783 hurd_file_name_path_lookup): Make lookup function parameter take a
21784 const char *name instead of char *name.
21785 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
21786 __hurd_directory_name_split): Likewise.
21787 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
21788 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
40066975
ST
21789 * sysdeps/mach/hurd/check_native.c: New file.
21790 * sysdeps/mach/hurd/check_pf.c: New file.
7c5b106d
ST
21791 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
21792 (__freeifaddrs): Define macro to freeifaddrs.
5f982b0b
ST
21793 * sysdeps/mach/hurd/libhurduser.abilist: New file.
21794 * sysdeps/mach/libmachuser.abilist: New file.
cef7166a
ST
21795 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
21796 (do_test_bz20181): Rename accordingly.
21797 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
3fc1ecf9
ST
21798 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
21799 <sys/mount.h>.
28f6186f
ST
21800 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
21801 version only if __USE_EXTERN_INLINES is defined.
21802 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
21803 __hurd_sockfail): Likewise.
21804 (_hurd_fd_get): Always declare functions, and provide inline versions
21805 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
21806 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
21807 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
21808 _hurd_port_set): Always declare functions, and provide inline versions
21809 only if __USE_EXTERN_INLINES and _LIBC are defined and
21810 IS_IN(libc).
21811 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
21812 _hurd_critical_section_unlock): Likewise.
21813 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
21814 * __hurd_threadvar_location): Likewise.
21815 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
21816 _hurd_userlink_clear): Likewise.
21817 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
21818 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
21819 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
21820 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
21821 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
21822 __spin_lock_locked): Likewise.
21823 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
21824 __spin_lock_locked): Likewise.
21825 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
21826 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
21827 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
21828 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
21829 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
b1025304
ST
21830 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
21831 _POSIX_NO_TRUNC): Define to 0.
a902a086
ST
21832 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
21833 check size against PTHREAD_STACK_MIN.
625ba81e
ST
21834 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
21835 IS_IN(libpthread)]: Include <sigsetops.h>.
2e52dff4
ST
21836 * mach/Makefile (user-interfaces): Add mach/gnumach.
21837 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
21838 * sysdeps/mach/configure (mach_interface_list): Regenerate.
80463dc6
ST
21839 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
21840 instead of invalid -1.
1f89ac71
ST
21841 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
21842 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
21843 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
21844 <net/ppp_defs.h>.
85285a0c 21845
1fd1e27c 218462018-01-27 Thomas Schwinge <tschwinge@gnu.org>
84814e2a
TS
21847
21848 * hurd/fcntl-internal.h: New file.
21849
3854c5a8
JC
218502018-01-27 James Clarke <jrtc27@jrtc27.com>
21851
7e23a7dd
JC
21852 * sysdeps/hppa/fpu/libm-test-ulps: Update.
21853
3854c5a8
JC
21854 * sysdeps/alpha/fpu/libm-test-ulps: Update.
21855
5503f413
AS
218562018-01-26 Andreas Schwab <schwab@linux-m68k.org>
21857
21858 [BZ #22701]
21859 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
21860 Build only shared objects.
21861
caaf7804
CD
218622018-01-26 Carlos O'Donell <carlos@redhat.com>
21863
21864 * README: Update for hppa.
21865
1cbf818d
PM
218662018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
21867
caaf7804
CD
21868 * sysdeps/sparc/fpu/libm-test-ulps: Update
21869 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
1cbf818d 21870
caaf7804 218712018-01-26 Carlos O'Donell <carlos@redhat.com>
2ec0e7ea
CD
21872
21873 Revert:
21874
21875 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
21876
21877 [BZ #22563]
21878 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
21879 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
21880 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
21881 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
21882 to feature_1.
21883
21884 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
21885
21886 [BZ #22563]
21887 * bits/types/__cancel_jmp_buf_tag.h: New file.
21888 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
21889 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
21890 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
21891 * nptl/Makefile (headers): Add
21892 bits/types/__cancel_jmp_buf_tag.h.
21893 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
21894 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
21895 * sysdeps/nptl/pthread.h: Include
21896 <bits/types/__cancel_jmp_buf_tag.h>.
21897 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
21898 __cancel_jmp_buf.
21899 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
21900
65f6c94e
RL
219012018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
21902
21903 [BZ #10871]
21904 * localedata/locales/uk_UA (mon): Renamed to...
21905 (alt_mon): This.
21906 (alt_digits): "0" removed and then renamed to...
21907 (mon): This.
21908 (date_fmt): Definition changed not to use the alternative
21909 digits hack.
21910
fb58aac5
PD
219112018-01-25 Palmer Dabbelt <palmer@sifive.com>
21912
21913 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
21914 FLAG_RISCV_FLOAT_ABI_DOUBLE.
21915 * elf/elf.h (EF_RISCV_RVC): New define.
21916 (EF_RISCV_FLOAT_ABI): Likewise.
21917 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
21918 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
21919 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
21920 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
21921 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
21922 define.
21923 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
21924
128c43a2
AS
219252018-01-25 Andreas Schwab <schwab@suse.de>
21926
21927 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
21928 single quotes.
21929 * sysdeps/gnu/configure: Regenerate.
21930 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
21931 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
21932 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
21933 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
21934 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
21935 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
21936 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
21937 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
21938
f9015003
ST
219392018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
21940
48130690 21941 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
47c4b4b0 21942 URL, and run autoconf, make it the default for now.
f9015003 21943
91b2cffa
JM
219442018-01-24 Joseph Myers <joseph@codesourcery.com>
21945
3005b705
JM
21946 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
21947 soft-float ColdFire configuration.
21948
69231fab
JM
21949 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
21950 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
21951 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
21952
d4c7e1d0
JM
21953 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
21954 MicroBlaze file.
21955
0cfe5be5
JM
21956 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
21957 ....
21958 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
21959 ... here.
21960 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
21961 New file.
21962
91b2cffa
JM
21963 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
21964 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
21965 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
21966 file.
21967
c739e191
SN
219682018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
21969
21970 [BZ #22742]
21971 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
21972 Rename to __reserved and add comment.
21973 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
21974 Rename to __reserved.
21975
394b5bac
JM
219762018-01-24 Joseph Myers <joseph@codesourcery.com>
21977
21978 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
21979 i686-gnu configurations.
21980 (Context.run_builds): Include mig, gnumach and hurd in components
21981 considered.
21982 (Context.checkout): Add mig, gnumach and hurd to components.
21983 (Context.checkout_tar): Add URL mappings for mig, gnumach and
21984 hurd.
21985 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
21986 (Config.build): Install gnumach headers, build mig and install
21987 hurd headers for 'gnu' OS.
21988 (Config.install_gnumach_headers): New function.
21989 (Config.install_hurd_headers): Likewise.
21990 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
21991 when building for 'gnu' OS.
21992
28c3f14f
TK
219932018-01-23 Tobias Klauser <tklauser@distanz.ch>
21994
21995 * manual/tunables.texi (Hardware Capability Tunables): Fix
21996 spelling.
21997
0f5e2da1
RJ
219982018-01-22 Rical Jasan <ricaljasan@pacific.net>
21999
22000 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
22001 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
22002 (ALTMON_11, ALTMON_12): Improve documentation.
22003 * manual/time.texi (strftime): Likewise.
22004
7817b14a
RL
220052018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
22006
22007 [BZ #10871]
22008 * localedata/locales/pl_PL: Alternative month names added,
22009 primary month names are genitive now.
22010 * time/tst-strptime.c (day_tests): Actually use a genitive case
22011 of a month name in Polish language.
22012
22390764
RL
220132018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
22014
22015 [BZ #10871]
22016 * manual/locale.texi: Document ALTMON_1..12 constants for
22017 nl_langinfo. Specify when to use ALTMON instead of MON.
22018 * manual/time.texi (strftime, strptime): Document GNU extension
22019 permitting O modifier with %B and %b. Specify when to use
22020 %OB instead of %B.
22021
761a585c
RL
220222018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
22023
22024 [BZ #10871]
22025 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
22026 names, define them as the same as abbreviated month names explicitly.
22027 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
22028 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
22029 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
22030 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
22031 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
22032 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
22033 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
22034 _NL_WABALTMON_12): New enum constants.
22035 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
22036 wab_alt_mon, and ab_alt_mon_defined members.
22037 (time_output): Output ab_alt_mon and wab_alt_mon members.
22038 (time_read): Read them, initialize them as copies of abmon and wabmon
22039 respectively if they are missing, initialize ab_alt_mon_defined.
22040 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
22041 * locale/programs/locfile-kw.h: Regenerate.
22042 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
22043 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
22044 and ru_RU.UTF-8.
22045 * time/strftime_l.c (a_altmonth, aam_len): New macros.
22046 [!COMPILE_WIDE] (ABALTMON_1): New macro.
22047 (__strftime_internal): Handle %Ob and %Oh formats.
22048 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
22049 (__strptime_internal): Handle %Ob and %Oh formats.
22050 * time/tst-strptime.c (day_tests): Add more tests to parse different
22051 forms of month names including the new %Ob format specifier.
22052
95cb863a
RL
220532018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
22054
22055 [BZ #10871]
22056 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
22057 define them as the same as primary full month names explicitly.
22058 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
22059 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
22060 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
22061 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
22062 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
22063 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
22064 _NL_WALTMON_12): New enum constants.
22065 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
22066 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
22067 macros.
22068 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
22069 walt_mon, and alt_mon_defined members.
22070 (time_output): Output alt_mon and walt_mon members.
22071 (time_read): Read them, initialize them as copies of mon and wmon
22072 respectively if they are missing, initialize alt_mon_defined.
22073 * locale/programs/locfile-kw.gperf (alt_mon): Define.
22074 * locale/programs/locfile-kw.h: Regenerate.
22075 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
22076 * localedata/tst-langinfo.c (map): Add tests for the new constants
22077 ALTMON_1 .. ALTMON_12.
22078 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
22079 and pl_PL.UTF-8.
22080 * time/strftime_l.c (f_altmonth): New macro.
22081 (__strftime_internal): Handle %OB format.
22082 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
22083 (__strptime_internal): Handle %OB format.
22084 * time/tst-strptime.c (day_tests): Add tests to parse different forms
22085 of month names including the new %OB format specifier.
22086
4612268a
TMQMF
220872018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22088
22089 [BZ #22685]
22090 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
22091 from ABORT_TRANSACTION.
22092 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
22093 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
22094 ABORT_TRANSACTION_IMPL): Likewise.
22095 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
22096 Linux code, but remove the code that aborts transactions.
22097
64f63cb4
ST
220982018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
22099
22100 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
22101
32ac6e92
RL
221022018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
22103
22104 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
22105 in date: "2004-14-09" should be "2004-09-14".
22106 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
22107 "2003-15-09" should be "2003-09-15".
22108
8e448310
AS
221092018-01-18 Arjun Shankar <arjun@redhat.com>
22110
22111 [BZ #22343]
71aa429b 22112 [BZ #22774]
4590634f 22113 CVE-2018-6485
71aa429b 22114 CVE-2018-6551
8e448310
AS
22115 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
22116 after padding.
22117 (_int_memalign): check for integer overflow before calling
22118 _int_malloc.
22119 * malloc/tst-malloc-too-large.c: New test.
22120 * malloc/Makefile: Add tst-malloc-too-large.
22121
e234d7cb
RL
221222018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
22123
22124 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
22125 in date: "2017-24-07" should be "2017-07-24".
22126 * localedata/locales/mai_IN: Likewise.
22127 * localedata/locales/mai_NP: Likewise.
22128
48b66019
DL
221292018-01-17 Dmitry V. Levin <ldv@altlinux.org>
22130
22131 * po/ru.po: Update translations.
22132
1eeddc58
JM
221332018-01-17 Joseph Myers <joseph@codesourcery.com>
22134
22135 [BZ #22719]
22136 * sysdeps/hppa/backtrace.c: New file.
22137
207a72e2
L
221382018-01-17 H.J. Lu <hongjiu.lu@intel.com>
22139
22140 [BZ #22715]
22141 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
22142 align La_x86_64_retval to VEC_SIZE.
22143
4942c4ea
JM
221442018-01-16 Joseph Myers <joseph@codesourcery.com>
22145
22146 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
22147 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
22148
10d200db
FW
221492018-01-16 Florian Weimer <fweimer@redhat.com>
22150
22151 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
22152 Move tst-thread-exit-clobber ...
22153 [$(CXX)] (tests-unsupported): ... to here.
22154
953c49cc
SN
221552018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
22156
22157 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
22158 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
22159 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
22160 (_dl_aarch64_cap_flags): Update.
22161 (_DL_HWCAP_COUNT): Update.
22162
afce1991
SN
221632018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
22164
22165 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
22166 (_DL_HWCAP_LAST): Remove.
22167 (_DL_HWCAP_COUNT): Move to ...
22168 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
22169 (_DL_HWCAP_COUNT): ... here.
22170
b725132d
FW
221712018-01-16 Florian Weimer <fweimer@redhat.com>
22172
22173 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
22174 mode with GNU extensions.
22175
c9e613a7
AH
221762018-01-15 Alan Hayward <alan.hayward@arm.com>
22177
22178 * elf/elf.h (NT_ARM_SVE): Define.
22179
860b0240
FW
221802018-01-15 Florian Weimer <fweimer@redhat.com>
22181
22182 [BZ #22636]
22183 * nptl/tst-minstack-throw.cc: New file.
22184 * nptl/Makefile (tests): Add tst-minstack-throw.
22185 (LDLIBS-tst-minstack-throw): Link with libstdc++.
22186 [!CXX] (tests-unsupported): Add tst-minstack-throw.
22187
16d0f6ac
JM
221882018-01-15 Joseph Myers <joseph@codesourcery.com>
22189
22190 * scripts/build-many-glibcs.py (Context.checkout): Default
22191 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
22192 version to 1.1.0.
22193
505d3910
CD
221942018-01-13 Carlos O'Donell <carlos@redhat.com>
22195
22196 [BZ #22707]
22197 * elf/elf.h (DF_1_STUB): Define.
22198 (DF_1_PIE): Define.
22199
af1e6be4
TMQMF
222002018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22201
22202 [BZ #22697]
22203 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
22204 Do not add 0.5 to integer or out-of-range arguments.
22205
98d13ce0
DL
222062018-01-12 Dmitry V. Levin <ldv@altlinux.org>
22207
22208 * po/bg.po: Update translations.
22209 * po/cs.po: Likewise.
22210 * po/de.po: Likewise.
22211 * po/ko.po: Likewise.
22212 * po/pl.po: Likewise.
22213 * po/sv.po: Likewise.
22214 * po/uk.po: Likewise.
22215 * po/vi.po: Likewise.
22216
3d1d7928
SN
222172018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
22218
22219 * aarch64/start.S (_start): Use __wrap_main.
22220 (__wrap_main): New local symbol.
22221
52a713fd
DL
222222018-01-12 Dmitry V. Levin <ldv@altlinux.org>
22223
22224 [BZ #22679]
22225 CVE-2018-1000001
22226 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
22227 generic_getcwd if the path returned by getcwd syscall is not absolute.
22228 * io/tst-getcwd-abspath.c: New test.
22229 * io/Makefile (tests): Add tst-getcwd-abspath.
22230
249a5895
IK
222312018-01-12 Istvan Kurucsai <pistukem@gmail.com>
22232
22233 * malloc/malloc.c (malloc_consolidate): Add size check.
22234
1a51e46e
FW
222352018-01-12 Florian Weimer <fweimer@redhat.com>
22236
22237 * support/write_message.c (write_message): Preserve errno.
22238 * support/check.c (print_failure): Likewise.
22239 * support/support_test_verify_impl.c (support_test_verify_impl):
22240 Likewise.
22241 * support/support_test_compare_failure.c
22242 (support_test_compare_failure): Likewise.
22243
9a08a366
FW
222442018-01-12 Florian Weimer <fweimer@redhat.com>
22245
22246 [BZ #22701]
22247 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
22248 Prevent installation of libnsl.so.
22249 (libnsl-inhibit-o): Do not build (or install) static libraries.
22250
80647883 222512018-01-12 Egmont Koblinger <egmont@gmail.com>
f172187b
EK
22252
22253 [BZ #22657]
22254 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
22255 before the day number which may produce a double space.
22256 (date_fmt): Likewise.
22257
c8924f1f
JM
222582018-01-12 Joseph Myers <joseph@codesourcery.com>
22259
22260 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
22261 instead of fegetenv.
22262
da09e6fa
JM
222632018-01-11 Joseph Myers <joseph@codesourcery.com>
22264
22265 [BZ #22702]
22266 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
22267 comment to say exceptions are discarded.
22268 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
22269 __fegetenv.
22270 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
22271 be enabled.
22272
08c6e952
FW
222732018-01-11 Florian Weimer <fweimer@redhat.com>
22274
22275 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
22276 and error message.
22277
d8b77890
FW
222782018-01-11 Florian Weimer <fweimer@redhat.com>
22279
22280 [BZ #22636]
22281 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
22282 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
22283
b303185d
JM
222842018-01-10 Joseph Myers <joseph@codesourcery.com>
22285
22286 [BZ #22693]
22287 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
22288 negative arguments in test for NaN or infinity argument.
22289
ee61d028
DL
222902018-01-10 Dmitry V. Levin <ldv@altlinux.org>
22291
22292 * po/libc.pot: Regenerate.
22293
f993b875
FW
222942018-01-10 Florian Weimer <fweimer@redhat.com>
22295
22296 [BZ #22636]
22297 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
22298 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
22299
09085ede
ST
223002018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
22301
22302 * hurd/hurd/fd.h: Include <fcntl.h>
22303 (__hurd_at_flags): New function.
22304 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
22305 with call to __hurd_at_flags.
22306 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
22307 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
22308 __faccessat
22309 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
22310 (__access_noerrno): Use __faccessat_common instead of access_common.
22311 (__access): Likewise.
22312 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
22313 with a call to __faccessat.
22314 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
22315 (__faccessat_common): ... this. Move implementation of __access into it when
22316 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
22317 reauthenticate_cwdir_at helper to implement AT mechanism.
22318 (__faccessat_noerrno): New function, just calls __faccessat_common.
22319 (__faccessat): New function, just calls __faccessat_common.
22320 (faccessat): Define weak alias.
22321
12727488
JM
223222018-01-10 Joseph Myers <joseph@codesourcery.com>
22323
87faac55
JM
22324 [BZ #22691]
22325 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
22326 (CFLAGS-s_fmaxmagl.c): New variable.
22327 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
22328
12727488
JM
22329 [BZ #22690]
22330 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
22331 long int for arguments of possibly overflowing addition or
22332 subtraction.
22333 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
22334
e134ca17
JM
223352018-01-09 Joseph Myers <joseph@codesourcery.com>
22336
b2584ac2
JM
22337 [BZ #22688]
22338 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
22339 (CFLAGS-e_remainderl.c): New variable.
22340
e134ca17
JM
22341 [BZ #22687]
22342 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
22343 variable.
22344 (CFLAGS-s_cacoshl.c): Likewise.
22345 (CFLAGS-s_casinhl.c): Likewise.
22346 (CFLAGS-s_catanl.c): Likewise.
22347 (CFLAGS-s_catanhl.c): Likewise.
22348 (CFLAGS-s_cexpl.c): Likewise.
22349 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
22350 (CFLAGS-s_csinhl.c): Likewise.
22351 (CFLAGS-s_clogl.c): Likewise.
22352 (CFLAGS-s_clog10l.c): Likewise.
22353 (CFLAGS-s_csinl.c): Likewise.
22354 (CFLAGS-s_csqrtl.c): Likewise.
22355
d31a4a48
ST
223562017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
223572017-01-09 Svante Signell <svante.signell@gmail.com>
311ba8dc
ST
22358
22359 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
22360 (_hurd_exec_paths): New function.
22361 * hurd/hurd.h (_hurd_exec): Deprecate function.
22362 (_hurd_exec_paths): Declare function.
22363 * hurd/Versions: Export _hurd_exec_paths.
22364 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
22365 (__execve): Use __getcwd to build absolute path, and use
22366 _hurd_exec_paths instead of _hurd_exec.
22367 * sysdeps/mach/hurd/spawni.c: Likewise.
22368 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
22369 _hurd_exec.
22370
d7ff3f11
DL
223712018-01-08 Dmitry V. Levin <ldv@altlinux.org>
22372
22373 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
22374 test instead of failing in case of ENOENT returned by posix_openpt.
22375
401311cf
FW
223762018-01-08 Florian Weimer <fweimer@redhat.com>
22377
22378 resolv: Support binary labels in test framework.
22379 * support/resolv_test.c (struct to_be_freed): Remove.
22380 (struct compressed_name): New.
22381 (allocate_compressed_name, ascii_tolower)
22382 (compare_compressed_name): New functions.
22383 (struct resolv_response_builder): Update type of
22384 compression_offsets for use with tsearch. Rempve to_be_freed.
22385 (response_push_pointer_to_free): Remove function.
22386 (resolv_response_add_name): Rewrite using struct compressed_name
22387 and tsearch instead of hsearch_r.
22388 (response_builder_allocate): Remove initialization of
22389 compression_offsets.
22390 (response_builder_free): Update for removal of to_be_freed. Use
22391 tdestroy instead of hdestroy_r.
22392 * resolv/Makefile (tests): Add tst-resolv-binary.
22393 (tst-resolv-binary): Link with -lresolv -lpthread.
22394
2b3aa446
FW
223952018-01-08 Florian Weimer <fweimer@redhat.com>
22396
22397 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
22398 time. Pass positive flag instead of negative flag to
22399 support_test_compare_failure.
22400 (support_test_compare_failure): Change negative parameter to
22401 positive.
22402 * support/support_test_compare_failure.c (report)
22403 (support_test_compare_failure): Likewise.
22404 * support/tst-test_compare.c (return_ssize_t, return_int): New.
22405 (do_test): Check int/size_t, ssize_t/size_t comparisons.
22406
630f4cc3
SN
224072018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
22408
22409 [BZ #22637]
22410 * nptl/descr.h (stackblock, stackblock_size): Update comments.
22411 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
22412 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
22413 stacksize.
22414 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
22415
c70e4e9c
L
224162018-01-08 H.J. Lu <hongjiu.lu@intel.com>
22417
22418 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
22419 Add s_sincosf-sse2 and s_sincosf-fma.
22420 (CFLAGS-s_sincosf-fma.c): New.
22421 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
22422 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
22423 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
22424 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
22425 __sincosf is defined.
22426
579396ee
FW
224272018-01-08 Florian Weimer <fweimer@redhat.com>
22428
22429 * nptl/tst-thread-exit-clobber.cc: New file.
22430 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
22431 C++11 mode.
22432 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
22433 (tests): Add tst-thread-exit-clobber.
22434 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
22435
dabd75b6
FW
224362018-01-08 Florian Weimer <fweimer@redhat.com>
22437
22438 * support/check.h (support_static_assert): Define.
22439 (TEST_COMPARE): Use it.
22440
c2e014cc
AJ
224412018-01-07 Aurelien Jarno <aurelien@aurel32.net>
22442
22443 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
22444 [!__RLIM_T_MATCHES_RLIM64_T]
22445 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
22446 __getrlimit64. Add libc_hidden_weak.
22447
31a98837
PD
224482018-01-06 Palmer Dabbelt <palmer@sifive.com>
22449
22450 * elf/elf.h (R_RISCV_NONE): New define.
22451 (R_RISCV_32): Likewise.
22452 (R_RISCV_64): Likewise.
22453 (R_RISCV_RELATIVE): Likewise.
22454 (R_RISCV_COPY): Likewise.
22455 (R_RISCV_JUMP_SLOT): Likewise.
22456 (R_RISCV_TLS_DTPMOD32): Likewise.
22457 (R_RISCV_TLS_DTPMOD64): Likewise.
22458 (R_RISCV_TLS_DTPREL32): Likewise.
22459 (R_RISCV_TLS_DTPREL64): Likewise.
22460 (R_RISCV_TLS_TPREL32): Likewise.
22461 (R_RISCV_TLS_TPREL64): Likewise.
00505532
PD
22462 * Makerules (make-link-multidir): Make directories before linking into
22463 them.
150bbac1
PD
22464 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
22465 define.
22466 (VDSO_HASH_LINUX_4_15): Likewise.
1598f3ad
PD
22467 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
22468 in subdirectories of lib.
8e13c51b
PD
22469 * nptl/Makefile (/librt.so): Always depend on
22470 "$(shared-thread-library)".
31a98837 22471
fad7d57e
ST
224722018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
22473
22474 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
4a5ce6e9
ST
22475 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
22476 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
22477 (___tls_get_addr).
22478 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
107a35a5
ST
22479 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
22480 "-O2 -march=i686".
01c7e549 22481 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
f417d92c
ST
22482 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
22483 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
22484 * sysdeps/gnu/glob-lstat-compat.c: New file.
22485 * sysdeps/gnu/glob64-lstat-compat.c: New file.
200fc24b 22486 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
fad7d57e 22487
3a32b716
TMQMF
224882018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22489
22490 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
22491 Reserve 16 chars to reloc_addr before calling _itoa_word.
22492
24731685
AJ
224932018-01-05 Aurelien Jarno <aurelien@aurel32.net>
22494
22495 [BZ #22678]
22496 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
22497 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
22498
19be56d8
AJ
22499 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
22500 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
22501
a6d0afb5
AJ
22502 * resource/tst-getrlimit.c: Add copyright header.
22503
8e900969
AJ
225042018-01-05 Aurelien Jarno <aurelien@aurel32.net>
22505 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22506
22507 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
22508 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
22509 Define __GI_getrlimit64 as weak alias of __getrlimit64.
22510 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
22511 instead.
22512 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
22513 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
22514 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
22515 RLIM64_INFINITY): Fix values to match the kernel ones.
22516 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
22517 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
22518 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
22519 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
22520 getrlimit64@@GLIBC_2_27.
22521 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
22522 and setrlimit64.
22523 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
22524 getrlimit, setrlimit, getrlimit64 and setrlimit64.
22525 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
22526 setrlimit, getrlimit64 and setrlimit64.
22527
0d0bc784
AJ
225282018-01-05 Aurelien Jarno <aurelien@aurel32.net>
22529
22530 [BZ #22648]
22531 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
22532 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
22533
ba374b6d
JM
225342018-01-04 Joseph Myers <joseph@codesourcery.com>
22535
22536 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
22537 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
22538 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
22539
4854ddd8
AZ
225402018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22541
b0a4eca2
AZ
22542 [BZ #15479]
22543 [BZ #22666]
22544 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
22545 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
22546
4854ddd8
AZ
22547 [BZ #15479]
22548 [BZ #22665]
22549 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
22550 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
22551 * sysdeps/alpha/fpu/s_floor.c: Likewise.
22552 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
22553
8a5df95f
FW
225542018-01-04 Florian Weimer <fweimer@redhat.com>
22555
22556 [BZ #22667]
22557 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
22558 Align the stack before calling exit.
22559 * stdlib/tst-makecontext-align.c: New file.
22560 * stdlib/Makefile (tests): Add tst-makecontext-align.
22561
82eef55f
FW
225622018-01-04 Florian Weimer <fweimer@redhat.com>
22563
22564 Add support for calling dlvsym from libc.so.
22565 * include/dlfcn.h (__libc_dlvsym): Declare.
22566 * elf/Makefile (tests-static-internal): Add
22567 tst-libc_dlvsym-static.
22568 (tests-internal): Add tst-libc_dlvsym.
22569 (modules-names): Add tst-libc_dlvsym-dso.
22570 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
22571 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
22572 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
22573 object tst-libc_dlvsym-dso.so needs to be built before running
22574 these tests.
22575 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
22576 * elf/Versions: Export __libc_dlvsym.
22577 * elf/dl-libc.c (struct do_dlvsym_args): New.
22578 (do_dlvsym, __libc_dlvsym): New functions.
22579 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
22580 (_dl_open_hook2): New variable.
22581 (__libc_register_dl_open_hook): Set it.
22582 * elf/tst-libc_dlvsym-dso.c: New file.
22583 * elf/tst-libc_dlvsym-static.c: Likewise.
22584 * elf/tst-libc_dlvsym.c: Likewise.
22585 * elf/tst-libc_dlvsym.h: Likewise.
22586
1714fc06
ST
225872018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
22588
22589 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
22590 include <sys/mount.h>.
22591
3c7d0312
WD
225922018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
22593
22594 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
22595 Add __NO_MATH_ERRNO__ check.
22596
7eff0954
JM
225972018-01-02 Joseph Myers <joseph@codesourcery.com>
22598
22599 * sysdeps/mips/mips32/libm-test-ulps: Update.
22600 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
22601
77f49956
FW
226022018-01-02 Florian Weimer <fweimer@redhat.com>
22603
22604 * misc/tst-pselect.c: Add copyright header.
22605
363e4519 226062018-01-02 Aurelien Jarno <aurelien@aurel32.net>
d35989be
AJ
22607
22608 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
22609 comment.
22610 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
22611 comment.
22612 (settrlimit): Rename into setrlimit.
22613 (__sttrlimit): Rename into __setrlimit.
22614
3e4226ff
AJ
22615 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
22616 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
22617 never defined in that case.
22618
b9256ab6
JM
226192018-01-02 Joseph Myers <joseph@codesourcery.com>
22620
28fd6a44
JM
22621 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
22622
a4933a15
JM
22623 * sysdeps/arm/libm-test-ulps: Update.
22624
b9256ab6
JM
22625 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
22626 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
22627
4cf82d23
RS
226282018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
22629
22630 * NEWS: Add cosf and sincosf to list of optimized functions.
22631
6a9dd7a7
AJ
226322018-01-02 Aurelien Jarno <aurelien@aurel32.net>
22633
22634 [BZ #22660]
22635 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
22636 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
22637 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
22638 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
22639
dbba87d5
DL
226402018-01-01 Dmitry V. Levin <ldv@altlinux.org>
22641
b05cb613
DL
22642 [BZ #22433]
22643 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
22644
dbba87d5
DL
22645 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
22646 making a copy of it.
22647
688903eb
JM
226482018-01-01 Joseph Myers <joseph@codesourcery.com>
22649
66ac23de
JM
22650 * manual/texinfo.tex: Update to version 2017-12-26.21 with
22651 trailing whitespace removed.
22652 * scripts/config.guess: Update to version 2018-01-01.
22653 * scripts/config.sub: Update to version 2018-01-01.
22654 * scripts/move-if-change: Update from gnulib.
22655
09533208
JM
22656 * NEWS: Update copyright dates.
22657 * catgets/gencat.c (print_version): Likewise.
22658 * csu/version.c (banner): Likewise.
22659 * debug/catchsegv.sh: Likewise.
22660 * debug/pcprofiledump.c (print_version): Likewise.
22661 * debug/xtrace.sh (do_version): Likewise.
22662 * elf/ldconfig.c (print_version): Likewise.
22663 * elf/ldd.bash.in: Likewise.
22664 * elf/pldd.c (print_version): Likewise.
22665 * elf/sotruss.sh: Likewise.
22666 * elf/sprof.c (print_version): Likewise.
22667 * iconv/iconv_prog.c (print_version): Likewise.
22668 * iconv/iconvconfig.c (print_version): Likewise.
22669 * locale/programs/locale.c (print_version): Likewise.
22670 * locale/programs/localedef.c (print_version): Likewise.
22671 * login/programs/pt_chown.c (print_version): Likewise.
22672 * malloc/memusage.sh (do_version): Likewise.
22673 * malloc/memusagestat.c (print_version): Likewise.
22674 * malloc/mtrace.pl: Likewise.
22675 * manual/libc.texinfo: Likewise.
22676 * nptl/version.c (banner): Likewise.
22677 * nscd/nscd.c (print_version): Likewise.
22678 * nss/getent.c (print_version): Likewise.
22679 * nss/makedb.c (print_version): Likewise.
22680 * posix/getconf.c (main): Likewise.
22681 * scripts/test-installation.pl: Likewise.
22682 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
22683
688903eb
JM
22684 * All files with FSF copyright notices: Update copyright dates
22685 using scripts/update-copyrights.
22686 * locale/programs/charmap-kw.h: Regenerated.
22687 * locale/programs/locfile-kw.h: Likewise.
22688
4f820792
ZW
226892017-12-31 Zack Weinberg <zackw@panix.com>
22690
22691 * libio/bits/libio-ldbl.h: Correct check for improper
22692 inclusion. Add own multiple include guard.
22693
3e3c904d
AJ
226942017-12-30 Aurelien Jarno <aurelien@aurel32.net>
22695 Dmitry V. Levin <ldv@altlinux.org>
22696
22697 [BZ #22625]
31f96325 22698 CVE-2017-16997
3e3c904d
AJ
22699 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
22700 string token expansion. Check for NULL pointer or empty string possibly
22701 returned by expand_dynamic_string_token.
22702 (decompose_rpath): Check for empty path after dynamic string
22703 token expansion.
22704
7e21972b
DL
227052017-12-29 Dmitry V. Levin <ldv@altlinux.org>
22706
c48831d0
DL
22707 [BZ #22433]
22708 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
22709
ac583f50
DL
22710 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
22711 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
22712 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
22713 and PTRACE_SYSCALL.
22714 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
22715 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
22716 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
22717 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
22718 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
22719 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
22720
7e21972b
DL
22721 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
22722 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
22723 __ptrace_peeksiginfo_flags, ptrace): Move to ...
22724 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
22725 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
22726 bits/ptrace-shared.h.
22727 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
22728 <bits/ptrace-shared.h>.
22729 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
22730 __ptrace_peeksiginfo_flags, ptrace): Remove.
22731 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
22732 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
22733 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
22734 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
22735 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
22736
72f29e3a
AJ
227372017-12-29 Aurelien Jarno <aurelien@aurel32.net>
22738
22739 [BZ #17804]
22740 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
22741 end of the loop. Improve comments.
22742
54e4efc2
AJ
227432017-12-29 Zack Weinberg <zackw@panix.com>
22744
22745 [BZ #22615]
22746 * manual/errno.texi (Checking for Errors): Explicitly say that errno
22747 might be set on success.
22748
f8aa69be
AJ
227492017-12-29 Aurelien Jarno <aurelien@aurel32.net>
22750
22751 [BZ #22611]
22752 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
22753 is unchanged on success.
22754
97f13188
DL
227552017-12-27 Dmitry V. Levin <ldv@altlinux.org>
22756
2bd86632
DL
22757 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
22758 updated.
22759 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
22760 expand_dynamic_string_token): Likewise.
22761 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
22762 is_path argument.
22763
1c36e1e6
DL
22764 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
22765 contains ':'.
22766
97f13188
DL
22767 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
22768 is set and name contains ':', and all code depending on these checks.
22769
48a8f832
ZW
227702017-12-24 Zack Weinberg <zackw@panix.com>
22771
22772 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
22773 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
22774 respectively.
22775 * libio/libio.h: Rename the original version of this file to
22776 libio/bits/libio.h. Error out if not included by stdio.h or the
22777 stub libio.h.
22778 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
22779 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
22780 if not included by bits/libio.h or the stub _G_config.h.
22781 * sysdeps/unix/sysv/linux/_G_config.h: Move to
22782 sysdeps/unix/sysv/linux/bits. Error out if not included by
22783 bits/libio.h or the stub _G_config.h.
22784 * libio/stdio.h: Include bits/libio.h, not libio.h.
22785 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
22786 well as libio.h and _G_config.h.
22787
22788 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
22789 * libio/strfile.h, stdio-common/vfscanf.c
22790 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
22791 Include stdio.h, not _G_config.h nor libio.h.
22792 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
22793 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
22794
22795 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
22796
a47ad79a
DL
227972017-12-23 Dmitry V. Levin <ldv@altlinux.org>
22798
22799 [BZ #22347]
22800 * stdlib/getrandom.c (getrandom): Fix comment.
22801 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
22802
363e4519 228032017-12-23 Aurelien Jarno <aurelien@aurel32.net>
e65a5644 22804
f5c558f3
AJ
22805 [BZ #21161]
22806 * manual/arith.texi (strtoul): Fix a typo.
22807
e65a5644
AJ
22808 [BZ #22596]
22809 * manual/arith.texi (finite): Fix the description of the return
22810 value.
22811
ed8ae46b
EB
228122017-12-22 Eric Blake <ebb9@byu.net>
22813
22814 Avoid gcc warnings on cygwin
22815 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
22816 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
22817 Avoid unused variable.
22818
bad7a0c8
FW
228192017-12-22 Florian Weimer <fweimer@redhat.com>
22820
22821 * io/Makefile (routines): Add copy_file_range.
22822 (tests): Add tst-copy_file_range.
22823 (tests-static, tests-internal): Add tst-copy_file_range-compat.
22824 * io/Versions (GLIBC_2.27): Export copy_file_range.
22825 * io/copy_file_range-compat.c: New file.
22826 * io/copy_file_range.c: Likewise.
22827 * io/tst-copy_file_range-compat.c: Likewise.
22828 * io/tst-copy_file_range.c: Likewise.
22829 * manual/llio.texi (Copying File Data): New section.
22830 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
22831 * support/Makefile (libsupport-routines): Add support-xfstat,
22832 xftruncate, xlseek.
22833 * support/support-xfstat.c: New file.
22834 * support/xftruncate.c: Likewise.
22835 * support/xlseek.c: Likewise.
22836 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
22837 * sysdeps/unix/sysv/linux/**.abilist: Update.
22838 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
22839
6cb86fd2
SN
228402017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
22841
22842 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
22843 disable-multi-arch variant to aarch64-linux-gnu.
22844
41d11b15
JM
228452017-12-20 Joseph Myers <joseph@codesourcery.com>
22846
22847 * manual/texinfo.tex: Update to version 2017-12-18.20 with
22848 trailing whitespace removed.
22849 * scripts/config.guess: Update to version 2017-12-17.
22850 * scripts/config.sub: Update to version 2017-11-23.
22851 * scripts/install-sh: Update to version 2017-09-23.17.
22852 * scripts/move-if-change: Update to version 2017-09-13 06:45.
22853
4735850f
AZ
228542017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22855
8d2d239c
AZ
22856 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
22857 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
22858 * sysdeps/tile/_mcount.S (__mcount): Likewise.
22859 * sysdeps/tile/crti.S (_init, _fini): Likewise.
22860 * sysdeps/tile/crtn.S: Likewise.
22861 * sysdeps/tile/dl-start.S (_start): Likewise.
22862 * sysdeps/tile/dl-trampoline.S: Likewise.
22863 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
22864 * sysdeps/tile/start.S (_start): Likewise.
22865 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
22866 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
22867 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
22868 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
22869 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
22870 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
22871 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
22872
24d1d8ec
AZ
22873 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
22874 comment.
22875 * sysdeps/tile/preconfigure: Remove tilegx folder.
22876 * sysdeps/tile/tilegx/Implies: Move definitions to ...
22877 * sysdeps/tile/Implies: ... here.
22878 * sysdeps/tile/tilegx/Makefile: Move rules to ...
22879 * sysdeps/tile/Makefile: ... here.
22880 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
22881 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
22882 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
22883 * sysdeps/tile/bits/wordsize.h: ... here.
22884 * sysdeps/tile/tilegx/*: Move to ...
22885 * sysdeps/tile/*: ... here.
22886 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
22887 * sysdeps/tile/tilegx32/Implies: ... here.
22888 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
22889 * sysdeps/tile/tilegx64/Implies: ... here.
22890 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
22891 to ...
22892 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
22893 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
22894 * sysdeps/unix/sysv/linux/tile/*: ... here.
22895 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
22896 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
22897 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
22898 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
22899
ed95f611
AZ
22900 * README: Remove tilepro-*-linux-gnu from supported architecture.
22901 * scripts/build-many-glibcs.py: Likewise.
22902 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
22903 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
22904 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
22905 elf_machine_matches_host, elf_machine_dynamic,
22906 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
22907 howto, elf_machine_rela): Likewise.
22908 * sysdeps/tile/dl-start.S (_start): Likewise.
22909 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
22910 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
22911 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
22912 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
22913 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
22914 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
22915 Likewise.
22916 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
22917 * sysdeps/tile/preconfigure: Likewise.
22918 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
22919 POINTER_CHK_GUARD): Likewise.
22920 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
22921 * sysdeps/tile/start.S (_start): Likewise.
22922 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
22923 Likewise.
22924 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
22925 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
22926 CMOVNEZ): Remove.
22927 * sysdeps/unix/sysv/linux/tile/bits/environments.h
22928 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
22929 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
22930 Likewise.
22931 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
22932 * sysdeps/tile/tilepro/Implies: Remove file.
22933 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
22934 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
22935 * sysdeps/tile/tilepro/memchr.c: Likewise.
22936 * sysdeps/tile/tilepro/memcpy.S: Likewise.
22937 * sysdeps/tile/tilepro/memset.c: Likewise.
22938 * sysdeps/tile/tilepro/memusage.h: Likewise.
22939 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
22940 * sysdeps/tile/tilepro/strchr.c: Likewise.
22941 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
22942 * sysdeps/tile/tilepro/strlen.c: Likewise.
22943 * sysdeps/tile/tilepro/strrchr.c: Likewise.
22944 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
22945 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
22946 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
22947 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
22948 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
22949 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
22950 Likewise.
22951 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
22952 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
22953 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
22954 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
22955 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
22956 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
22957 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
22958 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
22959 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
22960 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
22961 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
22962 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
22963 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
22964 tilepro mention in comment.
22965
4735850f
AZ
22966 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
22967 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
22968 * nptl/pthread_join_common.c: New file: common function used on
22969 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
22970 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
22971 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
22972 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
22973 (cleanup): Move definition to pthread_join_common.c.
22974 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
22975 Remove superflous checks.
22976 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
22977 Likewise.
22978
8bfb461e
SN
229792017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
22980
22981 * sysdeps/aarch64/libm-test-ulps: Update.
22982
4e001969
AZ
229832017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22984
22985 * sysdeps/aarch64/memset.S (MEMSET): Define.
22986
8a26ad2a
FW
229872017-12-20 Florian Weimer <fweimer@redhat.com>
22988
22989 [BZ #22635]
22990 nptl: Provide full implementation of pthread_self in libc.so.
22991 * nptl/Makefile (routines): Add pthread_self.
22992 (libpthread-routines): Replace pthread_self with
22993 compat-pthread_self.
22994 * nptl/forward.c (pthread_self): Remove.
22995 * nptl/nptl-init.c (pthread_functions): Do not initialize
22996 ptr_pthread_self.
22997 * nptl/pthread_self.c (pthread_self): Remove weak alias.
22998 * nptl/compat-pthread_self.c: New file.
22999 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
23000 Remove ptr_pthread_self.
23001
5069ff32
AR
230022017-12-19 Arnold D. Robbins <arnold@skeeve.com>
23003
23004 * posix/regcomp.c: Fix spelling in comments.
23005 * posix/regex.h: Likewise.
23006 * posix/regex_internal.c: Likewise.
23007 * posix/regexec.c: Likewise.
23008
c85e54ac
GG
230092017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
23010
23011 [BZ #22377]
23012 * math/Makefile [C++] (tests): Add test for iseqsig.
23013 * math/math.h [C++] (iseqsig): New implementation, which does
23014 not rely on __MATH_TG/__builtin_types_compatible_p.
23015 * math/test-math-iseqsig.cc: New file.
23016 * sysdeps/powerpc/powerpc64le/Makefile
23017 (CFLAGS-test-math-iseqsig.cc): New variable.
23018
10e93d96
DL
230192017-12-19 Dmitry V. Levin <ldv@altlinux.org>
23020
23021 * elf/dl-load.c (is_trusted_path): Remove.
23022 (fillin_rpath): Remove check_trusted argument and its use,
23023 all callers changed.
23024
ce16eb52
L
230252017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23026
23027 [BZ #22630]
23028 * Makeconfig (link-pie-before-libc): Replace -pie with
23029 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
23030 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
23031 (tst-dlopen-aout-no-pie): New.
23032 (LDFLAGS-tst-prelink): Removed.
23033 (tst-prelink-no-pie): New.
23034 (LDFLAGS-tst-main1): Removed.
23035 (tst-main1-no-pie): New.
23036 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
23037 (tst-gmon-no-pie): New.
23038
126adc89
L
230392017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23040
23041 * manual/install.texi: Document that --enable-static-pie
23042 implies PIE.
23043 * INSTALL: Regenerated.
23044
648615e1
BE
230452017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
23046
23047 [BZ #21309]
23048 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
23049 unsigned.
23050
f1e00502
JM
230512017-12-19 Joseph Myers <joseph@codesourcery.com>
23052
23053 Revert:
23054
23055 2017-12-19 Joseph Myers <joseph@codesourcery.com>
23056
23057 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23058
23059 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
23060
23061 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
23062 <errno.h>. Include "eexp.tbl".
23063 (half): New constant.
23064 (one): Likewise.
23065 (__ieee754_exp): Rewrite.
23066 (__slowexp): Remove prototype.
23067 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
23068 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
23069 * sysdeps/i386/fpu/slowexp.c: Likewise.
23070 * sysdeps/ia64/fpu/slowexp.c: Likewise.
23071 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
23072 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
23073 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
23074 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
23075 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
23076 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
23077 comment.
23078 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
23079 (CPPFLAGS-slowexp.c): Remove variable.
23080 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23081 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
23082 (CFLAGS-slowexp-fma.c): Remove variable.
23083 (CFLAGS-slowexp-fma4.c): Likewise.
23084 (CFLAGS-slowexp-avx.c): Likewise.
23085 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
23086 define as macro.
23087 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
23088 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
23089 * math/Makefile (type-double-routines): Remove slowexp.
23090 * manual/probes.texi (slowexp_p6): Remove.
23091 (slowexp_p32): Likewise.
23092
d711a00f
AZ
230932017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23094
e184ac3a
AZ
23095 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
23096 arithmetic.
23097
d711a00f
AZ
23098 * lib/glob.c (glob): Do not pass NULL to mempcpy.
23099
6f58c10d
JM
231002017-12-19 Joseph Myers <joseph@codesourcery.com>
23101
23102 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23103
6fd0a3c6
PM
231042017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
23105
23106 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
23107 <errno.h>. Include "eexp.tbl".
23108 (half): New constant.
23109 (one): Likewise.
23110 (__ieee754_exp): Rewrite.
23111 (__slowexp): Remove prototype.
23112 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
23113 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
23114 * sysdeps/i386/fpu/slowexp.c: Likewise.
23115 * sysdeps/ia64/fpu/slowexp.c: Likewise.
23116 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
23117 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
23118 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
23119 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
23120 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
23121 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
23122 comment.
23123 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
23124 (CPPFLAGS-slowexp.c): Remove variable.
23125 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23126 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
23127 (CFLAGS-slowexp-fma.c): Remove variable.
23128 (CFLAGS-slowexp-fma4.c): Likewise.
23129 (CFLAGS-slowexp-avx.c): Likewise.
23130 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
23131 define as macro.
23132 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
23133 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
23134 * math/Makefile (type-double-routines): Remove slowexp.
23135 * manual/probes.texi (slowexp_p6): Remove.
23136 (slowexp_p32): Likewise.
23137
3bb1ef58 231382017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6b5c8607 23139 James Clarke <jrtc27@jrtc27.com>
3bb1ef58
AZ
23140
23141 [BZ #22603]
23142 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
23143 addition.
23144
554e3d51
AZ
231452017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23146
23147 [BZ #22605]
23148 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
23149 code.
23150
cba595c3
L
231512017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23152
23153 [BZ #22563]
23154 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
23155 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
23156 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
23157 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
23158 to feature_1.
23159
f81ddabf
L
231602017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23161
23162 [BZ #22563]
23163 * bits/types/__cancel_jmp_buf_tag.h: New file.
23164 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
23165 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
23166 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
23167 * nptl/Makefile (headers): Add
23168 bits/types/__cancel_jmp_buf_tag.h.
23169 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
23170 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
23171 * sysdeps/nptl/pthread.h: Include
23172 <bits/types/__cancel_jmp_buf_tag.h>.
23173 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
23174 __cancel_jmp_buf.
23175 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
23176
1a49fc59
L
231772017-12-18 H.J. Lu <hongjiu.lu@intel.com>
23178
23179 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
23180 --enable-static-pie variants to x86_64, x32 and i686.
23181
8e52f573
JM
231822017-12-19 Joseph Myers <joseph@codesourcery.com>
23183
66425185
JM
23184 [BZ #22631]
23185 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
23186 argument for attrubutes. All callers changed.
23187 (__inline_mathop1): Likewise. All callers changed.
23188 (__inline_mathop): Likewise. All callers changed.
23189 [__USE_MISC] (scalbn): Use __inline_forward instead of
23190 __inline_forward_c.
23191 [__USE_ISOC99] (scalbln): Likewise.
23192 [__USE_ISOC99] (nearbyint): Likewise.
23193 [__USE_ISOC99] (lrint): Likewise.
23194 [__USE_MISC] (scalbnf): Likewise.
23195 [__USE_ISOC99] (scalblnf): Likewise.
23196 [__USE_ISOC99] (nearbyintf): Likewise.
23197 [__USE_ISOC99] (lrintf): Likewise.
23198 [__USE_MISC] (scalbnl): Likewise.
23199 [__USE_ISOC99] (scalblnl): Likewise.
23200 [__USE_ISOC99] (nearbyintl): Likewise.
23201 [__USE_ISOC99] (lrintl): Likewise.
23202 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
23203 __inline_mathop and __m81_defun changed.
23204
8e52f573
JM
23205 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
23206 CPU or FPU for ARM hard-float configurations.
23207
1421f39b
JM
232082017-12-18 Joseph Myers <joseph@codesourcery.com>
23209
40c4162d
JM
23210 * nptl/tst-attr3.c: Include <libc-diag.h>.
23211 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
23212
5983df32
JM
23213 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
23214
1421f39b
JM
23215 * string/tester.c (test_strncat): Also disable -Warray-bounds
23216 warnings for two tests.
23217
00c714df
L
232182017-12-18 H.J. Lu <hongjiu.lu@intel.com>
23219
23220 [BZ #22614]
23221 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
23222 $(cc-pie-default) == yes.
23223 * config.make.in (cc-pie-default): New.
23224 * configure.ac (libc_cv_pie_default): Renamed to ...
23225 (libc_cv_cc_pie_default): This.
23226 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
23227 * configure: Regenerated.
23228
8e1472d2
FW
232292017-12-18 Florian Weimer <fweimer@redhat.com>
23230
23231 [BZ #20204]
23232 ld.so: Harden dl-libc/libdl hooks.
23233 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
23234 (rtld_active): New function.
23235 * dlfcn/dladdr.c (__dladdr): Call it.
23236 * dlfcn/dladdr1.c (__dladdr1): Likewise.
23237 * dlfcn/dlclose.c (__dlcose): Likewise.
23238 * dlfcn/dlerror.c (__dlerror): Likewise.
23239 * dlfcn/dlinfo.c (__dlinfo): Likewise.
23240 * dlfcn/dlmopen.c (__dlmopen): Likewise.
23241 * dlfcn/dlopen.c (__dlopen): Likewise.
23242 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
23243 * dlfcn/dlsym.c (__dlsym): Likewise.
23244 * dlfcn/dlvsym.c (__dlvsym): Likewise.
23245 * libio/vtables.c (_IO_vtable_check): Likewise.
23246 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
23247 (__libc_dlclose): Likewise.
23248 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
23249 assignment.
23250
49b036bc
JM
232512017-12-18 Joseph Myers <joseph@codesourcery.com>
23252
23253 [BZ #22446]
23254 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
23255 buffers for readlink input and output.
23256
368b6c8d
ST
232572017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
23258
c85c564d
ST
23259 [BZ #22624]
23260 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
23261 inhibit_stack_protector.
23262
368b6c8d
ST
23263 [BZ #22624]
23264 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
23265 inhibit_stack_protector.
23266
bb195224
DL
232672017-12-18 Dmitry V. Levin <ldv@altlinux.org>
23268
23269 [BZ #22627]
23270 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
23271 code and invocation.
23272
14d886ed
SN
232732017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
23274
23275 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
23276
7d38eb38
AJ
232772017-12-16 Aurelien Jarno <aurelien@aurel32.net>
23278
23279 [BZ #22505]
23280 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
23281
2e77deef
RS
232822017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23283
23284 * sysdeps/s390/fpu/libm-test-ulps: Update.
23285
0b9bef6d
RS
232862017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23287
23288 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23289
984ae996
RS
232902017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23291
23292 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
23293 constants to s_sincosf.h file.
23294 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
23295 * sysdeps/ieee754/flt-32/s_sincosf.c: New
23296 implementation.
23297 * sysdeps/ieee754/flt-32/s_sincosf.h:
23298 New file.
23299
363e4519 233002017-12-12 Carlos O'Donell <carlos@redhat.com>
93930ea9
CD
23301
23302 [BZ #14681]
23303 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
23304 before mtrace.
23305
9d7a3741
L
233062017-12-15 H.J. Lu <hongjiu.lu@intel.com>
23307
23308 [BZ #19574]
23309 * INSTALL: Regenerated.
23310 * Makeconfig (real-static-start-installed-name): New.
23311 (pic-default): Updated for --enable-static-pie.
23312 (pie-default): New for --enable-static-pie.
23313 (default-pie-ldflag): Likewise.
23314 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
23315 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
23316 Replace $(static-start-installed-name) with
23317 $(real-static-start-installed-name).
23318 (+prectorT): Updated for --enable-static-pie.
23319 (+postctorT): Likewise.
23320 (CFLAGS-.o): Add $(pie-default).
23321 (CFLAGS-.op): Likewise.
23322 * NEWS: Mention --enable-static-pie.
23323 * config.h.in (ENABLE_STATIC_PIE): New.
23324 * configure.ac (--enable-static-pie): New configure option.
23325 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
23326 (have-static-pie): Likewise.
23327 Enable static PIE if linker supports --no-dynamic-linker.
23328 (ENABLE_STATIC_PIE): New AC_DEFINE.
23329 (enable-static-pie): New LIBC_CONFIG_VAR.
23330 * configure: Regenerated.
23331 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
23332 gr$(start-installed-name) for --enable-static-pie.
23333 (extra-objs): Likewise.
23334 (install-lib): Likewise.
23335 (extra-objs): Add static-reloc.o and static-reloc.os
23336 ($(objpfx)$(start-installed-name)): Also depend on
23337 $(objpfx)static-reloc.o.
23338 ($(objpfx)r$(start-installed-name)): New.
23339 ($(objpfx)g$(start-installed-name)): Also depend on
23340 $(objpfx)static-reloc.os.
23341 ($(objpfx)gr$(start-installed-name)): New.
23342 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
23343 in libc.a.
23344 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
23345 initimage.
23346 * csu/static-reloc.c: New file.
23347 * elf/Makefile (routines): Add dl-reloc-static-pie.
23348 (elide-routines.os): Likewise.
23349 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
23350 (tst-tls1-static-non-pie-no-pie): New.
23351 * elf/dl-reloc-static-pie.c: New file.
23352 * elf/dl-support.c (_dl_get_dl_main_map): New function.
23353 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
23354 STATIC_PIE_BOOTSTRAP.
23355 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
23356 * gmon/Makefile (tests): Add tst-gmon-static-pie.
23357 (tests-static): Likewise.
23358 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
23359 (tst-gmon-static-no-pie): New.
23360 (CFLAGS-tst-gmon-static-pie.c): Likewise.
23361 (CRT-tst-gmon-static-pie): Likewise.
23362 (tst-gmon-static-pie-ENV): Likewise.
23363 (tests-special): Likewise.
23364 ($(objpfx)tst-gmon-static-pie.out): Likewise.
23365 (clean-tst-gmon-static-pie-data): Likewise.
23366 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
23367 * gmon/tst-gmon-static-pie.c: New file.
23368 * manual/install.texi: Document --enable-static-pie.
23369 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
23370 (_dl_get_dl_main_map): Likewise.
23371 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
23372 * sysdeps/x86_64/configure.ac: Likewise.
23373 * sysdeps/i386/configure: Regenerated.
23374 * sysdeps/x86_64/configure: Likewise.
23375 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
23376 (ASFLAGS-.op): Likewise.
23377
95511aab
JM
233782017-12-15 Joseph Myers <joseph@codesourcery.com>
23379
23380 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
23381 * posix/tst-mmap-offset.c (fname): Use /tmp.
23382 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
23383
a7e3edf4
SE
233842017-12-15 Steve Ellcey <sellcey@cavium.com>
23385
23386 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
23387
d232f2e1
TS
233882017-12-15 Thomas Schwinge <thomas@codesourcery.com>
23389
23390 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
23391 errno.
23392
174edbde
JM
233932017-12-15 Joseph Myers <joseph@codesourcery.com>
23394
5170fa49
JM
23395 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
23396 --with-float=hard for arm-linux-gnueabihf configurations.
23397
f2da2fd8
JM
23398 [BZ #14121]
23399 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
23400 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
23401 ($(mo-installed)): Use $(objpfx)%.mo.
23402 (realclean): Remove rule.
23403
0c4fe28d
JM
23404 * po/Makefile (linguas): Remove rule and dependencies.
23405 (linguas.mo): Likewise.
23406 (.PHONY): Do not depend on linguas and linguas.mo.
23407 (podir): Remove variable.
23408 (pofiles): Likewise.
23409 [$(pofiles)] (%.po): Remove rule.
23410
174edbde
JM
23411 * sysdeps/sparc/sparc32/Makefile
23412 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
23413 start-of-line whitespace in argument of echo.
23414 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
23415 with whitespace. Generate __wrap_.udiv alias.
23416 * sysdeps/sparc/sparc32/rem.S: Regenerated.
23417 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
23418 * sysdeps/sparc/sparc32/udiv.S: Likewise.
23419 * sysdeps/sparc/sparc32/urem.S: Likewise.
23420
1e36806f
RS
234212017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23422
23423 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
23424 for aligned inputs.
23425
aa6932aa
SP
234262017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
23427
5f1603c3
SP
23428 * benchtests/bench-strcmp.c: Print output in JSON format.
23429
aa6932aa
SP
23430 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
23431
3ff3dfa5
FW
234322017-12-14 Florian Weimer <fweimer@redhat.com>
23433
23434 [BZ #22607]
23435 CVE-2017-1000409
23436 * elf/dl-load.c (_dl_init_paths): Compute number of components in
23437 the expanded path string.
23438
8a0b17e4
FW
234392017-12-14 Florian Weimer <fweimer@redhat.com>
23440
23441 [BZ #22606]
23442 CVE-2017-1000408
23443 * elf/dl-load.c (system_dirs): Update comment.
23444 (nsystem_dirs_len): Use array_length.
23445 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
23446
f58bd7f0
FW
234472017-12-14 Florian Weimer <fweimer@redhat.com>
23448
23449 Simplify compiling most of support/ outside of glibc.
23450 * support/check_addrinfo.c: Include <string.h>.
23451 * support/check_dns_packet.c: Likewise.
23452 * support/check_hostent.c: Likewise.
23453 * support/support_can_chroot.c: Include <support/xunistd.h>.
23454 * support/support_format_addrinfo.c: Include <stdlib.h>
23455 * support/support_format_dns_packet.c: Include <stdbool.h>.
23456 * support/support_format_hostent.c: Include <stdlib.h>.
23457 * support/support_format_netent.c: Likewise.
23458 * support/support_write_string.c: Include <support/xunistd.h>.
23459 * support/xdlfcn.c: Include <stddef.h>.
23460
4ca945e9
L
234612017-12-14 H.J. Lu <hongjiu.lu@intel.com>
23462
23463 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
23464
1b6e07f8
PM
234652017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
23466 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23467
e6a1c5dc
PM
23468 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
23469 (sysdeps_routines): Add memset-niagara7.
23470 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
23471 Likewise.
23472 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
23473 file.
23474 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
23475 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
23476 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
23477 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
23478 Add niagara7 option.
23479 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
23480 memset.
23481
1b6e07f8
PM
23482 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
23483 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
23484 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
23485 Likewise.
23486 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
23487 New file.
23488 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
23489 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
23490 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
23491 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
23492 and __memmove_niagara7.
23493 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
23494 Add niagara7 option.
23495 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
23496 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
23497 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
23498 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
23499 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
23500
bfb7bf22
JM
235012017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
23502
767a26d6
JM
23503 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
23504 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
23505 * sysdeps/sparc/sparc64/memmove.S: Likewise.
23506 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
23507
bfb7bf22
JM
23508 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
23509 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
23510 _dl_sparc_cap_flags array.
23511 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
23512
2bce01eb
SP
235132017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
23514
23515 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
23516 time whenever possible.
23517
363e4519 235182017-12-12 Carlos O'Donell <carlos@redhat.com>
243b6333
CD
23519
23520 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
23521 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
23522
6f7c0092
JM
235232017-12-12 Joseph Myers <joseph@codesourcery.com>
23524
23525 * soft-fp/fmadf4.c: Move to ....
23526 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
23527 * soft-fp/fmasf4.c: Move to ....
23528 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
23529 * soft-fp/fmatf4.c: Move to ....
23530 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
23531 * sysdeps/ieee754/soft-fp/Makefile: New file.
23532 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
23533 * sysdeps/arm/preconfigure: Regenerated.
23534 * sysdeps/arm/nofpu/Implies: New file.
23535 * sysdeps/arm/s_fma.c: Remove file.
23536 * sysdeps/arm/s_fmaf.c: Likewise.
23537 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
23538 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
23539 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
23540 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
23541 * sysdeps/microblaze/s_fma.c: Remove file.
23542 * sysdeps/microblaze/s_fmaf.c: Likewise.
23543 * sysdeps/mips/mips32/nofpu/Implies: New file.
23544 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
23545 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
23546 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
23547 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
23548 * sysdeps/mips/ieee754/s_fma.c: Remove file.
23549 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
23550 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
23551 implementation.
23552 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
23553 * sysdeps/nios2/s_fma.c: Remove file.
23554 * sysdeps/nios2/s_fmaf.c: Likewise.
23555 * sysdeps/sh/nofpu/Implies: New file.
23556 * sysdeps/sh/s_fma.c: Remove file.
23557 * sysdeps/sh/s_fmaf.c: Likewise.
23558 * sysdeps/tile/Implies: Add ieee754/soft-fp.
23559 * sysdeps/tile/s_fma.c: Remove file.
23560 * sysdeps/tile/s_fmaf.c: Likewise.
23561
ac817e08
L
235622017-12-12 H.J. Lu <hongjiu.lu@intel.com>
23563
23564 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23565 Add s_cosf-sse2 and s_cosf-fma.
23566 (CFLAGS-s_cosf-fma.c): New.
23567 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
23568 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
23569 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
23570
eb428576
SE
235712017-12-12 Steve Ellcey <sellcey@cavium.com>
23572
23573 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
23574
c80acdc3
AZ
235752017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23576
cc683f7e
AZ
23577 * libio/Makefile (tests): Add tst-bz22415.
23578 (tst-bz22415-ENV): New rule.
23579 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
23580 (tests-special): Add tst-bz22415-mem.out.
23581 ($(objpfx)tst-bz22415-mem.out): New rule.
23582 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
23583 in case of a successful seek operation.
23584 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
23585 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
23586 buffer is required.
23587 * libio/tst-bz22415.c: New test.
23588
c80acdc3
AZ
23589 * sysdeps/ia64/fpu/libm-test-ulps: Update.
23590
363e4519 235912017-12-12 James Clarke <jrtc27@jrtc27.com>
89bd8016
JC
23592
23593 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
23594 __IPC_64 to 0 to avoid IPC_64 being set.
23595
4e0dca54
SN
235962017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
23597
23598 [BZ #22593]
23599 * math/bits/mathcalls.h (nextafter): Remove const.
23600 (nexttoward): Likewise.
23601
8df5d347
JM
236022017-12-12 Joseph Myers <joseph@codesourcery.com>
23603
23604 * configure.ac (--with-fp): Remove configure option.
23605 (with_fp_cond): New variable.
23606 (libc_cv_with_fp): New configure test. Use this variable instead
23607 of with_fp.
23608 * configure: Regenerated.
23609 * config.make.in (with-fp): Use @libc_cv_with_fp@.
23610 * manual/install.texi (Configuring and compiling): Remove
23611 --without-fp.
23612 * INSTALL: Regenerated.
23613 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
23614 * sysdeps/mips/preconfigure (with_fp_cond): Define.
23615 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
23616 * sysdeps/sh/preconfigure (with_fp_cond): Define.
23617 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
23618 use --without-fp to configure glibc.
23619
0cee1257
RJ
236202017-12-12 Rical Jasan <ricaljasan@pacific.net>
23621
23622 * manual/locale.texi (nl_langinfo): Fix a typo.
23623
363e4519 236242017-12-12 Aurelien Jarno <aurelien@aurel32.net>
f54ad2f9
AJ
23625
23626 [BZ #22588]
23627 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
23628
36975e8e
L
236292017-12-11 H.J. Lu <hongjiu.lu@intel.com>
23630
23631 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
23632 (CFLAGS-argp-parse.c): Likewise.
23633 (CFLAGS-argp-fmtstream.c): Likewise.
23634 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
23635 (CPPFLAGS-sha512-crypt.c): Likewise.
23636 (CPPFLAGS-md5-crypt.c): Likewise.
23637 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
23638 (CFLAGS-stack_chk_fail_local.c): Likewise.
23639 (CFLAGS-backtrace.c): Likewise.
23640 (CFLAGS-sprintf_chk.c): Likewise.
23641 (CFLAGS-snprintf_chk.c): Likewise.
23642 (CFLAGS-vsprintf_chk.c): Likewise.
23643 (CFLAGS-vsnprintf_chk.c): Likewise.
23644 (CFLAGS-asprintf_chk.c): Likewise.
23645 (CFLAGS-vasprintf_chk.c): Likewise.
23646 (CFLAGS-obprintf_chk.c): Likewise.
23647 (CFLAGS-dprintf_chk.c): Likewise.
23648 (CFLAGS-vdprintf_chk.c): Likewise.
23649 (CFLAGS-printf_chk.c): Likewise.
23650 (CFLAGS-fprintf_chk.c): Likewise.
23651 (CFLAGS-vprintf_chk.c): Likewise.
23652 (CFLAGS-vfprintf_chk.c): Likewise.
23653 (CFLAGS-gets_chk.c): Likewise.
23654 (CFLAGS-fgets_chk.c): Likewise.
23655 (CFLAGS-fgets_u_chk.c): Likewise.
23656 (CFLAGS-fread_chk.c): Likewise.
23657 (CFLAGS-fread_u_chk.c): Likewise.
23658 (CFLAGS-swprintf_chk.c): Likewise.
23659 (CFLAGS-vswprintf_chk.c): Likewise.
23660 (CFLAGS-wprintf_chk.c): Likewise.
23661 (CFLAGS-fwprintf_chk.c): Likewise.
23662 (CFLAGS-vwprintf_chk.c): Likewise.
23663 (CFLAGS-vfwprintf_chk.c): Likewise.
23664 (CFLAGS-fgetws_chk.c): Likewise.
23665 (CFLAGS-fgetws_u_chk.c): Likewise.
23666 (CFLAGS-read_chk.c): Likewise.
23667 (CFLAGS-pread_chk.c): Likewise.
23668 (CFLAGS-pread64_chk.c): Likewise.
23669 (CFLAGS-recv_chk.c): Likewise.
23670 (CFLAGS-recvfrom_chk.c): Likewise.
23671 (CFLAGS-tst-longjmp_chk.c): Likewise.
23672 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
23673 (CFLAGS-tst-longjmp_chk2.c): Likewise.
23674 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
23675 (CFLAGS-tst-longjmp_chk3.c): Likewise.
23676 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
23677 (CFLAGS-tst-chk1.c): Likewise.
23678 (CFLAGS-tst-chk2.c): Likewise.
23679 (CFLAGS-tst-chk3.c): Likewise.
23680 (CFLAGS-tst-chk4.cc): Likewise.
23681 (CFLAGS-tst-chk5.cc): Likewise.
23682 (CFLAGS-tst-chk6.cc): Likewise.
23683 (CFLAGS-tst-lfschk1.c): Likewise.
23684 (CFLAGS-tst-lfschk2.c): Likewise.
23685 (CFLAGS-tst-lfschk3.c): Likewise.
23686 (CFLAGS-tst-lfschk4.cc): Likewise.
23687 (CFLAGS-tst-lfschk5.cc): Likewise.
23688 (CFLAGS-tst-lfschk6.cc): Likewise.
23689 (CFLAGS-tst-ssp-1.c): Likewise.
23690 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
23691 (CFLAGS-scandir64.c): Likewise.
23692 (CFLAGS-scandir-tail.c): Likewise.
23693 (CFLAGS-scandir64-tail.c): Likewise.
23694 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
23695 (CFLAGS-dl-tunables.c): Likewise.
23696 (CFLAGS-dl-runtime.c): Likewise.
23697 (CFLAGS-dl-lookup.c): Likewise.
23698 (CFLAGS-dl-iterate-phdr.c): Likewise.
23699 (CFLAGS-vismain.c): Likewise.
23700 (CFLAGS-tst-linkall-static.c): Likewise.
23701 (CFLAGS-tst-linkall-static.c): Likewise.
23702 (CPPFLAGS-dl-load.c): Likewise.
23703 (CFLAGS-ldconfig.c): Likewise.
23704 (CFLAGS-dl-cache.c): Likewise.
23705 (CFLAGS-cache.c): Likewise.
23706 (CFLAGS-rtld.c): Likewise.
23707 (CFLAGS-multiload.c): Likewise.
23708 (CFLAGS-filtmod1.c): Likewise.
23709 (CFLAGS-tst-align.c): Likewise.
23710 (CFLAGS-tst-align2.c): Likewise.
23711 (CFLAGS-tst-alignmod.c): Likewise.
23712 (CFLAGS-tst-alignmod2.c): Likewise.
23713 (CPPFLAGS-tst-execstack.c): Likewise.
23714 (CFLAGS-tst-ptrguard1-static.c): Likewise.
23715 (CFLAGS-tst-latepthreadmod.c): Likewise.
23716 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
23717 (CFLAGS-getgrnam_r.c): Likewise.
23718 (CFLAGS-getgrent_r.c): Likewise.
23719 (CFLAGS-getgrent.c): Likewise.
23720 (CFLAGS-fgetgrent.c): Likewise.
23721 (CFLAGS-fgetgrent_r.c): Likewise.
23722 (CFLAGS-putgrent.c): Likewise.
23723 (CFLAGS-initgroups.c): Likewise.
23724 (CFLAGS-getgrgid.c): Likewise.
23725 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
23726 (CFLAGS-getsgent.c): Likewise.
23727 (CFLAGS-fgetsgent.c): Likewise.
23728 (CFLAGS-fgetsgent_r.c): Likewise.
23729 (CFLAGS-putsgent.c): Likewise.
23730 (CFLAGS-getsgnam.c): Likewise.
23731 (CFLAGS-getsgnam_r.c): Likewise.
23732 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
23733 (CFLAGS-iconv_charmap.c): Likewise.
23734 (CFLAGS-dummy-repertoire.c): Likewise.
23735 (CFLAGS-charmap.c): Likewise.
23736 (CFLAGS-linereader.c): Likewise.
23737 (CFLAGS-simple-hash.c): Likewise.
23738 (CFLAGS-gconv_conf.c): Likewise.
23739 (CFLAGS-iconvconfig.c): Likewise.
23740 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
23741 (CFLAGS-gethstbyad.c): Likewise.
23742 (CFLAGS-gethstbynm_r.c): Likewise.
23743 (CFLAGS-gethstbynm.c): Likewise.
23744 (CFLAGS-gethstbynm2_r.c): Likewise.
23745 (CFLAGS-gethstbynm2.c): Likewise.
23746 (CFLAGS-gethstent_r.c): Likewise.
23747 (CFLAGS-gethstent.c): Likewise.
23748 (CFLAGS-rcmd.c): Likewise.
23749 (CFLAGS-getnetbynm_r.c): Likewise.
23750 (CFLAGS-getnetbynm.c): Likewise.
23751 (CFLAGS-getnetbyad_r.c): Likewise.
23752 (CFLAGS-getnetbyad.c): Likewise.
23753 (CFLAGS-getnetent_r.c): Likewise.
23754 (CFLAGS-getnetent.c): Likewise.
23755 (CFLAGS-getaliasent_r.c): Likewise.
23756 (CFLAGS-getaliasent.c): Likewise.
23757 (CFLAGS-getrpcent_r.c): Likewise.
23758 (CFLAGS-getrpcent.c): Likewise.
23759 (CFLAGS-getservent_r.c): Likewise.
23760 (CFLAGS-getservent.c): Likewise.
23761 (CFLAGS-getprtent_r.c): Likewise.
23762 (CFLAGS-getprtent.c): Likewise.
23763 (CFLAGS-either_ntoh.c): Likewise.
23764 (CFLAGS-either_hton.c): Likewise.
23765 (CFLAGS-getnetgrent.c): Likewise.
23766 (CFLAGS-getnetgrent_r.c): Likewise.
23767 (CFLAGS-tst-checks-posix.c): Likewise.
23768 (CFLAGS-tst-sockaddr.c): Likewise.
23769 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
23770 (CFLAGS-tst-translit.c): Likewise.
23771 (CFLAGS-tst-gettext2.c): Likewise.
23772 (CFLAGS-tst-codeset.c): Likewise.
23773 (CFLAGS-tst-gettext3.c): Likewise.
23774 (CFLAGS-tst-gettext4.c): Likewise.
23775 (CFLAGS-tst-gettext5.c): Likewise.
23776 (CFLAGS-tst-gettext6.c): Likewise.
23777 * io/Makefile (CFLAGS-open.c): Likewise.
23778 (CFLAGS-open64.c): Likewise.
23779 (CFLAGS-creat.c): Likewise.
23780 (CFLAGS-creat64.c): Likewise.
23781 (CFLAGS-fcntl.c): Likewise.
23782 (CFLAGS-poll.c): Likewise.
23783 (CFLAGS-ppoll.c): Likewise.
23784 (CFLAGS-lockf.c): Likewise.
23785 (CFLAGS-statfs.c): Likewise.
23786 (CFLAGS-fstatfs.c): Likewise.
23787 (CFLAGS-statvfs.c): Likewise.
23788 (CFLAGS-fstatvfs.c): Likewise.
23789 (CFLAGS-fts.c): Likewise.
23790 (CFLAGS-fts64.c): Likewise.
23791 (CFLAGS-ftw.c): Likewise.
23792 (CFLAGS-ftw64.c): Likewise.
23793 (CFLAGS-lockf.c): Likewise.
23794 (CFLAGS-posix_fallocate.c): Likewise.
23795 (CFLAGS-posix_fallocate64.c): Likewise.
23796 (CFLAGS-fallocate.c): Likewise.
23797 (CFLAGS-fallocate64.c): Likewise.
23798 (CFLAGS-read.c): Likewise.
23799 (CFLAGS-write.c): Likewise.
23800 (CFLAGS-test-stat.c): Likewise.
23801 (CFLAGS-test-lfs.c): Likewise.
23802 * libio/Makefile (CFLAGS-fileops.c): Likewise.
23803 (CFLAGS-fputc.c): Likewise.
23804 (CFLAGS-fputwc.c): Likewise.
23805 (CFLAGS-freopen64.c): Likewise.
23806 (CFLAGS-freopen.c): Likewise.
23807 (CFLAGS-fseek.c): Likewise.
23808 (CFLAGS-fseeko64.c): Likewise.
23809 (CFLAGS-fseeko.c): Likewise.
23810 (CFLAGS-ftello64.c): Likewise.
23811 (CFLAGS-ftello.c): Likewise.
23812 (CFLAGS-fwide.c): Likewise.
23813 (CFLAGS-genops.c): Likewise.
23814 (CFLAGS-getc.c): Likewise.
23815 (CFLAGS-getchar.c): Likewise.
23816 (CFLAGS-getwc.c): Likewise.
23817 (CFLAGS-getwchar.c): Likewise.
23818 (CFLAGS-iofclose.c): Likewise.
23819 (CFLAGS-iofflush.c): Likewise.
23820 (CFLAGS-iofgetpos64.c): Likewise.
23821 (CFLAGS-iofgetpos.c): Likewise.
23822 (CFLAGS-iofgets.c): Likewise.
23823 (CFLAGS-iofgetws.c): Likewise.
23824 (CFLAGS-iofputs.c): Likewise.
23825 (CFLAGS-iofputws.c): Likewise.
23826 (CFLAGS-iofread.c): Likewise.
23827 (CFLAGS-iofsetpos64.c): Likewise.
23828 (CFLAGS-iofsetpos.c): Likewise.
23829 (CFLAGS-ioftell.c): Likewise.
23830 (CFLAGS-iofwrite.c): Likewise.
23831 (CFLAGS-iogetdelim.c): Likewise.
23832 (CFLAGS-iogetline.c): Likewise.
23833 (CFLAGS-iogets.c): Likewise.
23834 (CFLAGS-iogetwline.c): Likewise.
23835 (CFLAGS-ioputs.c): Likewise.
23836 (CFLAGS-ioseekoff.c): Likewise.
23837 (CFLAGS-ioseekpos.c): Likewise.
23838 (CFLAGS-iosetbuffer.c): Likewise.
23839 (CFLAGS-iosetvbuf.c): Likewise.
23840 (CFLAGS-ioungetc.c): Likewise.
23841 (CFLAGS-ioungetwc.c): Likewise.
23842 (CFLAGS-oldfileops.c): Likewise.
23843 (CFLAGS-oldiofclose.c): Likewise.
23844 (CFLAGS-oldiofgetpos64.c): Likewise.
23845 (CFLAGS-oldiofgetpos.c): Likewise.
23846 (CFLAGS-oldiofsetpos64.c): Likewise.
23847 (CFLAGS-oldiofsetpos.c): Likewise.
23848 (CFLAGS-peekc.c): Likewise.
23849 (CFLAGS-putc.c): Likewise.
23850 (CFLAGS-putchar.c): Likewise.
23851 (CFLAGS-putwc.c): Likewise.
23852 (CFLAGS-putwchar.c): Likewise.
23853 (CFLAGS-rewind.c): Likewise.
23854 (CFLAGS-wfileops.c): Likewise.
23855 (CFLAGS-wgenops.c): Likewise.
23856 (CFLAGS-oldiofopen.c): Likewise.
23857 (CFLAGS-iofopen.c): Likewise.
23858 (CFLAGS-iofopen64.c): Likewise.
23859 (CFLAGS-oldtmpfile.c): Likewise.
23860 (CFLAGS-tst_putwc.c): Likewise.
23861 * locale/Makefile (CFLAGS-md5.c): Likewise.
23862 (CFLAGS-charmap.c): Likewise.
23863 (CFLAGS-locfile.c): Likewise.
23864 (CFLAGS-charmap-dir.c): Likewise.
23865 * login/Makefile (CFLAGS-grantpt.c): Likewise.
23866 (CFLAGS-getpt.c): Likewise.
23867 (CFLAGS-pt_chown.c): Likewise.
23868 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
23869 (CFLAGS-obstack.c): Likewise.
23870 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
23871 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
23872 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
23873 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
23874 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
23875 (CFLAGS-test-tgmath.c): Likewise.
23876 (CFLAGS-test-tgmath2.c): Likewise.
23877 (CFLAGS-test-tgmath-ret.c): Likewise.
23878 (CFLAGS-test-powl.c): Likewise.
23879 (CFLAGS-test-snan.c): Likewise.
23880 (CFLAGS-test-signgam-finite.c): Likewise.
23881 (CFLAGS-test-signgam-finite-c99.c): Likewise.
23882 (CFLAGS-test-signgam-finite-c11.c): Likewise.
23883 (CFLAGS-test-signgam-uchar.c): Likewise.
23884 (CFLAGS-test-signgam-uchar-init.c): Likewise.
23885 (CFLAGS-test-signgam-uchar-static.c): Likewise.
23886 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
23887 (CFLAGS-test-signgam-uint.c): Likewise.
23888 (CFLAGS-test-signgam-uint-init.c): Likewise.
23889 (CFLAGS-test-signgam-uint-static.c): Likewise.
23890 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
23891 (CFLAGS-test-signgam-ullong.c): Likewise.
23892 (CFLAGS-test-signgam-ullong-init.c): Likewise.
23893 (CFLAGS-test-signgam-ullong-static.c): Likewise.
23894 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
23895 (CFLAGS-test-math-cxx11.cc): Likewise.
23896 (CFLAGS-test-math-isinff.cc): Likewise.
23897 (CFLAGS-test-math-iszero.cc): Likewise.
23898 (CFLAGS-test-math-issignaling.cc): Likewise.
23899 (CFLAGS-test-math-iscanonical.cc): Likewise.
23900 (CFLAGS-test-iszero-excess-precision.c): Likewise.
23901 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
23902 (CFLAGS-test-flt-eval-method.c): Likewise.
23903 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
23904 (CFLAGS-test-finite-macros.c): Likewise.
23905 * misc/Makefile (CFLAGS-select.c): Likewise.
23906 (CFLAGS-tsearch.c): Likewise.
23907 (CFLAGS-lsearch.c): Likewise.
23908 (CFLAGS-pselect.c): Likewise.
23909 (CFLAGS-readv.c): Likewise.
23910 (CFLAGS-writev.c): Likewise.
23911 (CFLAGS-preadv.c): Likewise.
23912 (CFLAGS-preadv64.c): Likewise.
23913 (CFLAGS-pwritev.c): Likewise.
23914 (CFLAGS-pwritev64.c): Likewise.
23915 (CFLAGS-preadv2.c): Likewise.
23916 (CFLAGS-preadv64v2.c): Likewise.
23917 (CFLAGS-pwritev2.c): Likewise.
23918 (CFLAGS-pwritev64v2.c): Likewise.
23919 (CFLAGS-usleep.c): Likewise.
23920 (CFLAGS-syslog.c): Likewise.
23921 (CFLAGS-error.c): Likewise.
23922 (CFLAGS-getpass.c): Likewise.
23923 (CFLAGS-mkstemp.c): Likewise.
23924 (CFLAGS-mkstemp64.c): Likewise.
23925 (CFLAGS-getsysstats.c): Likewise.
23926 (CFLAGS-getusershell.c): Likewise.
23927 (CFLAGS-err.c): Likewise.
23928 (CFLAGS-tst-tsearch.c): Likewise.
23929 (CFLAGS-msync.c): Likewise.
23930 (CFLAGS-fdatasync.c): Likewise.
23931 (CFLAGS-fsync.c): Likewise.
23932 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
23933 (CFLAGS-unwind.c): Likewise.
23934 (CFLAGS-unwind-forcedunwind.c): Likewise.
23935 (CFLAGS-pthread_cancel.c): Likewise.
23936 (CFLAGS-pthread_setcancelstate.c): Likewise.
23937 (CFLAGS-pthread_setcanceltype.c): Likewise.
23938 (CFLAGS-cancellation.c): Likewise.
23939 (CFLAGS-libc-cancellation.c): Likewise.
23940 (CFLAGS-pthread_exit.c): Likewise.
23941 (CFLAGS-forward.c): Likewise.
23942 (CFLAGS-pthread_testcancel.c): Likewise.
23943 (CFLAGS-pthread_join.c): Likewise.
23944 (CFLAGS-pthread_timedjoin.c): Likewise.
23945 (CFLAGS-pthread_once.c): Likewise.
23946 (CFLAGS-pthread_cond_wait.c): Likewise.
23947 (CFLAGS-sem_wait.c): Likewise.
23948 (CFLAGS-sem_timedwait.c): Likewise.
23949 (CFLAGS-fcntl.c): Likewise.
23950 (CFLAGS-lockf.c): Likewise.
23951 (CFLAGS-pread.c): Likewise.
23952 (CFLAGS-pread64.c): Likewise.
23953 (CFLAGS-pwrite.c): Likewise.
23954 (CFLAGS-pwrite64.c): Likewise.
23955 (CFLAGS-wait.c): Likewise.
23956 (CFLAGS-waitpid.c): Likewise.
23957 (CFLAGS-sigwait.c): Likewise.
23958 (CFLAGS-msgrcv.c): Likewise.
23959 (CFLAGS-msgsnd.c): Likewise.
23960 (CFLAGS-tcdrain.c): Likewise.
23961 (CFLAGS-open.c): Likewise.
23962 (CFLAGS-open64.c): Likewise.
23963 (CFLAGS-pause.c): Likewise.
23964 (CFLAGS-recv.c): Likewise.
23965 (CFLAGS-send.c): Likewise.
23966 (CFLAGS-accept.c): Likewise.
23967 (CFLAGS-sendto.c): Likewise.
23968 (CFLAGS-connect.c): Likewise.
23969 (CFLAGS-recvfrom.c): Likewise.
23970 (CFLAGS-recvmsg.c): Likewise.
23971 (CFLAGS-sendmsg.c): Likewise.
23972 (CFLAGS-close.c): Likewise.
23973 (CFLAGS-read.c): Likewise.
23974 (CFLAGS-write.c): Likewise.
23975 (CFLAGS-nanosleep.c): Likewise.
23976 (CFLAGS-sigsuspend.c): Likewise.
23977 (CFLAGS-msync.c): Likewise.
23978 (CFLAGS-fdatasync.c): Likewise.
23979 (CFLAGS-fsync.c): Likewise.
23980 (CFLAGS-pt-system.c): Likewise.
23981 (CFLAGS-tst-cleanup2.c): Likewise.
23982 (CFLAGS-tst-cleanupx2.c): Likewise.
23983 (CFLAGS-flockfile.c): Likewise.
23984 (CFLAGS-ftrylockfile.c): Likewise.
23985 (CFLAGS-funlockfile.c): Likewise.
23986 (CFLAGS-tst-initializers1.c): Likewise.
23987 (CFLAGS-tst-initializers1-c89.c): Likewise.
23988 (CFLAGS-tst-initializers1-c99.c): Likewise.
23989 (CFLAGS-tst-initializers1-c11.c): Likewise.
23990 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
23991 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
23992 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
23993 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
23994 (CFLAGS-nscd_getgr_r.c): Likewise.
23995 (CFLAGS-nscd_gethst_r.c): Likewise.
23996 (CFLAGS-nscd_getai.c): Likewise.
23997 (CFLAGS-nscd_initgroups.c): Likewise.
23998 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
23999 (CFLAGS-pause.c): Likewise.
24000 (CFLAGS-pread.c): Likewise.
24001 (CFLAGS-pread64.c): Likewise.
24002 (CFLAGS-pwrite.c): Likewise.
24003 (CFLAGS-pwrite64.c): Likewise.
24004 (CFLAGS-sleep.c): Likewise.
24005 (CFLAGS-wait.c): Likewise.
24006 (CFLAGS-waitid.c): Likewise.
24007 (CFLAGS-waitpid.c): Likewise.
24008 (CFLAGS-getopt.c): Likewise.
24009 (CFLAGS-wordexp.c): Likewise.
24010 (CFLAGS-sysconf.c): Likewise.
24011 (CFLAGS-pathconf.c): Likewise.
24012 (CFLAGS-fpathconf.c): Likewise.
24013 (CFLAGS-spawn.c): Likewise.
24014 (CFLAGS-spawnp.c): Likewise.
24015 (CFLAGS-spawni.c): Likewise.
24016 (CFLAGS-glob.c): Likewise.
24017 (CFLAGS-glob64.c): Likewise.
24018 (CFLAGS-getconf.c): Likewise.
24019 (CFLAGS-nanosleep.c): Likewise.
24020 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
24021 (CFLAGS-getpwent.c): Likewise.
24022 (CFLAGS-getpw.c): Likewise.
24023 (CFLAGS-fgetpwent_r.c): Likewise.
24024 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
24025 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
24026 (CFLAGS-mq_timedreceive.c): Likewise.
24027 (CFLAGS-mq_timedsend.c): Likewise.
24028 (CFLAGS-clock_nanosleep.c): Likewise.
24029 (CFLAGS-librt-cancellation.c): Likewise.
24030 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
24031 (CFLAGS-getspent.c): Likewise.
24032 (CFLAGS-fgetspent.c): Likewise.
24033 (CFLAGS-fgetspent_r.c): Likewise.
24034 (CFLAGS-putspent.c): Likewise.
24035 (CFLAGS-getspnam.c): Likewise.
24036 (CFLAGS-getspnam_r.c): Likewise.
24037 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
24038 (CFLAGS-sigsuspend.c): Likewise.
24039 (CFLAGS-sigtimedwait.c): Likewise.
24040 (CFLAGS-sigwait.c): Likewise.
24041 (CFLAGS-sigwaitinfo.c): Likewise.
24042 (CFLAGS-sigreturn.c): Likewise.
24043 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
24044 (CFLAGS-vfwprintf.c): Likewise.
24045 (CFLAGS-tmpfile.c): Likewise.
24046 (CFLAGS-tmpfile64.c): Likewise.
24047 (CFLAGS-tempname.c): Likewise.
24048 (CFLAGS-psignal.c): Likewise.
24049 (CFLAGS-vprintf.c): Likewise.
24050 (CFLAGS-cuserid.c): Likewise.
24051 (CFLAGS-errlist.c): Likewise.
24052 (CFLAGS-siglist.c): Likewise.
24053 (CFLAGS-scanf15.c): Likewise.
24054 (CFLAGS-scanf17.c): Likewise.
24055 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
24056 (CFLAGS-msort.c): Likewise.
24057 (CFLAGS-qsort.c): Likewise.
24058 (CFLAGS-system.c): Likewise.
24059 (CFLAGS-fmtmsg.c): Likewise.
24060 (CFLAGS-strfmon.c): Likewise.
24061 (CFLAGS-strfmon_l.c): Likewise.
24062 (CFLAGS-strfromd.c): Likewise.
24063 (CFLAGS-strfromf.c): Likewise.
24064 (CFLAGS-strfroml.c): Likewise.
24065 (CFLAGS-tst-bsearch.c): Likewise.
24066 (CFLAGS-tst-qsort.c): Likewise.
24067 (CFLAGS-tst-makecontext2.c): Likewise.
24068 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
24069 (CFLAGS-xnlm_prot.c): Likewise.
24070 (CFLAGS-xrstat.c): Likewise.
24071 (CFLAGS-xyppasswd.c): Likewise.
24072 (CFLAGS-xklm_prot.c): Likewise.
24073 (CFLAGS-xrex.c): Likewise.
24074 (CFLAGS-xsm_inter.c): Likewise.
24075 (CFLAGS-xmount.c): Likewise.
24076 (CFLAGS-xrusers.c): Likewise.
24077 (CFLAGS-xspray.c): Likewise.
24078 (CFLAGS-xnfs_prot.c): Likewise.
24079 (CFLAGS-xrquota.c): Likewise.
24080 (CFLAGS-xkey_prot.c): Likewise.
24081 (CFLAGS-auth_unix.c): Likewise.
24082 (CFLAGS-key_call.c): Likewise.
24083 (CFLAGS-pmap_rmt.c): Likewise.
24084 (CFLAGS-clnt_perr.c): Likewise.
24085 (CFLAGS-openchild.c): Likewise.
24086 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
24087 (CFLAGS-msgsnd.c): Likewise.
24088 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
24089 * time/Makefile (CFLAGS-tzfile.c): Likewise.
24090 (CFLAGS-tzset.c): Likewise.
24091 (CFLAGS-getdate.c): Likewise.
24092 (CFLAGS-test_time.c): Likewise.
24093 (CPPFLAGS-tst-tzname.c): Likewise.
24094 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
24095 (CFLAGS-zic.c): Likewise.
24096 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
24097 (CFLAGS-wcswidth.c): Likewise.
24098 (CFLAGS-wcstol.c): Likewise.
24099 (CFLAGS-wcstoul.c): Likewise.
24100 (CFLAGS-wcstoll.c): Likewise.
24101 (CFLAGS-wcstoull.c): Likewise.
24102 (CFLAGS-wcstod.c): Likewise.
24103 (CFLAGS-wcstold.c): Likewise.
24104 (CFLAGS-wcstof128.c): Likewise.
24105 (CFLAGS-wcstof.c): Likewise.
24106 (CFLAGS-wcstol_l.c): Likewise.
24107 (CFLAGS-wcstoul_l.c): Likewise.
24108 (CFLAGS-wcstoll_l.c): Likewise.
24109 (CFLAGS-wcstoull_l.c): Likewise.
24110 (CFLAGS-wcstod_l.c): Likewise.
24111 (CFLAGS-wcstold_l.c): Likewise.
24112 (CFLAGS-wcstof128_l.c): Likewise.
24113 (CFLAGS-wcstof_l.c): Likewise.
24114 (CPPFLAGS-tst-wchar-h.c): Likewise.
24115 (CPPFLAGS-wcstold_l.c): Likewise.
583dd860 24116
f4b2aea6
PC
241172017-12-11 Paul A. Clarke <pc@us.ibm.com>
24118
24119 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
24120
c9cd7b0c
AZ
241212017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
24122 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24123
24124 * manual/tunables.texi (Hardware Capability Tunables): Document
24125 glibc.tune.cached_memopt.
24126 * sysdeps/powerpc/cpu-features.c: New file.
24127 * sysdeps/powerpc/cpu-features.h: New file.
24128 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
24129 _dl_powerpc_cpu_features.
24130 * sysdeps/powerpc/dl-tunables.list: New file.
24131 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
24132 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
24133 (INIT_ARCH): Initialize use_aligned_memopt.
24134 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
24135 IS_IN(rtld))]: Restrict dl_platform_init availability and
24136 initialize CPU features used by tunables.
24137 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
24138 Add memcpy-power8-cached.
24139 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
24140 __memcpy_power8_cached.
24141 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
24142 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
24143 New file.
24144
e70c6fee
L
241452017-12-11 H.J. Lu <hongjiu.lu@intel.com>
24146
24147 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
24148 (CFLAGS-noinl-tester.c): Likewise.
24149 (CFLAGS-tst-strlen.c): Likewise.
24150 (CFLAGS-stratcliff.c): Likewise.
24151 (CFLAGS-test-ffs.c): Likewise.
24152 (CFLAGS-tst-inlcall.c): Likewise.
24153 (CFLAGS-tst-xbzero-opt.c): Likewise.
24154 (CFLAGS-memcpy.c): Likewise.
24155 (CFLAGS-wordcopy.c): Likewise.
24156
dee94366
SL
241572017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
24158
24159 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
24160 Store r15 on stack and add cfi rule.
24161 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
24162 Likewise.
24163
363e4519 241642017-12-10 Aurelien Jarno <aurelien@aurel32.net>
f648728c
AJ
24165
24166 [BZ #22577]
24167 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
24168 call.
24169
9d0ffa60
L
241702017-12-07 H.J. Lu <hongjiu.lu@intel.com>
24171
24172 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24173 Add s_sinf-sse2 and s_sinf-fma.
24174 (CFLAGS-s_sinf-fma.c): New.
24175 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
24176 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
24177 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
24178
9574c7b6
L
241792017-12-07 H.J. Lu <hongjiu.lu@intel.com>
24180
24181 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
24182
d15e83c5
JM
241832017-12-07 Joseph Myers <joseph@codesourcery.com>
24184
24185 [BZ #22568]
24186 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
24187 part of result to imaginary part of argument if it is zero and the
24188 real part of the argument is not finite.
24189 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
24190 of result to real part of argument if it is zero and the imaginary
24191 part of the argument is not finite.
24192
d89756eb
MF
241932017-12-07 Mike FABIAN <mfabian@redhat.com>
24194
24195 [BZ #22524]
24196 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
24197 and to the list of locales to be built for testing.
24198 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
24199 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
24200 and build the collation rules upon that.
24201
1f9055ce
JM
242022017-12-07 Joseph Myers <joseph@codesourcery.com>
24203
24204 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
24205 * manual/math.texi (Mathematics): Document support for _Float32.
24206 * math/Makefile (test-types): Add float32.
24207 * math/Versions (GLIBC_2.27): Add _Float32 functions.
24208 * stdlib/Versions (GLIBC_2.27): Likewise.
24209 * wcsmbs/Versions (GLIBC_2.27): Likewise.
24210 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24211 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24212 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24213 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24214 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
24215 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
24216 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
24217 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
24218 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
24219 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
24220 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
24221 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
24222 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
24223 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
24224 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
24225 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
24226 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
24227 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
24228 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
24229 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
24230 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
24231 Likewise.
24232 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24233 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24234 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24235 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
24236 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
24237 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
24238 Likewise.
24239 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
24240 Likewise.
24241 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
24242 Likewise.
24243 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
24244 Likewise.
24245
24246 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
24247 Likewise.
24248 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
24249 Likewise.
24250 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
24251 Likewise.
24252 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
24253 Likewise.
24254 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24255 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24256 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24257 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24258 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
24259 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
24260 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24261 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24262 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24263 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24264 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
24265 Likewise.
24266 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
24267 Likewise.
24268 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
24269 Likewise.
24270 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
24271 Likewise.
24272 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
24273 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
24274 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
24275 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
24276 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
24277 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
24278 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
24279 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24280
5244527d
JM
242812017-12-06 Joseph Myers <joseph@codesourcery.com>
24282
fb1ca2aa
JM
24283 * stdlib/strtof.c: Include <bits/floatn.h>
24284 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
24285 and later undefine as macro. Define as weak alias if
24286 [!USE_WIDE_CHAR].
24287 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
24288 and later undefine as macro. Define as weak alias if
24289 [USE_WIDE_CHAR].
24290 * stdlib/strtof_l.c: Include <bits/floatn.h>
24291 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
24292 and later undefine as macro. Define as weak alias if
24293 [!USE_WIDE_CHAR].
24294 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
24295 and later undefine as macro. Define as weak alias if
24296 [USE_WIDE_CHAR].
24297
fc10cc3f
JM
24298 * stdlib/strfromf.c: Include <bits/floatn.h>.
24299 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
24300 and later undefine as macro and define as weak alias.
24301
e420d228
JM
24302 * math/test-float32.h: New file.
24303
26007a2f
JM
24304 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
24305 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
24306 (libm_alias_float_other_r): Create f32 alias.
24307 (libm_alias_float_r): Use semicolon before call to
24308 libm_alias_float_other_r.
24309
c191f64c
JM
24310 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
24311 second argument to libm_alias_float_other.
24312 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
24313 second argument to libm_alias_float_other.
24314 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
24315 argument to libm_alias_float_other.
24316
5244527d
JM
24317 [BZ #22561]
24318 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
24319 real part of result for argument 0 + i * NaN.
24320 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
24321 results for tests of 0 + i * NaN.
24322
d73fac82
AZ
243232017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24324
24325 * sysdeps/alpha/fpu/libm-test-ulps: Update.
24326
7ec094e8
DM
243272017-12-06 David S. Miller <davem@davemloft.net>
24328
24329 * sysdeps/sparc/fpu/libm-test-ulps: Update
24330 exp_{downward,towardzero,upward} ulps.
24331
53994f12
JM
243322017-12-06 Joseph Myers <joseph@codesourcery.com>
24333
1dbe6f64
JM
24334 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
24335 variables static.
24336
53994f12
JM
24337 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
24338 (Y0_2D): Likewise.
24339 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
24340 (Y0_2D): Likewise.
24341 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
24342 (Y0_2D): Likewise.
24343 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
24344 (Y0_2D): Likewise.
24345
62ea2193
MF
243462017-12-06 Mike FABIAN <mfabian@redhat.com>
24347
24348 [BZ #22515]
24349 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
24350 and to the list of locales to be built for testing.
24351 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
24352 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
24353 and build the collation rules upon that.
24354
87235d70
RS
243552017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24356
24357 * NEWS: Add sinf to list of optimized functions.
24358
0d93b7fd
JM
243592017-12-06 Joseph Myers <joseph@codesourcery.com>
24360
24361 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
24362 (__HAVE_FLOAT32X): Likewise.
24363 * manual/math.texi (Mathematics): Document support for _Float64
24364 and _Float32x.
24365 * math/Makefile (test-types): Add float64 and float32x.
24366 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
24367 functions.
24368 * stdlib/Versions (GLIBC_2.27): Likewise.
24369 * wcsmbs/Versions (GLIBC_2.27): Likewise.
24370 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24371 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24372 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24373 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24374 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
24375 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
24376 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
24377 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
24378 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
24379 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
24380 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
24381 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
24382 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
24383 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
24384 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
24385 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
24386 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
24387 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
24388 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
24389 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
24390 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
24391 Likewise.
24392 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24393 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24394 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24395 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
24396 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
24397 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
24398 Likewise.
24399 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
24400 Likewise.
24401 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
24402 Likewise.
24403 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
24404 Likewise.
24405 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
24406 Likewise.
24407 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
24408 Likewise.
24409 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
24410 Likewise.
24411 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
24412 Likewise.
24413 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24414 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24415 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24416 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24417 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
24418 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
24419 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24420 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24421 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24422 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24423 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
24424 Likewise.
24425 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
24426 Likewise.
24427 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
24428 Likewise.
24429 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
24430 Likewise.
24431 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
24432 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
24433 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
24434 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
24435 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
24436 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
24437 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
24438 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24439
f7787234
JM
244402017-12-05 Joseph Myers <joseph@codesourcery.com>
24441
24442 * bits/floatn-common.h: Include <bits/long-double.h>.
24443 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
24444 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
24445 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
24446 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
24447 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
24448 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
24449 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
24450 (__builtin_huge_valf64): Use __builtin_huge_vall.
24451 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
24452 (__builtin_inff64): Use __builtin_infl.
24453 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
24454 (__builtin_nanf64): Use __builtin_nanl.
24455 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
24456 (__builtin_nansf64): Use __builtin_nansl.
24457
363e4519
DL
244582017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
24459 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
6b5c8607 24460 Carlos O'Donnell <carlos@redhat.com>
07ed18d2
RA
24461
24462 * elf/dl-tunables.list: Add elision parameters.
24463 * manual/tunables.texi: Add entries about elision tunable.
24464 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
24465 Add callback functions to dynamically enable/disable elision.
24466 Add multiple callbacks functions to set elision parameters.
24467 Deleted __libc_enable_secure check.
24468 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
24469 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
24470 * configure: Regenerated.
24471 * configure.ac: Option enable_lock_elision was deleted.
24472 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
24473 * config.make.in: Remove references to enable_lock_elision.
24474 * manual/install.texi: Elision configure option was removed.
24475 * INSTALL: Regenerated to remove enable_lock_elision.
24476 * nptl/Makefile:
24477 Disable elision so it can verify error case for destroying a mutex.
24478 * sysdeps/powerpc/nptl/elide.h:
24479 Cleanup ENABLE_LOCK_ELISION check.
24480 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
24481 * sysdeps/s390/configure: Regenerated.
24482 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
24483 * nptl/tst-mutex8.c:
24484 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
24485 * sysdeps/powerpc/powerpc32/sysdep.h:
24486 Deleted all ENABLE_LOCK_ELISION checks.
24487 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
24488 * sysdeps/powerpc/sysdep.h: Likewise.
24489 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
24490 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
24491 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
24492 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
24493 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
24494 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
24495 enable-lock-elision.
24496
a5a2a76b
JM
244972017-12-05 Joseph Myers <joseph@codesourcery.com>
24498
24499 * stdlib/strtod.c: Include <bits/floatn.h>.
24500 (BUILD_DOUBLE): New macro.
24501 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
24502 (strtof64): Define and later undefine as macro. Define as weak
24503 alias if [!USE_WIDE_CHAR].
24504 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
24505 (wcstof64): Define and later undefine as macro. Define as weak
24506 alias if [USE_WIDE_CHAR].
24507 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
24508 (strtof32x): Define and later undefine as macro. Define as weak
24509 alias if [!USE_WIDE_CHAR].
24510 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
24511 (wcstof32x): Define and later undefine as macro. Define as weak
24512 alias if [USE_WIDE_CHAR].
24513 * stdlib/strtod_l.c: Include <bits/floatn.h>.
24514 (BUILD_DOUBLE): New macro.
24515 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
24516 (strtof64_l): Define and later undefine as macro. Define as weak
24517 alias if [!USE_WIDE_CHAR].
24518 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
24519 (wcstof64_l): Define and later undefine as macro. Define as weak
24520 alias if [USE_WIDE_CHAR].
24521 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
24522 (strtof32x_l): Define and later undefine as macro. Define as weak
24523 alias if [!USE_WIDE_CHAR].
24524 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
24525 (wcstof32x_l): Define and later undefine as macro. Define as weak
24526 alias if [USE_WIDE_CHAR].
24527
94d80dfc
AZ
245282017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24529
24530 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
24531 (reduced): Use ones as double instead of integer.
24532
00d54af7
SN
245332017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
24534
24535 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
24536
f2d64d62
JM
245372017-12-05 Joseph Myers <joseph@codesourcery.com>
24538
1f70eae4
JM
24539 * stdlib/strfromd.c: Include <bits/floatn.h>.
24540 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
24541 and later undefine as macro and define as weak alias.
24542 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
24543 Likewise.
24544
e2c4dce5
JM
24545 * math/test-float32x.h: New file.
24546 * math/test-float64.h: Likewise.
24547
f2d64d62
JM
24548 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
24549 (libm_alias_double_other_r_f64): New macro.
24550 (libm_alias_double_other_r_f32x): Likewise.
24551 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
24552 libm_alias_double_other_r_f32x.
24553 (libm_alias_double_r): Use semicolon before call to
24554 libm_alias_double_other_r.
24555 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
24556 <bits/floatn.h>.
24557 (libm_alias_double_other_r_f64): New macro.
24558 (libm_alias_double_other_r_f32x): Likewise.
24559 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
24560 libm_alias_double_other_r_f32x.
24561
91c318e7
L
245622017-12-05 H.J. Lu <hongjiu.lu@intel.com>
24563
24564 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
24565 int.
24566 (SINF_FUNC): Likewise. Replace floor with simple casts.
24567
de9661d6
MF
245682017-12-05 Mike FABIAN <mfabian@redhat.com>
24569
24570 [BZ #22517]
24571 * localedata/Makefile: Add et_EE.UTF-8 to test-input
24572 and to the list of locales to be built for testing.
24573 * localedata/et_EE.UTF-8.in: New file for testing the collation.
24574 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
24575 and build the collation rules upon that.
24576
f18b8dc7
CM
245772017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
24578
24579 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
24580 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
24581 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
24582 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
24583 instead of __insn__xxx.
24584 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
24585 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
24586 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
24587 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
24588 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
24589 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
24590
446d22e9
FW
245912017-12-05 Florian Weimer <fweimer@redhat.com>
24592
24593 Linux: Implement interfaces for memory protection keys
24594 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
24595 xsignal, xsysconf.
24596 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
24597 * support/xunistd.h (xsysconf): Declare.
24598 * support/xraise.c: New file.
24599 * support/xsigaction.c: Likewise.
24600 * support/xsignal.c: Likewise.
24601 * support/xsysconf.c: Likewise.
24602 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
24603 pkey_set, pkey_get, pkey_mprotect.
24604 [misc] (tests): Add tst-pkey.
24605 (tst-pkey): Link with -lpthread.
24606 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
24607 pkey_free, pkey_set, pkey_get, pkey_mprotect.
24608 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
24609 (PKEY_DISABLE_WRITE): Define.
24610 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
24611 Declare.
24612 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
24613 (SEGV_PKUERR): Add.
24614 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
24615 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
24616 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
24617 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
24618 Add.
24619 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
24620 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
24621 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
24622 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
24623 * sysdeps/unix/sysv/linux/**.abilist: Update.
24624
da616c14
FW
246252017-12-05 Florian Weimer <fweimer@redhat.com>
24626
24627 * support/tst-test_compare.c (subprocess): Use long long instead
24628 of long argument for consistent type width across 32-bit and
24629 64-bit architectures.
24630 (do_test): Adjust expected output.
24631
216933b2
JM
246322017-12-05 Joseph Myers <joseph@codesourcery.com>
24633
24634 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
24635 (cosf): Define using libm_alias_float.
24636 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
24637 (fabsf): Define using libm_alias_float.
24638 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
24639 (fmaf): Define using libm_alias_float.
24640 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
24641 (rintf): Define using libm_alias_float.
24642 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
24643 (sinf): Define using libm_alias_float.
24644 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
24645 <libm-alias-float.h>.
24646 (modff): Define using libm_alias_float.
24647 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
24648 <libm-alias-float.h>.
24649 (logbf): Define using libm_alias_float.
24650 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
24651 <libm-alias-float.h>.
24652 (ceilf): Define using libm_alias_float.
24653 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
24654 <libm-alias-float.h>.
24655 (copysignf): Define using libm_alias_float.
24656 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
24657 <libm-alias-float.h>.
24658 (floorf): Define using libm_alias_float.
24659 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
24660 <libm-alias-float.h>.
24661 (llrintf): Define using libm_alias_float.
24662 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
24663 <libm-alias-float.h>.
24664 (llroundf): Define using libm_alias_float.
24665 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
24666 <libm-alias-float.h>.
24667 (lrintf): Define using libm_alias_float.
24668 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
24669 <libm-alias-float.h>.
24670 (lroundf): Define using libm_alias_float.
24671 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
24672 <libm-alias-float.h>.
24673 (nearbyintf): Define using libm_alias_float.
24674 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
24675 <libm-alias-float.h>.
24676 (rintf): Define using libm_alias_float.
24677 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
24678 <libm-alias-float.h>.
24679 (roundf): Define using libm_alias_float.
24680 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
24681 <libm-alias-float.h>.
24682 (truncf): Define using libm_alias_float.
24683 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
24684 Include <libm-alias-float.h>.
24685 (ceilf): Define using libm_alias_float.
24686 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
24687 Include <libm-alias-float.h>.
24688 (copysignf): Define using libm_alias_float.
24689 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
24690 Include <libm-alias-float.h>.
24691 (floorf): Define using libm_alias_float.
24692 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
24693 Include <libm-alias-float.h>.
24694 (llrintf): Define using libm_alias_float.
24695 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
24696 Include <libm-alias-float.h>.
24697 (llroundf): Define using libm_alias_float.
24698 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
24699 Include <libm-alias-float.h>.
24700 (logbf): Define using libm_alias_float.
24701 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
24702 Include <libm-alias-float.h>.
24703 (lrintf): Define using libm_alias_float.
24704 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
24705 Include <libm-alias-float.h>.
24706 (lroundf): Define using libm_alias_float.
24707 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
24708 Include <libm-alias-float.h>.
24709 (modff): Define using libm_alias_float.
24710 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
24711 Include <libm-alias-float.h>.
24712 (roundf): Define using libm_alias_float.
24713 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
24714 Include <libm-alias-float.h>.
24715 (truncf): Define using libm_alias_float.
24716 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
24717 <libm-alias-float.h>.
24718 (llrintf): Define using libm_alias_float.
24719 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
24720 <libm-alias-float.h>.
24721 (llroundf): Define using libm_alias_float.
24722 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
24723 <libm-alias-float.h>.
24724 (ceilf): Define using libm_alias_float.
24725 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
24726 <libm-alias-float.h>.
24727 (floorf): Define using libm_alias_float.
24728 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
24729 <libm-alias-float.h>.
24730 (llroundf): Define using libm_alias_float.
24731 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
24732 <libm-alias-float.h>.
24733 (lroundf): Define using libm_alias_float.
24734 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
24735 <libm-alias-float.h>.
24736 (roundf): Define using libm_alias_float.
24737 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
24738 <libm-alias-float.h>.
24739 (truncf): Define using libm_alias_float.
24740 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
24741 <libm-alias-float.h>.
24742 (copysignf): Define using libm_alias_float.
24743 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
24744 <libm-alias-float.h>.
24745 (llrintf): Define using libm_alias_float.
24746 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
24747 <libm-alias-float.h>.
24748 (llroundf): Define using libm_alias_float.
24749 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
24750 <libm-alias-float.h>.
24751 (lrintf): Define using libm_alias_float.
24752 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
24753 <libm-alias-float.h>.
24754 (lroundf): Define using libm_alias_float.
24755 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
24756 <libm-alias-float.h>.
24757 (ceilf): Define using libm_alias_float.
24758 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
24759 <libm-alias-float.h>.
24760 (copysignf): Define using libm_alias_float.
24761 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
24762 <libm-alias-float.h>.
24763 (cosf): Define using libm_alias_float.
24764 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
24765 <libm-alias-float.h>.
24766 (floorf): Define using libm_alias_float.
24767 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
24768 <libm-alias-float.h>.
24769 (llrintf): Define using libm_alias_float.
24770 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
24771 <libm-alias-float.h>.
24772 (llroundf): Define using libm_alias_float.
24773 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
24774 <libm-alias-float.h>.
24775 (logbf): Define using libm_alias_float.
24776 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
24777 <libm-alias-float.h>.
24778 (modff): Define using libm_alias_float.
24779 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
24780 <libm-alias-float.h>.
24781 (roundf): Define using libm_alias_float.
24782 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
24783 <libm-alias-float.h>.
24784 (sinf): Define using libm_alias_float.
24785 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
24786 <libm-alias-float.h>.
24787 (truncf): Define using libm_alias_float.
24788 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
24789 <libm-alias-float.h>.
24790 (ceilf): Define using libm_alias_float.
24791 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
24792 <libm-alias-float.h>.
24793 (copysignf): Define using libm_alias_float.
24794 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
24795 <libm-alias-float.h>.
24796 (floorf): Define using libm_alias_float.
24797 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
24798 <libm-alias-float.h>.
24799 (llrintf): Define using libm_alias_float.
24800 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
24801 <libm-alias-float.h>.
24802 (llroundf): Define using libm_alias_float.
24803 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
24804 <libm-alias-float.h>.
24805 (nearbyintf): Define using libm_alias_float.
24806 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
24807 <libm-alias-float.h>.
24808 (rintf): Define using libm_alias_float.
24809 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
24810 <libm-alias-float.h>.
24811 (roundf): Define using libm_alias_float.
24812 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
24813 <libm-alias-float.h>.
24814 (truncf): Define using libm_alias_float.
24815 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
24816 <libm-alias-float.h>.
24817 (ceilf): Define using libm_alias_float.
24818 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
24819 <libm-alias-float.h>.
24820 (floorf): Define using libm_alias_float.
24821 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
24822 <libm-alias-float.h>.
24823 (llroundf): Define using libm_alias_float.
24824 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
24825 <libm-alias-float.h>.
24826 (roundf): Define using libm_alias_float.
24827 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
24828 <libm-alias-float.h>.
24829 (truncf): Define using libm_alias_float.
24830 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
24831 <libm-alias-float.h>.
24832 (copysignf): Define using libm_alias_float.
24833 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
24834 <libm-alias-float.h>.
24835 (llrintf): Define using libm_alias_float.
24836 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
24837 <libm-alias-float.h>.
24838 (llroundf): Define using libm_alias_float.
24839 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
24840 <libm-alias-float.h>.
24841 (cosf): Define using libm_alias_float.
24842 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
24843 <libm-alias-float.h>.
24844 (llrintf): Define using libm_alias_float.
24845 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
24846 <libm-alias-float.h>.
24847 (llroundf): Define using libm_alias_float.
24848 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
24849 <libm-alias-float.h>.
24850 (sinf): Define using libm_alias_float.
24851
93485524
FW
248522017-12-04 Florian Weimer <fweimer@redhat.com>
24853
24854 * support/check.h (TEST_COMPARE): Define.
24855 (support_test_compare_failure): Declare.
24856 * support/Makefile (libsupport-routines): Add
24857 support_test_compare_failure.
24858 (tests): Add tst-test_compare.
24859 * support /support_test_compare_failure.c: New file.
24860 * support/tst-test_compare.c: Likewise.
24861
96b06a19
MF
248622017-12-04 Mike FABIAN <mfabian@redhat.com>
24863
24864 [BZ #22527]
24865 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
24866 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
24867 available, this rewrite of the collation rules does reproduce
24868 the test file in the same order.
24869
1f6d91f3
MF
248702017-12-04 Mike FABIAN <mfabian@redhat.com>
24871
24872 [BZ #10580]
24873 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
24874 digraphs in the month and day names. Using single code points for
24875 digraphs is deprecated. While there are dedicated Unicode
24876 codepoints, for the digraphs, these are included for backwards
24877 compatibility and modern texts use a sequence of Basic Latin
24878 characters. See: https://www.unicode.org/faq/ligature_digraph.html
24879 This makes the month and day names agree exactly with CLDR now,
24880 CLDR does not use the single code points for the digraphs either.
24881
2e49fed8
CM
248822017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
24883
24884 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
24885
73895b49
JM
248862017-12-04 Joseph Myers <joseph@codesourcery.com>
24887
24888 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
24889 of floor.
24890
4c1d801a
SP
248912017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
24892
24893 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
24894 Define only for libc.so.
24895
478593e6
SL
248962017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
24897
24898 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
24899 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
6b5c8607 24900 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
478593e6
SL
24901 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
24902 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
24903
7863a711
RS
249042017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24905
24906 [BZ #5997]
24907 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
24908
800a496a
JDA
249092017-12-02 John David Anglin <danglin@gcc.gnu.org>
24910
b3f7fb12
JDA
24911 [BZ libc/19170]
24912 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
24913 PREINIT_FUNCTION_WEAK is nonzero.
24914 (gmon_initializer): New function. Put procedure label for it in
24915 .init_array section.
24916 (_init): Don't call PREINIT_FUNCTION.
24917 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
24918 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
24919 value when map argument is null.
24920
800a496a
JDA
24921 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
24922 depi instruction from PIC pc-relative sequence.
24923 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
24924 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
24925 (elf_machine_load_address): Likewise.
24926 (elf_machine_runtime_setup): Likewise.
24927
d17542d2
JM
249282017-12-02 Joseph Myers <joseph@codesourcery.com>
24929
24930 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
24931 <libm-alias-double.h>.
24932 (logb): Define using libm_alias_double.
24933 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
24934 <libm-alias-double.h>.
24935 (copysign): Define using libm_alias_double.
24936 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
24937 <libm-alias-double.h>.
24938 (llrint): Define using libm_alias_double.
24939 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
24940 <libm-alias-double.h>.
24941 (llround): Define using libm_alias_double.
24942 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
24943 <libm-alias-double.h>.
24944 (lrint): Define using libm_alias_double.
24945 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
24946 <libm-alias-double.h>.
24947 (lround): Define using libm_alias_double.
24948 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
24949 Include <libm-alias-double.h>.
24950 (copysign): Define using libm_alias_double.
24951 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
24952 Include <libm-alias-double.h>.
24953 (llrint): Define using libm_alias_double.
24954 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
24955 Include <libm-alias-double.h>.
24956 (llround): Define using libm_alias_double.
24957 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
24958 <libm-alias-double.h>.
24959 (logb): Define using libm_alias_double.
24960 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
24961 Include <libm-alias-double.h>.
24962 (lrint): Define using libm_alias_double.
24963 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
24964 Include <libm-alias-double.h>.
24965 (lround): Define using libm_alias_double.
24966 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
24967 <libm-alias-double.h>.
24968 (llrint): Define using libm_alias_double.
24969 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
24970 <libm-alias-double.h>.
24971 (llround): Define using libm_alias_double.
24972 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
24973 <libm-alias-double.h>.
24974 (llround): Define using libm_alias_double.
24975 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
24976 <libm-alias-double.h>.
24977 (lround): Define using libm_alias_double.
24978 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
24979 <libm-alias-double.h>.
24980 (copysign): Define using libm_alias_double.
24981 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
24982 <libm-alias-double.h>.
24983 (llrint): Define using libm_alias_double.
24984 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
24985 <libm-alias-double.h>.
24986 (llround): Define using libm_alias_double.
24987 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
24988 <libm-alias-double.h>.
24989 (lrint): Define using libm_alias_double.
24990 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
24991 <libm-alias-double.h>.
24992 (lround): Define using libm_alias_double.
24993 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
24994 <libm-alias-double.h>.
24995 (copysign): Define using libm_alias_double.
24996 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
24997 <libm-alias-double.h>.
24998 (llrint): Define using libm_alias_double.
24999 (lrint): Likewise.
25000 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
25001 <libm-alias-double.h>.
25002 (llround): Define using libm_alias_double.
25003 (lround): Likewise.
25004 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
25005 <libm-alias-double.h>.
25006 (logb): Define using libm_alias_double.
25007 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
25008 <libm-alias-double.h>.
25009 (copysign): Define using libm_alias_double.
25010 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
25011 <libm-alias-double.h>.
25012 (llrint): Define using libm_alias_double.
25013 (lrint): Likewise.
25014 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
25015 <libm-alias-double.h>.
25016 (llround): Define using libm_alias_double.
25017 (lround): Likewise.
25018 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
25019 <libm-alias-double.h>.
25020 (llround): Define using libm_alias_double.
25021 (lround): Likewise.
25022 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
25023 <libm-alias-double.h>.
25024 (copysign): Define using libm_alias_double.
25025 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
25026 <libm-alias-double.h>.
25027 (llrint): Define using libm_alias_double.
25028 (lrint): Likewise.
25029 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
25030 <libm-alias-double.h>.
25031 (llround): Define using libm_alias_double.
25032 (lround): Likewise.
25033 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
25034 <libm-alias-double.h>.
25035 (llrint): Define using libm_alias_double.
25036 (lrint): Likewise.
25037 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
25038 <libm-alias-double.h>.
25039 (llround): Define using libm_alias_double.
25040 (lround): Likewise.
25041
ec2cf3f4
JM
250422017-12-01 Joseph Myers <joseph@codesourcery.com>
25043
0ddde474
JM
25044 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
25045 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
25046 compat symbol based on llround.
25047
0d5ba561
JM
25048 * sysdeps/powerpc/power7/fpu/s_logb.c
25049 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
25050 symbol based on __logb, not on logb.
25051 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
25052 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
25053 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
25054 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
25055
51ea3b20
JM
25056 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
25057 (rint): Define using libm_alias_double.
25058 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
25059 <libm-alias-double.h>.
25060 (modf): Define using libm_alias_double.
25061 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
25062 <libm-alias-double.h>.
25063 (ceil): Define using libm_alias_double.
25064 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
25065 <libm-alias-double.h>.
25066 (floor): Define using libm_alias_double.
25067 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
25068 <libm-alias-double.h>.
25069 (nearbyint): Define using libm_alias_double.
25070 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
25071 <libm-alias-double.h>.
25072 (rint): Define using libm_alias_double.
25073 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
25074 <libm-alias-double.h>.
25075 (round): Define using libm_alias_double.
25076 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
25077 <libm-alias-double.h>.
25078 (trunc): Define using libm_alias_double.
25079 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
25080 <libm-alias-double.h>.
25081 (ceil): Define using libm_alias_double.
25082 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
25083 Include <libm-alias-double.h>.
25084 (floor): Define using libm_alias_double.
25085 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
25086 <libm-alias-double.h>.
25087 (modf): Define using libm_alias_double.
25088 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
25089 Include <libm-alias-double.h>.
25090 (round): Define using libm_alias_double.
25091 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
25092 Include <libm-alias-double.h>.
25093 (trunc): Define using libm_alias_double.
25094 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
25095 <libm-alias-double.h>.
25096 (ceil): Define using libm_alias_double.
25097 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
25098 <libm-alias-double.h>.
25099 (floor): Define using libm_alias_double.
25100 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
25101 <libm-alias-double.h>.
25102 (round): Define using libm_alias_double.
25103 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
25104 <libm-alias-double.h>.
25105 (trunc): Define using libm_alias_double.
25106 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
25107 <libm-alias-double.h>.
25108 (ceil): Define using libm_alias_double.
25109 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
25110 <libm-alias-double.h>.
25111 (floor): Define using libm_alias_double.
25112 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
25113 <libm-alias-double.h>.
25114 (modf): Define using libm_alias_double.
25115 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
25116 <libm-alias-double.h>.
25117 (round): Define using libm_alias_double.
25118 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
25119 <libm-alias-double.h>.
25120 (trunc): Define using libm_alias_double.
25121 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
25122 <libm-alias-double.h>.
25123 (ceil): Define using libm_alias_double.
25124 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
25125 <libm-alias-double.h>.
25126 (floor): Define using libm_alias_double.
25127 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
25128 <libm-alias-double.h>.
25129 (nearbyint): Define using libm_alias_double.
25130 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
25131 <libm-alias-double.h>.
25132 (rint): Define using libm_alias_double.
25133 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
25134 <libm-alias-double.h>.
25135 (round): Define using libm_alias_double.
25136 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
25137 <libm-alias-double.h>.
25138 (trunc): Define using libm_alias_double.
25139 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
25140 <libm-alias-double.h>.
25141 (ceil): Define using libm_alias_double.
25142 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
25143 <libm-alias-double.h>.
25144 (floor): Define using libm_alias_double.
25145 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
25146 <libm-alias-double.h>.
25147 (round): Define using libm_alias_double.
25148 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
25149 <libm-alias-double.h>.
25150 (trunc): Define using libm_alias_double.
25151
ec2cf3f4
JM
25152 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
25153 (fabs): Define using libm_alias_double.
25154 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
25155 (fma): Define using libm_alias_double.
25156 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
25157 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
25158 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
25159 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
25160
5b7bd975
AZ
251612017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25162
0594b13f
AZ
25163 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
25164
dbdfcf3b
AZ
25165 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
25166 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
25167 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
25168
5b7bd975
AZ
25169 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
25170 due redirect macro.
25171
ef9ecfa6
AS
251722017-12-01 Andreas Schwab <schwab@linux-m68k.org>
25173
25174 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
25175
5b4e5e78
AZ
251762017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25177
2a14526b
AZ
25178 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
25179 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
25180 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
25181 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
25182
dbeb74ef 25183 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
1c051a9b
AZ
25184 (libm-sysdep_routines): Add s_nearbyintf-generic and
25185 s_nearbyint-generic.
25186 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
25187 New file.
25188 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
25189 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
25190 Likewise.
25191 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
25192 Likewise.
25193 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
25194 file.
25195 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
25196 Likewise.
25197
25198 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
dbeb74ef
AZ
25199 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
25200 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
25201 file.
25202 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
25203 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
25204 Likewise.
25205 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
25206 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
25207 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
25208
fa7ded96
AZ
25209 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
25210 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
25211 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
25212 file.
25213 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
25214 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
25215 Likewise.
25216 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
25217 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
25218 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
25219
e240cf0e
AZ
25220 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
25221 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
25222 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
25223 file.
25224 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
25225 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
25226 Likewise.
25227 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
25228 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
25229 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
25230
5b4e5e78
AZ
25231 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
25232 (sysdep_calls): New rule.
25233 (sysdep_routines): Use sysdep_calls as base.
25234 (libm-sysdep_routines): Add generic rule for symbols shared with
25235 libc. Add s_copysign-generic and s_copysign-generic objects.
25236 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
25237 New file.
25238 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
25239 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
25240 Likewise.
25241 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
25242 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
25243 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
25244
d985adae
MF
252452017-12-01 Mike FABIAN <mfabian@redhat.com>
25246
25247 [BZ #22519]
25248 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
25249 the list of locales to be built for testing.
25250 * localedata/is_IS.UTF-8.in: New file.
25251 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
25252 on iso14651_t1.
25253
ff84a0e0
JM
252542017-12-01 Joseph Myers <joseph@codesourcery.com>
25255
25256 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
25257 <libm-alias-float.h>.
25258 (fabsf): Define using libm_alias_float.
25259
ef5d8b43
L
252602017-11-30 H.J. Lu <hongjiu.lu@intel.com>
25261
25262 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
25263
c0535adf
JM
252642017-11-30 Joseph Myers <joseph@codesourcery.com>
25265
f938b397
JM
25266 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
25267 <libm-alias-float.h>.
25268 (fabsf): Define using libm_alias_float.
25269 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
25270 <libm-alias-float.h>.
25271 (lrintf): Define using libm_alias_float.
25272 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
25273 <libm-alias-float.h>.
25274 (rintf): Define using libm_alias_float.
25275
2251fad0
JM
25276 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
25277 <libm-alias-double.h>.
25278 (fabs): Define using libm_alias_double.
25279 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
25280 <libm-alias-double.h>.
25281 (lrint): Define using libm_alias_double.
25282 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
25283 <libm-alias-double.h>.
25284 (rint): Define using libm_alias_double.
25285
e53df1de
JM
25286 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
25287 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
25288 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
25289 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
25290 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
25291 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
25292 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
25293 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
25294 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
25295 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
25296 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
25297 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
25298 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
25299 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
25300 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
25301 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
25302 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
25303 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
25304 s_atan_template.c.
25305 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
25306 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
25307 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
25308 s_ceil_template.c.
25309 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
25310 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
25311 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
25312 s_cos_template.c.
25313 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
25314 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
25315 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
25316 s_expm1_template.c.
25317 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
25318 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
25319 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
25320 s_fabs_template.c.
25321 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
25322 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
25323 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
25324 s_floor_template.c.
25325 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
25326 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
25327 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
25328 s_frexp_template.c.
25329 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
25330 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
25331 s_lrint_template.c.
25332 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
25333 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
25334 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
25335 s_modf_template.c.
25336 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
25337 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
25338 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
25339 s_nearbyint_template.c.
25340 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
25341 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
25342 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
25343 s_remquo_template.c.
25344 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
25345 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
25346 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
25347 s_rint_template.c.
25348 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
25349 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
25350 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
25351 s_sin_template.c.
25352 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
25353 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
25354 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
25355 s_sincos_template.c.
25356 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
25357 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
25358 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
25359 s_tan_template.c.
25360 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
25361 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
25362 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
25363 s_tanh_template.c.
25364 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
25365 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
25366 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
25367 s_trunc_template.c.
25368 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
25369 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
25370 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
25371 s_atan.c instead of including s_atan.c.
25372 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
25373 s_atanf.c instead of including s_atanf.c.
25374 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
25375 s_atanl.c instead of including s_atanl.c.
25376 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
25377 instead of s_atan.c.
25378 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
25379 instead of s_atanf.c.
25380 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
25381 instead of s_atanl.c.
25382
c0535adf
JM
25383 * scripts/update-copyrights: Do not handle intl/plural.c
25384 specially.
25385
1faaf703
JB
253862017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
25387
25388 [BZ #22432]
25389 * configure.ac (BISON): Require to be present.
25390 * configure: Regenerated.
25391 * intl/Makefile (generated): Add plural.c.
25392 [$(BISON) != no]: Make code unconditional.
25393 (plural.c): Change rule to $(objpfx)plural.c.
25394 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
25395 * intl/plural.c: Remove.
25396 * manual/install.texi (Tools for Compilation): Document bison as
25397 required.
25398 * INSTALL: Regenerated.
25399
faec6323
JM
254002017-11-30 Joseph Myers <joseph@codesourcery.com>
25401
bd6ea9ed
JM
25402 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
25403 <libm-alias-double.h>.
25404 (llrint): Define using libm_alias_double.
25405 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
25406 <libm-alias-float.h>.
25407 (llrintf): Define using libm_alias_float.
25408 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
25409 <libm-alias-ldouble.h>.
25410 (llrintl): Define using libm_alias_ldouble.
25411
faec6323
JM
25412 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
25413 declare_mgen_alias instead of weak_alias.
25414 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
25415 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
25416 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
25417
023cade3
AZ
254182017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25419
9e2279a0
AZ
25420 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
25421 Add add_n-generic.
25422 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
25423 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
25424 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
25425
75f37c71
AZ
25426 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
25427 Add submul_1-generic.
25428 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
25429 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
25430 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
25431
b70cbbfc 25432 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
dda1d2e8
AZ
25433 Add addmul_1-generic.
25434 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
25435 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
25436 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
25437
25438 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
b70cbbfc
AZ
25439 Add sub_n-generic.
25440 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
25441 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
25442 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
25443
023cade3
AZ
25444 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
25445 Add mul_1-generic.
25446 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
25447 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
25448 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
25449
fbb5fd03
MF
254502017-11-30 Mike FABIAN <mfabian@redhat.com>
25451
25452 According to CLDR, collation rules for Serbian and Bosnian
25453 should be the same as for Croatian.
25454
25455 [BZ #22534]
25456 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
25457 and to the list of locales to be built for testing.
25458 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
25459 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
25460 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
25461 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
25462
5e56e937
MF
254632017-11-30 Mike FABIAN <mfabian@redhat.com>
25464
25465 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
25466 to make test case pass.
25467 * localedata/hr_HR.UTF-8.in: Add more test strings.
25468
cf4341ca
MF
254692017-11-30 Mike FABIAN <mfabian@redhat.com>
25470
25471 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
25472
363e4519 254732017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
9ca6b343
DSN
25474
25475 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
25476 the list of locales to built for testing.
25477 * localedata/hr_HR.UTF-8.in: New file.
25478
363e4519 254792017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
37075ae1
DSN
25480
25481 [BZ #10580]
25482 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
25483 iso14651_t1.
25484 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
25485 CLDR (except use ligatures for the digraphs, CLDR does not use
25486 the ligatures), add first_workday, some fixes in the date and time
25487 formats.
25488 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
25489 for Đ and đ.
25490 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
25491 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
25492 Add int_p_cs_precedes and int_n_cs_precedes.
25493 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
25494 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
25495 LC_MONETARY now).
25496 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
25497 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
25498 name_miss.
25499 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
25500 and lang_lib. Change postal_fmt.
25501
f33632cc
L
255022017-11-30 H.J. Lu <hongjiu.lu@intel.com>
25503
25504 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
25505 <setjmp.h>.
25506 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
25507 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
25508 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
25509 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
25510 * sysdeps/generic/setjmpP.h: New file.
25511 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
25512 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
25513 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
25514 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
25515 Add jmp_buf-ssp.sym.
25516 (tests): Add tst-saved_mask-1.
25517
34697694
AS
255182017-11-30 Arjun Shankar <arjun@redhat.com>
25519
25520 [BZ #22375]
37ac8e63 25521 CVE-2017-17426
34697694
AS
25522 * malloc/malloc.c (__libc_malloc): Use checked_request2size
25523 instead of request2size.
25524
3e5efdbd
JM
255252017-11-30 Joseph Myers <joseph@codesourcery.com>
25526
18305fba
JM
25527 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
25528 (__lllrint): Remove alias.
25529 (lllrint): Likewise.
25530 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
25531 (__lllrintf): Likewise.
25532 (lllrintf): Likewise.
25533
3e5efdbd
JM
25534 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
25535 <libm-alias-float.h>.
25536 (copysignf): Define using libm_alias_float.
25537 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
25538 <libm-alias-float.h>.
25539 (fabsf): Define using libm_alias_float.
25540 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
25541 Include <libm-alias-float.h>.
25542 (copysignf): Define using libm_alias_float.
25543 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
25544 <libm-alias-float.h>.
25545 (fabsf): Define using libm_alias_float.
25546 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
25547 <libm-alias-float.h>.
25548 (fdimf): Define using libm_alias_float.
25549 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
25550 <libm-alias-float.h>.
25551 (fmaf): Define using libm_alias_float.
25552 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
25553 <libm-alias-float.h>.
25554 (llrintf): Define using libm_alias_float.
25555 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
25556 Include <libm-alias-float.h>.
25557 (nearbyintf): Define using libm_alias_float.
25558 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
25559 <libm-alias-float.h>.
25560 (rintf): Define using libm_alias_float.
25561 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
25562 <libm-alias-float.h>.
25563 (llrintf): Define using libm_alias_float.
25564 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
25565 <libm-alias-float.h>.
25566 (lrintf): Define using libm_alias_float.
25567 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
25568 <libm-alias-float.h>.
25569 (nearbyintf): Define using libm_alias_float.
25570 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
25571 <libm-alias-float.h>.
25572 (rintf): Define using libm_alias_float.
25573 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
25574 <libm-alias-float.h>.
25575 (ceilf): Define using libm_alias_float.
25576 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
25577 <libm-alias-float.h>.
25578 (floorf): Define using libm_alias_float.
25579 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
25580 <libm-alias-float.h>.
25581 (fmaf): Define using libm_alias_float.
25582 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
25583 <libm-alias-float.h>.
25584 (lrintf): Define using libm_alias_float.
25585 (llrintf): Likewise.
25586 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
25587 <libm-alias-float.h>.
25588 (nearbyintf): Define using libm_alias_float.
25589 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
25590 <libm-alias-float.h>.
25591 (rintf): Define using libm_alias_float.
25592 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
25593 <libm-alias-float.h>.
25594 (truncf): Define using libm_alias_float.
25595 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
25596 <libm-alias-float.h>.
25597 (copysignf): Define using libm_alias_float.
25598 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
25599 <libm-alias-float.h>.
25600 (fabsf): Define using libm_alias_float.
25601 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
25602 <libm-alias-float.h>.
25603 (lrintf): Define using libm_alias_float.
25604 (llrintf): Likewise.
25605 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
25606 <libm-alias-float.h>.
25607 (nearbyintf): Define using libm_alias_float.
25608 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
25609 <libm-alias-float.h>.
25610 (rintf): Define using libm_alias_float.
25611
011fba7e
JM
256122017-11-29 Joseph Myers <joseph@codesourcery.com>
25613
875cd548
JM
25614 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
25615 <libm-alias-double.h>.
25616 (copysign): Define using libm_alias_double.
25617 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
25618 <libm-alias-double.h>.
25619 (fabs): Define using libm_alias_double.
25620 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
25621 Include <libm-alias-double.h>.
25622 (copysign): Define using libm_alias_double.
25623 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
25624 <libm-alias-double.h>.
25625 (fabs): Define using libm_alias_double.
25626 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
25627 <libm-alias-double.h>.
25628 (fdim): Define using libm_alias_double.
25629 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
25630 <libm-alias-double.h>.
25631 (fma): Define using libm_alias_double.
25632 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
25633 <libm-alias-double.h>.
25634 (llrint): Define using libm_alias_double.
25635 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
25636 Include <libm-alias-double.h>.
25637 (nearbyint): Define using libm_alias_double.
25638 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
25639 <libm-alias-double.h>.
25640 (rint): Define using libm_alias_double.
25641 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
25642 <libm-alias-double.h>.
25643 (fabs): Define using libm_alias_double.
25644 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
25645 <libm-alias-double.h>.
25646 (llrint): Define using libm_alias_double.
25647 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
25648 <libm-alias-double.h>.
25649 (nearbyint): Define using libm_alias_double.
25650 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
25651 <libm-alias-double.h>.
25652 (rint): Define using libm_alias_double.
25653 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
25654 <libm-alias-double.h>.
25655 (ceil): Define using libm_alias_double.
25656 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
25657 <libm-alias-double.h>.
25658 (floor): Define using libm_alias_double.
25659 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
25660 <libm-alias-double.h>.
25661 (fma): Define using libm_alias_double.
25662 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
25663 <libm-alias-double.h>.
25664 (lrint): Define using libm_alias_double.
25665 (llrint): Likewise.
25666 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
25667 <libm-alias-double.h>.
25668 (nearbyint): Define using libm_alias_double.
25669 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
25670 <libm-alias-double.h>.
25671 (rint): Define using libm_alias_double.
25672 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
25673 <libm-alias-double.h>.
25674 (trunc): Define using libm_alias_double.
25675 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
25676 <libm-alias-double.h>.
25677 (copysign): Define using libm_alias_double.
25678 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
25679 <libm-alias-double.h>.
25680 (fabs): Define using libm_alias_double.
25681 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
25682 <libm-alias-double.h>.
25683 (lrint): Define using libm_alias_double.
25684 (llrint): Likewise.
25685 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
25686 <libm-alias-double.h>.
25687 (nearbyint): Define using libm_alias_double.
25688 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
25689 <libm-alias-double.h>.
25690 (rint): Define using libm_alias_double.
25691
cf4ebc27
JM
25692 [BZ #22229]
25693 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
25694 <math_ldbl_opt.h>.
25695 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25696
0c097378
JM
25697 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
25698 SPARC --disable-multi-arch glibc variants.
25699
34bb10aa
JM
25700 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
25701 <libm-alias-float.h>.
25702 (exp2f): Define using libm_alias_float, or libm_alias_float_other
25703 if [SHARED].
25704 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
25705 <libm-alias-float.h>.
25706 (exp2f): Define using libm_alias_float, or libm_alias_float_other
25707 if [SHARED].
25708 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
25709 <libm-alias-float.h>.
25710 (exp2f): Define using libm_alias_float, or libm_alias_float_other
25711 if [SHARED].
25712 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
25713 <libm-alias-float.h>.
25714 (exp2f): Define using libm_alias_float, or libm_alias_float_other
25715 if [SHARED].
25716 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
25717 <libm-alias-float.h>.
25718 (exp2f): Define using libm_alias_float, or libm_alias_float_other
25719 if [SHARED].
25720 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
25721 <libm-alias-float.h>.
25722 (ceilf): Define using libm_alias_float.
25723 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
25724 <libm-alias-float.h>.
25725 (floorf): Define using libm_alias_float.
25726 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
25727 <libm-alias-float.h>.
25728 (fmaf): Define using libm_alias_float.
25729 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
25730 <libm-alias-float.h>.
25731 (nearbyintf): Define using libm_alias_float.
25732 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
25733 <libm-alias-float.h>.
25734 (rintf): Define using libm_alias_float.
25735 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
25736 <libm-alias-float.h>.
25737 (truncf): Define using libm_alias_float.
25738 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
25739 (copysignf): Define using libm_alias_float.
25740 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
25741 (cosf): Define using libm_alias_float.
25742 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
25743 (fabsf): Define using libm_alias_float.
25744 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
25745 (fmaxf): Define using libm_alias_float.
25746 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
25747 (fminf): Define using libm_alias_float.
25748 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
25749 (llrintf): Define using libm_alias_float.
25750 [!__ILP32__] (lrintf): Likewise.
25751 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
25752 (sincosf): Define using libm_alias_float.
25753 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
25754 (sinf): Define using libm_alias_float.
25755 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
25756 (lrintf): Define using libm_alias_float.
25757
011fba7e
JM
25758 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
25759 <libm-alias-double.h>.
25760 (atan): Define using libm_alias_double.
25761 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
25762 <libm-alias-double.h>.
25763 (ceil): Define using libm_alias_double.
25764 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
25765 <libm-alias-double.h>.
25766 (floor): Define using libm_alias_double.
25767 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
25768 <libm-alias-double.h>.
25769 (fma): Define using libm_alias_double.
25770 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
25771 <libm-alias-double.h>.
25772 (nearbyint): Define using libm_alias_double.
25773 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
25774 <libm-alias-double.h>.
25775 (rint): Define using libm_alias_double.
25776 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
25777 <libm-alias-double.h>.
25778 (sin): Define using libm_alias_double.
25779 (cos): Likewise.
25780 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
25781 <libm-alias-double.h>.
25782 (tan): Define using libm_alias_double.
25783 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
25784 <libm-alias-double.h>.
25785 (trunc): Define using libm_alias_double.
25786 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
25787 (copysign): Define using libm_alias_double.
25788 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
25789 (fabs): Define using libm_alias_double.
25790 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
25791 (fmax): Define using libm_alias_double.
25792 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
25793 (fmin): Define using libm_alias_double.
25794 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
25795 (llrint): Define using libm_alias_double.
25796 [!__ILP32__] (lrint): Likewise.
25797 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
25798 (lrint): Define using libm_alias_double.
25799
1cbd7bfe
AZ
258002017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25801
21bfcc3d
AZ
25802 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
25803 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
25804 objects.
25805 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
25806 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
25807 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
25808 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
25809 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
25810 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
25811
522228dd
AZ
25812 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
25813 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
25814 objects.
25815 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
25816 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
25817 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
25818 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
25819 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
25820 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
25821
2a6f4fab
AZ
25822 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
25823 (libm-sysdep_routines): Add s_nearbyint-generic and
25824 s_nearbyintf-generic objects.
25825 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
25826 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
25827 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
25828 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
25829 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
25830 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
25831
712b5b83
AZ
25832 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
25833 Add s_finitef-generic and s_finite-generic objects.
25834 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
25835 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
25836 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
25837 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
25838 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
25839 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
25840
c96d3335
AZ
25841 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
25842 Add s_isinff-generic and s_isinf-generic objects.
25843 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
25844 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
25845 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
25846 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
25847 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
25848 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
25849
c6862a23
AZ
25850 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
25851 Add s_isnanf-generic and s_isnan-generic objects.
25852 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
25853 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
25854 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
25855 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
25856 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
25857 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
25858
1cbd7bfe
AZ
25859 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
25860 macro.
25861 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
25862 rule.
25863 (sysdep_routines): Use sysdep_calls as base.
25864 (libm-sysdep_routines): Add generic rule for symbols shared with
25865 libc. Add s_signbit-generic and s_signbitf-generic objects.
25866 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
25867 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
25868 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
25869 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
25870 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
25871 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
25872
aa1142c5
JM
258732017-11-29 Joseph Myers <joseph@codesourcery.com>
25874
25875 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
25876 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
25877 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
25878 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
25879 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
25880 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
25881 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
25882 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
25883 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
25884 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
25885 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
25886 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
25887 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
25888 libm_alias_float_r.
25889 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
25890 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
25891 (logf): Likewise.
25892 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
25893 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
25894 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
25895 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
25896 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
25897 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
25898 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
25899 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
25900 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
25901 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
25902 libm_alias_float.
25903 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
25904 (cosf): Likewise.
25905 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
25906 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
25907 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
25908 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
25909 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
25910 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
25911 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
25912 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
25913 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
25914 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
25915 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
25916 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
25917 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
25918 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
25919 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
25920 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
25921 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
25922 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
25923 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
25924 libm_alias_float.
25925 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
25926 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
25927 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
25928 * sysdeps/ia64/fpu/w_lgammaf_main.c
25929 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
25930 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
25931
363e4519
DL
259322017-11-28 Mike FABIAN <mfabian@redhat.com>
25933 Alexandre Oliva <aoliva@redhat.com>
8da25eec
AO
25934
25935 [BZ #17750]
25936 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
25937 * localedata/fr_CA.UTF-8.in: New file with test data for backward
25938 accents sorting.
25939 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
25940 sorting.
25941 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
25942 * localedata/locales/de_DE (LC_COLLATE): Likewise.
25943 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
25944 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
25945 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
25946 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
25947 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
25948 instead of “ifdef DIACRIT_BACKWARD”.
25949
a55430cb
AZ
259502017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25951
25952 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
25953 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
25954 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
25955 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
25956 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
25957 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
25958 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
25959 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
25960 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
25961 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
25962 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
25963 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
25964 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
25965 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
25966 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
25967 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
25968 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
25969 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
25970 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
25971 ($(have-as-vis3) == yes): Remove conditional.
25972 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
25973 Likewise.
25974 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
25975 file.
25976 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
25977 file.
25978 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
25979 file.
25980 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
25981 file.
25982 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
25983 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
25984 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
25985 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
25986 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
25987 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
25988 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
25989 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
25990
0609ec0a
JM
259912017-11-29 Joseph Myers <joseph@codesourcery.com>
25992
25993 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
25994 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
25995 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
25996 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
25997 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
25998 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
25999 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
26000 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
26001 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
26002 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
26003 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
26004 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
26005 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
26006 libm_alias_double_r.
26007 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
26008 (log): Likewise.
26009 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
26010 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
26011 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
26012 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
26013 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
26014 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
26015 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
26016 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
26017 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
26018 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
26019 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
26020 libm_alias_double.
26021 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
26022 (cos): Likewise.
26023 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
26024 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
26025 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
26026 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
26027 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
26028 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
26029 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
26030 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
26031 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
26032 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
26033 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
26034 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
26035 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
26036 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
26037 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
26038 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
26039 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
26040 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
26041 libm_alias_double.
26042 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
26043 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
26044 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
26045 * sysdeps/ia64/fpu/w_lgamma_main.c
26046 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
26047 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
26048
d5bfa34a
JDA
260492017-11-28 John David Anglin <danglin@gcc.gnu.org>
26050
26051 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
26052 address of $global$ into %dp register earlier. Use pc-relative
26053 instruction sequence for PIC case.
26054
bc4e8f9b
JM
260552017-11-28 Joseph Myers <joseph@codesourcery.com>
26056
e4602cba
JM
26057 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
26058 (asinhf): Define using libm_alias_float.
26059 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
26060 (atanf): Define using libm_alias_float.
26061 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
26062 (cbrtf): Define using libm_alias_float.
26063 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
26064 (ceilf): Define using libm_alias_float.
26065 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
26066 (copysignf): Define using libm_alias_float.
26067 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
26068 (expm1f): Define using libm_alias_float.
26069 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
26070 (fabsf): Define using libm_alias_float.
26071 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
26072 (floorf): Define using libm_alias_float.
26073 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
26074 (fmaxf): Define using libm_alias_float.
26075 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
26076 (fminf): Define using libm_alias_float.
26077 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
26078 (frexpf): Define using libm_alias_float.
26079 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
26080 (llrintf): Define using libm_alias_float.
26081 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
26082 (logbf): Define using libm_alias_float.
26083 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
26084 (lrintf): Define using libm_alias_float.
26085 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
26086 (nearbyintf): Define using libm_alias_float.
26087 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
26088 (remquof): Define using libm_alias_float.
26089 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
26090 (rintf): Define using libm_alias_float.
26091 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
26092 (truncf): Define using libm_alias_float.
26093 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
26094 <libm-alias-float.h>.
26095 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26096 if [SHARED].
26097 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
26098 <libm-alias-float.h>.
26099 (expf): Define using libm_alias_float, or libm_alias_float_other
26100 if [SHARED].
26101 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
26102 <libm-alias-float.h>.
26103 (log2f): Define using libm_alias_float, or libm_alias_float_other
26104 if [SHARED].
26105 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
26106 <libm-alias-float.h>.
26107 (logf): Define using libm_alias_float, or libm_alias_float_other
26108 if [SHARED].
26109 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
26110 <libm-alias-float.h>.
26111 (powf): Define using libm_alias_float, or libm_alias_float_other
26112 if [SHARED].
26113 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
26114 <libm-alias-float.h>.
26115 (cosf): Define using libm_alias_float.
26116 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
26117 <libm-alias-float.h>.
26118 (sincosf): Define using libm_alias_float.
26119 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
26120 <libm-alias-float.h>.
26121 (sinf): Define using libm_alias_float.
26122 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
26123 (fmaxf): Define using libm_alias_float.
26124 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
26125 (fminf): Define using libm_alias_float.
26126 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
26127 <libm-alias-float.h>.
26128 (fmaf): Define using libm_alias_float.
26129
bc4e8f9b
JM
26130 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
26131 (asinh): Define using libm_alias_double.
26132 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
26133 (atan): Define using libm_alias_double.
26134 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
26135 (cbrt): Define using libm_alias_double.
26136 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
26137 (ceil): Define using libm_alias_double.
26138 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
26139 (copysign): Define using libm_alias_double.
26140 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
26141 (expm1): Define using libm_alias_double.
26142 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
26143 (fabs): Define using libm_alias_double.
26144 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
26145 (fdim): Define using libm_alias_double.
26146 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
26147 (floor): Define using libm_alias_double.
26148 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
26149 (fmax): Define using libm_alias_double.
26150 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
26151 (fmin): Define using libm_alias_double.
26152 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
26153 (frexp): Define using libm_alias_double.
26154 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
26155 (llrint): Define using libm_alias_double.
26156 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
26157 (logb): Define using libm_alias_double.
26158 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
26159 (lrint): Define using libm_alias_double.
26160 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
26161 (nearbyint): Define using libm_alias_double.
26162 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
26163 (remquo): Define using libm_alias_double.
26164 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
26165 (rint): Define using libm_alias_double.
26166 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
26167 (trunc): Define using libm_alias_double.
26168 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
26169 (fmax): Define using libm_alias_double.
26170 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
26171 (fmin): Define using libm_alias_double.
26172 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
26173 (fma): Define using libm_alias_double.
26174
8d81ce0c
L
261752017-11-28 H.J. Lu <hongjiu.lu@intel.com>
26176
26177 [BZ #22370]
26178 * elf/dl-hwcaps.c (ROUND): Removed.
26179 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
26180 and ELF_NOTE_NEXT_OFFSET.
26181 * elf/dl-load.c (ROUND): Removed.
26182 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
26183 * elf/readelflib.c (ROUND): Removed.
26184 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
26185 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
26186 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
26187 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
26188
6940bd96
JM
261892017-11-28 Joseph Myers <joseph@codesourcery.com>
26190
313ba463
JM
26191 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
26192 [!__fmaf] (fmaf): Define using libm_alias_float.
26193
6940bd96
JM
26194 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
26195 [!__fma] (fma): Define using libm_alias_double.
26196 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
26197
22c69b6a
MF
261982017-11-28 Mike FABIAN <mfabian@redhat.com>
26199
26200 [BZ #22336]
26201 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
26202 and implement the collation rules for cs from CLDR on top of that.
26203 * Makefile: Add cs_CZ.UTF-8 to test-input.
26204 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
26205
8d7d3ba8
SP
262062017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
26207
26208 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
26209
0422ed1e
VR
262102017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
26211 Icarus Sparry <icarus.w.sparry@intel.com>
26212
26213 * benchtests/Makefile:Add BENCHSET to allow subsets of
26214 benchmarks to be run.
26215 * benchtests/README: Add documentation for: Running subsets of
26216 benchmarks.
26217
0595e360
VR
262182017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
26219
d5090db3
VR
26220 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
26221 range of tests names.
26222
0595e360
VR
26223 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
26224 result from property and remove "max", min" and "mean" from
26225 required properties based on benchtests/bench-skeleton.c.
26226
b4c645c2
FW
262272017-11-28 Florian Weimer <fweimer@redhat.com>
26228
26229 [BZ #20826]
26230 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
26231 due to Internet requirement.
26232 * posix/Makefile (tests): Remove tst-getaddrinfo4,
26233 tst-getaddrinfo5.
26234 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
26235
88684de7
AZ
262362017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26237
69056564
AZ
26238 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
26239 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
26240 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
26241 (sysdep_routines): Add memset-ultra1.
26242 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
26243 file.
26244 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
26245 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
26246 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
26247 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
26248 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
26249 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
26250 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
26251 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
26252
88684de7
AZ
26253 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
26254 file.
26255 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
26256 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
26257 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
26258 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
26259 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
26260 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
26261 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
26262 macro.
26263 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
26264 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
26265 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
26266 (sysdep_routines): Add memcpy-ultra1.
26267 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
26268 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
26269
d8124864
JM
262702017-11-28 Joseph Myers <joseph@codesourcery.com>
26271
f433d0b3
JM
26272 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
26273 (cfloat_versions): Take function argument without trailing 'f'.
26274 Call libm_alias_float_other.
26275 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
26276 * sysdeps/alpha/fpu/cargf.c: Likewise.
26277 * sysdeps/alpha/fpu/cimagf.c: Likewise.
26278 * sysdeps/alpha/fpu/conjf.c: Likewise.
26279 * sysdeps/alpha/fpu/crealf.c: Likewise.
26280 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
26281 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
26282 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
26283 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
26284 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
26285 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
26286 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
26287 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
26288 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
26289 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
26290 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
26291 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
26292 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
26293 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
26294 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
26295 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
26296 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
26297 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
26298 (clog10f): Use libm_alias_float_other.
26299 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
26300 (ceilf): Define using libm_alias_float.
26301 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
26302 (copysignf): Define using libm_alias_float.
26303 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
26304 (fabsf): Define using libm_alias_float.
26305 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
26306 (floorf): Define using libm_alias_float.
26307 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
26308 (fmaxf): Define using libm_alias_float.
26309 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
26310 (fminf): Define using libm_alias_float.
26311 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
26312 (lrintf): Define using libm_alias_float.
26313 (llrintf): Likewise.
26314 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
26315 (lroundf): Define using libm_alias_float.
26316 (llroundf): Likewise.
26317 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
26318 (rintf): Define using libm_alias_float.
26319 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
26320 (truncf): Define using libm_alias_float.
26321
15ff4900
JM
26322 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
26323 (ceilf): Define using libm_alias_float.
26324 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
26325 (floorf): Define using libm_alias_float.
26326 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
26327 (fmaf): Define using libm_alias_float.
26328 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
26329 (fmaxf): Define using libm_alias_float.
26330 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
26331 (fminf): Define using libm_alias_float.
26332 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
26333 (llrintf): Define using libm_alias_float.
26334 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
26335 (llroundf): Define using libm_alias_float.
26336 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
26337 (lrintf): Define using libm_alias_float.
26338 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
26339 (lroundf): Define using libm_alias_float.
26340 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
26341 <libm-alias-float.h>.
26342 (nearbyintf): Define using libm_alias_float.
26343 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
26344 (rintf): Define using libm_alias_float.
26345 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
26346 (roundf): Define using libm_alias_float.
26347 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
26348 (truncf): Define using libm_alias_float.
26349
5de60638
JM
26350 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
26351 (ceil): Define using libm_alias_double.
26352 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
26353 (copysign): Define using libm_alias_double.
26354 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
26355 (fabs): Define using libm_alias_double.
26356 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
26357 (floor): Define using libm_alias_double.
26358 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
26359 (fmax): Define using libm_alias_double.
26360 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
26361 (fmin): Define using libm_alias_double.
26362 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
26363 (lrint): Define using libm_alias_double.
26364 (llrint): Likewise.
26365 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
26366 (lround): Define using libm_alias_double.
26367 (llround): Likewise.
26368 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
26369 (rint): Define using libm_alias_double.
26370 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
26371 (trunc): Define using libm_alias_double.
26372
d8124864
JM
26373 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
26374 (libm_alias_double_r): Add semicolon after weak_alias call.
26375
f07d2ec8
JM
263762017-11-27 Joseph Myers <joseph@codesourcery.com>
26377
26378 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
26379 (ceil): Define using libm_alias_double.
26380 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
26381 (floor): Define using libm_alias_double.
26382 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
26383 (fma): Define using libm_alias_double.
26384 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
26385 (fmax): Define using libm_alias_double.
26386 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
26387 (fmin): Define using libm_alias_double.
26388 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
26389 (llrint): Define using libm_alias_double.
26390 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
26391 (llround): Define using libm_alias_double.
26392 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
26393 (lrint): Define using libm_alias_double.
26394 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
26395 (lround): Define using libm_alias_double.
26396 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
26397 (nearbyint): Define using libm_alias_double.
26398 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
26399 (rint): Define using libm_alias_double.
26400 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
26401 (round): Define using libm_alias_double.
26402 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
26403 (trunc): Define using libm_alias_double.
26404
4bab0224
FW
264052017-11-27 Florian Weimer <fweimer@redhat.com>
26406
26407 * sysdeps/unix/sysv/linux/mlock2.c: New file.
26408 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
26409 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
26410 (tests): Add tst-mlock2.
26411 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
26412 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
26413 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
26414 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
26415 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
26416 for mlock. Document mlock2.
26417
a23aa5b7
JM
264182017-11-27 Joseph Myers <joseph@codesourcery.com>
26419
26420 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
26421 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
26422 Likewise.
26423 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
26424 Likewise.
26425 * sysdeps/x86/Makeconfig: New file.
26426 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
26427 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
26428 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
26429 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
26430 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
26431 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
26432 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
26433 Likewise.
26434 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
26435 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
26436 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
26437 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
26438 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
26439 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
26440 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
26441 * manual/math.texi (Mathematics): Document support for _Float64x.
26442 * math/Versions (GLIBC_2.27): Add _Float64x functions.
26443 * stdlib/Versions (GLIBC_2.27): Likewise.
26444 * wcsmbs/Versions (GLIBC_2.27): Likewise.
26445 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
26446 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
26447 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
26448 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26449 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
26450 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
26451 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
26452 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
26453 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26454 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
26455 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
26456 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
26457 Likewise.
26458 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
26459 Likewise.
26460 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
26461 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26462 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
26463 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26464 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
26465 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26466 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
26467 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26468 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
26469 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
26470 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
26471 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
26472 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
26473 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26474
c2c299fd
AS
264752017-11-27 Andreas Schwab <schwab@suse.de>
26476
26477 * elf/Makefile (dl-routines): Add dl-sort-maps.
26478 * elf/dl-sort-maps.c: New file.
26479 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
26480 (_dl_sort_maps): Declare.
26481 * elf/dl-fini.c (_dl_sort_fini): Remove.
26482 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
26483 * elf/dl-close.c (_dl_close_worker): Likewise.
26484 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
26485 open-coding it.
26486 * elf/dl-open.c (dl_open_worker): Likewise.
26487
9d4b0117
JM
264882017-11-24 Joseph Myers <joseph@codesourcery.com>
26489
de61465c
JM
26490 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
26491 using libm_alias_float128.
26492 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
26493 Likewise.
26494 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
26495 Likewise.
26496 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
26497 (setpayloadsigf128): Likewise.
26498 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
26499 Likewise.
26500 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
26501 Likewise.
26502
9ae6d171
JM
26503 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
26504 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
26505 -mfloat128 to CFLAGS.
26506 ($(foreach
26507 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
26508 Likewise.
26509 (CFLAGS-libm-test-support-float64x.c): New variable.
26510 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
26511 $(f128-loader-link) to gnulib-tests.
26512
6e70d156
JM
26513 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
26514 (libm_alias_float128_other_r): If
26515 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
26516 alias.
26517 (libm_alias_float128_r): Add semicolon after weak_alias call.
26518 * sysdeps/generic/libm-alias-ldouble.h
26519 (libm_alias_ldouble_other_r_f128): New macro.
26520 (libm_alias_ldouble_other_r_f64x): Likewise.
26521 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
26522 and libm_alias_ldouble_other_r_f64x.
26523 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
26524 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
26525 (libm_alias_ldouble_other_r_f128): New macro.
26526 (libm_alias_ldouble_other_r_f64x): Likewise.
26527 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
26528 and libm_alias_ldouble_other_r_f64x.
26529
df2806cd
JM
26530 * stdlib/strfroml.c: Always include <stdlib.h>.
26531 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
26532 undefine as macro and define as weak alias.
26533 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
26534 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
26535 <stdlib.h>.
26536 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
26537 Define and later undefine as macro and define as weak alias.
26538
0df4fe35
JM
26539 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
26540 Define and later undefine as macro. Define as weak alias if
26541 [!USE_WIDE_CHAR].
26542 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
26543 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
26544 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
26545 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
26546 Define and later undefine as macro. Define as weak alias if
26547 [!USE_WIDE_CHAR].
26548 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
26549 Define and later undefine as macro. Define as weak alias if
26550 [USE_WIDE_CHAR].
26551 * sysdeps/ieee754/float128/strtof128_l.c
26552 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
26553 Define and later undefine as macro. Define as weak alias if
26554 [!USE_WIDE_CHAR].
26555 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
26556 Define and later undefine as macro. Define as weak alias if
26557 [USE_WIDE_CHAR].
26558 * sysdeps/ieee754/ldbl-128/strtold_l.c
26559 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
26560 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
26561 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
26562 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
26563 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
26564 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
26565 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
26566 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
26567 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
26568 * sysdeps/ieee754/ldbl-96/strtold_l.c
26569 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
26570 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
26571 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
26572 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
26573
ae7207d0
JM
26574 * math/test-float64x.h: New file.
26575 * math/Makefile (type-float64x-yes): New variable.
26576 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
26577
9596fc69
JM
26578 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
26579 function-like macro.
26580 (min_of_type_): Likewise.
26581 (min_of_type_l): Likewise.
26582 (min_of_type_f128): Likewise.
26583 (min_of_type): Pass () as last argument of __MATH_TG.
26584
46453c3c
JM
26585 * stdlib/tst-strtod-round-skeleton.c
26586 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
26587 headers.
26588
01e659e7
JM
26589 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
26590 for combinations of long double with _Float64 and _Float64x.
26591
5c60afdd
JM
26592 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
26593 (__DECL_SIMD_cosf32): Likewise.
26594 (__DECL_SIMD_cosf64): Likewise.
26595 (__DECL_SIMD_cosf32x): Likewise.
26596 (__DECL_SIMD_cosf64x): Likewise.
26597 (__DECL_SIMD_cosf128x): Likewise.
26598 (__DECL_SIMD_sinf16): Likewise.
26599 (__DECL_SIMD_sinf32): Likewise.
26600 (__DECL_SIMD_sinf64): Likewise.
26601 (__DECL_SIMD_sinf32x): Likewise.
26602 (__DECL_SIMD_sinf64x): Likewise.
26603 (__DECL_SIMD_sinf128x): Likewise.
26604 (__DECL_SIMD_sincosf16): Likewise.
26605 (__DECL_SIMD_sincosf32): Likewise.
26606 (__DECL_SIMD_sincosf64): Likewise.
26607 (__DECL_SIMD_sincosf32x): Likewise.
26608 (__DECL_SIMD_sincosf64x): Likewise.
26609 (__DECL_SIMD_sincosf128x): Likewise.
26610 (__DECL_SIMD_logf16): Likewise.
26611 (__DECL_SIMD_logf32): Likewise.
26612 (__DECL_SIMD_logf64): Likewise.
26613 (__DECL_SIMD_logf32x): Likewise.
26614 (__DECL_SIMD_logf64x): Likewise.
26615 (__DECL_SIMD_logf128x): Likewise.
26616 (__DECL_SIMD_expf16): Likewise.
26617 (__DECL_SIMD_expf32): Likewise.
26618 (__DECL_SIMD_expf64): Likewise.
26619 (__DECL_SIMD_expf32x): Likewise.
26620 (__DECL_SIMD_expf64x): Likewise.
26621 (__DECL_SIMD_expf128x): Likewise.
26622 (__DECL_SIMD_powf16): Likewise.
26623 (__DECL_SIMD_powf32): Likewise.
26624 (__DECL_SIMD_powf64): Likewise.
26625 (__DECL_SIMD_powf32x): Likewise.
26626 (__DECL_SIMD_powf64x): Likewise.
26627 (__DECL_SIMD_powf128x): Likewise.
26628
9d4b0117
JM
26629 * stdlib/Versions (libc): Move entries for wcstof128 and
26630 wcstof128_l to ....
26631 * wcsmbs/Versions (libc): ... here.
26632 Include <float128-abi.h>.
26633
7911dd47
FW
266342017-11-24 Florian Weimer <fweimer@redhat.com>
26635
26636 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
26637 bits/mman-shared.h.
26638 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
26639 <bits/mman-shared.h>.
26640 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
26641 to ...
26642 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
26643 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
26644 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
26645 <bits/mman-shared.h>.
26646
c45d78aa
AZ
266472017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26648
26649 [BZ #22457]
26650 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
26651 posix_memalign/free.
26652 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
26653
3ffc4cc1
MF
266542017-11-22 Mike FABIAN <mfabian@redhat.com>
26655
26656 [BZ #22469]
26657 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
26658 and implement the collation rules for pl from CLDR on top of that.
26659 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
26660 of locales to be built for testing.
26661 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
26662
3a327316
JM
266632017-11-23 Joseph Myers <joseph@codesourcery.com>
26664
26665 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
26666 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
26667 libm_alias_ldouble_other.
26668 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
26669 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
26670 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
26671 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
26672 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
26673 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
26674 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
26675 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
26676 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
26677 libm_alias_ldouble_r.
26678 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
26679 libm_alias_ldouble_other.
26680 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
26681 (log10l): Likewise.
26682 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
26683 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
26684 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
26685 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
26686 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
26687 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
26688 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
26689 (atan2l): Likewise.
26690 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
26691 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
26692 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
26693 libm_alias_ldouble.
26694 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
26695 (cosl): Likewise.
26696 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
26697 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
26698 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
26699 (expl): Likewise.
26700 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
26701 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
26702 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
26703 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
26704 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
26705 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
26706 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
26707 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
26708 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
26709 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
26710 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
26711 libm_alias_ldouble.
26712 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
26713 libm_alias_ldouble_other.
26714 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
26715 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
26716 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
26717 libm_alias_ldouble.
26718 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
26719 libm_alias_ldouble_other.
26720 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
26721 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
26722 * sysdeps/ia64/fpu/w_lgammal_main.c
26723 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
26724 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
26725
0a947e06
FW
267262017-11-23 Florian Weimer <fweimer@redhat.com>
26727
26728 * malloc/malloc.c (tcache_thread_shutdown): Rename from
26729 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
26730 alike. Remove freeres marker.
26731 * malloc/arena.c (arena_thread_freeres): Call
26732 tcache_thread_shutdown.
26733
67f36c79
FW
267342017-11-23 Florian Weimer <fweimer@redhat.com>
26735
26736 [BZ #22459]
26737 Export nscd hash function as __nss_hash.
26738 * include/nss.h (__nss_hash): Declare.
26739 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
26740 symbol.
26741 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
26742 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
26743 of __nscd_hash.
26744 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
26745 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
26746 * nss/Makefiles (routines): Add nss_hash.
26747 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
26748 * nss/nss_hash.c: Rename from nis/nis_hash.c.
26749 (__nss_hash): Rename from __nis_hash. Define hidden alias.
26750 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
26751
cccb6d4e
FW
267522017-11-23 Florian Weimer <fweimer@redhat.com>
26753
26754 [BZ #22478]
26755 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
26756 Return error code, not -1.
26757 * signal/tst-sigwait-eintr.c: New file.
26758 * signal/Makefile (tests): Add tst-sigwait-eintr.
26759
59d2cbb1
FW
267602017-11-23 Florian Weimer <fweimer@redhat.com>
26761
26762 Linux: Add memfd_create system call wrapper
26763 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
26764 tst-memfd_create.
26765 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
26766 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
26767 [__USE_GNU] (memfd_create): Declare.
26768 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
26769 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
26770 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
26771 * sysdeps/unix/sysv/linux/**.abilist: Update.
26772 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
26773
a90d1ac2
JM
267742017-11-22 Joseph Myers <joseph@codesourcery.com>
26775
0a9d1d62
JM
26776 * localedata/gen-locale.sh: Fix typo in variable name.
26777
754034c4
JM
26778 * resolv/res_debug.c (p_secstodate): Condition definition on
26779 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
26780 directly as __p_secstodate, and as a compat symbol. Do not use
26781 libresolv_hidden_def.
26782 * resolv/resolv.h (p_secstodate): Remove macro and function
26783 declaration.
26784 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
26785 using p_secstodate.
26786 * include/resolv.h (__p_secstodate): Do not use
26787 libresolv_hidden_proto.
26788 * resolv/Makefile (tests): Move tst-p_secstodate to ....
26789 (tests-internal): ... here.
26790 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
26791 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
26792 and declare and use __p_secstodate and use compat_symbol_reference
26793 in that case.
26794 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
26795 implementation returning 77.
26796
f120cda6
JM
26797 [BZ #22463]
26798 * resolv/res_debug.c: Include <libc-diag.h>.
26799 (p_secstodate): Assert time_t at least as wide as u_long. On
26800 overflow, use integer seconds since the epoch as output, or use
26801 "<overflow>" as output and set errno to EOVERFLOW if integer
26802 seconds since the epoch would be 14 or more characters.
26803 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
26804 for sprintf call.
26805 * resolv/tst-p_secstodate.c: New file.
26806 * resolv/Makefile (tests): Add tst-p_secstodate.
26807 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
26808
a90d1ac2
JM
26809 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
26810 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
26811 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
26812
0285e6bd
PE
268132017-11-22 Paul Eggert <eggert@cs.ucla.edu>
26814
26815 * posix/regcomp.c (init_word_char): Add comments.
26816
4bae6150
JM
268172017-11-22 Joseph Myers <joseph@codesourcery.com>
26818
26819 [BZ #22447]
26820 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
26821 strlen to compute length of ut_user and set trailing NUL byte of
26822 result explicitly.
26823
4b7af5fc
MF
268242017-11-21 Mike FABIAN <mfabian@redhat.com>
26825
26826 [BZ #15537]
26827 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
26828 using “copy "iso14651_t1"” and then implementing the
26829 collation rules for lv from CLDR on top of that.
26830 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
26831 of locales to be built for testing.
26832 * lv_LV.UTF-8.in: New file with test data to test the Latvian
26833 sorting.
26834
922bb78c
JM
268352017-11-21 Joseph Myers <joseph@codesourcery.com>
26836
26837 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
26838 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
26839 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
26840 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
26841 [__USE_MISC] (MADV_HWPOISON): New macro.
26842 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
26843
a3aaa598
AZ
268442017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26845
26846 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
26847 -Wmissing-braces on GCC 4.9.
26848
8beba15d
SL
268492017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
26850
26851 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
26852 * sysdeps/s390/s390-32/start.S (_start): Likewise
26853 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
26854 (thread_start): Likewise.
26855 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
26856 (thread_start): Likewise.
26857 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
26858 (__makecontext_ret): Likewise.
26859 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
26860 (__makecontext_ret): Likewise.
26861
80eb52e3
SL
268622017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
26863
26864 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
26865 __wcschrnul): Remove attribute_hidden.
26866
567d8c1f
PE
268672017-11-20 Paul Eggert <eggert@cs.ucla.edu>
26868
26869 regex: don't assume uint64_t or uint32_t
26870 This avoids -Werror=overflow errors for 32-bit systems in
26871 the 64-bit case. Problem reported by Joseph Myers in:
26872 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
26873 Also, when this code is used in Gnulib it ports to platforms
26874 that lack uint64_t and uint32_t. The C standard doesn't guarantee
26875 them, and on some 32-bit compilers there is no uint64_t.
26876 Problem reported by Gianluigi Tiesi in:
26877 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
26878 * posix/regcomp.c (init_word_char): Don't assume that the types
26879 uint64_t and uint32_t exist. Adapted from Gnulib patch
26880 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
26881 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
26882
4d7632ff
SP
268832017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
26884
5a67c4fa
SP
26885 * sysdeps/aarch64/memset-reg.h: New file.
26886 * sysdeps/aarch64/memset.S: Use it.
26887 (__memset): Rename to MEMSET macro.
26888 [ZVA_MACRO]: Use zva_macro.
26889 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
26890 Add memset_generic and memset_falkor.
26891 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
26892 (__libc_ifunc_impl_list): Add memset ifuncs.
26893 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
26894 local variable zva_size.
26895 * sysdeps/aarch64/multiarch/memset.c: New file.
26896 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
26897 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
26898 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
26899 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
26900 (DCZID_DZP_MASK): New macro.
26901 (DCZID_BS_MASK): Likewise.
26902 (init_cpu_features): Read and set zva_size.
26903 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
26904 (struct cpu_features): New member zva_size.
26905
eb332f9f
SP
26906 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
26907 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
26908 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
26909
4d7632ff
SP
26910 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
26911 backwards. Fix timing computation.
26912 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
26913 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
26914 on memset by N at a time. Fix timing computation.
26915
a465b89e
FW
269162017-11-20 Florian Weimer <fweimer@redhat.com>
26917
26918 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
26919 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
26920
0f74bbf5
FW
269212017-11-19 Florian Weimer <fweimer@redhat.com>
26922
26923 manual: Document mprotect
26924 * manual/memory.texi (Memory Protection): New section.
26925 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
26926 documentation of PROT_* flags and reference the Memory Protection
26927 section instead.
26928
f6e965ee
FW
269292017-11-19 Florian Weimer <fweimer@redhat.com>
26930
26931 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
26932 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
26933 (Scatter-Gather): ... to here. Remove misleading comment.
26934
363e4519 269352017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
ea69a5c8 26936
5f9d1949
CB
26937 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
26938 style.
26939
ea69a5c8
CB
26940 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
26941 when /proc/<pid>/setgroups does not exist.
26942
8db7f48c
FW
269432017-11-18 Florian Weimer <fweimer@redhat.com>
26944
26945 * sysdeps/unix/sysv/linux/tst-ttyname.c
26946 (become_root_in_mount_ns): Remove.
26947 (do_in_chroot_1): Call support_enter_mount_namespace.
26948 (do_in_chroot_2): Likewise.
26949 (do_test): Call support_become_root early.
26950
273a0c49
FW
269512017-11-18 Florian Weimer <fweimer@redhat.com>
26952
26953 * support/namespace.h (support_enter_mount_namespace): Declare.
26954 * support/support_enter_mount_namespace.c: New file.
26955 * support/Makefile (libsupport-routines): Add
26956 support_enter_mount_namespace.
26957
8adfb0ee
FW
269582017-11-18 Florian Weimer <fweimer@redhat.com>
26959
26960 * support/temp_file.c (support_create_temp_directory): Use
26961 test_dir and do not rely on the presence of the XXXXXX suffix.
26962 * support/temp_file.h (support_create_temp_directory): Update
26963 comment.
26964 * support/tst-xreadlink.c (do_test): Adjust.
26965 * support/support_chroot.c (support_chroot_create): Likewise.
26966
df0c40ee
TMQMF
269672017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
26968
26969 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
26970 macro.
26971 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
26972 htm-no-suspend.
26973
015c6dc2
JM
269742017-11-17 Joseph Myers <joseph@codesourcery.com>
26975
f58e5f48
JM
26976 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
26977 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
26978 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
26979 (ceill): Define using libm_alias_ldouble.
26980 * sysdeps/x86_64/fpu/s_copysignl.S: Include
26981 <libm-alias-ldouble.h>.
26982 (copysignl): Define using libm_alias_ldouble.
26983 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
26984 (fabsl): Define using libm_alias_ldouble.
26985 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
26986 (floorl): Define using libm_alias_ldouble.
26987 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
26988 (fmaxl): Define using libm_alias_ldouble.
26989 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
26990 (fminl): Define using libm_alias_ldouble.
26991 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
26992 (llrintl): Define using libm_alias_ldouble.
26993 (lrintl): Likewise.
26994 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
26995 <libm-alias-ldouble.h>.
26996 (nearbyintl): Define using libm_alias_ldouble.
26997 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
26998 (truncl): Define using libm_alias_ldouble.
26999 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
27000 <libm-alias-ldouble.h>.
27001 (lrintl): Define using libm_alias_ldouble.
27002
2ce30701
JM
27003 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
27004 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
27005 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
27006 (asinhl): Define using libm_alias_ldouble.
27007 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
27008 (atanl): Define using libm_alias_ldouble.
27009 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
27010 (cbrtl): Define using libm_alias_ldouble.
27011 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
27012 (ceill): Define using libm_alias_ldouble.
27013 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
27014 (copysignl): Define using libm_alias_ldouble.
27015 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
27016 (fabsl): Define using libm_alias_ldouble.
27017 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
27018 (floorl): Define using libm_alias_ldouble.
27019 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
27020 (fmaxl): Define using libm_alias_ldouble.
27021 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
27022 (fminl): Define using libm_alias_ldouble.
27023 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
27024 (frexpl): Define using libm_alias_ldouble.
27025 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
27026 (llrintl): Define using libm_alias_ldouble.
27027 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
27028 (logbl): Define using libm_alias_ldouble.
27029 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
27030 (lrintl): Define using libm_alias_ldouble.
27031 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
27032 (nearbyintl): Define using libm_alias_ldouble.
27033 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
27034 (nextafterl): Define using libm_alias_ldouble.
27035 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
27036 (remquol): Define using libm_alias_ldouble.
27037 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
27038 (rintl): Define using libm_alias_ldouble.
27039 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
27040 (truncl): Define using libm_alias_ldouble.
27041 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
27042 (fmaxl): Define using libm_alias_ldouble.
27043 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
27044 (fminl): Define using libm_alias_ldouble.
27045
015c6dc2
JM
27046 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
27047 to C syntax instead of availability and properties of types.
27048 * bits/floatn.h [!__ASSEMBLER]: Likewise.
27049 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
27050 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
27051 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
27052 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
27053 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
27054
ce003e5d
FW
270552017-11-17 Florian Weimer <fweimer@redhat.com>
27056
27057 support_become_root: Enable file creation in namespaces.
27058 * support/support_become_root.c (setup_mapping): New function.
27059 (support_become_root): Call it.
27060
e7df6c5c
JM
270612017-11-17 Joseph Myers <joseph@codesourcery.com>
27062
27063 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
27064 macro.
27065
58a813bf
AZ
270662017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27067
27068 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
27069 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
27070
f97773d1
JM
270712017-11-16 Joseph Myers <joseph@codesourcery.com>
27072
6a6aa1f3
JM
27073 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
27074
f97773d1
JM
27075 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
27076 version to 4.14.
27077
a306c790
SP
270782017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
27079
7b0fb870
SP
27080 * INSTALL: Fix botched up regeneration.
27081
27082 * NEWS: Update sourceare link to https.
a306c790
SP
27083 * configure.ac: Likewise.
27084 * crypt/md5test-giant.c: Likewise.
27085 * dlfcn/bug-atexit1.c: Likewise.
27086 * dlfcn/bug-atexit2.c: Likewise.
27087 * localedata/README: Likewise.
27088 * malloc/tst-mallocfork.c: Likewise.
27089 * manual/install.texi: Likewise.
27090 * nptl/tst-pthread-getattr.c: Likewise.
27091 * stdio-common/tst-fgets.c: Likewise.
27092 * stdio-common/tst-fwrite.c: Likewise.
27093 * sunrpc/Makefile: Likewise.
27094 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
27095 * wcsmbs/tst-mbrtowc2.c: Likewise.
7b0fb870
SP
27096 * configure: Regenerate.
27097 * INSTALL: Regenerate.
a306c790 27098
7532837d
MS
270992017-11-15 Martin Sebor <msebor@redhat.com>
27100
27101 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
27102 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
27103 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
27104
495a56fd
LS
271052017-11-15 Luke Shumaker <lukeshu@parabola.nu>
27106
d9611e30
LS
27107 [BZ #22145]
27108 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
27109 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
27110
a09dfc19
LS
27111 [BZ #22145]
27112 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
27113 Defer is_pty check until end of the function.
27114 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
27115
2fbce9c2
LS
27116 [BZ #22145]
27117 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
27118 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
27119 (ttyname): Likewise.
27120 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
27121 (__ttyname_r): Likewise.
27122
d10d6cab
LS
27123 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
27124 int to bool.
27125
9b5a8750
LS
27126 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
27127
495a56fd
LS
27128 * manual/terminal.texi (Is It a Terminal):
27129 Mention ENODEV for ttyname and ttyname_r.
27130
fa680dc6
JM
271312017-11-15 Joseph Myers <joseph@codesourcery.com>
27132
78cde19f
JM
27133 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
27134 constant and macro.
27135
fa680dc6
JM
27136 * sysdeps/unix/sysv/linux/bits/mman-linux.h
27137 [__USE_MISC] (MADV_WIPEONFORK): New macro.
27138 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
27139 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
27140 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
27141 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
27142
ad4f43a2
AZ
271432017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27144
1ba1d8a4
AZ
27145 * signal/sigrelse.c (sigrelse): Optimize implementation.
27146
ad4f43a2
AZ
27147 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
27148 (__sigpause): Rely on __sigsuspend to implement single thread
27149 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
27150
d0212d42
JM
271512017-11-15 Joseph Myers <joseph@codesourcery.com>
27152
27153 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
27154 kernel version to 4.14.
27155
2180fee1
SE
271562017-11-15 Steve Ellcey <sellcey@cavium.com>
27157
27158 [BZ #22442]
27159 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
27160 Check if ifname is too long.
27161
cad7ca39
LS
271622017-11-15 Luke Shumaker <lukeshu@parabola.nu>
27163
27164 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
27165
58c9f659
MF
271662017-11-15 Mike FABIAN <mfabian@redhat.com>
27167
27168 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
27169 was accidentally lost.
27170
0fa87c01
MF
271712017-11-15 Mike FABIAN <mfabian@redhat.com>
27172
27173 * localedata/locales/az_IR: Add standard copyright header.
27174
34eb4157
FW
271752017-11-15 Florian Weimer <fweimer@redhat.com>
27176
27177 [BZ #22439]
27178 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
27179 not just the top one. Output a new "subheaps" statistic.
27180
7a9368a1
FW
271812017-11-15 Florian Weimer <fweimer@redhat.com>
27182
27183 [BZ #22408]
27184 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
27185 under the per-arena lock.
27186 * malloc/Makefile (tests): Add tst-malloc_info.
27187 (tst-malloc_info): Link with libpthread.
27188 * malloc/tst-malloc_info.c: New file.
27189
be3a79a3
JM
271902017-11-15 Joseph Myers <joseph@codesourcery.com>
27191
27192 [BZ #21660]
27193 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
27194 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
27195 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
27196 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
27197 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
27198 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
27199 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
27200 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
27201 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
27202 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
27203 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
27204 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
27205 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
27206 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
27207 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
27208 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
27209 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
27210 (__floating_type): Likewise.
27211 (__real_integer_type): Likewise.
27212 (__complex_integer_type): Likewise.
27213 (__expr_is_real): Likewise.
27214 (__tgmath_real_type_sub): Likewise.
27215 (__tgmath_real_type): Likewise.
27216 (__tgmath_complex_type_sub): Likewise.
27217 (__tgmath_complex_type): Likewise.
27218 (__TGMATH_F128): Likewise.
27219 (__TGMATH_CF128): Likewise.
27220 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
27221 new macros.
27222 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
27223 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
27224 Likewise.
27225 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
27226 Likewise.
27227 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
27228 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
27229 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
27230 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
27231 Likewise.
27232 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
27233 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
27234 Likewise.
27235 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
27236 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
27237 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
27238 Likewise.
27239 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
27240 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
27241 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
27242 (cimag): Likewise.
27243 (creal): Likewise.
27244
ec72135e
JM
272452017-11-14 Joseph Myers <joseph@codesourcery.com>
27246
2e64ec9c
JM
27247 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
27248 for stpncpy calls for GCC 8.
27249 (test_strncat): Disable -Wstringop-truncation warning for strncat
27250 calls for GCC 8. Disable -Wstringop-overflow= warning for one
27251 strncat call for GCC 7.
27252 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
27253 calls for GCC 8.
27254 (test_memcmp): Use memcpy instead of strncpy for calls not copying
27255 trailing NUL.
27256
ec72135e
JM
27257 * string/bug-strncat1.c: Include <libc-diag.h>.
27258 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
27259
363e4519 272602017-11-13 Claude Paroz <claude@2xlibre.net>
a259f5d3
CP
27261
27262 [BZ #22387]
27263 * localedata/locales/aa_DJ: Improved readibility by replacing
27264 <Uxxxx> sequences in the ASCII printable range by their ASCII
27265 character equivalents.
27266 * localedata/locales/aa_ER: Likewise.
27267 * localedata/locales/aa_ER@saaho: Likewise.
27268 * localedata/locales/aa_ET: Likewise.
27269 * localedata/locales/af_ZA: Likewise.
27270 * localedata/locales/agr_PE: Likewise.
27271 * localedata/locales/ak_GH: Likewise.
27272 * localedata/locales/am_ET: Likewise.
27273 * localedata/locales/anp_IN: Likewise.
27274 * localedata/locales/ar_AE: Likewise.
27275 * localedata/locales/ar_BH: Likewise.
27276 * localedata/locales/ar_DZ: Likewise.
27277 * localedata/locales/ar_EG: Likewise.
27278 * localedata/locales/ar_IN: Likewise.
27279 * localedata/locales/ar_IQ: Likewise.
27280 * localedata/locales/ar_JO: Likewise.
27281 * localedata/locales/ar_KW: Likewise.
27282 * localedata/locales/ar_LB: Likewise.
27283 * localedata/locales/ar_LY: Likewise.
27284 * localedata/locales/ar_MA: Likewise.
27285 * localedata/locales/ar_OM: Likewise.
27286 * localedata/locales/ar_QA: Likewise.
27287 * localedata/locales/ar_SA: Likewise.
27288 * localedata/locales/ar_SD: Likewise.
27289 * localedata/locales/ar_SS: Likewise.
27290 * localedata/locales/ar_SY: Likewise.
27291 * localedata/locales/ar_TN: Likewise.
27292 * localedata/locales/ar_YE: Likewise.
27293 * localedata/locales/as_IN: Likewise.
27294 * localedata/locales/ast_ES: Likewise.
27295 * localedata/locales/ayc_PE: Likewise.
27296 * localedata/locales/az_AZ: Likewise.
27297 * localedata/locales/az_IR: Likewise.
27298 * localedata/locales/be_BY: Likewise.
27299 * localedata/locales/be_BY@latin: Likewise.
27300 * localedata/locales/bem_ZM: Likewise.
27301 * localedata/locales/ber_DZ: Likewise.
27302 * localedata/locales/ber_MA: Likewise.
27303 * localedata/locales/bg_BG: Likewise.
27304 * localedata/locales/bhb_IN: Likewise.
27305 * localedata/locales/bho_IN: Likewise.
27306 * localedata/locales/bi_VU: Likewise.
27307 * localedata/locales/bn_BD: Likewise.
27308 * localedata/locales/bn_IN: Likewise.
27309 * localedata/locales/bo_CN: Likewise.
27310 * localedata/locales/bo_IN: Likewise.
27311 * localedata/locales/br_FR: Likewise.
27312 * localedata/locales/brx_IN: Likewise.
27313 * localedata/locales/bs_BA: Likewise.
27314 * localedata/locales/byn_ER: Likewise.
27315 * localedata/locales/ca_AD: Likewise.
27316 * localedata/locales/ca_ES: Likewise.
27317 * localedata/locales/ca_FR: Likewise.
27318 * localedata/locales/ca_IT: Likewise.
27319 * localedata/locales/ce_RU: Likewise.
27320 * localedata/locales/chr_US: Likewise.
27321 * localedata/locales/cmn_TW: Likewise.
27322 * localedata/locales/crh_UA: Likewise.
27323 * localedata/locales/cs_CZ: Likewise.
27324 * localedata/locales/csb_PL: Likewise.
27325 * localedata/locales/cv_RU: Likewise.
27326 * localedata/locales/cy_GB: Likewise.
27327 * localedata/locales/da_DK: Likewise.
27328 * localedata/locales/de_AT: Likewise.
27329 * localedata/locales/de_BE: Likewise.
27330 * localedata/locales/de_CH: Likewise.
27331 * localedata/locales/de_DE: Likewise.
27332 * localedata/locales/de_IT: Likewise.
27333 * localedata/locales/de_LI: Likewise.
27334 * localedata/locales/de_LU: Likewise.
27335 * localedata/locales/doi_IN: Likewise.
27336 * localedata/locales/dv_MV: Likewise.
27337 * localedata/locales/dz_BT: Likewise.
27338 * localedata/locales/el_CY: Likewise.
27339 * localedata/locales/el_GR: Likewise.
27340 * localedata/locales/en_AG: Likewise.
27341 * localedata/locales/en_AU: Likewise.
27342 * localedata/locales/en_BW: Likewise.
27343 * localedata/locales/en_CA: Likewise.
27344 * localedata/locales/en_DK: Likewise.
27345 * localedata/locales/en_GB: Likewise.
27346 * localedata/locales/en_HK: Likewise.
27347 * localedata/locales/en_IE: Likewise.
27348 * localedata/locales/en_IL: Likewise.
27349 * localedata/locales/en_IN: Likewise.
27350 * localedata/locales/en_NG: Likewise.
27351 * localedata/locales/en_NZ: Likewise.
27352 * localedata/locales/en_PH: Likewise.
27353 * localedata/locales/en_SG: Likewise.
27354 * localedata/locales/en_US: Likewise.
27355 * localedata/locales/en_ZA: Likewise.
27356 * localedata/locales/en_ZM: Likewise.
27357 * localedata/locales/en_ZW: Likewise.
27358 * localedata/locales/eo: Likewise.
27359 * localedata/locales/es_AR: Likewise.
27360 * localedata/locales/es_BO: Likewise.
27361 * localedata/locales/es_CL: Likewise.
27362 * localedata/locales/es_CO: Likewise.
27363 * localedata/locales/es_CR: Likewise.
27364 * localedata/locales/es_CU: Likewise.
27365 * localedata/locales/es_DO: Likewise.
27366 * localedata/locales/es_EC: Likewise.
27367 * localedata/locales/es_ES: Likewise.
27368 * localedata/locales/es_GT: Likewise.
27369 * localedata/locales/es_HN: Likewise.
27370 * localedata/locales/es_MX: Likewise.
27371 * localedata/locales/es_NI: Likewise.
27372 * localedata/locales/es_PA: Likewise.
27373 * localedata/locales/es_PE: Likewise.
27374 * localedata/locales/es_PR: Likewise.
27375 * localedata/locales/es_PY: Likewise.
27376 * localedata/locales/es_SV: Likewise.
27377 * localedata/locales/es_US: Likewise.
27378 * localedata/locales/es_UY: Likewise.
27379 * localedata/locales/es_VE: Likewise.
27380 * localedata/locales/et_EE: Likewise.
27381 * localedata/locales/eu_ES: Likewise.
27382 * localedata/locales/eu_ES@euro: Likewise.
27383 * localedata/locales/fa_IR: Likewise.
27384 * localedata/locales/ff_SN: Likewise.
27385 * localedata/locales/fi_FI: Likewise.
27386 * localedata/locales/fil_PH: Likewise.
27387 * localedata/locales/fo_FO: Likewise.
27388 * localedata/locales/fr_BE: Likewise.
27389 * localedata/locales/fr_CA: Likewise.
27390 * localedata/locales/fr_CH: Likewise.
27391 * localedata/locales/fr_FR: Likewise.
27392 * localedata/locales/fr_LU: Likewise.
27393 * localedata/locales/fur_IT: Likewise.
27394 * localedata/locales/fy_DE: Likewise.
27395 * localedata/locales/fy_NL: Likewise.
27396 * localedata/locales/ga_IE: Likewise.
27397 * localedata/locales/gd_GB: Likewise.
27398 * localedata/locales/gez_ER: Likewise.
27399 * localedata/locales/gez_ET: Likewise.
27400 * localedata/locales/gl_ES: Likewise.
27401 * localedata/locales/gu_IN: Likewise.
27402 * localedata/locales/gv_GB: Likewise.
27403 * localedata/locales/ha_NG: Likewise.
27404 * localedata/locales/hak_TW: Likewise.
27405 * localedata/locales/he_IL: Likewise.
27406 * localedata/locales/hi_IN: Likewise.
27407 * localedata/locales/hif_FJ: Likewise.
27408 * localedata/locales/hne_IN: Likewise.
27409 * localedata/locales/hr_HR: Likewise.
27410 * localedata/locales/hsb_DE: Likewise.
27411 * localedata/locales/ht_HT: Likewise.
27412 * localedata/locales/hu_HU: Likewise.
27413 * localedata/locales/hy_AM: Likewise.
27414 * localedata/locales/i18n: Likewise.
27415 * localedata/locales/ia_FR: Likewise.
27416 * localedata/locales/id_ID: Likewise.
27417 * localedata/locales/ig_NG: Likewise.
27418 * localedata/locales/ik_CA: Likewise.
27419 * localedata/locales/is_IS: Likewise.
27420 * localedata/locales/it_CH: Likewise.
27421 * localedata/locales/it_IT: Likewise.
27422 * localedata/locales/iu_CA: Likewise.
27423 * localedata/locales/ja_JP: Likewise.
27424 * localedata/locales/ka_GE: Likewise.
27425 * localedata/locales/kk_KZ: Likewise.
27426 * localedata/locales/kl_GL: Likewise.
27427 * localedata/locales/kn_IN: Likewise.
27428 * localedata/locales/ko_KR: Likewise.
27429 * localedata/locales/kok_IN: Likewise.
27430 * localedata/locales/ks_IN: Likewise.
27431 * localedata/locales/ks_IN@devanagari: Likewise.
27432 * localedata/locales/ku_TR: Likewise.
27433 * localedata/locales/kw_GB: Likewise.
27434 * localedata/locales/ky_KG: Likewise.
27435 * localedata/locales/lb_LU: Likewise.
27436 * localedata/locales/lg_UG: Likewise.
27437 * localedata/locales/li_BE: Likewise.
27438 * localedata/locales/li_NL: Likewise.
27439 * localedata/locales/lij_IT: Likewise.
27440 * localedata/locales/ln_CD: Likewise.
27441 * localedata/locales/lo_LA: Likewise.
27442 * localedata/locales/lt_LT: Likewise.
27443 * localedata/locales/lv_LV: Likewise.
27444 * localedata/locales/lzh_TW: Likewise.
27445 * localedata/locales/mag_IN: Likewise.
27446 * localedata/locales/mai_IN: Likewise.
27447 * localedata/locales/mg_MG: Likewise.
27448 * localedata/locales/mhr_RU: Likewise.
27449 * localedata/locales/mi_NZ: Likewise.
27450 * localedata/locales/mk_MK: Likewise.
27451 * localedata/locales/ml_IN: Likewise.
27452 * localedata/locales/mn_MN: Likewise.
27453 * localedata/locales/mni_IN: Likewise.
27454 * localedata/locales/mr_IN: Likewise.
27455 * localedata/locales/ms_MY: Likewise.
27456 * localedata/locales/mt_MT: Likewise.
27457 * localedata/locales/my_MM: Likewise.
27458 * localedata/locales/nan_TW: Likewise.
27459 * localedata/locales/nan_TW@latin: Likewise.
27460 * localedata/locales/nb_NO: Likewise.
27461 * localedata/locales/nds_DE: Likewise.
27462 * localedata/locales/nds_NL: Likewise.
27463 * localedata/locales/ne_NP: Likewise.
27464 * localedata/locales/nhn_MX: Likewise.
27465 * localedata/locales/niu_NU: Likewise.
27466 * localedata/locales/niu_NZ: Likewise.
27467 * localedata/locales/nl_AW: Likewise.
27468 * localedata/locales/nl_BE: Likewise.
27469 * localedata/locales/nl_NL: Likewise.
27470 * localedata/locales/nn_NO: Likewise.
27471 * localedata/locales/nr_ZA: Likewise.
27472 * localedata/locales/nso_ZA: Likewise.
27473 * localedata/locales/oc_FR: Likewise.
27474 * localedata/locales/om_ET: Likewise.
27475 * localedata/locales/om_KE: Likewise.
27476 * localedata/locales/or_IN: Likewise.
27477 * localedata/locales/os_RU: Likewise.
27478 * localedata/locales/pa_IN: Likewise.
27479 * localedata/locales/pa_PK: Likewise.
27480 * localedata/locales/pap_AW: Likewise.
27481 * localedata/locales/pap_CW: Likewise.
27482 * localedata/locales/pl_PL: Likewise.
27483 * localedata/locales/ps_AF: Likewise.
27484 * localedata/locales/pt_BR: Likewise.
27485 * localedata/locales/pt_PT: Likewise.
27486 * localedata/locales/quz_PE: Likewise.
27487 * localedata/locales/raj_IN: Likewise.
27488 * localedata/locales/ro_RO: Likewise.
27489 * localedata/locales/ru_RU: Likewise.
27490 * localedata/locales/ru_UA: Likewise.
27491 * localedata/locales/rw_RW: Likewise.
27492 * localedata/locales/sa_IN: Likewise.
27493 * localedata/locales/sat_IN: Likewise.
27494 * localedata/locales/sc_IT: Likewise.
27495 * localedata/locales/sd_IN: Likewise.
27496 * localedata/locales/sd_IN@devanagari: Likewise.
27497 * localedata/locales/se_NO: Likewise.
27498 * localedata/locales/sgs_LT: Likewise.
27499 * localedata/locales/shs_CA: Likewise.
27500 * localedata/locales/si_LK: Likewise.
27501 * localedata/locales/sid_ET: Likewise.
27502 * localedata/locales/sk_SK: Likewise.
27503 * localedata/locales/sl_SI: Likewise.
27504 * localedata/locales/sm_WS: Likewise.
27505 * localedata/locales/so_DJ: Likewise.
27506 * localedata/locales/so_ET: Likewise.
27507 * localedata/locales/so_KE: Likewise.
27508 * localedata/locales/so_SO: Likewise.
27509 * localedata/locales/sq_AL: Likewise.
27510 * localedata/locales/sq_MK: Likewise.
27511 * localedata/locales/sr_ME: Likewise.
27512 * localedata/locales/sr_RS: Likewise.
27513 * localedata/locales/sr_RS@latin: Likewise.
27514 * localedata/locales/ss_ZA: Likewise.
27515 * localedata/locales/st_ZA: Likewise.
27516 * localedata/locales/sv_FI: Likewise.
27517 * localedata/locales/sv_SE: Likewise.
27518 * localedata/locales/sw_KE: Likewise.
27519 * localedata/locales/sw_TZ: Likewise.
27520 * localedata/locales/szl_PL: Likewise.
27521 * localedata/locales/ta_IN: Likewise.
27522 * localedata/locales/ta_LK: Likewise.
27523 * localedata/locales/tcy_IN: Likewise.
27524 * localedata/locales/te_IN: Likewise.
27525 * localedata/locales/tg_TJ: Likewise.
27526 * localedata/locales/th_TH: Likewise.
27527 * localedata/locales/the_NP: Likewise.
27528 * localedata/locales/ti_ER: Likewise.
27529 * localedata/locales/ti_ET: Likewise.
27530 * localedata/locales/tig_ER: Likewise.
27531 * localedata/locales/tk_TM: Likewise.
27532 * localedata/locales/tl_PH: Likewise.
27533 * localedata/locales/tn_ZA: Likewise.
27534 * localedata/locales/to_TO: Likewise.
27535 * localedata/locales/tpi_PG: Likewise.
27536 * localedata/locales/tr_CY: Likewise.
27537 * localedata/locales/tr_TR: Likewise.
27538 * localedata/locales/ts_ZA: Likewise.
27539 * localedata/locales/tt_RU: Likewise.
27540 * localedata/locales/tt_RU@iqtelif: Likewise.
27541 * localedata/locales/ug_CN: Likewise.
27542 * localedata/locales/uk_UA: Likewise.
27543 * localedata/locales/unm_US: Likewise.
27544 * localedata/locales/ur_IN: Likewise.
27545 * localedata/locales/ur_PK: Likewise.
27546 * localedata/locales/uz_UZ: Likewise.
27547 * localedata/locales/uz_UZ@cyrillic: Likewise.
27548 * localedata/locales/ve_ZA: Likewise.
27549 * localedata/locales/vi_VN: Likewise.
27550 * localedata/locales/wa_BE: Likewise.
27551 * localedata/locales/wae_CH: Likewise.
27552 * localedata/locales/wal_ET: Likewise.
27553 * localedata/locales/wo_SN: Likewise.
27554 * localedata/locales/xh_ZA: Likewise.
27555 * localedata/locales/yi_US: Likewise.
27556 * localedata/locales/yo_NG: Likewise.
27557 * localedata/locales/yue_HK: Likewise.
27558 * localedata/locales/yuw_PG: Likewise.
27559 * localedata/locales/zh_CN: Likewise.
27560 * localedata/locales/zh_HK: Likewise.
27561 * localedata/locales/zh_SG: Likewise.
27562 * localedata/locales/zh_TW: Likewise.
27563 * localedata/locales/zu_ZA: Likewise.
27564
cae87e64
FW
275652017-11-13 Florian Weimer <fweimer@redhat.com>
27566
27567 * support/next_to_fault.h, support/next_to_fault.c: New files.
27568 * support/Makefile (libsupport-routines): Add next_to_fault.
27569 * resolv/tst-inet_pton.c (struct next_to_fault)
27570 (next_to_fault_allocate, next_to_fault_free): Remove.
27571 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
27572
4a306ef1
L
275732017-11-13 H.J. Lu <hongjiu.lu@intel.com>
27574
27575 * elf/dl-support.c: Include <dl-procruntime.c>.
27576 * include/link.h: Include <link_map.h>.
27577 * sysdeps/generic/dl-procruntime.c: New file.
27578 * sysdeps/generic/link_map.h: Likewise.
27579 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
27580 the writable ld.so namespace.
27581
e69897bf
PE
275822017-11-12 Paul Eggert <eggert@cs.ucla.edu>
27583
27584 timezone: pacify GCC -Wstringop-truncation
27585 Problem reported by Martin Sebor in:
27586 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
27587 * timezone/zic.c (writezone): Use memcpy, not strncpy.
27588
1ffe1ccb
FW
275892017-11-12 Florian Weimer <fweimer@redhat.com>
27590
eceed671
FW
27591 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
27592 tst-xreadlink.
27593 (tests): Add tst-xreadlink.
1ffe1ccb
FW
27594 * support/support.h (xstrndup): Declare.
27595 * support/xunistd.h (xunlink, xreadlink): Declare.
27596 * support/temp_file.h (support_create_temp_directory): Declare.
27597 * support/temp_file.c (support_create_temp_directory): New function.
27598 * support/support_chroot.c (support_chroot_create): Use it.
27599 * support/xreadlink.c: New file.
27600 * support/xstrndup.c: Likewise.
27601 * support/xunlink.c: Likewise.
27602 * support/tst-xreadlink.c: Likewise.
27603
456b40a9
JDA
276042017-11-11 John David Anglin <danglin@gcc.gnu.org>
27605
27606 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
27607
c0a25aa9
FW
276082017-11-11 Florian Weimer <fweimer@redhat.com>
27609
27610 [BZ #22409]
27611 [BZ #22412]
27612 * resolv/res_comp.c (printable_string, binary_hnok)
27613 (binary_leading_dash): New functions.
27614 (res_hnok): Reimplement using these functions and ns_name_pton.
27615 (res_ownok): Likewise.
27616 (res_mailok): Reimplement using printable_string, ns_name_pton and
27617 binary_hnok.
27618 (res_dnok): Reimplement using printable_string and ns_name_pton.
27619 * resolv/tst-res_hnok.c (tests): Add additional tests.
27620 (LETTERDIGITS, PRINTABLE): Define.
27621 (do_test): Adjust one_char results.
27622
9e0ad304
FW
276232017-11-11 Florian Weimer <fweimer@redhat.com>
27624
27625 [BZ #22413]
27626 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
27627 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
27628
e2a9fca8
FW
276292017-11-11 Florian Weimer <fweimer@redhat.com>
27630
27631 * resolv/tst-ns_name_pton.c: New file.
27632 * resolv/Makefile (tests): Add tst-ns_name_pton.
27633 (tst-ns_name_pton): Link against libresolv.
27634
5c1a6923
FW
276352017-11-11 Florian Weimer <fweimer@redhat.com>
27636
27637 * resolv/tst-res_hnok.c: New file.
27638 * resolv/Makefile (tests): Add tst-res_hnok.
27639 (tst-res_hnok): Link against libresolv.
27640
a19c0a1d
FW
276412017-11-11 Florian Weimer <fweimer@redhat.com>
27642
27643 * resolv/tst-resolv-network.c: Use test framework instead explicit
27644 main function.
27645
8cb5295d
L
276462017-11-09 H.J. Lu <hongjiu.lu@intel.com>
27647
27648 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
27649 <jmp_buf-macros.h>.
27650 [!_ISOMAC] (STR_HELPER): New.
27651 [!_ISOMAC] (STR): Likewise.
27652 [!_ISOMAC] (TEST_SIZE): Likewise.
27653 [!_ISOMAC] (TEST_ALIGN): Likewise.
27654 [!_ISOMAC] (TEST_OFFSET): Likewise.
27655 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
27656 field offsets of jmp_buf as well as sigjmp_buf.
27657 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
27658 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
27659 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
27660 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
27661 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
27662 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
27663 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
27664 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
27665 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
27666 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
27667 Likewise.
27668 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
27669 Likewise.
27670 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
27671 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
27672 Likewise.
27673 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
27674 Likewise.
27675 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
27676 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
27677 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
27678 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
27679 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
27680 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
27681 Likewise.
27682 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
27683 Likewise.
27684 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
27685 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
27686 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
27687
58c4a161
JM
276882017-11-07 Joseph Myers <joseph@codesourcery.com>
27689
3683b423
JM
27690 * include/float.h
27691 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27692 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
27693 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27694 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
27695 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27696 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
27697 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27698 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
27699 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27700 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
27701 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27702 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
27703 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27704 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
27705 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27706 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
27707 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27708 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
27709 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27710 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
27711 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27712 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
27713 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27714 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
27715 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27716 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
27717 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27718 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
27719 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27720 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
27721 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27722 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
27723 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27724 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
27725 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27726 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
27727 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27728 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
27729 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27730 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
27731 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27732 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
27733 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27734 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
27735 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27736 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
27737 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27738 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
27739 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27740 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
27741 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27742 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
27743 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27744 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
27745 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27746 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
27747 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27748 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
27749 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27750 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
27751 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27752 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
27753 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27754 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
27755 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27756 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
27757 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27758 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
27759 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27760 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
27761 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27762 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
27763 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27764 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
27765 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27766 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
27767 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27768 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
27769 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27770 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
27771 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27772 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
27773 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27774 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
27775 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27776 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
27777 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
27778 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
27779
58c4a161
JM
27780 * stdlib/tst-strtod.h (F16): New macro.
27781 (F32): Likewise.
27782 (F64): Likewise.
27783 (F32X): Likewise.
27784 (F64X): Likewise.
27785 (F128X): Likewise.
27786 (IF_FLOAT16): Likewise.
27787 (IF_FLOAT32): Likewise.
27788 (IF_FLOAT64): Likewise.
27789 (IF_FLOAT32X): Likewise.
27790 (IF_FLOAT64X): Likewise.
27791 (IF_FLOAT128X): Likewise.
27792 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
27793 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
27794 (STRTOD_TEST_FOREACH): Likewise.
27795 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
27796 (CHOOSE_f64): Likewise.
27797 (CHOOSE_f32x): Likewise.
27798 (CHOOSE_f64x): Likewise.
27799
feda96a1
AS
278002017-11-07 Andreas Schwab <schwab@suse.de>
27801
27802 * nptl/Makefile (tests-internal): Remove tst-typesizes.
27803
1bd0cbb8
MF
278042017-11-07 Mike FABIAN <mfabian@redhat.com>
27805
27806 [BZ #22403]
27807 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
27808 to be escaped.
27809 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
27810 to be escaped.
27811
363e4519 278122017-11-07 Claude Paroz <claude@2xlibre.net>
d8301314
CP
27813
27814 [BZ #22403]
27815 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
27816 to be escaped.
27817 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
27818 to be escaped.
27819 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
27820 to be escaped.
27821
dff91cd4
AZ
278222017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27823
06be6368
AZ
27824 [BZ #22298]
27825 * nptl/allocatestack.c (allocate_stack): Check if
27826 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
27827 __PTHREAD_MUTEX_HAVE_PREV is defined.
27828 * nptl/descr.h (pthread): Likewise.
27829 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
27830 Likewise.
27831 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
27832 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
27833 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
27834 * sysdeps/nptl/bits/thread-shared-types.h
27835 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
27836 defines.
27837 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
27838 of __WORDSIZE for internal layout.
27839 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
27840 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
27841 instead of __WORDSIZE whether to use an union for __spins and __list
27842 fields.
27843 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
27844 case.
27845 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
27846 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
27847 defines.
27848 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
27849 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
27850 Likewise.
27851 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
27852 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
27853 Likewise.
27854 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
27855 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
27856 Likewise.
27857 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
27858 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
27859 Likewise.
27860 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
27861 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
27862 Likewise.
27863 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
27864 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
27865 Likewise.
27866 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
27867 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
27868 Likewise.
27869 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
27870 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
27871 Likewise.
27872 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
27873 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
27874 Likewise.
27875 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
27876 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
27877 Likewise.
27878 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
27879 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
27880 Likewise.
27881 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
27882 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
27883 Likewise.
27884 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
27885 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
27886 Likewise.
27887 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
27888 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
27889 Likewise.
27890
72b3c6ee
AZ
27891 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
27892 New macros.
27893 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
27894 checks for expected input type size.
27895 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
27896 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
27897 Likewise.
27898 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
27899 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
27900 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
27901 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
27902 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
27903 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
27904 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
27905 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
27906 superflous runtime assert check.
27907 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
27908 Likewise.
27909 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
27910 Likewise.
27911 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
27912 Likewise.
27913 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
27914 Likewise.
27915 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
27916 Likewise.
27917 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
27918 Likewise.
27919 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
27920 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
27921 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
27922 Likewise.
27923 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
27924 Likewise.
27925 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
27926 Likewise.
27927 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
27928 Likewise.
27929 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
27930 Likewise.
27931 * nptl/pthread_attr_setinheritsched.c
27932 (__pthread_attr_setinheritsched): Likewise.
27933 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
27934 Likewise.
27935 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
27936 Likewise.
27937 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
27938 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
27939 __old_pthread_attr_setstack): Likewise.
27940 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
27941 Likewise.
27942 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
27943 Likewise.
27944 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
27945 Likewise.
27946 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
27947 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
27948 Likewise.
27949 * nptl/tst-typesizes.c: Remove file.
27950
dff91cd4
AZ
27951 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
27952 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
27953 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
27954 checks for internal pthread_mutex_t offsets.
27955 * sysdeps/aarch64/nptl/pthread-offsets.h
27956 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
27957 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
27958 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
27959 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
27960 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
27961 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
27962 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
27963 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
27964 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
27965 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
27966 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
27967 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
27968 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
27969 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
27970 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
27971 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
27972 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
27973 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
27974
b7fc95f8
FW
279752017-11-07 Florian Weimer <fweimer@redhat.com>
27976
27977 * bits/mman-linux.h: Move ...
27978 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
27979 comment.
27980 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
27981 outdated comment.
27982
6b860364
RS
279832017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27984
27985 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
27986 Redefine STRNLEN as __strnlen_power8.
27987
802c1f16
AZ
279882017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27989
d83da3a4
AZ
27990 * signal/sighold.c (sighold): Optimize implementation.
27991
6a4235f1
AZ
27992 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
27993 __NR_rt_sigqueueinfo.
27994
8b0e795a
AZ
27995 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
27996 __sigtimedwait.
27997 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
27998 assume __NR_rt_sigtimedwait.
27999 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
28000 and add LIBC_CANCEL_HANDLED for cancellation marking.
28001 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
28002
a1a638dd
AZ
28003 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
28004 (sysdeps_routines): Add memchr_noneon.
28005 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
28006 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
28007 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
28008 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
28009 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
28010 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
28011 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
28012
802c1f16
AZ
28013 * sysdeps/arm/arm-ifunc.h: New file.
28014 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
28015 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
28016 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
28017 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
28018 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
28019 (__memcpy_neon): Avoid create hidden alias.
28020 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
28021 (__memcpy_vfp): Likewise.
28022 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
28023 (sysdep_routines): Add memcpy_arm.
28024 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
28025
abcb584d
L
280262017-11-06 H.J. Lu <hongjiu.lu@intel.com>
28027
28028 [BZ #22362]
28029 * Makerules (make-link-multidir): New.
28030 * config.make.in (multidir): New.
28031 * configure.ac (libc_cv_multidir): New. AC_SUBST.
28032 * configure: Regenerated.
28033 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
28034 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
28035 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
28036 New target.
28037
4e2dff67
JM
280382017-11-06 Joseph Myers <joseph@codesourcery.com>
28039
28040 [BZ #22402]
28041 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
28042 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
28043
a1c7cd3c
MF
280442017-11-04 Mike FABIAN <mfabian@redhat.com>
28045
28046 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
28047 to be escaped.
28048
b9af29c0
FW
280492017-11-04 Florian Weimer <fweimer@redhat.com>
28050
28051 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
28052
4ca70e1a
JM
280532017-11-03 Joseph Myers <joseph@codesourcery.com>
28054
28055 * math/math.h [__HAVE_DISTINCT_FLOAT16
28056 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
28057 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
28058 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
28059 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
28060 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
28061 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
28062 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
28063 (__MATH_TG_F32): New macro.
28064 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
28065 (__MATH_TG_F64X): Likewise.
28066 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
28067 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
28068
ba0e6668
DL
280692017-11-03 Dmitry V. Levin <ldv@altlinux.org>
28070
28071 * po/de.po: Update translations.
28072 * po/ru.po: Likewise.
28073
bc18a6d3
FW
280742017-11-03 Florian Weimer <fweimer@redhat.com>
28075
28076 * manual/filesys.texi (Hard Links): Document linkat.
28077
97255170
JM
280782017-11-03 Joseph Myers <joseph@codesourcery.com>
28079
86ec4865
JM
28080 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
28081 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
28082 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
28083 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
28084 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
28085 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
28086 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
28087 the same as _Float128.
28088 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
28089 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
28090 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
28091
97255170
JM
28092 * stdlib/stdlib.h
28093 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
28094 Declare.
28095 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
28096 Likewise.
28097 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
28098 Likewise.
28099 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28100 (strtof32x): Likewise.
28101 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28102 (strtof64x): Likewise.
28103 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28104 (strtof128x): Likewise.
28105 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28106 (strfromf16): Likewise.
28107 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28108 (strfromf32): Likewise.
28109 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28110 (strfromf64): Likewise.
28111 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28112 (strfromf32x): Likewise.
28113 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28114 (strfromf64x): Likewise.
28115 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28116 (strfromf128x): Likewise.
28117 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
28118 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
28119 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
28120 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
28121 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
28122 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
28123
6d58ce5e
RH
281242017-11-03 Richard Henderson <rth@twiddle.net>
28125
28126 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
28127
659ca267
SN
281282017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28129
28130 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
28131
94d2f0af
SN
281322017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28133
28134 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
28135 DT_TLSDESC_GOT initialization.
28136 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
28137 (_dl_tlsdesc_resolve_hold): Likewise.
28138 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
28139 (_dl_tlsdesc_resolve_hold): Likewise.
28140 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
28141 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
28142
28e1ddf3
SN
281432017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28144
28145 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
28146
0ca3d1d6
SN
281472017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28148
28149 [BZ #18572]
28150 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
28151 non-lazily for R_ARM_TLS_DESC.
28152
2c1d4e5f
SN
281532017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28154
28155 [BZ #17078]
28156 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
28157 R_ARM_TLS_DESC case.
28158 (elf_machine_lazy_rel): Remove the prelink check.
28159
91c5a366
SN
281602017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28161
28162 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
28163 DT_TLSDESC_GOT initialization.
28164 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
28165 (_dl_tlsdesc_resolve_rela): Likewise.
28166 (_dl_tlsdesc_resolve_hold): Likewise.
28167 (_dl_tlsdesc_undefweak): Remove ldar.
28168 (_dl_tlsdesc_dynamic): Likewise.
28169 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
28170 (_dl_tlsdesc_resolve_rela): Likewise.
28171 (_dl_tlsdesc_resolve_hold): Likewise.
28172 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
28173 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
28174 (_dl_tlsdesc_resolve_rela): Likewise.
28175 (_dl_tlsdesc_resolve_hold): Likewise.
28176
b7cf203b
SN
281772017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28178
28179 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
28180 binding and initialization non-lazily for R_AARCH64_TLSDESC.
28181
0cc5b022
SN
281822017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28183
28184 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
28185 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
28186
43ddff2e
JM
281872017-11-02 Joseph Myers <joseph@codesourcery.com>
28188
28189 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
28190 Declare.
28191 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
28192 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
28193 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
28194 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
28195 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
28196 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
28197 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
28198 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
28199 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
28200 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
28201 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
28202
5baac970
MF
282032017-11-02 Mike FABIAN <mfabian@redhat.com>
28204
28205 [BZ #22382]
28206 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
28207 * localedata/locales/tpi_PG: Add standard header.
28208
ef11081f
FW
282092017-11-02 Florian Weimer <fweimer@redhat.com>
28210
28211 test-errno-linux: quotactl can fail with EPERM in containers.
28212 * sysdeps/unix/sysv/linux/test-errno-linux.c
28213 (LIST, LIST_FORWARD): New macros.
28214 (check_error_in_list): New function.
28215 (test_wrp_rv): Accept list of permitted error codes.
28216 (test_wrp_rv2): Remove.
28217 (test_wrp): Call test_wrp_rv with list of error codes.
28218 (test_wrp2): Accept list of error codes.
28219 (do_test): Adjust. Allow EPERM for quotactl.
28220
d10b132b
FW
282212017-11-02 Florian Weimer <fweimer@redhat.com>
28222
28223 * stdio-common/bug16.c (do_test): Use array_length.
28224 * stdio-common/errlist.c (_sys_nerr): Likewise.
28225 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
28226 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
28227 * stdio-common/psiginfo.c (psiginfo): Use array_length.
28228 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
28229 (do_test): Use array_length.
28230 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
28231 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
28232 * stdio-common/tst-printf-round.c (do_test): Likewise.
28233 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
28234 (CHECK): Use array_length.
28235 * stdio-common/tstdiomisc.c (t3, F): Likewise.
28236 * stdio-common/tstscanf.c (main): Likewise.
28237 * stdio-common/vfprintf.c (process_string_arg): Likewise.
28238
c94a5688
FW
282392017-11-02 Florian Weimer <fweimer@redhat.com>
28240
28241 Add array_length and array_end macros.
28242 * include/array_length.h: New file.
28243
2fac6a6c
FW
282442017-11-02 Florian Weimer <fweimer@redhat.com>
28245
28246 [BZ #22332]
28247 * posix/tst-glob-tilde.c (do_noescape): New variable.
28248 (one_test): Process it.
28249 (do_test): Set do_noescape. Add unescaping test case.
28250
2f1b212e
JM
282512017-11-01 Joseph Myers <joseph@codesourcery.com>
28252
260fbd0a
JM
28253 * math/complex.h
28254 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
28255 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
28256 with appropriate macros defined and undefined.
28257 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
28258 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
28259 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
28260 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
28261 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
28262 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
28263 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
28264 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
28265 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
28266 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
28267
2f1b212e
JM
28268 * math/complex.h
28269 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
28270 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
28271 that for long double. Do not condition define and undefine of
28272 _Mdouble_complex_ on [__CFLOAT128].
28273
95b93c6e
L
282742017-11-01 H.J. Lu <hongjiu.lu@intel.com>
28275
28276 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
28277 of <sysdeps/generic/sysdep.h>.
28278 (ALIGNARG): Removed.
28279 (ASM_SIZE_DIRECTIVE): Likewise.
28280 (ENTRY): Likewise.
28281 (END): Likewise.
28282 (ENTRY_CHK): Likewise.
28283 (END_CHK): Likewise.
28284 (syscall_error): Likewise.
28285 (mcount): Likewise.
28286 (PSEUDO_END): Likewise.
28287 (L): Likewise.
28288 (atom_text_section): Likewise.
28289 * sysdeps/x86/sysdep.h: New file.
28290 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
28291 of <sysdeps/generic/sysdep.h>.
28292 (ALIGNARG): Removed.
28293 (ASM_SIZE_DIRECTIVE): Likewise.
28294 (ENTRY): Likewise.
28295 (END): Likewise.
28296 (ENTRY_CHK): Likewise.
28297 (END_CHK): Likewise.
28298 (syscall_error): Likewise.
28299 (mcount): Likewise.
28300 (PSEUDO_END): Likewise.
28301 (L): Likewise.
28302 (atom_text_section): Likewise.
28303
1bb36539
RL
283042017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
28305
28306 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
28307 category of LC_CTYPE set to "i18n:2012".
28308 * localedata/locales/i18n_ctype: Regenerate.
28309
067f5d97 283102017-10-31 Yury Norov <ynorov@caviumnetworks.com>
e8681faa 28311
87bbc4cf
YN
28312 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
28313 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
28314 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
28315 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
28316
e8681faa
YN
28317 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
28318 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
28319 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
28320 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
28321
540af6e2
JM
283222017-10-31 Joseph Myers <joseph@codesourcery.com>
28323
43e66283
JM
28324 * math/complex.h
28325 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
28326 New macro.
28327 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
28328 Likewise.
28329 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
28330 Likewise.
28331 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28332 (CMPLXF32X): Likewise.
28333 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28334 (CMPLXF64X): Likewise.
28335 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28336 (CMPLXF128X): Likewise.
28337
540af6e2
JM
28338 * math/math.h
28339 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
28340 (__MATH_EVAL_FMT2): Define to add 0.0f.
28341
58af72b4
AM
283422017-10-31 Alan Modra <amodra@gmail.com>
28343
28344 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
28345 include sysdep.h.
28346 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
28347 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
28348 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
28349 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
28350 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
28351 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
28352 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
28353 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
28354 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
28355 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
28356 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
28357 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
28358 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
28359 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
28360 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
28361 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
28362 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
28363 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
28364 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
28365 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
28366 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
28367 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
28368 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
28369 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
28370 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
28371 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
28372 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
28373 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
28374 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
28375 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
28376 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
28377 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
28378 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
28379 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
28380 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
28381 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
28382 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
28383 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
28384 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
28385 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
28386 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
28387 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
28388 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
28389 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
28390 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
28391 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
28392 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
28393 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
28394 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
28395 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
28396 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
28397 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
28398 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
28399 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
28400 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
28401 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
28402 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
28403 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
28404 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
28405 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
28406 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
28407 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
28408 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
28409 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
28410 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
28411 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
28412 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
28413 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
28414 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
28415
28416 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
28417 include sysdep.h and math_ldbl_opt.h.
28418
28419 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
28420 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
28421 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
28422 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
28423 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
28424 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
28425 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
28426 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
28427 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
28428 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
28429 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
28430 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
28431 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
28432 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
28433 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
28434 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
28435 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
28436 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
28437 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
28438 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
28439 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
28440 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
28441 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
28442 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
28443 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
28444 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
28445
112f30b3
AM
284462017-10-31 Alan Modra <amodra@gmail.com>
28447
28448 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
28449 string/strncase_l.c, not string/strncase.c.
28450 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
28451 (libc_hidden_def): Redefine.
28452
e9e7eced
AM
284532017-10-31 Alan Modra <amodra@gmail.com>
28454
28455 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
28456 (__STRCMP, STRCMP, __strcasecmp_l): Define.
28457 (__strcasecmp): Don't define.
28458
f7b465cf
AM
284592017-10-31 Alan Modra <amodra@gmail.com>
28460
28461 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
28462 IS_IN (libc).
28463 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
28464 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
28465 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
28466
d46b09f9
AM
284672017-10-31 Alan Modra <amodra@gmail.com>
28468
28469 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
28470 USE_AS_STPNCPY.
28471
e9b8e194
AM
284722017-10-31 Alan Modra <amodra@gmail.com>
28473
28474 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
28475 Redefine only when SHARED.
28476
eda162dd
JM
284772017-10-30 Joseph Myers <joseph@codesourcery.com>
28478
b61afe8c
JM
28479 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
28480 Include <bits/math-finite.h> with appropriate macros defined and
28481 undefined.
28482 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
28483 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
28484 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
28485 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
28486 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
28487
eda162dd
JM
28488 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
28489 [!_Mlong_double_] (_Mlong_double_): Likewise.
28490 [!_Mfloat16_] (_Mfloat16_): Likewise.
28491 [!_Mfloat32_] (_Mfloat32_): Likewise.
28492 [!_Mfloat64_] (_Mfloat64_): Likewise.
28493 [!_Mfloat128_] (_Mfloat128_): Likewise.
28494 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
28495 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
28496 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
28497 (_Mdouble_): Define without indirection through those macros.
28498 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
28499 [!_Mfloat128_] (_Mfloat128_): Likewise.
28500 [_Mlong_double_] (_Mlong_double_): Likewise.
28501 (_Mdouble_): Define without indirection through those macros.
28502 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
28503 not add -D_Mlong_double_=double.
28504 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
28505 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
28506
4ad5106e
L
285072017-10-30 H.J. Lu <hongjiu.lu@intel.com>
28508
28509 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
28510
fe326df7
L
285112017-10-30 H.J. Lu <hongjiu.lu@intel.com>
28512
28513 * sysdeps/x86/libc-start.c: Reformat.
28514
c5cc4514
L
285152017-10-30 H.J. Lu <hongjiu.lu@intel.com>
28516
28517 [BZ #22353]
28518 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
28519 (1): Renamed to ...
28520 (L(Src0)): This.
28521 (L(Src1)): New.
28522 (L(Src2)): Likewise.
28523 (L(1)): Renamed to ...
28524 (L(Src3)): This.
28525
ce12269f
JM
285262017-10-30 Joseph Myers <joseph@codesourcery.com>
28527
28528 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
28529 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
28530 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
28531 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
28532 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
28533 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
28534 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
28535 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
28536 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
28537 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
28538 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
28539 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
28540 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
28541 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
28542 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
28543 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
28544 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
28545 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
28546 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
28547 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
28548 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
28549 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
28550 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
28551 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
28552 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
28553 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
28554 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
28555 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
28556 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
28557 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
28558 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
28559 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
28560 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
28561 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
28562 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
28563 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
28564 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
28565 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
28566 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
28567 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
28568 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
28569 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
28570 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
28571 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
28572 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
28573 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
28574 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
28575 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
28576 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
28577 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
28578 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
28579 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
28580 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
28581 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
28582 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
28583 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
28584 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
28585 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
28586 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
28587 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
28588 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
28589 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
28590 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
28591 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
28592 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
28593 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
28594
4484b9e2
FW
285952017-10-30 Florian Weimer <fweimer@redhat.com>
28596
28597 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
28598 always defined.
28599 * io/tst-mkdirat.c (do_test): Likewise.
28600 * io/tst-mkfifoat.c (do_test): Likewise.
28601 * io/tst-mknodat.c (do_test): Likewise.
28602 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
28603 * locale/programs/locale.c (select_dirs): Likewise.
28604 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
28605 * posix/bug-glob2.c (my_readdir): Likewise.
28606 * posix/tst-dir.c (main): Likewise.
28607 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
28608 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
28609
68fe16dd
FW
286102017-10-30 Florian Weimer <fweimer@redhat.com>
28611
28612 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
28613 just __USE_GNU.
28614
dadf23f0
FW
286152017-10-30 Florian Weimer <fweimer@redhat.com>
28616
28617 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
28618 Convert to support/test-driver.c.
28619 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
28620 New macro parameters.
28621 (PRINTF): Remove macro. Use test_verbose conditionals instead.
28622 * posix/tst-gnuglob.c: New file.
28623 * posix/tst-gnuglob64.c: Likewise.
28624 * posix/Makefile (tests): Add tst-gnuglob64.
28625
363e4519 286262017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
fbcecc08
MF
28627
28628 [BZ #19485]
28629 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
28630 and use a better translation for March in “mon”.
28631 * localedata/locales/csb_PL: Use more ASCII to improve the
28632 readability of the source.
28633
b110af82
MF
286342017-10-30 Mike FABIAN <mfabian@redhat.com>
28635
28636 [BZ #13953]
28637 * localedata/locales/km_KH: Use ASCII as much
28638 as possible for better readability of the source and
28639 remove useless comments.
28640 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
28641 was commented out and apparently wrong anyway because it was
28642 using Lao characters. If Buddhist era should be used
28643 for km_KH, a native speaker should write the correct formaat
28644 for Khmer.
28645 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
28646 (According to CLDR, the first weekday for Cambodia is Sunday).
28647 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
28648 (These were using Lao characters which must be wrong. If we get
28649 the correct data from a native speaker, we could add it back, until
28650 then it is better not to have name_mr and name_mrs at all than
28651 having it wrong).
28652
f301e533
RL
286532017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
28654
28655 * locale/loadlocale.c: Correct size of
28656 _nl_value_type_LC_<category> arrays.
28657
7e9d7073
JM
286582017-10-27 Joseph Myers <joseph@codesourcery.com>
28659
28660 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
28661 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
28662 with appropriate macros defined and undefined.
28663 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
28664 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
28665 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
28666 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
28667 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
28668
63d3b468
L
286692017-10-27 H.J. Lu <hongjiu.lu@intel.com>
28670
28671 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
28672 "-O2 -march=i586".
28673
a4cc02c7
MF
286742017-10-27 Mike FABIAN <mfabian@redhat.com>
28675
28676 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
28677 with lowercase letters to make it agree with CLDR.
28678
1e5971ec
MF
286792017-10-27 Mike FABIAN <mfabian@redhat.com>
28680
28681 [BZ #15260]
28682 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
28683 first letters of yesstr and nostr in yesexpr and noexpr,
28684 not for the full words.
28685 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
28686 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
28687 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
28688 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
28689 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
28690 first letters of yesstr and nostr in yesexpr and noexpr,
28691 until now only English was matched in yesexpr and noexpr.
28692 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
28693 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
28694 fil but not for tl. As tl and fil are very similar, using fil
28695 is probably better than using English.
28696
363e4519 286972017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
bc5fc7de
MF
28698
28699 [BZ #21706]
28700 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
28701 in yesstr and nostr.
28702
5d220788
JM
287032017-10-26 Joseph Myers <joseph@codesourcery.com>
28704
ecc7da5b
JM
28705 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
28706 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
28707 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
28708 Likewise.
28709 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
28710 Likewise.
28711 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
28712 Likewise.
28713 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
28714 Likewise.
28715 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28716 (SNANF128X): Likewise.
28717
5d220788
JM
28718 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
28719 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
28720 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28721 (HUGE_VAL_F32): Likewise.
28722 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28723 (HUGE_VAL_F64): Likewise.
28724 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28725 (HUGE_VAL_F32X): Likewise.
28726 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28727 (HUGE_VAL_F64X): Likewise.
28728 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28729 (HUGE_VAL_F128X): Likewise.
28730
363e4519 287312017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
67ad7163
TV
28732
28733 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
28734 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
28735 for the br_FR locale.
28736
363e4519 287372017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
408dff7e
TV
28738
28739 [BZ #21706]
28740 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
28741
337ff3c5
CD
287422017-10-25 Carlos O'Donell <carlos@redhat.com>
28743
02eec681
CD
28744 * locale/programs/record-status.h: Define globals, and function
28745 prototypes. Move function bodies...
28746 * locale/programs/record-status.c: ... to here. New file.
28747 * iconv/Makefile (iconv_prog-modules): Add record-status.
28748 * locale/Makefile (lib-modules): Likewise.
28749 * iconv/iconv_prog.c: Remove verbose.
28750 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
28751 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
28752 record a warning about ASCII compatibility.
28753 * locale/programs/ld-monetary.c (monetary_finish): If
28754 warn_int_curr_symbol is true then record a warning about the symbol
28755 not being in our ISO 4217 list.
28756 * locale/programs/locale.c: Include record-status.h. Remove verbose.
28757 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
28758 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
28759 (OPT_NO_WARN): Define.
28760 (OPT_WARN): Define.
28761 (options): Add entry for --no-warnings, and --warnings.
28762 (set_warnings): New function to enable/disable warnings.
28763 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
28764 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
28765 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
28766 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
28767 Pass flags to generate_locale.
28768 (generate_locale): Accept new flag argument and pass it to localedef
28769 invocation.
28770 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
28771 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
28772
56fa555a
CD
28773 * localedata/Makefile (test-input-data): Use full file name.
28774 * localedata/da_DK.in: Rename to...
28775 * localedata/da_DK.ISO-8859-1.in: ...this.
28776 * localedata/de_DE.in: Rename to...
28777 * localedata/de_DE.ISO-8859-1.in: ...this.
28778 * localedata/en_US.in: Rename to...
28779 * localedata/en_US.ISO-8859-1.in: ...this.
28780 * localedata/fr_FR.in: Rename to...
28781 * localedata/fr_FR.UTF-8.in: ... this.
28782 * localedata/hr_HR.in: Rename to...
28783 * localedata/hr_HR.ISO-8859-2.in: ...this.
28784 * localedata/hu_HU.in: Rename to...
28785 * localedata/hu_HU.UTF-8.in: ...this.
28786 * localedata/si_LK.in: Rename to...
28787 * localedata/si_LK.UTF-8.in: ...this.
28788 * localedata/sv_SE.in: Rename to...
28789 * localedata/sv_SE.ISO-8859-1.in: ...this.
28790 * localedata/tr_TR.in: Rename to...
28791 * localedata/tr_TR.UTF-8.in: ...this.
28792 * localedata/uk_UA.in: Rename to...
28793 * localedata/uk_UA.UTF-8.in: ...this.
28794 * localedata/sort-test.sh: Test file is locale name with the
28795 suffix.
28796
337ff3c5
CD
28797 * localedata/unicode-gen/Makefile (check_i18n): Rename to
28798 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
28799 file.
28800 * localedata/locales/i18n_ctype: Regenerate.
28801 * localedata/locales/tr_TR: Likewise.
28802 * localedata/locales/translit_circle: Likewise.
28803 * localedata/locales/translit_cjk_compat: Likewise.
28804 * localedata/locales/translit_combining: Likewise.
28805 * localedata/locales/translit_compat: Likewise.
28806 * localedata/locales/translit_font: Likewise.
28807 * localedata/locales/translit_fraction: Likewise.
28808
63da5cd4
RS
288092017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
28810
28811 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
28812 lxvd2x/stxvd2x with lvx/stvx.
28813 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
28814
a122dbfb
L
288152017-10-25 H.J. Lu <hongjiu.lu@intel.com>
28816
28817 * include/alloc_buffer.h: Replace "if if " with "if " in
28818 comments.
28819 * sysdeps/mips/memcpy.S: Likkewise.
28820 * sysdeps/mips/memset.S: Likewise.
28821 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
28822 Likewise.
28823 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
28824 Likewise.
28825 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
28826 Likewise.
28827
9be7530c
MF
288282017-10-25 Mike FABIAN <mfabian@redhat.com>
28829
28830 [BZ #15261]
28831 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
28832 yesexpr and noexpr.
28833 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
28834 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
28835 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
28836 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
28837 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
28838 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
28839 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
28840
6ccbf6ff
MF
288412017-10-25 Mike FABIAN <mfabian@redhat.com>
28842
28843 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
28844 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
28845 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
28846 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
28847 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
28848 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
28849 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
28850 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
28851 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
28852 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
28853 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
28854 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
28855
58b1a7ea
MF
288562017-10-25 Mike FABIAN <mfabian@redhat.com>
28857
28858 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
28859 as possible for better readability of the source.
28860 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
28861 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
28862 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
28863 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
28864 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
28865 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
28866 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
28867 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
28868 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
28869 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
28870 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
28871 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
28872 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
28873 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
28874 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
28875 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
28876 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
28877 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
28878 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
28879 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
28880 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
28881 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
28882 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
28883 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
28884 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
28885 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
28886 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
28887 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
28888 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
28889 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
28890 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
28891 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
28892 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
28893 * localedata/locales/en_US (LC_MESSAGES): Likewise.
28894 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
28895 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
28896 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
28897 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
28898 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
28899 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
28900 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
28901 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
28902 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
28903 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
28904 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
28905 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
28906 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
28907 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
28908 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
28909 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
28910 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
28911 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
28912 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
28913 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
28914 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
28915 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
28916 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
28917 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
28918 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
28919 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
28920 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
28921 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
28922 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
28923 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
28924 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
28925 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
28926 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
28927 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
28928 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
28929 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
28930 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
28931 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
28932 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
28933 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
28934 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
28935 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
28936 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
28937 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
28938 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
28939 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
28940 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
28941 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
28942 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
28943 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
28944 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
28945 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
28946 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
28947 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
28948 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
28949 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
28950 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
28951 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
28952 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
28953 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
28954 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
28955 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
28956 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
28957 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
28958 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
28959 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
28960 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
28961 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
28962 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
28963 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
28964 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
28965 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
28966 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
28967 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
28968 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
28969 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
28970 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
28971 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
28972 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
28973 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
28974 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
28975 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
28976 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
28977 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
28978 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
28979 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
28980 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
28981 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
28982 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
28983 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
28984 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
28985 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
28986 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
28987 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
28988 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
28989 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
28990 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
28991 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
28992 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
28993 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
28994 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
28995 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
28996 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
28997 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
28998 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
28999 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
29000 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
29001 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
29002 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
29003 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
29004 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
29005 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
29006 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
29007 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
29008 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
29009 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
29010 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
29011 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
29012 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
29013 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
29014 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
29015 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
29016 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
29017 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
29018 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
29019 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
29020 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
29021 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
29022 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
29023 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
29024 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
29025 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
29026 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
29027 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
29028 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
29029 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
29030 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
29031 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
29032 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
29033 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
29034
17e78edb
MF
290352017-10-25 Mike FABIAN <mfabian@redhat.com>
29036
29037 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
29038 (Use first letters of yesstr and nostr correctly instead of using
29039 full words).
29040
74e7284f
MF
290412017-10-25 Mike FABIAN <mfabian@redhat.com>
29042
29043 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
29044 (Use first letters of yesstr and nostr correctly).
29045
b41a0ff1
MF
290462017-10-25 Mike FABIAN <mfabian@redhat.com>
29047
29048 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
29049 also check for the first characters of yesstr and nostr.
29050 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
29051 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
29052
d971f380
MF
290532017-10-25 Mike FABIAN <mfabian@redhat.com>
29054
29055 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
29056 also check for Chinese characters.
29057
effc9e1d
MF
290582017-10-25 Mike FABIAN <mfabian@redhat.com>
29059
29060 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
29061 match also for the contents of yesstr and nostr. As the first letter
29062 of yesstr and nostr is equal, checking only for the first letter
29063 is not enough.
29064
10320881
MF
290652017-10-25 Mike FABIAN <mfabian@redhat.com>
29066
29067 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
29068 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
29069
d8682a15
MF
290702017-10-25 Mike FABIAN <mfabian@redhat.com>
29071
29072 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
29073 of main contributor.
29074
1bfb86ae
MF
290752017-10-25 Mike FABIAN <mfabian@redhat.com>
29076
29077 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
29078 instead of using English.
29079
da33d60b
MF
290802017-10-25 Mike FABIAN <mfabian@redhat.com>
29081
29082 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
29083 by including the first letters of nostr and yesexpr in the regexp.
29084 Also make it more readable by using ASCII where possible.
29085
725bbb3e
MF
290862017-10-25 Mike FABIAN <mfabian@redhat.com>
29087
29088 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
29089 the first letter of nostr in the regexp. It agrees with CLDR now.
29090 Also make it more readable by using ASCII where possible.
29091
fe043d8a
MF
290922017-10-24 Mike FABIAN <mfabian@redhat.com>
29093
29094 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
29095 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
29096 these strings contain a U+17D6 (which somewhat looks like a colon)
29097 instead of a real colon to separate the full words for “yes”
29098 and “no” from the single letter responses.
29099
360a8df3
MF
291002017-10-24 Mike FABIAN <mfabian@redhat.com>
29101
29102 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
29103 it agree with CLDR (include the first letter of yesstr).
29104 Also make it more readable by using ASCII where possible.
29105
bab7b6b0
MF
291062017-10-24 Mike FABIAN <mfabian@redhat.com>
29107
29108 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
29109 and improve yesexpr and noexpr. The yesstr and nostr apparently
29110 came from CLDR. And CLDR has a bug there: these strings contain
29111 a U+0903 (which looks like a colon) instead of a real colon
29112 to separate the full words for “yes” and “no” from the single
29113 letter responses.
29114
3e79f758
MF
291152017-10-24 Mike FABIAN <mfabian@redhat.com>
29116
29117 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
29118 letters of the full yesstr and nostr in yesexpr and noexpr.
29119
4960c879
MF
291202017-10-24 Mike FABIAN <mfabian@redhat.com>
29121
29122 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
29123 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
29124 * localedata/locales/an_ES: Make source more readable by using ASCII
29125 where possible.
29126
b06a054f
MF
291272017-10-24 Mike FABIAN <mfabian@redhat.com>
29128
29129 [BZ #20952]
29130 * localedata/locales/yuw_PG: New file.
29131 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
29132 * locale/iso-639.def: Add Yau (Uruwa).
29133
905a7725
WD
291342017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
29135
29136 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
29137
3f6bb8a3
WD
291382017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
29139
29140 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
29141 (__libc_realloc): Likewise.
29142 (_mid_memalign): Likewise.
29143 (__libc_calloc): Likewise.
29144
1d479c8c
MF
291452017-10-23 Mike FABIAN <mfabian@redhat.com>
29146
29147 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
29148 by adding the generic +1 and -0 as in all other locales.
29149 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
29150 day names and make it more readable by using ASCII where possible.
29151
91c3985c
JM
291522017-10-24 Joseph Myers <joseph@codesourcery.com>
29153
29154 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
29155 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
29156
aa95a241
AZ
291572017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29158
29159 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
29160 WNOHANG in waitpid call.
29161
db9bab09
SP
291622017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
29163
a2e0a7f1
SP
29164 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
29165 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
29166
db9bab09
SP
29167 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
29168 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
29169 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
29170 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
29171 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
29172 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
29173 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
29174 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
29175 variables.
29176
5062680c
MC
291772017-10-23 Michael Collison <michael.collison@arm.com>
29178
29179 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
29180 with __builtin_sqrt.
29181 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
29182 with __builtin_sqrtf.
29183 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
29184 with __builtin_ceil.
29185 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
29186 with __builtin_ceilf.
29187 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
29188 with __builtin_floor.
29189 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
29190 with __builtin_floorf.
29191 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
29192 with __builtin_fma.
29193 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
29194 with __builtin_fmaf.
29195 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
29196 with __builtin_fmax.
29197 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
29198 with __builtin_fmaxf.
29199 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
29200 with __builtin_fmin.
29201 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
29202 with __builtin_fminf.
29203 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
29204 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
29205 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
29206 with builtin_rint and conversion to int.
29207 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
29208 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
29209 with builtin_llround.
29210 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
29211 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
29212 with builtin_rint and conversion to long int.
29213 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
29214 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
29215 with builtin_lround.
29216 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
29217 with builtin_lroundf.
29218 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
29219 statements with __builtin_nearbyint.
29220 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
29221 statements with __builtin_nearbyintf.
29222 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
29223 with __builtin_rint.
29224 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
29225 with __builtin_rintf.
29226 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
29227 with __builtin_round.
29228 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
29229 with __builtin_roundf.
29230 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
29231 with __builtin_trunc.
29232 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
29233 with __builtin_truncf.
be080b6c
SN
29234 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
29235 and s_l[l]round[f].c too.
5062680c 29236
174935af
AM
292372017-10-23 Alan Modra <amodra@gmail.com>
29238
29239 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
29240 Adjust stack after restoring regs. Add missing LR cfi_restore.
29241
750a0e49
AM
292422017-10-23 Alan Modra <amodra@gmail.com>
29243
29244 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
29245 Move LR save and frame setup/teardown and LR restore to
29246 immediately around memset call. Provide cfi.
29247
5313581c
L
292482017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29249
29250 * sysdeps/i386/fpu/e_powf.S: Removed.
29251 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
29252 * sysdeps/i386/fpu/w_powf.c: Likewise.
29253 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
29254 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29255 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
29256 Add e_powf-sse2.
29257 (CFLAGS-e_powf-sse2.c): New.
29258 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
29259 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
29260
6089a3ee
L
292612017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29262
29263 * sysdeps/i386/fpu/e_log2f.S: Removed.
29264 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
29265 * sysdeps/i386/fpu/w_log2f.c: Likewise.
29266 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
29267 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29268 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
29269 Add e_log2f-sse2.
29270 (CFLAGS-e_log2f-sse2.c): New.
29271 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
29272 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
29273
80bb5935
L
292742017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29275
29276 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
29277 Add e_powf-fma.
29278 (CFLAGS-e_powf-fma.c): New.
29279 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
29280 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
29281
5c7adbd8
L
292822017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29283
29284 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
29285 Add e_log2f-fma.
29286 (CFLAGS-e_log2f-fma.c): New.
29287 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
29288 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
29289
0ccc7153
L
292902017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29291
29292 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
29293 Add e_logf-fma.
29294 (CFLAGS-e_logf-fma.c): New.
29295 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
29296 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
29297
fe596486
L
292982017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29299
29300 * sysdeps/i386/fpu/e_logf.S: Removed.
29301 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
29302 * sysdeps/i386/fpu/w_logf.c: Likewise.
29303 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
29304 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
29305 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29306 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
29307 Add e_logf-sse2.
29308 (CFLAGS-e_logf-sse2.c): New.
29309 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
29310 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
29311
7eda65f6
L
293122017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29313
29314 * sysdeps/i386/fpu/e_exp2f.S: Removed.
29315 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
29316 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
29317 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29318 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
29319 Add e_exp2f-sse2.
29320 (CFLAGS-e_exp2f-sse2.c): New.
29321 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
29322 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
29323
5d15c969
L
293242017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29325
29326 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
29327 Add e_exp2f-fma.
29328 (CFLAGS-e_exp2f-fma.c): New.
29329 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
29330 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
29331
b2f6137e
L
293322017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29333
29334 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
29335 * sysdeps/i386/fpu/e_expf.S: Likewise.
29336 * sysdeps/i386/fpu/math_errf.c: Likewise.
29337 * sysdeps/i386/fpu/w_expf.c: Likewise.
29338 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
29339 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
29340 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
29341 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
29342 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29343 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
29344 Remove e_expf-ia32.
29345 (CFLAGS-e_expf-sse2.c): New.
29346 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
29347 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
29348
e1f59beb
L
293492017-10-22 H.J. Lu <hongjiu.lu@intel.com>
29350
29351 * sysdeps/x86_64/fpu/e_expf.S: Removed.
29352 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
29353 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
29354 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
29355 e_expf.c.
29356 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
29357 New.
29358 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
29359 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
29360 Renamed to ...
29361 (__redirect_expf): This.
29362 (SYMBOL_NAME): Changed to expf.
29363 (__ieee754_expf): Renamed to ...
29364 (__expf): This.
29365 (__GI___expf): This.
29366 (__ieee754_expf): Add strong_alias.
29367 (__expf_finite): Likewise.
29368 (__expf): New.
29369 Include <sysdeps/ieee754/flt-32/e_expf.c>.
29370
363e4519 293712017-10-22 Paul Eggert <eggert@cs.ucla.edu>
a159b53f
PE
29372
29373 [BZ #22332]
29374 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
29375 unescaping.
29376
e80fc1fc
FW
293772017-10-21 Florian Weimer <fweimer@redhat.com>
29378
29379 * posix/Makefile (tests): Add tst-glob-tilde.
29380 (tests-special): Add tst-glob-tilde-mem.out
29381 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
29382 (tst-glob-tilde-mem.out): Add mtrace check.
29383 * posix/tst-glob-tilde.c: New file.
29384
797ba44b
JM
293852017-10-20 Joseph Myers <joseph@codesourcery.com>
29386
29387 * bits/floatn-common.h: New file.
29388 * math/Makefile (headers): Add bits/floatn-common.h.
29389 * bits/floatn.h: Include <bits/floatn-common.h>.
29390 * sysdeps/ia64/bits/floatn.h: Likewise.
29391 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
29392 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
29393 * sysdeps/powerpc/bits/floatn.h: Likewise.
29394 * sysdeps/x86/bits/floatn.h: Likewise.
29395
fe05e1cb
AZ
293962017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29397
8f6f5362
AZ
29398 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
29399 indicates whether compiler emits an warning for alias for
29400 functions with incompatible types.
29401
fe05e1cb
AZ
29402 [BZ #22273]
29403 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
29404 the auxiliary process is terminated by a signal before calling _exit
29405 or execve.
29406
b52b0d79
L
294072017-10-20 H.J. Lu <hongjiu.lu@intel.com>
29408
29409 [BZ #21265]
29410 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
29411 New.
29412 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
29413 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
29414 and bit_arch_XSAVEC_Usable if needed.
29415 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
29416 and bit_arch_Use_dl_runtime_resolve_opt.
29417 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
29418 Removed.
29419 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
29420 (bit_arch_Prefer_No_AVX512): Updated.
29421 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
29422 (bit_arch_XSAVEC_Usable): New.
29423 (STATE_SAVE_OFFSET): Likewise.
29424 (STATE_SAVE_MASK): Likewise.
29425 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
29426 (cpu_features): Add xsave_state_size and xsave_state_full_size.
29427 (index_arch_Use_dl_runtime_resolve_opt): Removed.
29428 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
29429 (index_arch_XSAVEC_Usable): New.
29430 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
29431 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
29432 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
29433 is enabled.
29434 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
29435 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
29436 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
29437 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
29438 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
29439 _dl_runtime_resolve_xsavec.
29440 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
29441 Removed.
29442 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
29443 instead of VEC_SIZE.
29444 (REGISTER_SAVE_BND0): Removed.
29445 (REGISTER_SAVE_BND1): Likewise.
29446 (REGISTER_SAVE_BND3): Likewise.
29447 (REGISTER_SAVE_RAX): Always defined to 0.
29448 (VMOV): Removed.
29449 (_dl_runtime_resolve_avx): Likewise.
29450 (_dl_runtime_resolve_avx_slow): Likewise.
29451 (_dl_runtime_resolve_avx_opt): Likewise.
29452 (_dl_runtime_resolve_avx512): Likewise.
29453 (_dl_runtime_resolve_avx512_opt): Likewise.
29454 (_dl_runtime_resolve_sse): Likewise.
29455 (_dl_runtime_resolve_sse_vex): Likewise.
29456 (USE_FXSAVE): New.
29457 (_dl_runtime_resolve_fxsave): Likewise.
29458 (USE_XSAVE): Likewise.
29459 (_dl_runtime_resolve_xsave): Likewise.
29460 (USE_XSAVEC): Likewise.
29461 (_dl_runtime_resolve_xsavec): Likewise.
29462 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
29463 Removed.
29464 (_dl_runtime_resolve_avx512_opt): Likewise.
29465 (_dl_runtime_resolve_avx): Likewise.
29466 (_dl_runtime_resolve_avx_opt): Likewise.
29467 (_dl_runtime_resolve_sse): Likewise.
29468 (_dl_runtime_resolve_sse_vex): Likewise.
29469 (_dl_runtime_resolve_fxsave): New.
29470 (_dl_runtime_resolve_xsave): Likewise.
29471 (_dl_runtime_resolve_xsavec): Likewise.
29472
363e4519 294732017-10-20 Paul Eggert <eggert@cs.ucla.edu>
c369d66e
PE
29474
29475 [BZ #22320]
29476 CVE-2017-15670
29477 * posix/glob.c (__glob): Fix one-byte overflow.
29478
6d43de4b
WD
294792017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
29480
29481 * malloc/malloc.c (sysdep-cancel.h): Add include.
29482
a15d53e2
WD
294832017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
29484
29485 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
29486
b9a558e7
WH
294872017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
29488
29489 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
29490 (tests): Remove $(objpfx)ga_test depdendency.
29491 * resolv/ga_test.c: Remove file.
29492
b6b08b8e
MF
294932017-10-20 Mike FABIAN <mfabian@redhat.com>
29494
29495 [BZ #18812]
29496 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
29497 * localedata/locales/kab_DZ: New file.
29498
9ba7e810
L
294992017-10-20 H.J. Lu <hongjiu.lu@intel.com>
29500
29501 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
29502 _dl_relocate_static_pie instead of _dl_start to compute load
29503 address in static PIE.
29504
4027a4fd
L
295052017-10-20 H.J. Lu <hongjiu.lu@intel.com>
29506
29507 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
29508
2f9314b4
MF
295092017-10-20 Mike FABIAN <mfabian@redhat.com>
29510
29511 [BZ #13605]
29512 * localedata/SUPPORTED: Add shn_MM/UTF-8.
29513 * localedata/locales/shn_MM: New file.
29514
63b4baa4
FW
295152017-10-20 Florian Weimer <fweimer@redhat.com>
29516
29517 [BZ #22321]
29518 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
29519 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
29520 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
29521 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
29522 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
29523 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
29524
95ccb619
L
295252017-10-19 H.J. Lu <hongjiu.lu@intel.com>
29526
29527 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
29528
37bb78cb
JM
295292017-10-19 Joseph Myers <joseph@codesourcery.com>
29530
76f2ed92
JM
29531 * sysdeps/mips/ieee754/bits/floatn.h: New file.
29532
37bb78cb
JM
29533 [BZ #22322]
29534 * sysdeps/mips/bits/long-double.h: Move to ....
29535 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
29536
d74e6f6c
WD
295372017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
29538
29539 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
29540
363e4519 295412017-10-19 Valery Reznic <valery_reznic@yahoo.com>
4d916f0f
L
29542 H.J. Lu <hongjiu.lu@intel.com>
29543
29544 [BZ #22299]
29545 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
29546 GLRO(dl_platform) to NULL.
29547 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
29548 (modules-names): Add tst-platformmod-1 and
29549 x86_64/tst-platformmod-2.
29550 (CFLAGS-tst-platform-1.c): New.
29551 (CFLAGS-tst-platformmod-1.c): Likewise.
29552 (CFLAGS-tst-platformmod-2.c): Likewise.
29553 (LDFLAGS-tst-platformmod-2.so): Likewise.
29554 ($(objpfx)tst-platform-1): Likewise.
29555 ($(objpfx)tst-platform-1.out): Likewise.
29556 (tst-platform-1-ENV): Likewise.
29557 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
29558 * sysdeps/x86_64/tst-platform-1.c: New file.
29559 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
29560 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
29561
4b0fa403
MF
295622017-10-19 Mike FABIAN <mfabian@redhat.com>
29563
29564 [BZ #13994]
29565 * locale/iso-639.def: Add Karbi.
29566 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
29567 * localedata/locales/mjw_IN: New file.
29568
81325b12
JM
295692017-10-18 Joseph Myers <joseph@codesourcery.com>
29570
29571 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
29572 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
29573 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
29574 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
29575 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
29576 (libm_alias_ldouble_other_r): Also create _Float128 alias.
29577 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
29578 <bits/floatn.h>.
29579 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
29580 (libm_alias_ldouble_other_r): Also create _Float128 alias.
29581 * manual/math.texi (Mathematics): Document additional architecture
29582 support for _Float128.
29583 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
29584 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
29585 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
29586 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
29587 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
29588 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
29589 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
29590 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
29591 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
29592 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
29593 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
29594 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
29595 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
29596 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
29597 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
29598
a68ba2f3
SN
295992017-10-18 Renlin Li <renlin.li@arm.com>
29600
29601 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
29602 _DYNAMIC symbol to calculate load address.
29603
346729f6
PC
296042017-10-18 Paul A. Clarke <pc@us.ibm.com>
29605
29606 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
29607 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
29608 summary bits.
29609 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
29610 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
29611
508b1e71
MF
296122017-10-18 Mike FABIAN <mfabian@redhat.com>
29613
29614 [BZ #16777]
29615 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
29616 and improve readability by using more ASCII.
29617 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
29618 and improve readability by using more ASCII.
29619
2c2245b9
WD
296202017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
29621
29622 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
29623 not all targets support atomics on bool.
29624
13c92696
JM
296252017-10-17 Joseph Myers <joseph@codesourcery.com>
29626
29627 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
29628 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
29629 __f128.
29630 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
29631 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
29632 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
29633 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
29634 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
29635 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
29636
71d85045
AZ
296372017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29638
29639 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
29640 defines.
29641
3381be5c
WD
296422017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
29643
29644 [BZ #22159]
29645 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
29646 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
29647 (do_check_remalloced_chunk): Fix build bug.
29648 (do_check_malloc_state): Add assert that checks arena->top.
29649 (malloc_consolidate): Remove initialization.
29650 (int_mallinfo): Remove call to malloc_consolidate.
6b5c8607 29651 (__libc_mallopt): Clarify why malloc_consolidate is needed.
3381be5c 29652
e956075a
WD
296532017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
29654
29655 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
29656 (have_fastchunks): Remove.
29657 (clear_fastchunks): Remove.
29658 (set_fastchunks): Remove.
29659 (malloc_state): Add have_fastchunks.
29660 (malloc_init_state): Use have_fastchunks.
29661 (do_check_malloc_state): Remove incorrect invariant checks.
29662 (_int_malloc): Use have_fastchunks.
29663 (_int_free): Likewise.
29664 (malloc_consolidate): Likewise.
29665
e4dd4ace
WD
296662017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
29667
29668 * malloc/malloc.c (tcache_put): Inline.
29669 (tcache_get): Inline.
29670
5bf58bc7
AJ
296712017-10-17 Jordi Mallach <jordi@gnu.org>
29672
29673 Aurelien Jarno <aurelien@aurel32.net>
29674 [BZ #2522]
29675 * localedata/locales/ca_ES@valencia: New file.
29676 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
29677
386e1c26
RN
296782017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
29679
29680 [BZ #22296]
29681 * math/math.h: Let signbit use the builtin in C++ mode with gcc
29682 < 6.x
29683
4e17c78e
AZ
296842017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29685
3d265601
AZ
29686 * scripts/build-many-glibcs.py (Context.add_all_configs):
29687 Add arm-linux-gnueabihf multiarch extra_glibcs.
29688
4e17c78e
AZ
29689 * sysdeps/generic/ifunc-init.h: New file.
29690 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
29691
56a752ab
MF
296922017-10-17 Mike FABIAN <mfabian@redhat.com>
29693
29694 [BZ #22019]
29695 * localedata/locales/el_GR: Set n_cs_precedes to 0.
29696 * localedata/locales/el_CY: copy "el_GR" because it is identical.
29697 * stdlib/tst-strfmon_l.c: adapt test case.
29698
c38a4bfd
JM
296992017-10-16 Joseph Myers <joseph@codesourcery.com>
29700
29701 * sysdeps/generic/float128-abi.h: New file.
29702 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
29703 non-__prefixed symbols to ....
29704 * math/Versions: ... here. Include <float128-abi.h>.
29705 * stdlib/Versions ... and here. Include <float128-abi.h>
29706
76009b26
FW
297072017-10-16 Florian Weimer <fweimer@redhat.com>
29708
29709 * version.h (VERSION): Switch to ".9000" as the development
29710 version suffix.
29711
7ece6cd5
FW
297122017-10-16 Florian Weimer <fweimer@redhat.com>
29713
29714 [BZ #22050]
29715 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
29716 compat_symbol_reference to access non-default version.
29717
d8287b36
FW
297182017-10-16 Florian Weimer <fweimer@redhat.com>
29719
29720 * malloc/Makefile (others-extras): Set to mcheck-init.o.
29721
3480ddc4
CD
297222017-10-16 Carlos O'Donell <carlos@redhat.com>
29723
29724 * include/shlib-compat.h (compat_symbol_reference): Update
29725 comment.
29726
02010e79
JM
297272017-10-16 Joseph Myers <joseph@codesourcery.com>
29728
596f7013
JM
29729 * math/Makefile (test-types): Add
29730 $(type-float128-$(float128-alias-fcts)).
29731 * math/test-float128.h (TYPE_STR): Define conditional on
29732 [FLT128_MANT_DIG == LDBL_MANT_DIG].
29733 (ULP_IDX): Likewise.
29734 (ULP_I_IDX): Likewise.
29735
02010e79
JM
29736 * stdlib/strtold.c: Include <bits/floatn.h>
29737 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
29738 and later undefine as macro. Define as weak alias if
29739 [!USE_WIDE_CHAR].
29740 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
29741 and later undefine as macro. Define as weak alias if
29742 [USE_WIDE_CHAR].
29743 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
29744 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
29745 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
29746 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
29747 Define and later undefine as macro. Define as weak alias if
29748 [USE_WIDE_CHAR].
29749 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
29750 <bits/floatn.h>.
29751 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
29752 Define and later undefine as macro. Define as weak alias if
29753 [!USE_WIDE_CHAR].
29754 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
29755 Define and later undefine as macro. Define as weak alias if
29756 [USE_WIDE_CHAR].
29757
ea91c315
CD
297582017-10-15 Carlos O'Donell <carlos@redhat.com>
29759
29760 * localedata/collate-test.c (allocate_arrays): Don't use \n in
29761 record_verbose messages.
29762
8e57c943
L
297632017-10-15 H.J. Lu <hongjiu.lu@intel.com>
29764
29765 [BZ #22052]
29766 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
29767 to silence -O3 -Wall warning with GCC 7.
29768
a4777c46
L
297692017-10-14 H.J. Lu <hongjiu.lu@intel.com>
29770
29771 * Makeconfig (+link-static-before-libc): Use the first of
29772 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
29773 * gmon/Makefile (tests): Add tst-gmon-static.
29774 (tests-static): Likewise.
29775 (CFLAGS-tst-gmon-static.c): New.
29776 (CRT-tst-gmon-static): Likewise.
29777 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
29778 (tst-gmon-static-ENV): Likewise.
29779 (tests-special): Likewise.
29780 ($(objpfx)tst-gmon-static.out): Likewise.
29781 (clean-tst-gmon-static-data): Likewise.
29782 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
29783 * gmon/tst-gmon-static-gprof.sh: New file.
29784 * gmon/tst-gmon-static.c: Likewise.
29785
bc3821bb
CD
297862017-10-13 Carlos O'Donell <carlos@redhat.com>
29787
29788 [BZ #22295]
29789 * locale/programs/linereader.c (get_string): Don't warn on
29790 non-symbolic character.
29791
a3e23a2c
CD
29792 [BZ #22294]
29793 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
29794 int_curr_symbol.
29795
f16491eb
CD
29796 [BZ #22292]
29797 * locale/programs/record-status.h: New file
29798 * locale/programs/locale.c: Add comment.
29799 * locale/programs/charmap-dir.c: Don't include error.h.
29800 (charmap_opendir): Use record_error.
29801 * locale/programs/charmap.c: Don't include error.h.
29802 (charmap_read): Use record_error, and record_warning.
29803 (parse_charmap): Likewise.
29804 * locale/programs/ld-address.c: Don't include error.h.
29805 (address_finish): Use record_error, and record_warning.
29806 * locale/programs/ld-collate.c: Don't include error.h.
29807 (collate_finish): Use record_error, and record_error_at_line.
29808 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
29809 (ctype_class_new): Likewise.
29810 (ctype_map_new): Likewise.
29811 (set_one_default): Likewise.
29812 (set_class_defaults): Likewise.
29813 (translit_flatten): Likewise.
29814 (allocate_arrays): Use record_error, and record_verbose.
29815 * locale/programs/ld-identification.c: Don't include error.h.
29816 (indentation_finish): Use record_error and record_warning.
29817 * locale/programs/ld-measurement.c: Don't include error.h.
29818 (measurement_finish): Use record_error.
29819 * locale/programs/ld-messages.c
29820 (message_finish): Likewise.
29821 * locale/programs/ld-monetary.c
29822 (monetary_finish): Likewise.
29823 * locale/programs/ld-name.c (name_finish): Use record_error
29824 and record_warning.
29825 * locale/programs/ld-numeric.c
29826 (numeric_finish): Use record_error.
29827 * locale/programs/ld-paper.c: Don't include error.h.
29828 (paper_finish): Use record_error.
29829 * locale/programs/ld-telephone.c: Don't include error.h.
29830 (telephone_finish): Use record_error.
29831 * locale/programs/ld-time.c (time_finish): Likewise.
29832 * locale/programs/linereader.h (lr_error): Make inline func.
29833 * locale/programs/localedef.c: Define recorded_warning_count,
29834 and recorded_error_count.
29835 (main): Use record_error. Use recorded_error_count and
29836 recorded_warning_count to issue correct error returns.
29837 (add_to_readlist): Use record_error.
29838 (find_locale): Likewise.
29839 (load_locale): Likewise.
29840 * locale/programs/localedef.h: Remove be_quiet
29841 and WITH_CUR_LOCALE.
29842 * locale/programs/locarchive.c (compare_from_file): Use
29843 record_error.
29844 * locale/programs/locfile.c (write_locale_data): Use
29845 record_error.
29846 * locale/programs/repertoire.c: Dont include error.h.
29847 (repertoire_complain): Use record_error.
29848 * localedata/tst-fmon.sh: Expect failures from localedef.
29849 * localedata/tst-locale.sh: Likewise.
29850 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
29851
8dc8be75
CD
29852 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
29853 (REPORTS): Likewise.
29854 (check): Likewise.
29855 (i18n): Rename to...
29856 (i18n_ctype): ...this.
29857 (i18n-report): Rename to...
29858 (i18n_ctype-report): ...this.
29859 * localedata/locales/i18n_ctype: Regenerate.
29860 * localedata/locales/i18n: copy i18n_ctype.
29861
f8718a9e
JM
298622017-10-13 Joseph Myers <joseph@codesourcery.com>
29863
18c08b96
JM
29864 * stdlib/strfroml.c: Include <bits/floatn.h>.
29865 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
29866 Define before include of <stdlib.h> and undefine afterwards, then
29867 define as weak alias.
29868
f8718a9e
JM
29869 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
29870 Undefine and restore default definition. Use
29871 libm_alias_ldouble_other.
29872
e4f530da
PZ
298732017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
29874
29875 [BZ #22153]
29876 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
29877 in coredumps.
29878
86445888
JC
298792017-10-13 James Clarke <jrtc27@jrtc27.com>
29880
29881 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
29882 Assign sym_map to be map for local symbols, as TLS relocations
29883 use sym_map to determine whether the symbol is defined and to
29884 extract the TLS information.
29885 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
29886 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
29887
179dcdb7
TMQMF
298882017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
29889
e8dbd6a3
TMQMF
29890 [BZ #22189]
29891 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
29892 (math_force_eval): Add powerpc version.
29893
179dcdb7
TMQMF
29894 [BZ #22142]
29895 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
29896 -DBL_MAX.
29897 (do_test): Likewise.
29898 * stdio-common/tst-printf.sh: Likewise.
29899 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
29900 ifdef clause in order to set the carry bit right. Replace r0 by
29901 0 without changing the behavior.
29902
7d25d410
JM
299032017-10-13 Joseph Myers <joseph@codesourcery.com>
29904
006e7664
JM
29905 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
29906 <libm-alias-ldouble.h>.
29907 (fabsl): Define using libm_alias_ldouble.
29908 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
29909 <libm-alias-ldouble.h>.
29910 (fabsl): Define using libm_alias_ldouble.
29911
1def91b3
JM
29912 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
29913 Remove conditional code.
29914
7d25d410
JM
29915 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
29916 Rename to __clog10_internal_l.
29917 (__clog10_internal_l): Define aliases using
29918 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
29919 with __clog10.
29920
077ee129
RS
299212017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
29922
29923 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
29924 * benchtests/sincosf-inputs: New file.
29925 * benchtests/cosf-inputs: New file.
29926 * benchtests/sinf-inputs: New file.
29927
5ba41de9
SN
299282017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
29929
29930 * posix/tst-spawn.c (do_test): Wait for both children.
29931
d165ca64
L
299322017-10-12 H.J. Lu <hongjiu.lu@intel.com>
29933
29934 [BZ #22284]
29935 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
29936 tests-pie): Add tst-gmon-pie.
29937 (CFLAGS-tst-gmon-pie.c): New.
29938 (CRT-tst-gmon-pie): Likewise.
29939 (tst-gmon-pie-ENV): Likewise.
29940 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
29941 ($(objpfx)tst-gmon-pie.out): Likewise.
29942 (clean-tst-gmon-pie-data): Likewise.
29943 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
29944 * gmon/gmon.c [PIC]: Include <link.h>.
29945 [PIC] (callback): New function.
29946 (write_hist): Add an argument for load address. Subtract load
29947 address from PCs.
29948 (write_call_graph): Likewise.
29949 (write_gmon): Call __dl_iterate_phdr to get load address, pass
29950 it to write_hist and write_call_graph.
7bacdcfc 29951 * gmon/tst-gmon-pie.c: New file.
d165ca64 29952
bc9620d0
JM
299532017-10-11 Joseph Myers <joseph@codesourcery.com>
29954
29955 * math/Makefile (test-types-basic): New variable.
29956 (test-types): Likewise.
29957 (libm-test-support): Use $(test-types) instead of $(types).
29958 (libm-tests-base-normal): Likewise.
29959 (libm-tests-base-finite): Likewise.
29960 (libm-tests-base-inline): Likewise.
29961 (generated): Likewise.
29962 ($(objpfx)libm-test-support-$(t).c): Likewise.
29963 (libm-tests-for-type iterator): Likewise.
29964 (libm-test-support iterator): Likewise.
29965 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
29966 (ulp_idx): Use ULP_IDX.
29967 * math/test-ldouble.h: Include <float.h>.
29968 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
29969 (ULP_IDX): New macro.
29970 (ULP_I_IDX): Likewise.
29971 * math/test-double.h (ULP_IDX): Likewise.
29972 (ULP_I_IDX): Likewise.
29973 * math/test-float.h (ULP_IDX): Likewise.
29974 (ULP_I_IDX): Likewise.
29975 * math/test-float128.h (ULP_IDX): Likewise.
29976 (ULP_I_IDX): Likewise.
29977
09c76a74
AZ
299782017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29979
29980 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
29981 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
29982 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
29983 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
29984 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
29985 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
29986 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
29987 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
29988 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
29989 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
29990 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
29991 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
29992 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
29993 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
29994 (SINGLE_THREAD_BY_GLOBAL): Define.
29995 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
29996 Likewise.
29997 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
29998 Likewise.
29999 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30000 Likewise.
30001 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30002 Likewise.
30003 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
30004 (SINGLE_THREAD_BY_GLOBAL): Likewise.
30005 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30006 Likewise.
30007
2faa42da
AS
300082017-10-11 Andreas Schwab <schwab@suse.de>
30009
30010 * nis/Makefile (aux): Remove.
30011 * nscd/Makefile (aux): Add nscd_hash.
30012 (nscd-modules): Likewise.
30013 ($(objpfx)nscd): Don't depend on libnsl.
30014 * nscd/nscd_hash.c: New file.
30015 * nscd/nscd_hash.h: Likewise.
30016 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
30017 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
30018 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
30019 instead of <nis/rpcsvc/nis.h>.
30020 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
30021
d8425e11
FW
300222017-10-11 Florian Weimer <fweimer@redhat.com>
30023
30024 [BZ #22078]
30025 Avoid large NSS buffers with many addresses, aliases.
30026 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
30027 using dynarrays and struct alloc_buffer.
30028 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
30029 (tst-nss-files-hosts-multi): Link with -ldl.
30030 * nss/tst-nss-files-hosts-multi.c: New file.
30031
78e806fd
FW
300322017-10-11 Florian Weimer <fweimer@redhat.com>
30033
30034 [BZ #18023]
30035 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
30036 scratch_buffer. Eliminate gotos.
30037
541f19ba
JM
300382017-10-11 Joseph Myers <joseph@codesourcery.com>
30039
0ff64d3a
JM
30040 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
30041 libm_alias_ldouble_other.
30042 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
30043 undefine and redefine.
30044 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
30045 (exp10l): Do not define here.
30046 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
30047 (weak_alias): Undefine and redefine.
30048 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
30049 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
30050 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
30051 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
30052
541f19ba
JM
30053 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
30054 [!__fma] (fma): Define using libm_alias_double.
30055 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
30056 [!__fmaf] (fmaf): Define using libm_alias_float.
30057 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
30058 (fmal): Define using libm_alias_ldouble.
30059
24b6515d
JM
300602017-10-10 Joseph Myers <joseph@codesourcery.com>
30061
30062 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
30063 New macro.
30064 (libm_alias_double_other): Likewise.
30065 (libm_alias_double_r): Use libm_alias_double_other_r.
30066 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
30067 New macro.
30068 (libm_alias_float_other): Likewise.
30069 (libm_alias_float_r): Use libm_alias_float_other_r.
30070 * sysdeps/generic/libm-alias-float128.h
30071 (libm_alias_float128_other_r): New macro.
30072 (libm_alias_float128_other): Likewise.
30073 (libm_alias_float128_r): Use libm_alias_float128_other_r.
30074 * sysdeps/generic/libm-alias-ldouble.h
30075 (libm_alias_ldouble_other_r): New macro.
30076 (libm_alias_ldouble_other): Likewise.
30077 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
30078 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
30079 (libm_alias_double_other_r): New macro.
30080 (libm_alias_double_other): Likewise.
30081 (libm_alias_double_r): Use libm_alias_double_other_r.
30082 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
30083 (libm_alias_ldouble_other_r): New macro.
30084 (libm_alias_ldouble_other): Likewise.
30085 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
30086 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
30087 [!USE_AS_COMPAT]: Use libm_alias_double_other.
30088 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
30089 [!USE_AS_COMPAT]: Use libm_alias_float_other.
30090 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
30091 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
30092 * math/w_exp2f.c: Use libm_alias_float_other.
30093 * math/w_expf.c: Likewise.
30094 * math/w_log2f.c: Likewise.
30095 * math/w_logf.c: Likewise.
30096 * math/w_powf.c: Likewise.
30097 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
30098 [!__exp2f]: Use libm_alias_float_other.
30099 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
30100 [!__expf]: Use libm_alias_float_other.
30101 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
30102 [!__log2f]: Use libm_alias_float_other.
30103 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
30104 [!__logf]: Use libm_alias_float_other.
30105 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
30106 [!__powf]: Use libm_alias_float_other.
30107
8ed70de2
FW
301082017-10-10 Florian Weimer <fweimer@redhat.com>
30109
30110 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
30111 function.
30112 (_nss_files_gethostbyname3_r): Call it.
30113
a8dce619
JM
301142017-10-09 Joseph Myers <joseph@codesourcery.com>
30115
30116 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
30117 error. Remove default definition of declare_mgen_alias.
30118 [!declare_mgen_alias_r]: Likewise.
30119 * sysdeps/generic/math-type-macros-double.h
30120 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
30121 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
30122 (declare_mgen_alias_r): Likewise.
30123 * sysdeps/generic/math-type-macros-float128.h
30124 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
30125 * sysdeps/generic/math-type-macros-ldouble.h
30126 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
30127 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
30128 macro.
30129 (declare_mgen_alias_r_s): Likewise.
30130 (declare_mgen_alias_r): Likewise.
30131 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
30132 (lgamma_r): Define using libm_alias_double_r.
30133 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
30134 (lgammaf_r): Define using libm_alias_float_r.
30135 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
30136 (lgammal_r): Define using libm_alias_ldouble_r.
30137 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
30138 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
30139
bedac136
AZ
301402017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30141
30142 * lib/glob.c (__glob_pattern_type): Remove now-spurious
30143 extern declaration.
30144
c7509db2
JM
301452017-10-09 Joseph Myers <joseph@codesourcery.com>
30146
30147 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
30148
d6c064e9
JW
301492017-10-09 Jonathan Wakely <jwakely@redhat.com>
30150
30151 [BZ #21326]
30152 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
30153 [__cplusplus >= 201103] (__USE_ISOC99): Define.
30154 * math/Makefile (test-math-cxx11): New test.
30155 * math/test-math-cxx11.cc: New file.
30156
98e07420
CB
301572017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
30158
30159 * login/openpty.c (openpty): Close slave pty file descriptor on error.
30160
645ac9aa
CB
30161 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
30162 call to allocate the slave pty file descriptor.
30163
fd3b4e7c
JM
301642017-10-06 Joseph Myers <joseph@codesourcery.com>
30165
f85a176f
JM
30166 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
30167 [!__fma] (fma): Define using libm_alias_double.
30168 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
30169 [!__fma] (fma): Define using libm_alias_double.
30170
fd3b4e7c
JM
30171 * sysdeps/ieee754/float128/float128_private.h: Include
30172 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
30173 (libm_alias_ldouble_r): Undefine and redefine.
30174 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
30175 <libm-alias-ldouble.h>.
30176 (asinhl): Define using libm_alias_ldouble.
30177 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
30178 <libm-alias-ldouble.h>.
30179 (atanl): Define using libm_alias_ldouble.
30180 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
30181 <libm-alias-ldouble.h>.
30182 (cbrtl): Define using libm_alias_ldouble.
30183 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
30184 <libm-alias-ldouble.h>.
30185 (ceill): Define using libm_alias_ldouble.
30186 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
30187 <libm-alias-ldouble.h>.
30188 (copysignl): Define using libm_alias_ldouble.
30189 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
30190 <libm-alias-ldouble.h>.
30191 (cosl): Define using libm_alias_ldouble.
30192 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
30193 <libm-alias-ldouble.h>.
30194 (erfl): Define using libm_alias_ldouble.
30195 (erfcl): Likewise.
30196 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
30197 <libm-alias-ldouble.h>.
30198 (expm1l): Define using libm_alias_ldouble.
30199 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
30200 <libm-alias-ldouble.h>.
30201 (fabsl): Define using libm_alias_ldouble.
30202 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
30203 <libm-alias-ldouble.h>.
30204 (floorl): Define using libm_alias_ldouble.
30205 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
30206 <libm-alias-ldouble.h>.
30207 (fmal): Define using libm_alias_ldouble.
30208 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
30209 <libm-alias-ldouble.h>.
30210 (frexpl): Define using libm_alias_ldouble.
30211 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
30212 libm_alias_ldouble.
30213 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
30214 <libm-alias-ldouble.h>.
30215 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
30216 libm_alias_ldouble.
30217 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
30218 <libm-alias-ldouble.h>.
30219 (getpayloadl): Define using libm_alias_ldouble.
30220 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
30221 <libm-alias-ldouble.h>.
30222 (llrintl): Define using libm_alias_ldouble.
30223 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
30224 <libm-alias-ldouble.h>.
30225 (llroundl): Define using libm_alias_ldouble.
30226 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
30227 <libm-alias-ldouble.h>.
30228 (logbl): Define using libm_alias_ldouble.
30229 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
30230 <libm-alias-ldouble.h>.
30231 (lrintl): Define using libm_alias_ldouble.
30232 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
30233 <libm-alias-ldouble.h>.
30234 (lroundl): Define using libm_alias_ldouble.
30235 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
30236 <libm-alias-ldouble.h>.
30237 (modfl): Define using libm_alias_ldouble.
30238 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
30239 <libm-alias-ldouble.h>.
30240 (nearbyintl): Define using libm_alias_ldouble.
30241 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
30242 <libm-alias-ldouble.h>.
30243 (nextafterl): Define using libm_alias_ldouble.
30244 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
30245 <libm-alias-ldouble.h>.
30246 (nextupl): Define using libm_alias_ldouble.
30247 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
30248 <libm-alias-ldouble.h>.
30249 (remquol): Define using libm_alias_ldouble.
30250 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
30251 <libm-alias-ldouble.h>.
30252 (rintl): Define using libm_alias_ldouble.
30253 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
30254 <libm-alias-ldouble.h>.
30255 (roundevenl): Define using libm_alias_ldouble.
30256 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
30257 <libm-alias-ldouble.h>.
30258 (roundl): Define using libm_alias_ldouble.
30259 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
30260 using libm_alias_ldouble.
30261 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
30262 <libm-alias-ldouble.h>.
30263 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
30264 Define using libm_alias_ldouble.
30265 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
30266 <libm-alias-ldouble.h>.
30267 (sincosl): Define using libm_alias_ldouble.
30268 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
30269 <libm-alias-ldouble.h>.
30270 (sinl): Define using libm_alias_ldouble.
30271 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
30272 <libm-alias-ldouble.h>.
30273 (tanhl): Define using libm_alias_ldouble.
30274 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
30275 <libm-alias-ldouble.h>.
30276 (tanl): Define using libm_alias_ldouble.
30277 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
30278 <libm-alias-ldouble.h>.
30279 (totalorderl): Define using libm_alias_ldouble.
30280 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
30281 <libm-alias-ldouble.h>.
30282 (totalordermagl): Define using libm_alias_ldouble.
30283 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
30284 <libm-alias-ldouble.h>.
30285 (truncl): Define using libm_alias_ldouble.
30286 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
30287 libm_alias_ldouble.
30288 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
30289 libm_alias_ldouble.
30290 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
30291 <libm-alias-ldouble.h>.
30292 (weak_alias): Do not undefine and redefine.
30293 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
30294 (copysignl): Define with long_double_symbol only if [IS_IN
30295 (libc)].
30296 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
30297 <libm-alias-ldouble.h>.
30298 (weak_alias): Do not undefine and redefine.
30299 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
30300 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
30301 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
30302 <libm-alias-ldouble.h>.
30303 (weak_alias): Do not undefine and redefine.
30304 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
30305 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
30306 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
30307 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
30308 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
30309 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
30310 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
30311 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
30312 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
30313 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
30314 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
30315 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
30316 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
30317 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
30318 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
30319 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
30320 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
30321 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
30322 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
30323 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
30324 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
30325 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
30326 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
30327 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
30328 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
30329 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
30330
1e26d351
CD
303312017-10-06 Carlos O'Donell <carlos@redhat.com>
30332
30333 [BZ #22111]
30334 * malloc/malloc.c (tcache_shutting_down): Use bool type.
30335 (tcache_thread_freeres): Set tcache_shutting_down before
30336 freeing the tcache.
30337 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
30338 * malloc/tst-malloc-tcache-leak.c: New file.
30339
d1386762
RS
303402017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
30341
30342 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
30343 back to powerpc32 file.
30344 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
30345 (memrchr): Add __memrchr_power8 to ifunc list.
30346 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
30347 extra bytes for unaligned inputs.
30348
6dff1983
JM
303492017-10-06 Joseph Myers <joseph@codesourcery.com>
30350
30351 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
30352 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
30353 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
30354 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
30355 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
30356
86f9568a
JM
303572017-10-05 Joseph Myers <joseph@codesourcery.com>
30358
0db0b931
JM
30359 * sysdeps/arm/libm-test-ulps: Update.
30360
86f9568a
JM
30361 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
30362 <libm-alias-ldouble.h>.
30363 (asinhl): Define using libm_alias_ldouble.
30364 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
30365 <libm-alias-ldouble.h>.
30366 (cbrtl): Define using libm_alias_ldouble.
30367 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
30368 <libm-alias-ldouble.h>.
30369 (copysignl): Define using libm_alias_ldouble.
30370 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
30371 <libm-alias-ldouble.h>.
30372 (cosl): Define using libm_alias_ldouble.
30373 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
30374 <libm-alias-ldouble.h>.
30375 (erfl): Define using libm_alias_ldouble.
30376 (erfcl): Likewise.
30377 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
30378 <libm-alias-ldouble.h>.
30379 (fmal): Define using libm_alias_ldouble.
30380 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
30381 <libm-alias-ldouble.h>.
30382 (frexpl): Define using libm_alias_ldouble.
30383 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
30384 libm_alias_ldouble.
30385 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
30386 <libm-alias-ldouble.h>.
30387 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
30388 libm_alias_ldouble.
30389 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
30390 <libm-alias-ldouble.h>.
30391 (getpayloadl): Define using libm_alias_ldouble.
30392 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
30393 <libm-alias-ldouble.h>.
30394 (llrintl): Define using libm_alias_ldouble.
30395 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
30396 <libm-alias-ldouble.h>.
30397 (llroundl): Define using libm_alias_ldouble.
30398 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
30399 <libm-alias-ldouble.h>.
30400 (lrintl): Define using libm_alias_ldouble.
30401 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
30402 <libm-alias-ldouble.h>.
30403 (lroundl): Define using libm_alias_ldouble.
30404 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
30405 <libm-alias-ldouble.h>.
30406 (modfl): Define using libm_alias_ldouble.
30407 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
30408 <libm-alias-ldouble.h>.
30409 (nextupl): Define using libm_alias_ldouble.
30410 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
30411 <libm-alias-ldouble.h>.
30412 (remquol): Define using libm_alias_ldouble.
30413 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
30414 <libm-alias-ldouble.h>.
30415 (roundevenl): Define using libm_alias_ldouble.
30416 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
30417 <libm-alias-ldouble.h>.
30418 (roundl): Define using libm_alias_ldouble.
30419 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
30420 using libm_alias_ldouble.
30421 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
30422 <libm-alias-ldouble.h>.
30423 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
30424 <libm-alias-ldouble.h>.
30425 (setpayloadsigl): Define using libm_alias_ldouble.
30426 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
30427 <libm-alias-ldouble.h>.
30428 (sincosl): Define using libm_alias_ldouble.
30429 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
30430 <libm-alias-ldouble.h>.
30431 (sinl): Define using libm_alias_ldouble.
30432 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
30433 <libm-alias-ldouble.h>.
30434 (tanhl): Define using libm_alias_ldouble.
30435 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
30436 <libm-alias-ldouble.h>.
30437 (tanl): Define using libm_alias_ldouble.
30438 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
30439 <libm-alias-ldouble.h>.
30440 (totalorderl): Define using libm_alias_ldouble.
30441 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
30442 <libm-alias-ldouble.h>.
30443 (totalordermagl): Define using libm_alias_ldouble.
30444 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
30445 libm_alias_ldouble.
30446 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
30447 libm_alias_ldouble.
30448
9ec87fd2
SP
304492017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
30450
dd5bc7f1
SP
30451 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
30452 memmove_falkor.
30453 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
30454 (__libc_ifunc_impl_list): Likewise.
30455 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
30456 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
30457
5bfb0404
SP
30458 * benchtests/bench-memmove-walk.c: New file.
30459 * benchtests/Makefile (string-benchset): Add it.
30460
36bb8edf
SP
30461 * benchtests/bench-memset-walk.c: New file.
30462 * benchtests/Makefile (string-benchset): Add it.
30463
9ec87fd2
SP
30464 * benchtests/bench-memcpy-walk.c: New file.
30465 * benchtests/Makefile (string-benchset): Add it.
30466
1e9522c6
FW
304672017-10-05 Florian Weimer <fweimer@redhat.com>
30468
30469 nscd: Eliminate compilation time dependency in the build output.
30470 * nscd/nscd_stat.c (STATDATA_VERSION)
30471 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
30472 (STATDATA_VERSION_FULL): New macro definitions.
30473 (compilation): Remove.
30474 (struct statdata): Adjust version member.
30475 (send_stats): Set version from STATDATA_VERSION_FULL.
30476 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
30477
644d3857
JM
304782017-10-05 Joseph Myers <joseph@codesourcery.com>
30479
30480 * configure.ac (--enable-add-ons): Remove option.
30481 (machine): Do not mention add-ons in comment.
30482 (LIBC_PRECONFIGURE): Likewise.
30483 (add_ons): Remove variable and sanity checks and logic to locate
30484 add-ons.
30485 (add_ons_automatic): Remove variable.
30486 (configured_add_ons): Likewise.
30487 (add_ons_sfx): Likewise.
30488 (add_ons_pfx): Likewise.
30489 (add_on_subdirs): Likewise.
30490 (sysnames_add_ons): Likewise. Remove loop over add-ons and
30491 consideration of add-ons in Implies handling.
30492 (sysdeps_add_ons): Likewise.
30493 * configure: Regenerated.
30494 * libidn/configure.ac: Remove.
30495 * libidn/configure: Likewise.
30496 * sysdeps/unix/inet/configure.ac: New file.
30497 * sysdeps/unix/inet/configure: New generated file.
30498 * sysdeps/unix/inet/Subdirs: Add libidn.
30499 * Makeconfig (sysdeps-srcdirs): Remove variable.
30500 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
30501 ($(common-objpfx)config.status): Do not depend on add-on files.
30502 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
30503 comment.
30504 (all-subdirs): Do not include $(add-on-subdirs).
30505 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
30506 * config.make.in (add-ons): Remove variable.
30507 (add-on-subdirs): Likewise.
30508 (sysdeps-add-ons): Likewise.
30509 * manual/Makefile (add-chapters): Remove.
30510 ($(objpfx)texis): Do not depend on $(add-chapters).
30511 (nonexamples): Do not handle $(add-chapters).
30512 (examples): Do not handle $(add-ons).
30513 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
30514 libc-texinfo.sh.
30515 * manual/install.texi (Installation): Do not mention add-ons.
30516 (--enable-add-ons): Do not document configure option.
30517 * INSTALL: Regenerated.
30518 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
30519 * manual/maint.texi (Hierarchy Conventions): Do not mention
30520 add-ons.
30521 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
30522 --enable-add-ons.
30523 * scripts/gen-sorted.awk: Do not handle Subdirs files from
30524 add-ons.
30525 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
30526 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
30527
19f82f35
AS
305282017-10-05 Andreas Schwab <schwab@suse.de>
30529
30530 [BZ #15142]
30531 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
30532 (_IO_flush_all_lockp): Always lock list_all_lock.
30533 (_IO_flush_all_linebuffered): Likewise.
30534 (_IO_unbuffer_all): Likewise.
30535
91e7cf98
FW
305362017-10-05 Florian Weimer <fweimer@redhat.com>
30537
30538 [BZ #15436]
30539 Do not flush stdio streams on abort.
30540 * stdlib/abort.c (fflush): Remove macro definition.
30541 (abort): Remove stages related to stdio flushing.
30542
0c251257
FW
305432017-10-05 Florian Weimer <fweimer@redhat.com>
30544
30545 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
30546
7ea59e3e
SL
305472017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
30548
30549 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
30550
84d0e6f0
FW
305512017-10-05 Florian Weimer <fweimer@redhat.com>
30552
30553 * support/support_format_hostent.c (support_format_hostent): Add
30554 more error information for NETDB_INTERNAL.
30555
ee417882
L
305562017-10-04 H.J. Lu <hongjiu.lu@intel.com>
30557
30558 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
30559 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
30560 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
30561 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
30562 AC_DEFINE if multi-arch is enabled.
30563 * sysdeps/i386/configure: Regenerated.
30564
a67029ff
L
305652017-10-04 H.J. Lu <hongjiu.lu@intel.com>
30566
30567 * Makeconfig (+link-static-before-libc): Use
30568 $(DEFAULT-LDFLAGS-$(@F)).
30569 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
30570 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
30571 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
30572
5dba84b3
L
305732017-10-04 H.J. Lu <hongjiu.lu@intel.com>
30574
30575 * elf/Makefile (tests): Add tst-main1.
30576 (modules-names): Add tst-main1mod.
30577 ($(objpfx)tst-main1): New.
30578 (CRT-tst-main1): Likewise.
30579 (LDFLAGS-tst-main1): Likewise.
30580 (LDLIBS-tst-main1): Likewise.
30581 (tst-main1mod.so-no-z-defs): Likewise.
30582 * elf/tst-main1.c: New file.
30583 * elf/tst-main1mod.c: Likewise.
30584
758f1bfa
L
305852017-10-04 H.J. Lu <hongjiu.lu@intel.com>
30586
30587 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
30588
7e16a5d1
JM
305892017-10-04 Joseph Myers <joseph@codesourcery.com>
30590
30591 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
30592 (fma): Define using libm_alias_double.
30593 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
30594 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
30595 <math_ldbl_opt.h>.
30596 (fmal): Do not define as compat symbol here.
30597 * sysdeps/alpha/fpu/s_fma.c: New file.
30598
db4f87ba
SN
305992017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
30600
30601 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
30602
72d13ed1
JM
306032017-10-04 Joseph Myers <joseph@codesourcery.com>
30604
32d372d5
JM
30605 [BZ #22229]
30606 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
30607 <math_ldbl_opt.h>
30608 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
30609 and libc.
30610 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
30611 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
30612 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
30613 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
30614 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
30615 Include <math_ldbl_opt.h>
30616 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
30617 and libc.
30618 (compat_symbol): Undefine and redefine.
30619 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
30620 <math_ldbl_opt.h>
30621 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
30622 (compat_symbol): Undefine and redefine.
30623 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
30624 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
30625 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
30626 GLIBC_2_1 for libm.
30627 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
30628 GLIBC_2.0 copysignl symbol.
30629 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
30630 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
30631
72d13ed1
JM
30632 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
30633
11c4f501
FW
306342017-10-04 Florian Weimer <fweimer@redhat.com>
30635
30636 * scripts/check-local-headers.sh: Ignore nspr4 header file
30637 directory in addition to nspr.
30638
57b4af19
GT
306392017-10-04 Guido Trentalancia <guido@trentalancia.net>
30640
30641 [BZ #17956]
30642 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
30643 * configure: Regenerate.
30644 * crypt/Makefile (nss-cpp-flags): New variable.
30645 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
30646 (CPPFLAGS-md5-crypt.c): Use it.
30647 * scripts/check-local-headers.sh: Ignore nspr header file
30648 directory.
30649
64d1e08e
AS
306502017-10-04 Andreas Schwab <schwab@suse.de>
30651
30652 * nis/Makefile (services): Remove compat.
30653 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
30654 ($(objpfx)libnss_compat.so): Remove rule.
30655 * nis/Versions (libnss_compat): Remove.
30656 * nss/Makefile (services): Add compat.
30657 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
30658 * nss/Versions (libnss_compat): Define.
30659 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
30660 Don't include <rpc/types.h>. Replace bool_t by bool.
30661 * nss/nss_compat/compat-initgroups.c: Likewise.
30662 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
30663 instead of <rpcsrv/ypclnt.h>.
30664 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
30665 yp_get_default_domain.
30666 * nss/nss_compat/compat-pwd.c: Likewise.
30667 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
30668 yp_get_default_domain.
30669 * nss/nss_compat/nisdomain.c: New file.
30670 * nss/nss_compat/nisdomain.h: Likewise.
30671
86c27ade
SN
306722017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
30673
30674 [BZ #22244]
30675 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
30676 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
30677
8f8f8ef7
SN
306782017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
30679
30680 [BZ #22243]
30681 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
30682 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
30683
95577475
L
306842017-10-03 H.J. Lu <hongjiu.lu@intel.com>
30685
30686 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
30687 "movl main@GOTOFF(%ebx), %eax".
30688
02d2d892
L
306892017-10-03 H.J. Lu <hongjiu.lu@intel.com>
30690
30691 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
30692 allow undefined _DYNAMIC in PIE libc.a.
30693 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
30694 Likewse.
30695
0c609d19
L
306962017-10-03 H.J. Lu <hongjiu.lu@intel.com>
30697
30698 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
30699 check _DYNAMIC.
30700
c34a19ed
L
307012017-10-03 H.J. Lu <hongjiu.lu@intel.com>
30702
30703 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
30704 check _DYNAMIC.
30705
cdd4155d
L
307062017-10-03 H.J. Lu <hongjiu.lu@intel.com>
30707
30708 * math/test-math-iscanonical.cc (error): Replace bool with int.
30709
4699cb8b
JM
307102017-10-03 Joseph Myers <joseph@codesourcery.com>
30711
d8f619b3
JM
30712 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
30713 (modf): Define using libm_alias_double, only if [!__modf].
30714 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
30715 <libm-alias-double.h>.
30716 (modf): Define using libm_alias_double, only if [!__modf].
30717 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
30718 compat symbol here.
30719 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
30720 (weak_alias): Do not undefine and redefine.
30721 (strong_alias): Likewise.
30722 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
30723 (weak_alias): Likewise.
30724 (strong_alias): Likewise.
30725
4699cb8b
JM
30726 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
30727 (logb): Define using libm_alias_double, only if [!__logb].
30728 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
30729 <libm-alias-double.h>.
30730 (logb): Define using libm_alias_double, only if [!__logb].
30731 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
30732 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
30733 (weak_alias): Do not undefine and redefine.
30734 (strong_alias): Likewise.
30735 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
30736 (weak_alias): Likewise.
30737 (strong_alias): Likewise.
30738
bcc4e4bb
L
307392017-10-03 H.J. Lu <hongjiu.lu@intel.com>
30740
30741 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
30742 Check SHARED instead PIC.
30743
39793865
JM
307442017-10-03 Joseph Myers <joseph@codesourcery.com>
30745
7f1cbdf8
JM
30746 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
30747 [!__fmaf] (fmaf): Define using libm_alias_float.
30748
39793865
JM
30749 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
30750 (frexp): Define using libm_alias_double.
30751 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
30752 <libm-alias-double.h>.
30753 (frexp): Define using libm_alias_double.
30754 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
30755 compat symbol here.
30756
aa0235df
GG
307572017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
30758
30759 [BZ #22235]
30760 * math/math.h: Trivial fix for unbalanced parentheses in comment.
30761 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
30762 (CFLAGS-test-math-iscanonical.cc): New variable.
30763 * math/test-math-iscanonical.cc: New file.
30764 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
30765 Provide a C++ implementation based on function overloading,
30766 rather than using __MATH_TG, which uses C-only builtins.
30767 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
30768 Likewise.
30769 * sysdeps/powerpc/powerpc64le/Makefile
30770 (CFLAGS-test-math-iscanonical.cc): New variable.
30771
a1132b5e
JM
307722017-10-03 Joseph Myers <joseph@codesourcery.com>
30773
30774 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
30775 (ceil): Define using libm_alias_double.
30776 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
30777 (floor): Define using libm_alias_double.
30778 * sysdeps/ieee754/dbl-64/s_llround.c: Include
30779 <libm-alias-double.h>.
30780 (llround): Define using libm_alias_double.
30781 * sysdeps/ieee754/dbl-64/s_lround.c: Include
30782 <libm-alias-double.h>.
30783 (lround): Define using libm_alias_double.
30784 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
30785 <libm-alias-double.h>.
30786 (nearbyint): Define using libm_alias_double.
30787 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
30788 <libm-alias-double.h>.
30789 (remquo): Define using libm_alias_double.
30790 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
30791 (rint): Define using libm_alias_double.
30792 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
30793 (round): Define using libm_alias_double.
30794 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
30795 (trunc): Define using libm_alias_double.
30796 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
30797 <libm-alias-double.h>.
30798 (ceil): Define using libm_alias_double.
30799 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
30800 <libm-alias-double.h>.
30801 (floor): Define using libm_alias_double.
30802 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
30803 <libm-alias-double.h>.
30804 (llround): Define using libm_alias_double.
30805 [_LP64] (lround): Likewise.
30806 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
30807 <libm-alias-double.h>.
30808 [!_LP64] (lround): Define using libm_alias_double.
30809 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
30810 <libm-alias-double.h>.
30811 (nearbyint): Define using libm_alias_double.
30812 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
30813 <libm-alias-double.h>.
30814 (remquo): Define using libm_alias_double.
30815 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
30816 <libm-alias-double.h>.
30817 (rint): Define using libm_alias_double.
30818 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
30819 <libm-alias-double.h>.
30820 (round): Define using libm_alias_double.
30821 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
30822 <libm-alias-double.h>.
30823 (trunc): Define using libm_alias_double.
30824 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
30825 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
30826 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
30827 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
30828 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
30829 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
30830 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
30831 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
30832 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
30833
f275f64e
SN
308342017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
30835
30836 * math/w_remainder.c: New file.
30837 * math/w_remainderf.c: New file.
30838 * math/w_remainderl.c: New file.
30839
b8818ab5
L
308402017-10-03 H.J. Lu <hongjiu.lu@intel.com>
30841
30842 * elf/rtld.c (BOOTSTRAP_MAP): New.
30843 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
30844 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
30845 Likewise.
30846 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
30847 Likewise.
30848 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
30849 Likewise.
30850
3d1870fa
ST
308512017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
30852
30853 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
30854 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
30855 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
30856 rtld_hidden_data_ver): Define to empty.
30857 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
30858 __assert_perror_fail): Likewise.
30859 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
30860 (__rewinddir): Likewise.
30861 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
30862 (__profile_frequency): Likewise.
30863 * include/setjmp.h (__sigsetjmp): Likewise.
30864 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
30865 __libc_sigaction): Likewise.
30866 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
30867 not set hidden attribute.
30868 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
30869 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
30870 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
30871 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
30872 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
30873 __fxstatat64): Likewise.
30874 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
30875 (__uname): Likewise.
30876 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
30877 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
30878 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
30879 (NO_RTLD_HIDDEN): Set.
30880 * sysdeps/mach/hurd/configure: Refresh.
30881 * config.h.in: Refresh.
30882
527cd19c
JM
308832017-10-02 Joseph Myers <joseph@codesourcery.com>
30884
38722448
JM
30885 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
30886 (atan): Define using libm_alias_double.
30887 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
30888 (tan): Define using libm_alias_double.
30889 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
30890 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
30891
527cd19c
JM
30892 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
30893 define as weak alias of __atan. Do not define any aliases if
30894 [__atan].
30895 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
30896 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
30897 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
30898 as weak alias of __tan. Do not define any aliases if [__tan].
30899 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
30900 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
30901 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
30902 __atan.
30903 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
30904 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
30905 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
30906 and define as weak alias of __atan.
30907 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
30908 __atan.
30909 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
30910 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
30911 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
30912 define as weak alias of __tan.
30913
bdc5c592
SN
309142017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
30915
30916 * math/w_lgamma.c: New file.
30917 * math/w_lgammaf.c: New file.
30918 * math/w_lgammal.c: New file.
30919
bd4430c2
SN
309202017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
30921
30922 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
30923 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
30924 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
30925 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
30926 * sysdeps/ieee754/flt-32/w_logf.c: New file.
30927 * sysdeps/ieee754/flt-32/w_powf.c: New file.
30928 * sysdeps/i386/fpu/w_log2f.c: New file.
30929 * sysdeps/i386/fpu/w_logf.c: New file.
30930 * sysdeps/i386/fpu/w_powf.c: New file.
30931 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
30932 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
30933 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
30934
f7a0b063
SN
309352017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
30936 H.J. Lu <hongjiu.lu@intel.com>
30937
30938 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
30939 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
30940 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
30941 * sysdeps/ieee754/flt-32/w_expf.c: New file.
30942 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
30943 the new expf code.
30944 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
30945 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
30946 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
30947 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
30948 * sysdeps/i386/fpu/w_exp2f.c: New file.
30949 * sysdeps/i386/fpu/w_expf.c: New file.
30950 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
30951 * sysdeps/x86_64/fpu/w_expf.c: New file.
30952
72d3d281
SN
309532017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
30954
30955 * math/Versions (logf): New libm symbol at GLIBC_2.27.
30956 (log2f): Likewise.
30957 (powf): Likewise.
30958 * math/w_log2f.c: New file.
30959 * math/w_logf.c: New file.
30960 * math/w_powf.c: New file.
30961 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
30962 * math/w_logf_compat.c (__logf_compat): Likewise.
30963 * math/w_powf_compat.c (__powf_compat): Likewise.
30964 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
30965 * sysdeps/ia64/fpu/e_logf.S: Likewise.
30966 * sysdeps/ia64/fpu/e_powf.S: Likewise.
30967 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
30968 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
30969 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
30970 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
30971 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
30972 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
30973 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
30974 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
30975 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
30976 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
30977 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
30978 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
30979 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
30980 Likewise.
30981 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
30982 Likewise.
30983 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
30984 Likewise.
30985 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
30986 Likewise.
30987 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
30988 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
30989 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
30990 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
30991 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
30992 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
30993 Likewise.
30994 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
30995 Likewise.
30996 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
30997 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
30998 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
30999
59ba2d2b
RS
310002017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
31001
31002 * sysdeps/powerpc/powerpc64/multiarch/Makefile
31003 (sysdep_routines): Add memrchr_power8.
31004 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
31005 (memrchr): Add __memrchr_power8 to list of memrchr functions.
31006 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
31007 New file.
31008 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
31009 (memrchr): Add __memrchr_power8 to ifunc list.
31010 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
31011
397286ea
L
310122017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31013
31014 [BZ #18822]
31015 * sysdeps/unix/sysv/linux/posix_fadvise64.c
31016 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
31017 libc_hidden_def.
31018 * sysdeps/unix/sysv/linux/posix_fallocate64.c
31019 (__posix_fallocate64_l64): Likewise.
31020
d0a4512b
L
310212017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31022
31023 [BZ #18822]
31024 * sysdeps/unix/sysv/linux/sched_setaffinity.c
31025 (__sched_setaffinity_new): Add libc_hidden_proto and
31026 libc_hidden_def.
31027
c0769f70
L
310282017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31029
31030 [BZ #18822]
31031 * include/glob.h (__glob64): Add libc_hidden_proto.
31032 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
31033 libc_hidden_def.
31034
0e7d5b6e
L
310352017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31036
31037 [BZ #18822]
31038 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
31039 attribute_hidden.
31040
bde06c87
L
310412017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31042
31043 [BZ #18822]
31044 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
31045
fa426590
L
310462017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31047
31048 [BZ #18822]
31049 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
31050 libc_hidden_def.
31051
2f8a05d8
L
310522017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31053
31054 [BZ #18822]
31055 * csu/version.c (__libc_print_version): Add attribute_hidden.
31056
7bfd08ac
L
310572017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31058
31059 [BZ #18822]
31060 * include/libc-internal.h (__init_misc): Add attribute_hidden.
31061
0e1fd06c
L
310622017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31063
31064 [BZ #18822]
31065 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
31066
36e7ae1e
L
310672017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31068
31069 [BZ #18822]
31070 * nscd/nscd_helper.c (__nis_hash): New prototype.
31071
87078544
L
310722017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31073
31074 [BZ #18822]
31075 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
31076 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
31077 libc_hidden_def.
31078 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
31079 * termios/tcgetattr.c (__tcgetattr): Likewise.
31080
dd3121df
L
310812017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31082
31083 [BZ #18822]
31084 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
31085 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
31086 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
31087 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
31088 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
31089
047d1a81
L
310902017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31091
31092 [BZ #18822]
31093 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
31094
fd331b11
L
310952017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31096
31097 [BZ #18822]
31098 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
31099 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
31100
57f859bd
L
311012017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31102
31103 [BZ #18822]
31104 * intl/hash-string.h (__hash_string): Add attribute_hidden.
31105
d1903329
L
311062017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31107
31108 [BZ #18822]
31109 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
31110 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
31111
b4744101
L
311122017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31113
31114 [BZ #18822]
31115 * include/ifreq.h: New file.
31116 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
31117 (__ifreq): Likewise.
31118 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
31119 (__ifreq): Likewise.
31120
43b7dfd1
L
311212017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31122
31123 [BZ #18822]
31124 * include/idna.h: New file.
31125 * inet/getnameinfo.c: Include <idna.h> instead of
31126 <libidn/idna.h>.
31127 (__idna_to_unicode_lzlz): Removed.
31128 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
31129 <libidn/idna.h>.
31130 (__idna_to_ascii_lz): Removed.
31131 (__idna_to_unicode_lzlz): Likewise.
31132
2c0cd8f8
L
311332017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31134
31135 [BZ #18822]
31136 * include/plural-exp.h: New file.
31137 * intl/plural-exp.c: Include <plural-exp.h> instead of
31138 "plural-exp.h".
31139
8369d216
L
311402017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31141
31142 [BZ #18822]
31143 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
31144 "getsourcefilter.h".
31145 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
31146 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
31147 "getsourcefilter.h".
31148 (__get_sol): Removed.
31149
a0aef783
L
311502017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31151
31152 [BZ #18822]
31153 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
31154 to ...
31155 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
31156
3ee8209b
L
311572017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31158
31159 [BZ #18822]
31160 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
31161 attribute_hidden.
31162
6036fc38
L
311632017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31164
31165 [BZ #18822]
31166 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
31167
fe84fed0
L
311682017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31169
31170 [BZ #18822]
31171 * include/search.h (__tdestroy): Add libc_hidden_proto.
31172 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
31173
048dd681
L
311742017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31175
31176 [BZ #18822]
31177 * include/assert.h (__assert_fail_base): Add attribute_hidden.
31178
6e342af6
L
311792017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31180
31181 [BZ #18822]
31182 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
31183 attribute_hidden.
31184
6a088436
L
311852017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31186
31187 [BZ #18822]
31188 * include/signal.h (__kill): Add libc_hidden_proto.
31189 (__sigblock): Likewise.
31190 (__sigprocmask): Likewise.
31191 (__sigaltstack): Likewise.
31192 * signal/kill.c (__kill): Add libc_hidden_def.
31193 * signal/sigblock.c (__sigblock): Likewise.
31194 * signal/sigprocmask.c (__sigprocmask): Likewise.
31195 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
31196 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
31197 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
31198 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
31199 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
31200 Likewise.
31201 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
31202 Likewise.
31203 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
31204 (__sigprocmask): Likewise.
31205 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
31206 Likewise.
31207 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
31208 (__sigprocmask): Likewise.
31209 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
31210 Likewise.
31211
78cf1d74
L
312122017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31213
31214 [BZ #18822]
31215 * include/string.h (__strsep): Add libc_hidden_proto.
31216 * string/strsep.c (__strsep): Add libc_hidden_def.
31217
85b35894
L
312182017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31219
31220 [BZ #18822]
31221 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
31222 attribute_hidden.
31223 (__spawni): Likewise.
31224
225f7eec
L
312252017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31226
31227 [BZ #18822]
31228 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
31229 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
31230 libc_hidden_def.
31231
372fe247
L
312322017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31233
31234 [BZ #18822]
31235 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
31236
9e5ee8b8
L
312372017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31238
31239 [BZ #18822]
31240 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
31241 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
31242 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
31243 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
31244 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
31245 Likewise.
31246 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
31247 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
31248
2ff16592
L
312492017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31250
31251 [BZ #18822]
31252 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
31253 (__dcigettext): Likewise.
31254
b5648377
L
312552017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31256
31257 [BZ #18822]
31258 * include/sys/sysinfo.h (__get_nprocs_conf): Add
31259 libc_hidden_proto.
31260 (__get_nprocs): Likewise.
31261 (__get_phys_pages): Likewise.
31262 (__get_avphys_pages): Likewise.
31263 (__get_child_max): Add attribute_hidden.
31264 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
31265 (__get_nprocs): Likewise.
31266 (__get_phys_pages): Likewise.
31267 (__get_avphys_pages): Likewise.
31268 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
31269 libc_hidden_def.
31270 (__get_nprocs): Likewise.
31271 (__get_phys_pages): Likewise.
31272 (__get_avphys_pages): Likewise.
31273 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
31274 libc_hidden_def.
31275 (__get_nprocs_conf): Likewise.
31276 (__get_phys_pages): Likewise.
31277 (__get_avphys_pages): Likewise.
31278
0389a6aa
L
312792017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31280
31281 [BZ #18822]
31282 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
31283 attribute_hidden.
31284 (__netlink_close): Likewise.
31285 (__netlink_free_handle): Likewise.
31286 (__netlink_request): Likewise.
31287
d48354d8
L
312882017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31289
31290 [BZ #18822]
31291 * include/rpc/rpc.h (__rpc_thread_variables): Add
31292 attribute_hidden.
31293 (__rpc_thread_svc_cleanup): Likewise.
31294 (__rpc_thread_clnt_cleanup): Likewise.
31295 (__rpc_thread_key_cleanup): Likewise.
31296
d6daff12
L
312972017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31298
31299 [BZ #18822]
31300 * include/sys/uio.h (__readv): Add libc_hidden_proto.
31301 (__writev): Likewise.
31302 * misc/readv.c (__readv): Add libc_hidden_def.
31303 * misc/writev.c (__writev): Likewise.
31304 * sysdeps/posix/readv.c (__readv): Likewise.
31305 * sysdeps/posix/writev.c (__writev): Likewise.
31306 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
31307 (__readv): Likewise.
31308 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
31309 (__writev): Likewise.
31310
b68f8620
L
313112017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31312
31313 [BZ #18822]
31314 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
31315 (__regcomp): Add libc_hidden_proto.
31316 (__regexec): Likewise.
31317 (__regfree): Likewise.
31318 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
31319 (__regfree): Likewise.
31320 * posix/regexec.c (__regexec): Likewise.
31321
59c04e67
L
313222017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31323
31324 [BZ #18822]
31325 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
31326 (__getutent): Likewise.
31327 (__getutid): Likewise.
31328 (__getutline): Likewise.
31329 (__pututline): Likewise.
31330 (__getutent_r): Likewise.
31331 (__getutid_r): Likewise.
31332 (__getutline_r): Likewise.
31333 (__utmpname): Add attribute_hidden.
31334 (__setutent): Likewise.
31335 (__endutent): Likewise.
31336 * login/getutent.c (__getutent): Add libc_hidden_def.
31337 * login/getutent_r.c (__getutent_r): Likewise.
31338 (__pututline): Likewise.
31339 * login/getutid.c (__getutid): Likewise.
31340 * login/getutid_r.c (__getutid_r): Likewise.
31341 * login/getutline.c (__getutline): Likewise.
31342 * login/getutline_r.c (__getutline_r): Likewise.
31343 * login/updwtmp.c (__updwtmp): Likewise.
31344
4587a421
L
313452017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31346
31347 [BZ #18822]
31348 * include/dirent.h (__opendir): Always add attribute_hidden.
31349 (__fdopendir): Likewise.
31350 (__closedir): Likewise.
31351 (__readdir): Likewise.
31352 (__readdir64): Add libc_hidden_proto.
31353 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
31354 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
31355 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
31356 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
31357 New alias.
31358
9635ce69
L
313592017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31360
31361 [BZ #18822]
31362 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
31363 * include/netdb.h (__gethostbyaddr_r): Likewise.
31364 (__gethostbyname_r): Likewise.
31365 (__gethostbyname2_r): Likewise.
31366 (__getnetbyaddr_r): Likewise.
31367 (__getnetbyname_r): Likewise.
31368 (__getservbyname_r): Likewise.
31369 (__getservbyport_r): Likewise.
31370 (__getprotobyname_r): Likewise.
31371 (__getprotobynumber_r): Likewise.
31372 (__getnetgrent_r): Likewise.
31373 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
31374 (__getrpcbynumber_r): Likewise.
31375 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
31376
2e0a6909
L
313772017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31378
31379 [BZ #18822]
31380 * include/stdio.h (__fcloseall): Add attribute_hidden.
31381 (__getline): Likewise.
31382 (__path_search): Likewise.
31383 (__gen_tempname): Likewise.
31384 (__libc_message): Likewise.
31385 (__flockfile): Likewise.
31386 (__funlockfile): Likewise.
31387 (__fxprintf): Likewise.
31388 (__fxprintf_nocancel): Likewise.
31389
94fd682c
L
313902017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31391
31392 [BZ #18822]
31393 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
31394 (__sgetsgent_r): Likewise.
31395
e1b33bba
L
313962017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31397
31398 [BZ #18822]
31399 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
31400 (__statfs64): Likewise.
31401 (__fstatfs64): Likewise.
31402 * include/sys/statvfs.h (__statvfs64): Likewise.
31403 (__fstatvfs64): Likewise.
31404 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
31405 (__statfs_filesize_max): Likewise.
31406 (__statfs_symlinks): Likewise.
31407 (__statfs_chown_restricted): Likewise.
31408
b0f56784
L
314092017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31410
31411 [BZ #18822]
31412 * include/time.h (__tzstring): Add attribute_hidden.
31413 (__tzfile_read): Likewise.
31414 (__tzfile_compute): Likewise.
31415 (__tzfile_default): Likewise.
31416 (__tzset_parse_tz): Likewise.
31417 (__offtime): Likewise.
31418 (__asctime_r): Likewise.
31419 (__tzset): Likewise.
31420 (__tz_convert): Likewise.
31421 (__getdate_r): Likewise.
31422 (__getclktck): Likewise.
31423
a4338d99
L
314242017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31425
31426 [BZ #18822]
31427 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
31428 (__nscd_unmap): Likewise.
31429 (__nscd_cache_search): Likewise.
31430 (__nscd_get_nl_timestamp): Likewise.
31431 (__nscd_getpwnam_r): Likewise.
31432 (__nscd_getpwuid_r): Likewise.
31433 (__nscd_getgrnam_r): Likewise.
31434 (__nscd_getgrgid_r): Likewise.
31435 (__nscd_gethostbyname_r): Likewise.
31436 (__nscd_gethostbyname2_r): Likewise.
31437 (__nscd_gethostbyaddr_r): Likewise.
31438 (__nscd_getai): Likewise.
31439 (__nscd_getgrouplist): Likewise.
31440 (__nscd_getservbyname_r): Likewise.
31441 (__nscd_getservbyport_r): Likewise.
31442 (__nscd_innetgr): Likewise.
31443 (__nscd_setnetgrent): Likewise.
31444
a2ca1652
L
314452017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31446
31447 [BZ #18822]
31448 * include/gmp.h: Declare internal functions only if _ISOMAC is
31449 undefined.
31450 (__mpn_extract_double): Add attribute_hidden.
31451 (__mpn_extract_long_double): Likewise.
31452 (__mpn_extract_float128): Likewise.
31453 (__mpn_construct_float): Likewise.
31454 (__mpn_construct_double): Likewise.
31455 (__mpn_construct_long_double): Likewise.
31456 (__mpn_construct_float128): Likewise.
31457 (mpn_add_1): Likewise.
31458 (mpn_addmul_1): Likewise.
31459 (mpn_add_n): Likewise.
31460 (mpn_cmp): Likewise.
31461 (mpn_divrem): Likewise.
31462 (mpn_lshift): Likewise.
31463 (mpn_mul): Likewise.
31464 (mpn_mul_1): Likewise.
31465 (mpn_rshift): Likewise.
31466 (mpn_sub_1): Likewise.
31467 (mpn_submul_1): Likewise.
31468 (mpn_sub_n): Likewise.
31469
44af8a32
L
314702017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31471
31472 [BZ #18822]
31473 * include/wchar.h (__wcsnlen): Add attribute_hidden.
31474 (__wcscat): Likewise.
31475 (__btowc): Likewise.
31476 (__wcrtomb): Likewise.
31477 (__mbsrtowcs): Likewise.
31478 (__wcsrtombs): Likewise.
31479 (__mbsnrtowcs): Likewise.
31480 (__wcsnrtombs): Likewise.
31481 (__wcsncpy): Likewise.
31482 (__wcpncpy): Likewise.
31483 (__wmemcpy): Likewise.
31484 (__wmempcpy): Likewise.
31485 (__wmemmove): Likewise.
31486 (__wcschrnul): Likewise.
31487 (__vfwscanf): Likewise.
31488 (__vswprintf): Likewise.
31489 (__fwprintf): Likewise.
31490 (__vfwprintf): Likewise.
31491
783cd767
L
314922017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31493
31494 [BZ #18822]
31495 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
31496 (__getgrgid_r): Likewise.
31497 (__getgrnam_r): Likewise.
31498 * include/pwd.h (__getpwuid_r): Likewise.
31499 (__getpwnam_r): Likewise.
31500 (__fgetpwent_r): Likewise.
31501 * include/shadow.h (__getspnam_r): Likewise.
31502 (__sgetspent_r): Likewise.
31503 (__fgetspent_r): Likewise.
31504
7ec4b39a
L
315052017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31506
31507 [BZ #18822]
31508 * include/unistd.h (__access): Add attribute_hidden.
31509 (__lseek64): Likewise.
31510 (__libc_pread64): Likewise.
31511 (__pipe2): Likewise.
31512 (__sleep): Likewise.
31513 (__chdir): Likewise.
31514 (__fchdir): Likewise.
31515 (__getcwd): Likewise.
31516 (__rmdir): Likewise.
31517 (__execvpe): Likewise.
31518 (__execve): Likewise.
31519 (__setsid): Likewise.
31520 (__getuid): Likewise.
31521 (__geteuid): Likewise.
31522 (__getgid): Likewise.
31523 (__getegid): Likewise.
31524 (__getgroups): Likewise.
31525 (__group_member): Likewise.
31526 (__ttyname_r): Likewise.
31527 (__isatty): Likewise.
31528 (__readlink): Likewise.
31529 (__unlink): Likewise.
31530 (__gethostname): Likewise.
31531 (__profil): Likewise.
31532 (__getdtablesize): Likewise.
31533 (__brk): Likewise.
31534 (__ftruncate): Likewise.
31535 (__ftruncate64): Likewise.
31536
8345a760
L
315372017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31538
31539 [BZ #18822]
31540 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
31541 * argp/argp-fs-xinl.c: Likewise.
31542 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
31543 * argp/argp-parse.c: Include <argp.h>.
31544 * argp/argp-xinl.c: Likewise.
31545 * include/argp-fmtstream.h: New file.
31546 * include/argp.h (__argp_error): Add attribute_hidden.
31547 (__argp_failure): Likewise.
31548 (__argp_input): Likewise.
31549 (__argp_state_help): Likewise.
31550
c26dd7c6
L
315512017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31552
31553 [BZ #18822]
31554 * include/wchar.h (____wcstof_l_internal): New prototype.
31555 (____wcstod_l_internal): Likewise.
31556 (____wcstold_l_internal): Likewise.
31557 (____wcstol_l_internal): Likewise.
31558 (____wcstoul_l_internal): Likewise.
31559 (____wcstoll_l_internal): Likewise.
31560 (____wcstoull_l_internal): Likewise.
31561 (____wcstof128_l_internal): Likewise.
31562 * sysdeps/ieee754/float128/wcstof128.c
31563 (____wcstof128_l_internal): Removed.
31564 * sysdeps/ieee754/float128/wcstof128_l.c
31565 (____wcstof128_l_internal): Likewise.
31566 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
31567 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
31568 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
31569 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
31570 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
31571 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
31572 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
31573 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
31574 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
31575 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
31576
3aff5644
L
315772017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31578
31579 [BZ #18822]
31580 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
31581 instead of <sys/statvfs.h>.
31582 (__internal_statvfs): Removed.
31583 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
31584 instead of <sys/statvfs.h>.
31585 (__internal_statvfs64): Removed.
31586 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
31587 "internal_statvfs.h" instead of <sys/statvfs.h>.
31588 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
31589 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
31590 instead of <sys/statvfs.h>.
31591 (__internal_statvfs): Removed.
31592 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
31593 instead of <sys/statvfs.h>.
31594 (__internal_statvfs64): Removed.
31595
8bcdb7e0
L
315962017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31597
31598 [BZ #18822]
31599 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
31600 (__gconv_close): Likewise.
31601 (__gconv): Likewise.
31602 (__gconv_find_transform): Likewise.
31603 (__gconv_lookup_cache): Likewise.
31604 (__gconv_compare_alias_cache): Likewise.
31605 (__gconv_load_cache): Likewise.
31606 (__gconv_get_path): Likewise.
31607 (__gconv_close_transform): Likewise.
31608 (__gconv_release_cache): Likewise.
31609 (__gconv_find_shlib): Likewise.
31610 (__gconv_release_shlib): Likewise.
31611 (__gconv_get_builtin_trans): Likewise.
31612 (__gconv_compare_alias): Likewise.
31613 * include/dlfcn.h (_dlerror_run): Likewise.
31614 * include/stdio.h (__fortify_fail_abort): Likewise.
31615 * include/time.h (__tz_compute): Likewise.
31616 (__strptime_internal): Likewise.
31617 * intl/gettextP.h (_nl_find_domain): Likewise.
31618 (_nl_load_domain): Likewise.
31619 (_nl_find_msg): Likewise.
31620 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
31621 (EXTRACT_PLURAL_EXPRESSION): Likewise.
31622 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
31623 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
31624 (__gai_find_request): Likewise.
31625 (__gai_remove_request): Likewise.
31626 (__gai_notify): Likewise.
31627 (__gai_notify_only): Likewise.
31628 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
31629 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
31630 (_dl_non_dynamic_init): Likewise.
31631 (_dl_aux_init): Likewise.
31632 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
31633 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
31634 Likewise.
31635 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
31636 (__wcsmbs_clone_conv): Likewise.
31637 (__wcsmbs_named_conv): Likewise.
31638
8ed3b643
L
316392017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31640
31641 [BZ #18822]
31642 * include/stdlib.h (__random): Add attribute_hidden.
31643 (__random_r): Likewise.
31644 (__srandom_r): Likewise.
31645 (__initstate_r): Likewise.
31646 (__setstate_r): Likewise.
31647 (__erand48_r): Likewise.
31648 (__nrand48_r): Likewise.
31649 (__jrand48_r): Likewise.
31650 (__srand48_r): Likewise.
31651 (__seed48_r): Likewise.
31652 (__lcong48_r): Likewise.
31653 (__drand48_iterate): Likewise.
31654 (__setenv): Likewise.
31655 (__unsetenv): Likewise.
31656 (__clearenv): Likewise.
31657 (__ptsname_r): Likewise.
31658 (__posix_openpt): Likewise.
31659 (__add_to_environ): Likewise.
31660 (__realpath): Add libc_hidden_proto.
31661 (__ecvt_r): Likewise.
31662 (__fcvt_r): Likewise.
31663 (__qecvt_r): Likewise.
31664 (__qfcvt_r): Likewise.
31665 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
31666 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
31667
ef9b6f73
L
316682017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31669
31670 [BZ #18822]
31671 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
31672 * include/time.h (__mktime_internal): Likewise.
31673 * libio/iolibio.h (__fopen_internal): Likewise.
31674
8da92e72
JDA
316752017-10-01 John David Anglin <danglin@gcc.gnu.org>
31676
31677 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
31678 pointer in frame.
31679 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
31680 Correct offset used to restore PIC register.
31681
388784cf
JDA
316822017-09-30 John David Anglin <danglin@gcc.gnu.org>
31683
31684 [BZ libc/22165]
31685 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
31686 code to load address of __getcontext_ret when generating PIC code.
31687
2000067a
L
316882017-09-30 H.J. Lu <hongjiu.lu@intel.com>
31689
31690 * elf/Makefile (tests-static-internal): Add
31691 tst-tls1-static-non-pie.
31692 (LDFLAGS-tst-tls1-static-non-pie): New.
31693 * elf/tst-tls1-static-non-pie.c: New file.
31694
1e2bffd0
JM
316952017-09-29 Joseph Myers <joseph@codesourcery.com>
31696
31697 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
31698 (asinh): Define using libm_alias_double.
31699 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
31700 (cbrt): Define using libm_alias_double.
31701 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
31702 <libm-alias-double.h>.
31703 (copysign): Define using libm_alias_double.
31704 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
31705 (erf): Define using libm_alias_double.
31706 (erfc): Likewise.
31707 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
31708 (expm1): Define using libm_alias_double.
31709 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
31710 (fabs): Define using libm_alias_double.
31711 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
31712 libm_alias_double.
31713 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
31714 <libm-alias-double.h>.
31715 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
31716 libm_alias_double.
31717 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
31718 <libm-alias-double.h>.
31719 (getpayload): Define using libm_alias_double.
31720 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
31721 <libm-alias-double.h>.
31722 (llrint): Define using libm_alias_double.
31723 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
31724 (lrint): Define using libm_alias_double.
31725 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
31726 <libm-alias-double.h>.
31727 (nextup): Define using libm_alias_double.
31728 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
31729 <libm-alias-double.h>.
31730 (roundeven): Define using libm_alias_double.
31731 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
31732 libm_alias_double.
31733 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
31734 <libm-alias-double.h>.
31735 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
31736 using libm_alias_double.
31737 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
31738 (cos): Define using libm_alias_double.
31739 (sin): Likewise.
31740 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
31741 <libm-alias-double.h>.
31742 (sincos): Define using libm_alias_double.
31743 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
31744 (tanh): Define using libm_alias_double.
31745 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
31746 <libm-alias-double.h>.
31747 (totalorder): Define using libm_alias_double.
31748 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
31749 <libm-alias-double.h>.
31750 (totalordermag): Define using libm_alias_double.
31751 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
31752 libm_alias_double.
31753 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
31754 libm_alias_double.
31755 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
31756 <libm-alias-double.h>.
31757 (getpayload): Define using libm_alias_double.
31758 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
31759 <libm-alias-double.h>.
31760 (roundeven): Define using libm_alias_double.
31761 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
31762 <libm-alias-double.h>.
31763 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
31764 <libm-alias-double.h>.
31765 (totalorder): Define using libm_alias_double.
31766 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
31767 <libm-alias-double.h>.
31768 (totalordermag): Define using libm_alias_double.
31769 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
31770 libc compat symbol here.
31771 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
31772 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
31773 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
31774 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
31775 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
31776 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
31777 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
31778 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
31779 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
31780 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
31781
8172aad9
L
317822017-09-29 H.J. Lu <hongjiu.lu@intel.com>
31783
31784 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
31785 _dl_relocate_static_pie instead of _dl_start to compute load
31786 address in static PIE. Return 0 if _DYNAMIC is undefined for
31787 static executable.
31788
54464e74
L
317892017-09-29 H.J. Lu <hongjiu.lu@intel.com>
31790
31791 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
31792 _DYNAMIC is undefined for static executable.
31793
f6c5e5bc
L
317942017-09-29 H.J. Lu <hongjiu.lu@intel.com>
31795
31796 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
31797
2f92505d
JM
317982017-09-29 Joseph Myers <joseph@codesourcery.com>
31799
31800 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
31801
bd8d53bb
WD
318022017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
31803
31804 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
31805 (__ieee754_lgamma_r): Use fabs rather than __fabs.
31806 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
31807 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
31808 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
31809 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
31810 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
31811 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
31812 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
31813 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
31814 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
31815 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
31816 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
31817 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
31818 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
31819 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
31820 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
31821
fffb1507
WD
318222017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
31823
31824 * math/bits/cmathcalls.h (cimag): Remove inline.
31825 (creal): Remove inline.
31826 (conj): Remove inline.
31827
4ea49f4c
SN
318282017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
31829
31830 * math/Makefile (type-float-routines): Add e_powf_log2_data.
31831 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
31832 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
31833 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
31834 (issignalingf_inline): Likewise.
31835 (POWF_LOG2_TABLE_BITS): Likewise.
31836 (POWF_LOG2_POLY_ORDER): Likewise.
31837 (POWF_SCALE_BITS): Likewise.
31838 (POWF_SCALE): Likewise.
31839 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
31840 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
31841 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
31842
875c76c7
SN
318432017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
31844
31845 * math/Makefile (type-float-routines): Add e_log2f_data.
31846 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
31847 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
31848 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
31849 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
31850 * sysdeps/i386/fpu/e_log2f_data.c: New file.
31851 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
31852 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
31853
90c42e40
SN
318542017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
31855
31856 * math/Makefile (type-float-routines): Add e_logf_data.
31857 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
31858 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
31859 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
31860 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
31861 * sysdeps/i386/fpu/e_logf_data.c: New file.
31862 * sysdeps/ia64/fpu/e_logf_data.c: New file.
31863 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
31864
4088d8dd
L
318652017-09-28 H.J. Lu <hongjiu.lu@intel.com>
31866
31867 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
31868 undefined _DYNAMIC in PIE libc.a.
31869 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
31870 Likewse.
31871
4d3693ec
WD
318722017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
31873
31874 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
31875 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
31876 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
31877 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
31878 (__signbit): Remove.
31879 (__signbitl): Remove.
31880 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
31881 (__signbit): Remove.
31882 (__signbitl): Remove.
31883 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
31884 (__signbit): Remove.
31885 (__signbitl): Remove.
31886 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
31887 (__signbit): Remove.
31888 (__signbitl): Remove.
31889 * sysdeps/tile/bits/mathinline.h: Delete file.
31890 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
31891 (__signbit): Remove.
31892 (__signbitl): Remove.
31893
1e6d0723
WD
318942017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
31895
31896 * math/math.h: Improve handling of C99 isgreater macros.
31897 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
31898 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
31899 * sysdeps/powerpc/bits/mathinline.h: Likewise.
31900 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
31901 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
31902
b2f03cf3
SN
319032017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
31904
31905 * sysdeps/aarch64/libm-test-ulps: Update.
31906
f124cb38
JM
319072017-09-28 Joseph Myers <joseph@codesourcery.com>
31908
31909 [BZ #22225]
31910 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
31911 math_opt_barrier on argument when doing arithmetic on it.
31912 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
31913 Likewise. Use math_force_eval not math_opt_barrier after
31914 arithmetic.
31915 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
31916 math_opt_barrier on argument when doing arithmetic on it.
31917 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
31918 Likewise.
31919
7edd0691
L
319202017-09-27 H.J. Lu <hongjiu.lu@intel.com>
31921
31922 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
31923 libc_hidden_def.
31924 (__freeifaddrs): Likewise.
31925
2c7bbfaf
ST
319262017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
31927
31928 * include/dirent.h (__dirfd): New declaration.
31929 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
31930 alias.
31931 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
31932 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
31933 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
52a1f181
ST
31934 * include/unistd.h (__revoke): New declaration.
31935 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
31936 alias.
31937 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
31938 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
31939 revoke.
64a4af28
ST
31940 * include/dirent.h (__seekdir): New declaration.
31941 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
31942 redefine as weak alias.
31943 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
31944 of seekdir.
4009ddc6
ST
31945 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
31946 and use libc_hidden_def on them.
31947 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
31948 them.
31949 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
31950 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
31951 instead of getifaddrs and freeifaddrs.
2c7bbfaf 31952
825adeee
L
319532017-09-26 H.J. Lu <hongjiu.lu@intel.com>
31954
31955 [BZ #18822]
31956 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
31957 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
31958 (__dso_handle): Remove declaration.
31959 * dlfcn/tstatexit.c (__dso_handle): Removed.
31960 (main): Don't check __dso_handle.
31961 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
31962 (main): Don't check __dso_handle.
31963 * include/dso_handle.h: New file.
31964 * malloc/mtrace.c: Include <dso_handle.h>.
31965 (mtrace): Pass __dso_handle directly.
31966 * nptl/pthread_atfork.c: Include <dso_handle.h>.
31967 (__dso_handle): Remove declaration.
31968 (__pthread_atfork): Pass __dso_handle directly.
31969 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
31970 (__dso_handle): Removed.
31971 * posix/wordexp-test.c: Include <dso_handle.h>.
31972 (__dso_handle): Remove declaration.
31973 (__app_register_atfork): Pass __dso_handle directly.
31974 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
31975 (__dso_handle): Remove declaration.
31976 (at_quick_exit): Pass __dso_handle directly.
31977 * stdlib/atexit.c: Include <dso_handle.h>.
31978 (__dso_handle): Remove declaration.
31979 (atexit): Pass __dso_handle directly.
31980 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
31981 (__dso_handle): Removed.
31982
bfb0deb3
JM
319832017-09-26 Joseph Myers <joseph@codesourcery.com>
31984
31985 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
31986 using VDSO.
31987
cebcb9f8
AM
319882017-09-26 Alexey Makhalov <amakhalov@vmware.com>
31989
31990 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
31991 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
31992 values to correct default value for given type.
31993
592d5c75
L
319942017-09-26 H.J. Lu <hongjiu.lu@intel.com>
31995
31996 [BZ #22101]
31997 * elf/Makefile (tests): Add tst-debug1.
31998 ($(objpfx)tst-debug1): New.
31999 ($(objpfx)tst-debug1.out): Likewise.
32000 ($(objpfx)tst-debug1mod1.so): Likewise.
32001 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
32002 with p_filesz == 0.
32003 * elf/tst-debug1.c: New file.
32004
2d9193f2
JM
320052017-09-26 Joseph Myers <joseph@codesourcery.com>
32006
32007 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
32008 Define using __ifunc.
32009
4c5a7a02
TMQMF
320102017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
32011
32012 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
32013 exp2f() values.
32014
12ef66c4
JM
320152017-09-26 Joseph Myers <joseph@codesourcery.com>
32016
32017 [BZ #22156]
32018 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
32019
44dade71
FW
320202017-09-26 Florian Weimer <fweimer@redhat.com>
32021
32022 * resolv/Makefile (tests-internal): Fix typo in comment.
32023
eaca16f1
FW
320242017-09-26 Florian Weimer <fweimer@redhat.com>
32025
32026 * resolv/nss_dns/dns-host.c: Fix typo in comment.
32027
ccf970c7
AZ
320282017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32029
5f9f31ad
AZ
32030 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
32031 Use an union instead of a max_align_t array for __space,
32032 so that __space is the same size on all platforms.
32033 * malloc/scratch_buffer_grow_preserve.c
32034 (__libc_scratch_buffer_grow_preserve): Likewise.
32035
ccf970c7
AZ
32036 [BZ #22183]
32037 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
32038 version to 2.
32039 * posix/Makefile (routines): Add glob-lstat-compat and
32040 glob64-lstat-compat.
32041 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
32042 * posix/glob-lstat-compat.c: New file.
32043 * posix/glob64-lstat-compat.c: Likewise.
32044 * posix/tst-glob_lstat_compat.c: Likewise.
32045 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
32046 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
32047 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
32048 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
32049 Likewise.
32050 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
32051 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
32052 * posix/glob.c (glob_lstat): New function.
32053 (glob): Rename to __glob and add versioned symbol to 2.27.
32054 (glob_in_dir): Use glob_lstat.
32055 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
32056 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
32057 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
32058 2.27.
32059 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
32060 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
32061 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
32062 gl_lstat on glob call.
32063 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
32064 and glob64 symbols.
32065 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
32066 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
32067 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
32068 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
32069 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
32070 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
32071 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
32072 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
32073 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
32074 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
32075 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
32076 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
32077 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
32078 Likewise.
32079 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
32080 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
32081 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
32082 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
32083 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
32084 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
32085 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
32086 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
32087 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
32088 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
32089 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
32090 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
32091
b4396163
L
320922017-09-25 H.J. Lu <hongjiu.lu@intel.com>
32093
32094 * configure.ac (AS): Require binutils 2.25 or later.
32095 * configure: Regenerated.
32096
8f834987
PP
320972017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
32098
32099 [BZ #22207]
32100 * stdlib/test-atexit-race-common.c (do_test): Minimize required
32101 VM size.
32102
3de93d19
DD
321032017-09-25 DJ Delorie <dj@redhat.com>
32104
32105 [BZ #22161]
32106 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
32107 resetting timeout.
32108
9947638d
SL
321092017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
32110
32111 * sysdeps/ieee754/dbl-64/sincos32.h
32112 [SINCCOS32_H]: Remove define.
32113 [SINCOS32_H]: Define.
32114
f5f0f526
SN
321152017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
32116
32117 * math/Versions (expf): New libm symbol at GLIBC_2.27.
32118 (exp2f): Likewise.
32119 * math/w_exp2f.c: New file.
32120 * math/w_expf.c: New file.
32121 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
32122 * math/w_expf_compat.c (__expf_compat): Likewise.
32123 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
32124 * sysdeps/ia64/fpu/e_expf.S: Likewise.
32125 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
32126 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
32127 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
32128 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
32129 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
32130 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
32131 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
32132 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
32133 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
32134 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
32135 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
32136 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
32137 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
32138 Likewise.
32139 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
32140 Likewise.
32141 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
32142 Likewise.
32143 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
32144 Likewise.
32145 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
32146 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
32147 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
32148 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
32149 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
32150 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
32151 Likewise.
32152 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
32153 Likewise.
32154 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
32155 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
32156 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
32157
72aa6233
SN
321582017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
32159
32160 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
32161 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
32162 (roundtoint, converttoint): Likewise.
32163 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
32164 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
32165 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
32166 * sysdeps/ieee754/flt-32/math_config.h: New file.
32167 * sysdeps/ieee754/flt-32/math_errf.c: New file.
32168 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
32169 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
32170 * sysdeps/i386/fpu/math_errf.c: New file.
32171 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
32172 * sysdeps/ia64/fpu/math_errf.c: New file.
32173 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
32174 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
32175
5e6f3253
ST
321762017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
32177
32178 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
32179 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
32180 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
32181 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
32182 to make sure that these symbols are defined.
b38a42a0
ST
32183 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
32184 of <limits.h>
32185 (__need_NULL): Do not define.
32186 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
32187 alignment.
32188 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
32189 CMGROUP_MAX, cmsgcred): Do not define.
32190 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
32191 NULL.
32192 * bits/socket.h: Likewise.
fcafcd16
ST
32193 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
32194 __gettimeofday instead of gettimeofday.
32195 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
32196 instead of settimeofday.
5e6f3253 32197
2f49ce7d
JM
321982017-09-22 Joseph Myers <joseph@codesourcery.com>
32199
32200 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
32201 (asinhf): Define using libm_alias_float.
32202 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
32203 (atanf): Define using libm_alias_float.
32204 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
32205 (cbrtf): Define using libm_alias_float.
32206 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
32207 (ceilf): Define using libm_alias_float.
32208 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
32209 <libm-alias-float.h>.
32210 (copysignf): Define using libm_alias_float.
32211 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
32212 (cosf): Define using libm_alias_float.
32213 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
32214 (erff): Define using libm_alias_float.
32215 (erfcf): Likewise.
32216 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
32217 (expm1f): Define using libm_alias_float.
32218 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
32219 (fabsf): Define using libm_alias_float.
32220 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
32221 (floorf): Define using libm_alias_float.
32222 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
32223 (frexpf): Define using libm_alias_float.
32224 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
32225 libm_alias_float.
32226 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
32227 <libm-alias-float.h>.
32228 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
32229 libm_alias_float.
32230 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
32231 <libm-alias-float.h>.
32232 (getpayloadf): Define using libm_alias_float.
32233 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
32234 <libm-alias-float.h>.
32235 (llrintf): Define using libm_alias_float.
32236 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
32237 <libm-alias-float.h>.
32238 (llroundf): Define using libm_alias_float.
32239 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
32240 (logbf): Define using libm_alias_float.
32241 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
32242 (lrintf): Define using libm_alias_float.
32243 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
32244 (lroundf): Define using libm_alias_float.
32245 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
32246 (modff): Define using libm_alias_float.
32247 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
32248 <libm-alias-float.h>.
32249 (nearbyintf): Define using libm_alias_float.
32250 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
32251 <libm-alias-float.h>.
32252 (nextafterf): Define using libm_alias_float.
32253 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
32254 <libm-alias-float.h>.
32255 (nextupf): Define using libm_alias_float.
32256 * sysdeps/ieee754/flt-32/s_remquof.c: Include
32257 <libm-alias-float.h>.
32258 (remquof): Define using libm_alias_float.
32259 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
32260 (rintf): Define using libm_alias_float.
32261 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
32262 <libm-alias-float.h>.
32263 (roundevenf): Define using libm_alias_float.
32264 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
32265 (roundf): Define using libm_alias_float.
32266 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
32267 using libm_alias_float.
32268 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
32269 <libm-alias-float.h>.
32270 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
32271 Define using libm_alias_float.
32272 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
32273 <libm-alias-float.h>.
32274 (sincosf): Define using libm_alias_float.
32275 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
32276 (sinf): Define using libm_alias_float.
32277 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
32278 (tanf): Define using libm_alias_float.
32279 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
32280 (tanhf): Define using libm_alias_float.
32281 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
32282 <libm-alias-float.h>.
32283 (totalorderf): Define using libm_alias_float.
32284 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
32285 <libm-alias-float.h>.
32286 (totalordermagf): Define using libm_alias_float.
32287 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
32288 (truncf): Define using libm_alias_float.
32289 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
32290 libm_alias_float.
32291 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
32292 libm_alias_float.
32293
c5c4a626
GG
322942017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
32295
32296 [BZ #22146]
32297 math/math.h: Let fpclassify use the builtin in C++ mode, even
32298 when optimazing for size.
32299
23947846
JM
323002017-09-22 Joseph Myers <joseph@codesourcery.com>
32301
32302 * csu/Makefile (generated): Do not add version-info.h.
32303 (before-compile): Likewise.
32304 (all-Banner-files): Remove variable.
32305 ($(objpfx)version-info.h): Remove rule.
32306 * csu/version.c (banner): Do not include "version-info.h".
32307 * libidn/Banner: Remove.
32308 * manual/contrib.texi (Simon Josefsson): New entry.
32309
9ac3c682
GG
323102017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
32311
32312 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
32313 Remove conditionals on LDBL_MANT_DIG.
32314 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
32315 (__ieee754_lgammal_r): Likewise.
32316
d2f0ed09
GG
323172017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
32318
32319 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
32320 _Float128 and L().
32321 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
32322 _Float128 and L(). Replace _Float128 with long double and L(x)
32323 with xL, throughout the file.
32324 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
32325 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
32326 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
32327 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
32328
c5c2e667
GG
323292017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
32330
32331 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
32332 sysdeps/ieee754/ldbl-128ibm.
32333 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
32334 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
32335 of including it. Keep _Float128 and L() intact. These will be
32336 reviewed by a separate patch.
32337 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
32338 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
32339 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
32340 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
32341
e010deb2
GG
323422017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
32343
32344 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
32345 (__finitef128): Define to __redirect___finitef128.
32346 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
32347 (__isinff128): Define to __redirect___isinff128.
32348 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
32349 (__isnanf128): Define to __redirect___isnanf128.
32350
ffa44804
GG
323512017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
32352
32353 * sysdeps/powerpc/powerpc64le/Makefile
32354 (CFLAGS-tst-strtod-nan-locale.c): New variable.
32355 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
32356
e5e4d7cc
PP
323572017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
32358 Carlos O'Donell <carlos@redhat.com>
32359
32360 [BZ #22180]
32361 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
32362 * stdlib/test-dlclose-exit-race.c: New file.
32363 * stdlib/test-dlclose-exit-race-helper.c: New file.
32364 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
32365
c10c5267
JM
323662017-09-21 Joseph Myers <joseph@codesourcery.com>
32367
32368 * crypt/Banner: Remove file.
32369 * nptl/Banner: Likewise.
32370 * resolv/Banner: Likewise.
32371 * soft-fp/Banner: Likewise.
32372 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
32373 ($(objpfx)version.d): Remove dependency on banner.h.
32374 ($(objpfx)version.os): Likewise.
32375 * nptl/version.c (banner): Do not include banner.h.
32376 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
32377 Jelinek and BIND code.
32378
1cc9e59a
PP
323792017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
32380 Carlos O'Donell <carlos@redhat.com>
32381
32382 * support/xdlfcn.h: New file.
32383 * support/xdlfcn.c: New file.
32384 * support/Makefile (libsupport-routines): Add xdlfcn.
32385 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
32386
ae8372d7
JM
323872017-09-20 Joseph Myers <joseph@codesourcery.com>
32388
32389 [BZ #20142]
32390 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32391 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
32392 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
32393 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
32394 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
32395 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
32396 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
32397 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
32398
26e70aec 323992017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
b39d961c
TS
32400 Ricky Zhou <rickyz@google.com>
32401 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
26e70aec
PP
32402
32403 [BZ #14333]
32404 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
32405 Remove atomics.
32406 (__new_exitfn): Fail registration when we finished at_exit processing.
32407 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
32408 * stdlib/on_exit.c (__on_exit): Likewise.
32409 * stdlib/exit.c (__exit_funcs_done): New variable.
32410 (__run_exit_handlers): Use __exit_funcs_lock.
32411 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
32412 declarations.
32413 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
32414 (test-cxa_atexit-race, test-on_exit-race): New tests.
32415 * stdlib/test-atexit-race-common.c: New file.
32416 * stdlib/test-atexit-race.c: New file.
32417 * stdlib/test-at_quick_exit-race.c: New file.
32418 * stdlib/test-cxa_atexit-race.c: New file.
32419 * stdlib/test-on_exit-race.c: New file.
32420
0525ce48
SN
324212017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
32422
32423 * benchtests/Makefile: Add exp2f and log2f benchmarks.
32424 * benchtests/exp2f-inputs: Copy of expf-inputs.
32425 * benchtests/log2f-inputs: Copy of logf-inputs.
32426
d82468d1
JM
324272017-09-19 Joseph Myers <joseph@codesourcery.com>
32428
32429 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
32430 Explicitly take address of first element of array arguments in
32431 call to INLINE_SYSCALL.
32432
43ffc53a
AS
324332017-09-19 Andreas Schwab <schwab@suse.de>
32434
32435 [BZ #22134]
32436 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
32437 execveat first.
32438 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
32439 unimplemented.
32440 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
32441 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
32442 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
32443 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
32444 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
32445 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
32446 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
32447 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
32448 * posix/Makefile (tests): Add tst-fexecve.
32449 * posix/tst-fexecve.c: New file.
32450
a5dcc87e
WD
324512017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
32452
32453 * benchtests/Makefile: Add logf benchmark.
32454 * benchtests/logf-inputs: Add reduced trace from wrf_r.
32455
7024d544
WD
324562017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
32457
32458 * benchtests/Makefile: Add expf benchmark.
32459 * benchtests/expf-inputs: Add reduced trace from wrf_r.
32460
ca3a382e
WD
324612017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
32462
32463 * csu/Makefile: Add -funwind-tables to libc-start.c.
32464 * debug/Makefile: Add -funwind-tables to backtrace.c.
32465 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
32466 * sysdeps/arm/Makefile: Likewise.
32467 * sysdeps/i386/Makefile: Likewise.
32468 * sysdeps/m68k/Makefile: Likewise.
32469 * sysdeps/mips/Makefile: Likewise.
32470 * sysdeps/nios2/Makefile: Likewise.
32471 * sysdeps/sh/Makefile: Likewise.
32472 * sysdeps/sparc/Makefile: Likewise.
32473
eb375def
JM
324742017-09-19 Joseph Myers <joseph@codesourcery.com>
32475
32476 * benchtests/Makefile (bench-math): Add trunc and truncf.
32477 (CFLAGS-bench-trunc.c): New variable.
32478 (CFLAGS-bench-truncf.c): Likewise.
32479 * benchtests/trunc-inputs: New file.
32480 * benchtests/truncf-inputs: Likewise.
32481
bd17ba29
RS
324822017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
32483
32484 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
32485
92892fdb
JM
324862017-09-18 Joseph Myers <joseph@codesourcery.com>
32487
6d9b0b5a
JM
32488 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
32489 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
32490 redefine.
32491 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
32492 (exp10l): Define as weak alias.
32493 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
32494 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
32495 and redefine.
32496 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
32497 (remainderl): Define as weak alias.
32498
92892fdb
JM
32499 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
32500 (fmal): Define using libm_alias_ldouble.
32501 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
32502 (acoshl): Define using libm_alias_ldouble.
32503 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
32504 (acosl): Define using libm_alias_ldouble.
32505 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
32506 (asinl): Define using libm_alias_ldouble.
32507 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
32508 (atan2l): Define using libm_alias_ldouble.
32509 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
32510 (atanhl): Define using libm_alias_ldouble.
32511 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
32512 (coshl): Define using libm_alias_ldouble.
32513 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
32514 (exp10l): Define using libm_alias_ldouble.
32515 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
32516 (exp2l): Define using libm_alias_ldouble.
32517 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
32518 (expl): Define using libm_alias_ldouble.
32519 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
32520 (fmodl): Define using libm_alias_ldouble.
32521 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
32522 (hypotl): Define using libm_alias_ldouble.
32523 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
32524 (j0l): Define using libm_alias_ldouble.
32525 (y0l): Likewise.
32526 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
32527 (j1l): Define using libm_alias_ldouble.
32528 (y1l): Likewise.
32529 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
32530 (jnl): Define using libm_alias_ldouble.
32531 (ynl): Likewise.
32532 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
32533 (log10l): Define using libm_alias_ldouble.
32534 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
32535 (log2l): Define using libm_alias_ldouble.
32536 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
32537 (logl): Define using libm_alias_ldouble.
32538 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
32539 (powl): Define using libm_alias_ldouble.
32540 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
32541 (remainderl): Define using libm_alias_ldouble.
32542 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
32543 (sinhl): Define using libm_alias_ldouble.
32544 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
32545 (sqrtl): Define using libm_alias_ldouble.
32546 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
32547 (tgammal): Define using libm_alias_ldouble.
32548 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
32549 (exp10l): Do not use long_double_symbol here.
32550 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
32551 [LIBM_SVID_COMPAT] (remainderl): Likewise.
32552 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
32553 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
32554 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
32555 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
32556 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
32557 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
32558 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
32559 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
32560 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
32561 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
32562 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
32563 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
32564 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
32565 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
32566 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
32567 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
32568 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
32569 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
32570 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
32571 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
32572
6cd380dd
WB
325732017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
32574
32575 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
32576 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
32577
1c6d89e9
ST
325782017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
32579
32580 * io/read.c (read): Add libc_hidden_weak.
32581 * sysdeps/mach/hurd/read.c (read): Likewise.
32582 * io/write.c (write): Likewise.
32583 * sysdeps/mach/hurd/write.c (write): Likewise.
32584 * io/pread64.c (__pread64): Likewise.
32585 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
32586 * posix/pread64.c (__pread64): Add libc_hidden_def.
32587
06b1de23
SP
325882017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
32589
140647ea
SP
32590 * benchtests/scripts/compare_strings.py: New option -g.
32591 (draw_graph): Print a message that a graph is being generated.
32592 (process_results): Generate graph only if -g is passed.
32593 (main): Process option -g.
32594
5a6547b7
SP
32595 * benchtests/scripts/compare_strings.py (process_results):
32596 Better spacing for output.
32597
06b1de23
SP
32598 * benchtests/scripts/compare_strings.py: Use argparse.
32599 * benchtests/README: Document existence of compare_strings.py.
32600
c67a2328
JM
326012017-09-15 Joseph Myers <joseph@codesourcery.com>
32602
9ac44708
JM
32603 * math/s_fma.c: Include <libm-alias-double.h>.
32604 (fma): Define using libm_alias_double.
32605 * math/s_nextafter.c: Include <libm-alias-double.h>.
32606 (nextafter): Define using libm_alias_double.
32607 * math/w_acos_compat.c: Include <libm-alias-double.h>.
32608 (acos): Define using libm_alias_double.
32609 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
32610 (aocsh): Define using libm_alias_double.
32611 * math/w_asin_compat.c: Include <libm-alias-double.h>.
32612 (asin): Define using libm_alias_double.
32613 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
32614 (atan2): Define using libm_alias_double.
32615 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
32616 (atanh): Define using libm_alias_double.
32617 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
32618 (cosh): Define using libm_alias_double.
32619 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
32620 (exp10): Define using libm_alias_double.
32621 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
32622 (exp2): Define using libm_alias_double.
32623 * math/w_exp_compat.c: Include <libm-alias-double.h>.
32624 (exp): Define using libm_alias_double.
32625 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
32626 (fmod): Define using libm_alias_double.
32627 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
32628 (hypot): Define using libm_alias_double.
32629 * math/w_j0_compat.c: Include <libm-alias-double.h>.
32630 (j0): Define using libm_alias_double.
32631 (y0): Likewise.
32632 * math/w_j1_compat.c: Include <libm-alias-double.h>.
32633 (j1): Define using libm_alias_double.
32634 (y1): Likewise.
32635 * math/w_jn_compat.c: Include <libm-alias-double.h>.
32636 (jn): Define using libm_alias_double.
32637 (yn): Likewise.
32638 * math/w_log10_compat.c: Include <libm-alias-double.h>.
32639 (log10): Define using libm_alias_double.
32640 * math/w_log2_compat.c: Include <libm-alias-double.h>.
32641 (log2): Define using libm_alias_double.
32642 * math/w_log_compat.c: Include <libm-alias-double.h>.
32643 (log): Define using libm_alias_double.
32644 * math/w_pow_compat.c: Include <libm-alias-double.h>.
32645 (pow): Define using libm_alias_double.
32646 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
32647 (remainder): Define using libm_alias_double.
32648 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
32649 (sinh): Define using libm_alias_double.
32650 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
32651 (sqrt): Define using libm_alias_double.
32652 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
32653 (tgamma): Define using libm_alias_double.
32654 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
32655 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
32656 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
32657 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
32658 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
32659 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
32660 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
32661 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
32662 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
32663 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
32664 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
32665 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
32666 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
32667 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
32668 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
32669 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
32670 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
32671 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
32672 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
32673 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
32674 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
32675 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
32676 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
32677 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
32678 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
32679
c67a2328
JM
32680 * math/e_acoshl.c: Remove.
32681 * math/e_acosl.c: Likewise.
32682 * math/e_asinl.c: Likewise.
32683 * math/e_atan2l.c: Likewise.
32684 * math/e_atanhl.c: Likewise.
32685 * math/e_coshl.c: Likewise.
32686 * math/e_expl.c: Likewise.
32687 * math/e_fmodl.c: Likewise.
32688 * math/e_gammal_r.c: Likewise.
32689 * math/e_hypotl.c: Likewise.
32690 * math/e_j0l.c: Likewise.
32691 * math/e_j1l.c: Likewise.
32692 * math/e_jnl.c: Likewise.
32693 * math/e_lgammal_r.c: Likewise.
32694 * math/e_log10l.c: Likewise.
32695 * math/e_log2l.c: Likewise.
32696 * math/e_logl.c: Likewise.
32697 * math/e_powl.c: Likewise.
32698 * math/e_rem_pio2l.c: Likewise.
32699 * math/e_sinhl.c: Likewise.
32700 * math/e_sqrtf128.c: Likewise.
32701 * math/e_sqrtl.c: Likewise.
32702 * math/k_cosl.c: Likewise.
32703 * math/k_sinl.c: Likewise.
32704 * math/k_tanl.c: Likewise.
32705 * math/s_asinhl.c: Likewise.
32706 * math/s_atanl.c: Likewise.
32707 * math/s_cbrtl.c: Likewise.
32708 * math/s_erfl.c: Likewise.
32709 * math/s_expm1l.c: Likewise.
32710 * math/s_log1pl.c: Likewise.
32711 * math/s_tanhl.c: Likewise.
32712
61c45f25
TMQMF
327132017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
32714
32715 [BZ #21745]
32716 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
32717 [$(subdir) = math] (sysdep_calls): New variable. Has the
32718 previous contents of sysdep_routines, but re-sorted..
32719 [$(subdir) = math] (sysdep_routines): Re-use the contents from
32720 sysdep_calls.
32721 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
32722 defined in sysdep_calls and replace by the respective m_* names.
32723 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
32724 (compat_symbol): Undefine to avoid duplicated compat symbols in
32725 libc.
32726
5bcdb315
JM
327272017-09-15 Joseph Myers <joseph@codesourcery.com>
32728
32729 * math/s_fmaf.c: Include <libm-alias-float.h>.
32730 (fmaf): Define using libm_alias_float.
32731 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
32732 (acosf): Define using libm_alias_float.
32733 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
32734 (acoshf): Define using libm_alias_float.
32735 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
32736 (asinf): Define using libm_alias_float.
32737 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
32738 (atan2f): Define using libm_alias_float.
32739 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
32740 (atanhf): Define using libm_alias_float.
32741 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
32742 (coshf): Define using libm_alias_float.
32743 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
32744 (exp10f): Define using libm_alias_float.
32745 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
32746 (fmodf): Define using libm_alias_float.
32747 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
32748 (hypotf): Define using libm_alias_float.
32749 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
32750 (j0f): Define using libm_alias_float.
32751 (y0f): Likewise.
32752 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
32753 (j1f): Define using libm_alias_float.
32754 (y1f): Likewise.
32755 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
32756 (jnf): Define using libm_alias_float.
32757 (ynf): Likewise.
32758 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
32759 (log10f): Define using libm_alias_float.
32760 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
32761 (log2f): Define using libm_alias_float.
32762 * math/w_logf_compat.c: Include <libm-alias-float.h>.
32763 (logf): Define using libm_alias_float.
32764 * math/w_powf_compat.c: Include <libm-alias-float.h>.
32765 (powf): Define using libm_alias_float.
32766 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
32767 (remainderf): Define using libm_alias_float.
32768 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
32769 (sinhf): Define using libm_alias_float.
32770 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
32771 (sqrtf): Define using libm_alias_float.
32772 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
32773 (tgammaf): Define using libm_alias_float.
32774
01f28812
JM
327752017-09-14 Joseph Myers <joseph@codesourcery.com>
32776
32777 * include/math.h (roundeven): Change hidden_proto call to
32778 __roundeven.
32779 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
32780 alias.
32781 [NO_LONG_DOUBLE] (__j0l): New strong alias.
32782 (y0): Rename to __y0 and define as weak alias.
32783 [NO_LONG_DOUBLE] (__y0l): New strong alias.
32784 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
32785 alias.
32786 (y0f): Rename to __y0f and define as weak alias.
32787 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
32788 alias.
32789 [NO_LONG_DOUBLE] (__j1l): New strong alias.
32790 (y1): Rename to __y1 and define as weak alias.
32791 [NO_LONG_DOUBLE] (__y1l): New strong alias.
32792 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
32793 alias.
32794 (y1f): Rename to __y1f and define as weak alias.
32795 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
32796 alias.
32797 [NO_LONG_DOUBLE] (__jnl): New strong alias.
32798 (yn): Rename to __yn and define as weak alias.
32799 [NO_LONG_DOUBLE] (__ynl): New strong alias.
32800 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
32801 alias.
32802 (ynf): Rename to __ynf and define as weak alias.
32803 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
32804 (fromfp): Define as weak alias.
32805 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
32806 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
32807 (fromfpx): Define as weak alias.
32808 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
32809 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
32810 __getpayload and define as weak alias.
32811 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
32812 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
32813 __roundeven and define as weak alias.
32814 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
32815 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
32816 __setpayload.
32817 (setpayload): Define as weak alias.
32818 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
32819 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
32820 __setpayloadsig.
32821 (setpayloadsig): Define as weak alias.
32822 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
32823 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
32824 __totalorder and define as weak alias.
32825 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
32826 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
32827 to __totalordermag and define as weak alias.
32828 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
32829 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
32830 (ufromfp): Define as weak alias.
32831 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
32832 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
32833 __ufromfpx.
32834 (ufromfpx): Define as weak alias.
32835 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
32836 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
32837 Rename to __getpayload and define as weak alias.
32838 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
32839 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
32840 Rename to __roundeven and define as weak alias.
32841 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
32842 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
32843 Rename to __totalorder and define as weak alias.
32844 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
32845 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
32846 (totalordermag): Rename to __totalordermag and define as weak
32847 alias.
32848 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
32849 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
32850 macro.
32851 (__roundevenl): Likewise.
32852 (__totalorderl): Likewise.
32853 (__totalordermagl): Likewise
32854 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
32855 __fromfpf128.
32856 (fromfpf128): Define as weak alias.
32857 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
32858 __fromfpxf128.
32859 (fromfpxf128): Define as weak alias.
32860 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
32861 __setpayloadf128.
32862 (setpayloadf128): Define as weak alias.
32863 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
32864 __setpayloadsigf128.
32865 (setpayloadsigf128): Define as weak alias.
32866 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
32867 __ufromfpf128.
32868 (ufromfpf128): Define as weak alias.
32869 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
32870 __ufromfpxf128.
32871 (ufromfpxf128): Define as weak alias.
32872 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
32873 (fromfpf): Define as weak alias.
32874 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
32875 __fromfpxf.
32876 (fromfpxf): Define as weak alias.
32877 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
32878 __getpayloadf and define as weak alias.
32879 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
32880 __roundevenf and define as weak alias.
32881 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
32882 __setpayloadf.
32883 (setpayloadf): Define as weak alias.
32884 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
32885 __setpayloadsigf.
32886 (setpayloadsigf): Define as weak alias.
32887 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
32888 __totalorderf and define as weak alias.
32889 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
32890 Rename to __totalordermagf and define as weak alias.
32891 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
32892 __ufromfpf.
32893 (ufromfpf): Define as weak alias.
32894 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
32895 __ufromfpxf.
32896 (ufromfpxf): Define as weak alias.
32897 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
32898 __fromfpl.
32899 (fromfpl): Define as weak alias.
32900 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
32901 __fromfpxl.
32902 (fromfpxl): Define as weak alias.
32903 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
32904 to __getpayloadl and define as weak alias.
32905 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
32906 __roundevenl and define as weak alias.
32907 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
32908 __setpayloadl.
32909 (setpayloadl): Define as weak alias.
32910 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
32911 __setpayloadsigl.
32912 (setpayloadsigl): Define as weak alias.
32913 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
32914 to __totalorderl and define as weak alias.
32915 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
32916 Rename to __totalordermagl and define as weak alias.
32917 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
32918 __ufromfpl.
32919 (ufromfpl): Define as weak alias.
32920 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
32921 __ufromfpxl.
32922 (ufromfpxl): Define as weak alias.
32923 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
32924 __fromfpl.
32925 (fromfpl): Define as weak alias.
32926 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
32927 __fromfpxl.
32928 (fromfpxl): Define as weak alias.
32929 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
32930 Rename to __getpayloadl and define as weak alias.
32931 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
32932 to __roundevenl and define as weak alias. Call __roundeven
32933 instead of roundeven.
32934 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
32935 __setpayloadl.
32936 (setpayloadl): Define as weak alias.
32937 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
32938 __setpayloadsigl.
32939 (setpayloadsigl): Define as weak alias.
32940 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
32941 Rename to __totalorderl and define as weak alias.
32942 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
32943 Rename to __totalordermagl and define as weak alias.
32944 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
32945 __ufromfpl.
32946 (ufromfpl): Define as weak alias.
32947 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
32948 __ufromfpxl.
32949 (ufromfpxl): Define as weak alias.
32950 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
32951 __fromfpl.
32952 (fromfpl): Define as weak alias.
32953 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
32954 __fromfpxl.
32955 (fromfpxl): Define as weak alias.
32956 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
32957 __getpayloadl and define as weak alias.
32958 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
32959 __roundevenl and define as weak alias.
32960 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
32961 __setpayloadl.
32962 (setpayloadl): Define as weak alias.
32963 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
32964 __setpayloadsigl.
32965 (setpayloadsigl): Define as weak alias.
32966 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
32967 __totalorderl and define as weak alias.
32968 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
32969 Rename to __totalordermagl and define as weak alias.
32970 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
32971 __ufromfpl.
32972 (ufromfpl): Define as weak alias.
32973 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
32974 __ufromfpxl.
32975 (ufromfpxl): Define as weak alias.
32976
29c933fb
SP
329772017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
32978
503c92c3
SP
32979 * benchtests/bench-string.h (realloc_bufs): New function.
32980 (test_init): Call it.
32981 * benchtests/bench-memset-large.c (do_test): Likewise.
32982 * benchtests/bench-memset.c (do_test): Likewise.
32983
29c933fb
SP
32984 * benchtests/bench-memset-large.c: Print output in JSON
32985 format.
32986 * benchtests/bench-memset.c: Likewise.
32987
799c8d69
MF
329882017-09-14 Mike FABIAN <mfabian@redhat.com>
32989
32990 [BZ #21084]
32991 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
32992 * iconvdata/Makefile: Add IBM858.
32993 * iconvdata/gconv-modules: Likewise.
32994 * iconvdata/tst-tables.sh: Likewise.
32995 * iconvdata/ibm858.c: New file.
32996 * localedata/charmaps/IBM858: Likewise.
32997
c207f7ce 329982017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
fcc82c06
AK
32999
33000 [BZ #22023]
33001 * locales/niu_NZ (LC_TIME): copy "niu_NU".
33002 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
33003
f28a0926
AK
330042017-09-14 Mike FABIAN <mfabian@redhat.com>
33005
33006 [BZ #22112]
33007 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
33008 and add tel_int_fmt.
33009
02093e62
JM
330102017-09-14 Joseph Myers <joseph@codesourcery.com>
33011
33012 * sysdeps/generic/libm-alias-float128.h: New file.
33013 * sysdeps/generic/math-type-macros-float128.h: Include
33014 <libm-alias-float128.h>.
33015 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
33016
1aae75ef
JM
330172017-09-13 Joseph Myers <joseph@codesourcery.com>
33018
33019 * sysdeps/generic/libm-alias-ldouble.h: New file.
33020 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
33021 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
33022 * sysdeps/generic/math-type-macros-ldouble.h: Include
33023 <libm-alias-ldouble.h>.
33024 [!declare_mgen_alias] (declare_mgen_alias): Define to use
33025 libm_alias_ldouble.
33026
bcea7ad6
SN
330272017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
33028
33029 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
33030 * math/w_exp_compat.c: ... here.
33031 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
33032 * math/w_expf_compat.c: ... here.
33033 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
33034 * math/w_expl_compat.c: ... here.
33035 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
33036 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
33037 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
33038 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
33039
0fc56478
JM
330402017-09-13 Joseph Myers <joseph@codesourcery.com>
33041
33042 * math/w_scalbln_template.c (strong_alias): Do not undefine and
33043 redefine.
33044 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
33045 macro.
33046 (ldexpl): Only define as compat symbol for libc, not libm.
33047 (scalbnl): Define as compat symbol for libc here.
33048 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
33049 define for [IS_IN (libc)].
33050 (__ldexpl_2): Remove alias.
33051 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
33052 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
33053 name in long_double_symbol call.
33054 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
33055 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
33056 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
33057 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
33058 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
33059 Remove macro.
33060 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
33061 Define as compat symbol.
33062
3ca622e4
AZ
330632017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33064
33065 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
33066 * sysdeps/unix/sysv/linux/alpha/Makefile
33067 [$(subdir) = csu] (sysdep_routines): Remove rule.
33068
620ff9ee
JM
330692017-09-13 Joseph Myers <joseph@codesourcery.com>
33070
33071 * sysdeps/generic/libm-alias-double.h: New file.
33072 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
33073 * sysdeps/generic/math-type-macros-double.h: Include
33074 <libm-alias-double.h>.
33075 [declare_mgen_alias] (declare_mgen_alias): Define to use
33076 libm_alias_double.
33077 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
33078 (M_LIBM_NEED_COMPAT): Remove macro.
33079 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
33080 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
33081 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
33082 code.
33083 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33084 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33085 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33086 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33087 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33088 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33089 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33090 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33091 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33092 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33093 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33094 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33095 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33096 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33097 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33098 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33099 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33100 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33101 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33102 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33103 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33104 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33105 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33106 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33107 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33108 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33109 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33110 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
33111 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
33112 macro.
33113 (declare_mgen_alias): New macro.
33114 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
33115 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
33116 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
33117 (M_LIBM_NEED_COMPAT): Remove macro.
33118 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
33119 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
33120 <first-versions.h>.
33121 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
33122 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
33123
a891caff
JM
331242017-09-12 Joseph Myers <joseph@codesourcery.com>
33125
33126 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
33127 (declare_mgen_alias_2): Remove.
33128 * sysdeps/generic/math-type-macros-double.h
33129 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
33130 Likewise.
33131 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
33132 alias.
33133 (ldexp): Define with declare_mgen_alias.
33134 (scalbn): Likewise.
33135
a1a78204
SE
331362017-09-12 Steve Ellcey <sellcey@cavium.com>
33137
33138 * grp/initgroups.c: Include config.h.
33139 (DEFAULT_CONFIG): New macro.
33140 (internal_getgrouplist): Use DEFAULT_CONFIG.
33141 * nscd/initgrcache.c (addinitgroupsX): Likewise.
33142 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
33143 (DEFAULT_DEFCONFIG): New macro.
33144 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
33145 * nss/grp-lookup.c: Include config.h
33146 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
33147 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
33148 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
33149 * manual/nss.texi: Update default values section.
33150
ef8adeb0
L
331512017-09-12 H.J. Lu <hongjiu.lu@intel.com>
33152
33153 [BZ #21967]
33154 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
33155 New.
33156 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
33157 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
33158 Handle MathVec_Prefer_No_AVX512.
33159 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
33160 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
33161 is set.
33162
a166531f
ST
331632017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
33164
33165 * posix/sched_primax.c (__sched_get_priority_max): Add
33166 libc_hidden_def.
33167 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
33168 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
33169 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
33170 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
33171 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
33172 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
33173 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
33174 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
33175 Add aliases.
33176
4b7d1efb
JM
331772017-09-11 Joseph Myers <joseph@codesourcery.com>
33178
33179 * sysdeps/generic/libm-alias-float.h: New file.
33180 * sysdeps/generic/math-type-macros-float.h: Include
33181 <libm-alias-float.h>.
33182 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
33183
45ff3463
L
331842017-09-11 H.J. Lu <hongjiu.lu@intel.com>
33185
33186 [BZ #22093]
33187 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
33188 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
33189 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
33190 (HWCAP_IMPORTANT): Likewise.
33191 (HWCAP_X86_64): New enum.
33192 (HWCAP_X86_AVX512_1): Updated.
33193 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
33194 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
33195 (modules-names): Add x86_64/tst-x86_64mod-1.
33196 (LDFLAGS-tst-x86_64mod-1.so): New.
33197 ($(objpfx)tst-x86_64-1): Likewise.
33198 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
33199 (tst-x86_64-1-clean): Likewise.
33200 * sysdeps/x86_64/tst-x86_64-1.c: New file.
33201 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
33202
891abfd3
SP
332032017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
33204
33205 * po/sv.po: Update translations.
33206 * po/fr.po: Likewise.
33207
00c3da43
ST
332082017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
33209
33210 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
33211 seconds.
3bdfd9fb
ST
33212 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
33213 seconds.
65b22ebc 33214 * elf/rtld-Rules: Fix $(error) use.
00c3da43 33215
96480903
MF
332162017-09-09 Mike FABIAN <mfabian@redhat.com>
33217
33218 [BZ #14925]
33219 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
33220 * locale/iso-639.def: Change “Bengali” to “Bangla”.
33221 * localedata/locales/bn_BD: “Bengali” was still used in some
33222 comments. Change it to “Bangla”.
33223
4c03a696
MT
332242017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
33225
33226 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
33227
9c9ec581
SE
332282017-09-08 Steve Ellcey <sellcey@cavium.com>
33229
33230 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
33231 thunderx2t99p1 to list of cpu names.
33232 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
33233 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
33234
f00bce74
SE
332352017-09-08 Steve Ellcey <sellcey@cavium.com>
33236
33237 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
33238 Use strcmp instead of tunable_is_name.
33239
27342d17
JM
332402017-09-08 Joseph Myers <joseph@codesourcery.com>
33241
af1b7c8c
JM
33242 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
33243 (F_GET_RW_HINT): New macro.
33244 [__USE_GNU] (F_SET_RW_HINT): Likewise.
33245 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
33246 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
33247 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
33248 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
33249 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
33250 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
33251 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
33252 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
33253
27342d17
JM
33254 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
33255 (F_ADD_SEALS): New macro.
33256 [__USE_GNU] (F_GET_SEALS): Likewise.
33257 [__USE_GNU] (F_SEAL_SEAL): Likewise.
33258 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
33259 [__USE_GNU] (F_SEAL_GROW): Likewise.
33260 [__USE_GNU] (F_SEAL_WRITE): Likewise.
33261
c66c9082
AZ
332622017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33263
07b4f49d
AZ
33264 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
33265 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
33266 * posix/glob_internal.h (__glob_pattern_type):
33267 * posix/glob.c (glob):
33268 * posix/glob_pattern_p.c (__glob_pattern_p):
33269 Use them.
33270
116f1c64
AZ
33271 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
33272 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
33273 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
33274 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
33275 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
33276 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
33277 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
33278 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
33279 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
33280 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
33281 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
33282 * sysdeps/wordsize-64/glob.c: Likewise.
33283 * sysdeps/wordsize-64/glob64.c: Likewise.
33284 * sysdeps/wordsize-64/globfree.c: Likewise.
33285 * sysdeps/wordsize-64/globfree64.c: Likewise.
33286 * sysdeps/unix/sysv/linux/glob.c: New file.
33287 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
33288 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
33289 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
33290 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
33291 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
33292 adds !GLOB_NO_OLD_VERSION as an extra condition.
33293 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
33294 using relative path instead of absolute one.
33295 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
33296 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
33297 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
33298 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
33299 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
33300 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
33301
ffca8901
AZ
33302 [BZ #1062]
33303 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
33304 (glob): Use the same scratch buffer for both getlogin_r and
33305 getpwnam_r. Don’t require preallocation of the login name. This
33306 simplifies storage allocation, and corrects the handling of
33307 long login names.
33308
5a79f975
AZ
33309 [BZ #1062]
33310 * posix/glob.c (glob): Port recent patches to platforms
33311 lacking getpwnam_r.
33312 (glob): Fix longstanding misuse of errno after getpwnam_r, which
33313 returns an error number rather than setting errno.
33314
e00f2425
AZ
33315 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
33316 instead of GCC extension.
33317 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
33318 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
33319 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
33320
5554304f
AZ
33321 [BZ #866]
33322 [BZ #1062]
33323 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
33324 * posix/bug-glob1.c: Remove file.
33325 * posix/tst-glob_symlinks.c: New file.
33326 * posix/glob.c (__lstat64): New macro.
33327 (is_dir): New function.
33328 (glob, glob_in_dir): Match symlinks even if they are dangling.
33329 (link_stat, link_exists_p): Remove. All uses removed.
33330
686f2ea1
AZ
33331 [BZ #1062]
33332 [BZ #19971]
33333 * posix/glob.c (struct readdir_result): Remove skip_entry member.
33334 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
33335 All uses removed.
33336
c66c9082 33337 [BZ #1062]
914c9994 33338 CVE-2017-15671
c66c9082
AZ
33339 * posix/Makefile (routines): Add globfree, globfree64, and
33340 glob_pattern_p.
33341 * posix/flexmember.h: New file.
33342 * posix/glob_internal.h: Likewise.
33343 * posix/glob_pattern_p.c: Likewise.
33344 * posix/globfree.c: Likewise.
33345 * posix/globfree64.c: Likewise.
33346 * sysdeps/gnu/globfree64.c: Likewise.
33347 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
33348 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
33349 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
33350 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
33351 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
33352 * sysdeps/wordsize-64/globfree.c: Likewise.
33353 * sysdeps/wordsize-64/globfree64.c: Likewise.
33354 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
33355 [NDEBUG): Remove comments.
33356 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
33357 (dirent_type): New type. Use uint_fast8_t not
33358 uint8_t, as C99 does not require uint8_t.
33359 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
33360 (struct readdir_result): Use dirent_type. Do not define skip_entry
33361 unless it is needed; this saves a byte on platforms lacking d_ino.
33362 (readdir_result_type, readdir_result_skip_entry):
33363 New functions, replacing ...
33364 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
6b5c8607 33365 these functions, which were removed. This makes the callers
c66c9082
AZ
33366 easier to read. All callers changed.
33367 (D_INO_TO_RESULT): Now empty if there is no d_ino.
33368 (size_add_wrapv, glob_use_alloca): New static functions.
33369 (glob, glob_in_dir): Check for size_t overflow in several places,
33370 and fix some size_t checks that were not quite right.
33371 Remove old code using SHELL since Bash no longer
33372 uses this.
33373 (glob, prefix_array): Separate MS code better.
33374 (glob_in_dir): Remove old Amiga and VMS code.
33375 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
33376 separate files.
33377 (glob_in_dir): Do not rely on undefined behavior in accessing
33378 struct members beyond their bounds. Use a flexible array member
33379 instead
33380 (link_stat): Rename from link_exists2_p and return -1/0 instead of
33381 0/1. Caller changed.
33382 (glob): Fix memory leaks.
33383 * posix/glob64 (globfree64): Move to separate file.
33384 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
33385 (globfree64): Remove hidden alias.
33386 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
33387 oldglob.
33388 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
33389 separate file.
33390 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
33391 define.
33392 Move compat code to separate file.
33393 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
33394 separate file.
33395
78bfa877
L
333962017-09-07 H.J. Lu <hongjiu.lu@intel.com>
33397
33398 * resolv/tst-resolv-qtypes.c (domain): Changed to
33399 "const char domain[] =".
33400
05f0011f
JM
334012017-09-07 Joseph Myers <joseph@codesourcery.com>
33402
85bec0f2
JM
33403 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
33404 version to 3.1.6.
33405
5c23ee6e
JM
33406 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
33407 (TCP_MD5SIG_EXT): Likewise.
33408 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
33409 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
33410 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
33411
05f0011f
JM
33412 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
33413
7c9c5be9
MF
334142017-09-07 Mike FABIAN <mfabian@redhat.com>
33415
33416 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
33417
c207f7ce 334182017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
ae214523
AK
33419
33420 [BZ #22100]
33421 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
33422
507fe027
ST
334232017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
33424
33425 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
33426 before assuming that the file is empty. Avoid testing buffer content
33427 when nread == 0.
33428
65687ac7
AZ
334292017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33430
7bbbb4b9 33431 [BZ #18858]
65687ac7
AZ
33432 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
33433 Remove define.
33434 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
33435 Likewise.
33436 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
33437 Likewise.
33438 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
33439 Likewise.
33440 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
33441 Likewise.
33442 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
33443 Likewise.
33444 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
33445 Likewise.
33446
ab5ac271
FW
334472017-09-06 Florian Weimer <fweimer@redhat.com>
33448
33449 * malloc/dynarray_emplace_enlarge.c
33450 (__libc_dynarray_emplace_enlarge): Add missing else.
33451
a8304730
FW
334522017-09-06 Florian Weimer <fweimer@redhat.com>
33453
33454 [BZ #22096]
33455 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
33456 case of failure to obtain the global conf object.
33457
5670c4ab
FW
334582017-09-06 Florian Weimer <fweimer@redhat.com>
33459
33460 [BZ #22095]
33461 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
33462 dynarray allocation failure.
33463
c77eb969
FW
334642017-09-06 Florian Weimer <fweimer@redhat.com>
33465
33466 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
33467 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
33468 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
33469 New functions.
33470 (response): Call them. Add 'p', '6' flag processing.
33471 (test_reverse): New function.
33472 (test_get2_any): Call it.
33473 (test_no_inet6): Add 'p' test.
33474 (test_inet6): Likewise.
33475
5e9c4d17
FW
334762017-09-06 Florian Weimer <fweimer@redhat.com>
33477
33478 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
33479 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
33480 the QNAME.
33481 (test_gai): Adjust query names. Add additional tests.
33482 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
33483 test_get2. Adjust query names. Add additional tests.
33484 (test_no_inet6): New function, extracted from threadfunc.
33485 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
33486 Add additional tests.
33487
2ae5be04
MF
334882017-09-06 Mike FABIAN <mfabian@redhat.com>
33489
33490 [BZ #22070]
33491 * localedata/unicode-gen/utf8_gen.py: Set the width for
33492 characters with Prepended_Concatenation_Mark property to 1
33493 * localedata/charmaps/UTF-8: Updated using the improved script.
33494
af83ed5c
MF
334952017-09-06 Mike FABIAN <mfabian@redhat.com>
33496
33497 [BZ #21750]
33498 * localedata/unicode-gen/utf8_gen.py: Improve the script to
33499 use the range notation for all ranges of neighbouring characters
33500 with the same width.
33501
4f3647e4
JM
335022017-09-05 Joseph Myers <joseph@codesourcery.com>
33503
33504 * sysdeps/generic/math-type-macros-double.h: Include
33505 <math-svid-compat.h>.
33506 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
33507 * sysdeps/generic/math-type-macros-float.h: Include
33508 <math-svid-compat.h>.
33509 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
33510 * sysdeps/generic/math-type-macros-ldouble.h: Include
33511 <math-svid-compat.h>.
33512 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
33513 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
33514 condition.
33515 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
33516 * math/w_acosf_compat.c: Likewise.
33517 * math/w_acosh_compat.c: Likewise.
33518 * math/w_acoshf_compat.c: Likewise.
33519 * math/w_acoshl_compat.c: Likewise.
33520 * math/w_acosl_compat.c: Likewise.
33521 * math/w_asin_compat.c: Likewise.
33522 * math/w_asinf_compat.c: Likewise.
33523 * math/w_asinl_compat.c: Likewise.
33524 * math/w_atan2_compat.c: Likewise.
33525 * math/w_atan2f_compat.c: Likewise.
33526 * math/w_atan2l_compat.c: Likewise.
33527 * math/w_atanh_compat.c: Likewise.
33528 * math/w_atanhf_compat.c: Likewise.
33529 * math/w_atanhl_compat.c: Likewise.
33530 * math/w_cosh_compat.c: Likewise.
33531 * math/w_coshf_compat.c: Likewise.
33532 * math/w_coshl_compat.c: Likewise.
33533 * math/w_exp10_compat.c: Likewise.
33534 * math/w_exp10f_compat.c: Likewise.
33535 * math/w_exp10l_compat.c: Likewise.
33536 * math/w_exp2_compat.c: Likewise.
33537 * math/w_exp2f_compat.c: Likewise.
33538 * math/w_exp2l_compat.c: Likewise.
33539 * math/w_fmod_compat.c: Likewise.
33540 * math/w_fmodf_compat.c: Likewise.
33541 * math/w_fmodl_compat.c: Likewise.
33542 * math/w_hypot_compat.c: Likewise.
33543 * math/w_hypotf_compat.c: Likewise.
33544 * math/w_hypotl_compat.c: Likewise.
33545 * math/w_j0_compat.c: Likewise.
33546 * math/w_j0f_compat.c: Likewise.
33547 * math/w_j0l_compat.c: Likewise.
33548 * math/w_j1_compat.c: Likewise.
33549 * math/w_j1f_compat.c: Likewise.
33550 * math/w_j1l_compat.c: Likewise.
33551 * math/w_jn_compat.c: Likewise.
33552 * math/w_jnf_compat.c: Likewise.
33553 * math/w_jnl_compat.c: Likewise.
33554 * math/w_lgamma_r_compat.c: Likewise.
33555 * math/w_lgammaf_r_compat.c: Likewise.
33556 * math/w_lgammal_r_compat.c: Likewise.
33557 * math/w_log10_compat.c: Likewise.
33558 * math/w_log10f_compat.c: Likewise.
33559 * math/w_log10l_compat.c: Likewise.
33560 * math/w_log2_compat.c: Likewise.
33561 * math/w_log2f_compat.c: Likewise.
33562 * math/w_log2l_compat.c: Likewise.
33563 * math/w_log_compat.c: Likewise.
33564 * math/w_logf_compat.c: Likewise.
33565 * math/w_logl_compat.c: Likewise.
33566 * math/w_pow_compat.c: Likewise.
33567 * math/w_powf_compat.c: Likewise.
33568 * math/w_powl_compat.c: Likewise.
33569 * math/w_remainder_compat.c: Likewise.
33570 * math/w_remainderf_compat.c: Likewise.
33571 * math/w_remainderl_compat.c: Likewise.
33572 * math/w_sinh_compat.c: Likewise.
33573 * math/w_sinhf_compat.c: Likewise.
33574 * math/w_sinhl_compat.c: Likewise.
33575 * math/w_sqrt_compat.c: Likewise.
33576 * math/w_sqrtf_compat.c: Likewise.
33577 * math/w_sqrtl_compat.c: Likewise.
33578 * math/w_tgamma_compat.c: Likewise.
33579 * math/w_tgammaf_compat.c: Likewise.
33580 * math/w_tgammal_compat.c: Likewise.
33581 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
33582 [LIBM_SVID_COMPAT].
33583 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
33584 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
33585 [LIBM_SVID_COMPAT].
33586 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
33587 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
33588 [LIBM_SVID_COMPAT].
33589 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
33590 * sysdeps/i386/fpu/w_sqrt.c: New file.
33591 * sysdeps/ia64/fpu/w_acos.c: Likewise.
33592 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
33593 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
33594 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
33595 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
33596 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
33597 * sysdeps/ia64/fpu/w_asin.c: Likewise.
33598 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
33599 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
33600 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
33601 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
33602 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
33603 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
33604 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
33605 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
33606 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
33607 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
33608 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
33609 * sysdeps/ia64/fpu/w_exp.c: Likewise.
33610 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
33611 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
33612 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
33613 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
33614 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
33615 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
33616 * sysdeps/ia64/fpu/w_expf.c: Likewise.
33617 * sysdeps/ia64/fpu/w_expl.c: Likewise.
33618 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
33619 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
33620 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
33621 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
33622 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
33623 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
33624 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
33625 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
33626 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
33627 * sysdeps/ia64/fpu/w_log.c: Likewise.
33628 * sysdeps/ia64/fpu/w_log10.c: Likewise.
33629 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
33630 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
33631 * sysdeps/ia64/fpu/w_log2.c: Likewise.
33632 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
33633 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
33634 * sysdeps/ia64/fpu/w_logf.c: Likewise.
33635 * sysdeps/ia64/fpu/w_logl.c: Likewise.
33636 * sysdeps/ia64/fpu/w_pow.c: Likewise.
33637 * sysdeps/ia64/fpu/w_powf.c: Likewise.
33638 * sysdeps/ia64/fpu/w_powl.c: Likewise.
33639 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
33640 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
33641 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
33642 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
33643 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
33644 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
33645 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
33646 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
33647 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
33648 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
33649 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
33650 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
33651 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
33652 [LIBM_SVID_COMPAT].
33653 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
33654 * sysdeps/ieee754/k_standard.c: Likewise.
33655 * sysdeps/ieee754/k_standardf.c: Likewise.
33656 * sysdeps/ieee754/k_standardl.c: Likewise.
33657 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
33658 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
33659 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
33660 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
33661 long_double_symbol call on [LIBM_SVID_COMPAT].
33662 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
33663 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
33664 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
33665 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
33666 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
33667 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
33668 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
33669 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
33670 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
33671 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
33672 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
33673 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
33674 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
33675 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
33676 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
33677 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
33678 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
33679 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
33680 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
33681 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
33682 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
33683 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
33684
05b38d64
SE
336852017-09-05 Steve Ellcey <sellcey@cavium.com>
33686
33687 * include/shlib-compat.h (TEST_COMPAT): New Macro.
33688 * malloc/tst-mallocstate.c: Convert from test-skeleton
33689 to test-driver. Ifdef code using TEST_COMPAT macro.
33690 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
33691 * math/test-matherr.c: Likewise.
33692
99d67918
JM
336932017-09-05 Joseph Myers <joseph@codesourcery.com>
33694
33695 [BZ #22086]
33696 * debug/pcprofiledump.c (main): Use byte-swapped mask when
33697 comparing word with byte-swapped constant.
33698
c207f7ce 336992017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
3f802aeb
MF
33700
33701 [BZ #20498]
33702 * locale/iso-639.def: add Miskito.
33703 * localedata/SUPPORTED: Add miq_NI/UTF-8.
33704 * localedata/locales/miq_NI: New file.
33705
0a587a8a
L
337062017-09-04 H.J. Lu <hongjiu.lu@intel.com>
33707
33708 [BZ #18822]
33709 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
33710 (__mkdir): Likewise.
33711 * io/chmod.c (__chmod): Add libc_hidden_def.
33712 * io/mkdir.c (__mkdir): Likewise.
33713 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
33714 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
33715 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
33716 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
33717
f3a129b8
JM
337182017-09-04 Joseph Myers <joseph@codesourcery.com>
33719
1650e192
JM
33720 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
33721 version to 4.13.
33722
f3a129b8
JM
33723 [BZ #22082]
33724 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
33725 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
33726
b38042f5
FW
337272017-09-04 Florian Weimer <fweimer@redhat.com>
33728
33729 * math/math.h: Issue warning if log is defined.
33730
059b6404
JM
337312017-09-04 Joseph Myers <joseph@codesourcery.com>
33732
33733 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
33734 kernel version to 4.13.
33735
b794e16b
ST
337362017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
33737
33738 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
06cf9d31
ST
33739 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
33740 parameter.
01969395
ST
33741 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
33742 just <bits/types.h>.
dd2b31de 33743 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
ed95bf56 33744 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
dd2b31de 33745 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
ed95bf56 33746 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
2263ca7c
ST
33747 * misc/preadv2.c: Include <errno.h>.
33748 * misc/preadv64v2.c: Include <errno.h>.
33749 * misc/pwritev2.c: Include <errno.h>.
33750 * misc/pwritev64v2.c: Include <errno.h>.
33751 * sysdeps/posix/preadv2.c: Include <errno.h>.
33752 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
33753 Fix <unistd.h> inclusion.
33754 * sysdeps/posix/pwritev2.c: Include <errno.h>.
33755 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
cae3d712
ST
33756 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
33757 __strtoul_internal): New functions.
127e7773
ST
33758 * sysdeps/posix/pause.c: Include <sigsetops.h>.
33759 * sysdeps/posix/system.c: Include <sigsetops.h>.
f85958a7
ST
33760 * sysdeps/mach/hurd/i386/Makefile
33761 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
33762 [$(subdir) = csu] (sysdep-only-routines): Likewise.
33763 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
1946d950
ST
33764 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
33765 __feraiseexcept_renamed to feraiseexcept instead of
33766 __GI_feraiseexcept.
56bf5497 33767 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
2ce1f9ef 33768 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
492cbbed
ST
33769 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
33770 RWF_NOWAIT): Define to 0 if undefined already.
33771 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
33772 boils down to 0.
6547ec0a
ST
33773 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
33774 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
b794e16b 33775
5a80d39d
JM
337762017-09-01 Joseph Myers <joseph@codesourcery.com>
33777
33778 * manual/math.texi (pow10): Do not document.
33779 (pow10f): Likewise.
33780 (pow10l): Likewise.
33781 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
33782 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
33783 * math/libm-test-exp10.inc (pow10_test): Remove.
33784 (do_test): Do not call pow10.
33785 * math/w_exp10_compat.c (pow10): Make into compat symbol.
33786 [NO_LONG_DOUBLE] (pow10l): Likewise.
33787 * math/w_exp10f_compat.c (pow10f): Likewise.
33788 * math/w_exp10l_compat.c (pow10l): Likewise.
33789 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
33790 (pow10): Make into compat symbol.
33791 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
33792 (pow10f): Make into compat symbol.
33793 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
33794 (pow10l): Make into compat symbol.
33795 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
33796 pow10.
33797 (CFLAGS-nldbl-pow10.c): Remove variable..
33798 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
33799 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
33800 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
33801 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
33802 Undefine and redefine.
33803 (pow10l): Make into compat symbol.
33804 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
33805 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
33806 * sysdeps/arm/libm-test-ulps: Likewise.
33807 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
33808 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
33809 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
33810 * sysdeps/microblaze/libm-test-ulps: Likewise.
33811 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
33812 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
33813 * sysdeps/nios2/libm-test-ulps: Likewise.
33814 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
33815 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
33816 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
33817 * sysdeps/sh/libm-test-ulps: Likewise.
33818 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
33819 * sysdeps/tile/libm-test-ulps: Likewise.
33820 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33821
3824fc38
PP
338222017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
33823
33824 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
33825
b3008279
L
338262017-09-01 H.J. Lu <hongjiu.lu@intel.com>
33827
33828 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
33829 "../ChangeLog.old/ChangeLog.8".
33830 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
33831 "../ChangeLog.old/ChangeLog.14".
33832
136fa185
L
338332017-09-01 H.J. Lu <hongjiu.lu@intel.com>
33834
33835 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
33836 Threads Library.
33837
c18d50a2
JM
338382017-09-01 Joseph Myers <joseph@codesourcery.com>
33839
33840 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
33841
bedbd859
L
338422017-09-01 H.J. Lu <hongjiu.lu@intel.com>
33843
33844 * csu/version.c (banner): Remove "by Roland McGrath et al.".
33845 * nptl/Banner: Remove "by Ulrich Drepper et al.".
33846
50c66c7a
PP
338472017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
33848
33849 * stdlib/tst-atexit-common.c (do_test): Test support for at least
33850 32 atexit handlers.
33851
a617bd11
ZW
338522017-09-01 Zack Weinberg <zackw@panix.com>
33853
33854 * math/math.h (HUGE_VAL): Improve commentary.
33855
e0d2eb5a
AZ
338562017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33857 Andreas Schwab <schwab@suse.de>
33858
33859 [BZ #21530]
33860 * include/stdio.h (__gen_tempfd): New function.
33861 * stdio-common/Makefile (routines): Add gentempfd.
33862 * stdio-common/gentempfd.c: New file.
33863 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
33864 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
33865 unnamed file first.
33866
f4a6be25
FW
338672017-09-01 Florian Weimer <fweimer@redhat.com>
33868
33869 [BZ #21915]
33870 [BZ #21922]
33871 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
33872 result to determine success or failure, not the errno value.
33873 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
33874 (tst-nss-files-hosts-erange): Link with -ldl.
33875 * nss/tst-nss-files-hosts-erange.c: New file.
33876 * nss/tst-resolv-basic.c (response): Handle nodata.example.
33877 (do_test): Add NO_DATA tests.
33878 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
33879 (do_test): Call it.
33880
5f8340f5
FW
338812017-09-01 Florian Weimer <fweimer@redhat.com>
33882
33883 [BZ #21922]
33884 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
33885 coming from gethostbyname2_r.
33886
65329bd2
FW
338872017-09-01 Florian Weimer <fweimer@redhat.com>
33888
33889 * support/namespace.h (struct support_chroot_configuration): Add
33890 hosts, host_conf.
33891 (struct support_chroot): Add path_hosts, path_host_conf.
33892 * support/support_chroot.c (write_file): New function.
33893 (support_chroot_create): Call it to process /etc/resolv.conf,
33894 /etc/hosts, /etc/host.conf.
33895 (support_chroot_free): Update.
33896
a2881ef0
FW
338972017-09-01 Florian Weimer <fweimer@redhat.com>
33898
33899 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
33900 status indicates it is set.
33901
ad816a5e
FW
339022017-09-01 Florian Weimer <fweimer@redhat.com>
33903
63b52889 33904 [BZ #20532]
ad816a5e
FW
33905 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
33906 function lookup failures more reliable.
33907
53250a21
FW
339082017-09-01 Florian Weimer <fweimer@redhat.com>
33909
33910 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
33911 (getcanonname): Likewise.
33912 (gaih_inet): Likewise.
33913
924b121c
FW
339142017-09-01 Florian Weimer <fweimer@redhat.com>
33915
33916 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
33917 (getcanonname): Likewise.
33918 (gaih_inet): Likewise.
33919
d9ff799a 339202017-08-31 Steve Ellcey <sellcey@cavium.com>
6b5c8607 33921 Richard Henderson <rth@twiddle.net>
d9ff799a
SE
33922
33923 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
33924 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
33925 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
33926 (IREG_SIZE, OREG_SIZE): New macros.
33927 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
33928 (IREG_SIZE, OREG_SIZE): New macros.
33929 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
33930 (IREG_SIZE): New macro.
33931 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
33932 (IREG_SIZE): New macro.
33933 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
33934 New includes.
33935 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
33936 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
33937 (__CONCATX): Handle exceptions correctly on large values that may
33938 set FE_INVALID.
33939 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
33940 Initialize if not already set.
b39d961c 33941 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
d9ff799a 33942
102dde84
AZ
339432017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33944
33945 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
33946 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
33947 Likewise.
33948 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
33949 Likewise.
33950 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
33951 Likewise.
33952 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
33953 Likewise.
33954 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
33955 Likewise.
33956 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
33957 Likewise.
33958 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
33959 Likewise.
33960 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
33961 (NO_CANCELLATION): Likewise.
33962 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
33963 Likewise.
33964 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
33965 Likewise.
33966 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
33967 Likewise.
33968 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
33969 (NO_CANCELLATION): Likewise.
33970 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
33971 (NO_CANCELLATION): Likewise.
33972 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
33973 Likewise
33974 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
33975 Likewise.
33976 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
33977 Likewise.
33978 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
33979 Likewise.
33980 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
33981 hidden prototype.
33982 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
33983 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
33984
9eee633b
SE
339852017-08-31 Steve Ellcey <sellcey@cavium.com>
33986
33987 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
33988 in resolver call.
33989
65284eb7
FW
339902017-08-31 Florian Weimer <fweimer@redhat.com>
33991
33992 * include/libc-symbols.h (internal_function): Remove.
33993
41ad5ca6
FW
339942017-08-31 Florian Weimer <fweimer@redhat.com>
33995
33996 * stdlib/fmtmsg.c (internal_addseverity): Remove
33997 internal_function.
33998
2fa6d086
FW
339992017-08-31 Florian Weimer <fweimer@redhat.com>
34000
34001 * stdio-common/printf_fp.c (group_number): Remove
34002 internal_function.
34003 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
34004
b41bd5bc
FW
340052017-08-31 Florian Weimer <fweimer@redhat.com>
34006
34007 * posix/fnmatch.c (internal_function): Remove definition.
34008 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
34009 * posix/regcomp.c (peek_token, init_word_char)
34010 (duplicate_node_closure, fetch_token, peek_token)
34011 (peek_token_bracket, build_range_exp, build_collating_symbol):
34012 Likewise.
34013 * posix/regex_internal.c (re_string_construct_common)
34014 (create_ci_newstate, create_cd_newstate, re_string_allocate)
34015 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
34016 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
34017 (re_string_translate_buffer, re_string_reconstruct)
34018 (re_string_peek_byte_case, re_string_fetch_byte_case)
34019 (re_string_destruct, re_string_context_at, re_node_set_alloc)
34020 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
34021 (re_node_set_add_intersect, re_node_set_init_union)
34022 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
34023 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
34024 (re_dfa_add_node, calc_state_hash, re_acquire_state)
34025 (re_acquire_state_context): Likewise.
34026 * posix/regex_internal.h (internal_function): Remove definition.
34027 (re_string_realloc_buffers, build_wcs_buffer)
34028 (build_wcs_upper_buffer, build_upper_buffer)
34029 (re_string_translate_buffer, re_string_context_at)
34030 (re_string_char_size_at, re_string_wchar_at)
34031 (re_string_elem_size_at): Likewise.
34032 * posix/regexec.c (match_ctx_init, match_ctx_clean)
34033 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
34034 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
34035 (re_search_internal, re_search_2_stub, re_search_stub)
34036 (re_copy_regs, prune_impossible_nodes, check_matching)
34037 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
34038 (free_fail_stack_return, sift_states_iter_mb)
34039 (sift_states_backward, build_sifted_states)
34040 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
34041 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
34042 (check_subexp_limits, sift_states_bkref, merge_state_array)
34043 (find_recover_state, transit_state, merge_state_with_log)
34044 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
34045 (transit_state_mb, transit_state_bkref, get_subexp)
34046 (get_subexp_sub, find_subexp_node, check_arrival)
34047 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
34048 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
34049 (check_node_accept_bytes, find_collation_sequence_value)
34050 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
34051 (acquire_init_state_context, check_halt_node_context)
34052 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
34053 (sub_epsilon_src_nodes): Likewise.
34054 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
34055 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
34056 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
34057 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
34058 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
34059 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
34060 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
34061 * sysdeps/posix/ttyname.c (getttyname): Likewise.
34062 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
34063 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
34064 (PREADV): Likewise.
34065 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
34066 (PREADV): Likewise.
34067 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
34068 (PWRITEV): Likewise.
34069 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
34070 (PWRITEV): Likewise.
34071 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
34072 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
34073
83b09837
FW
340742017-08-31 Florian Weimer <fweimer@redhat.com>
34075
34076 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
34077 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
34078 Remove internal_function.
34079 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
34080 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
34081 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
34082 (__deallocate_stack, __libc_pthread_init)
34083 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
34084 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
34085 (__libc_disable_asynccancel, __librt_disable_asynccancel):
34086 Likewise.
34087 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
34088 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
34089 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
34090 Likewise.
34091 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
34092 (__pthread_mutex_unlock_usercnt): Likewise.
34093
116ac301
FW
340942017-08-31 Florian Weimer <fweimer@redhat.com>
34095
34096 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
34097 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
34098 (fts_safe_changedir): Remove internal_function.
34099 * io/ftw.c (internal_function): Remove definition.
34100 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
34101
9da93bd7
FW
341022017-08-31 Florian Weimer <fweimer@redhat.com>
34103
34104 * inet/deadline.c (__deadline_current_time)
34105 (__deadline_from_timeval, __deadline_to_ms): Remove
34106 internal_function.
34107 * inet/getnameinfo.c (nrl_domainname): Likewise.
34108 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
34109 * inet/inet6_option.c (add_pad): Likewise.
34110 * inet/net-internal.h (__deadline_current_time)
34111 (__deadline_from_timeval, __deadline_to_ms): Likewise.
34112 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
34113 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
34114 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
34115
a60eca2e
JM
341162017-08-31 Joseph Myers <joseph@codesourcery.com>
34117
c0c49d60
JM
34118 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
34119 include <bits/nan.h>.
34120 * math/Makefile (headers): Remove bits/nan.h.
34121 * bits/nan.h: Remove.
34122 * sysdeps/ieee754/bits/nan.h: Likewise.
34123 * sysdeps/mips/bits/nan.h: Likewise.
34124
5ef1b213
JM
34125 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
34126 not include <bits/inf.h>.
34127 * math/Makefile (headers): Remove bits/inf.h.
34128 * bits/inf.h: Remove.
34129 * sysdeps/ieee754/bits/inf.h: Likewise.
34130
a60eca2e
JM
34131 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
34132 bits/huge_vall.h or bits/huge_val_flt128.h.
34133 (HUGE_VAL): Define directly here.
34134 [__USE_ISOC99] (HUGE_VALF): Likewise.
34135 [__USE_ISOC99] (HUGE_VALL): Likewise.
34136 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
34137 (HUGE_VAL_F128): Likewise.
34138 * math/Makefile (headers): Remove bits/huge_val.h,
34139 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
34140 * bits/huge_val.h: Remove.
34141 * bits/huge_val_flt128.h: Likewise.
34142 * bits/huge_valf.h: Likewise.
34143 * bits/huge_vall.h: Likewise.
34144 * sysdeps/ia64/bits/huge_vall.h: Likewise.
34145 * sysdeps/ieee754/bits/huge_val.h: Likewise.
34146 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
34147 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
34148 * sysdeps/sh/bits/huge_val.h: Likewise.
34149 * sysdeps/sparc/bits/huge_vall.h: Likewise.
34150 * sysdeps/x86/bits/huge_vall.h: Likewise.
34151
17e00cc6
FW
341522017-08-31 Florian Weimer <fweimer@redhat.com>
34153
34154 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
34155 internal_function.
34156 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
34157 Likewise.
34158 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
34159 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
34160 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
34161 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
34162 * elf/dl-fini.c (_dl_sort_fini): Likewise.
34163 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
34164 * elf/dl-libc.c (dlerror_run): Likewise.
34165 * elf/dl-load.c (add_name_to_object, decompose_rpath)
34166 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
34167 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
34168 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
34169 Likewise.
34170 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
34171 (_dl_higher_prime_number, _dl_strtoul): Likewise.
34172 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
34173 * elf/dl-profile.c (_dl_start_profile): Likewise.
34174 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
34175 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
34176 Likewise.
34177 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
34178 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
34179 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
34180 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
34181 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
34182 (_dl_allocate_tls_storage): Likewise.
34183 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
34184 (_dl_check_all_versions): Likewise.
34185 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
34186 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
34187 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
34188 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
34189 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
34190 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
34191 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
34192 internal_function from __dl_start.
34193 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
34194 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
34195 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
34196 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
34197 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
34198 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
34199 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
34200 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
34201 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
34202 (_dl_next_ld_env_entry, _dl_important_hwcaps)
34203 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
34204 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
34205 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
34206 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
34207 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
34208 Likewise.
34209 (struct rtld_global_ro): Remove internal_function from the
34210 _dl_lookup_symbol_x member.
34211 (_dl_symbol_value): Remove. No longer defined anywhere.
34212 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
34213 internal_function.
34214 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
34215 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
34216 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
34217 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
34218 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
34219 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
34220 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
34221 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
34222 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
34223 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
34224 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
34225 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
34226
8d2f9410
FW
342272017-08-31 Florian Weimer <fweimer@redhat.com>
34228
34229 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
34230 Remove internal_function.
34231 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
34232 Likewise.
34233 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
34234 Likewise.
34235
86e4919f
FW
342362017-08-31 Florian Weimer <fweimer@redhat.com>
34237
34238 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
34239 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
34240 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
34241
59bd52b0
FW
342422017-08-31 Florian Weimer <fweimer@redhat.com>
34243
34244 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
34245 (__gai_enqueue_request): Remove internal_function.
34246 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
34247 (__gai_remove_request, __gai_notify, __gai_notify_only)
34248 (__gai_sigqueue): Likewise.
34249 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
34250 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
34251 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
34252 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
34253 Likewise.
34254
fc3d9497
FW
342552017-08-31 Florian Weimer <fweimer@redhat.com>
34256
34257 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
34258 * include/dirent.h (__opendirat, __getdents, __getdents64)
34259 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
34260 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
34261 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
34262 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
34263 Likewise.
34264 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
34265
18c54fac
FW
342662017-08-31 Florian Weimer <fweimer@redhat.com>
34267
34268 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
34269 internal_function.
34270 (GETCWD_RETURN_TYPE): Likewise.
34271
7e01f080
FW
342722017-08-31 Florian Weimer <fweimer@redhat.com>
34273
34274 * include/time.h (__tz_compute, __strptime_internal): Remove
34275 internal_function.
34276 * time/strptime_l.c (__strptime_internal): Likewise.
34277 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
34278
d7ccc6c9
FW
342792017-08-31 Florian Weimer <fweimer@redhat.com>
34280
34281 * iconv/gconv.c (__gconv): Remove internal_function.
34282 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
34283 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
34284 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
34285 (__gconv_release_cache): Likewise.
34286 * iconv/gconv_close.c (__gconv_close): Likewise.
34287 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
34288 (read_conf_file, __gconv_get_path): Likewise.
34289 * iconv/gconv_db.c (derivation_lookup, add_derivation)
34290 (__gconv_release_step, gen_steps, increment_counter)
34291 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
34292 (__gconv_close_transform, free_modules_db): Likewise.
34293 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
34294 Likewise.
34295 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
34296 (__gconv_find_transform, __gconv_lookup_cache)
34297 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
34298 (__gconv_close_transform, __gconv_release_cache)
34299 (__gconv_loaded_object, __gconv_release_shlib)
34300 (__gconv_compare_alias): Likewise.
34301 * iconv/gconv_open.c (__gconv_open): Likewise.
34302 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
34303 * iconv/iconvconfig.c (add_module): Likewise.
34304 * intl/dcigettext.c (plural_lookup, guess_category_value)
34305 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
34306 * intl/eval-plural.h (plural_eval): Likewise.
34307 * intl/finddomain.c (_nl_find_domain): Likewise.
34308 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
34309 (_nl_load_domain, _nl_find_msg): Likewise.
34310 (internal_function): Remove definition.
34311 * intl/loadinfo.h (internal_function): Likewise.
34312 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
34313 internal_function.
34314 * intl/localealias.c (internal_function): Remove definition.
34315 (read_alias_file): Remove internal_function.
34316 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
34317 * intl/plural-exp.h (internal_function): Remove definition.
34318 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
34319 internal_function.
34320 * intl/plural.c: Regenerate.
34321 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
34322 * locale/coll-lookup.c (__collidx_table_lookup)
34323 (__collseq_table_lookup): Likewise.
34324 * locale/coll-lookup.h (__collidx_table_lookup)
34325 (__collseq_table_lookup): Likewise.
34326 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
34327 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
34328 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
34329 (_nl_unload_locale): Likewise.
34330 * locale/localeinfo.h (struct __locale_data): Remove
34331 internal_function from cleanup member.
34332 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
34333 (_nl_remove_locale, _nl_load_locale_from_archive)
34334 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
34335 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
34336 (_nl_cleanup_time): Remove internal_function.
34337 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
34338 (_nl_parse_alt_digit): Likewise.
34339 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
34340 (_nl_select_era_entry): Likewise.
34341 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
34342 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
34343 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
7e01f080
FW
34344 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
34345 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
d7ccc6c9 34346
dab0eece
FW
343472017-08-31 Florian Weimer <fweimer@redhat.com>
34348
34349 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
34350 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
34351 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
34352 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
34353 Likewise.
34354 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
34355 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
34356 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
34357 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
34358 Likewise.
34359 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
34360
ab5bf7cf
FW
343612017-08-31 Florian Weimer <fweimer@redhat.com>
34362
34363 * misc/getttyent.c (skip, value): Remove internal_function.
34364 * misc/syslog.c (openlog_internal): Likewise.
34365 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
34366
75b3047e
FW
343672017-08-31 Florian Weimer <fweimer@redhat.com>
34368
34369 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
34370 (__nss_rewrite_field): Remove internal_function.
34371 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
34372 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
34373 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
34374 * nss/nsswitch.c (nss_parse_file, nss_getline)
34375 (nss_parse_service_list, nss_new_service): Likewise.
34376 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
34377 * nss/valid_field.c (__nss_valid_field): Likewise.
34378 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
34379
0c71122c
FW
343802017-08-31 Florian Weimer <fweimer@redhat.com>
34381
34382 * malloc/arena.c (__malloc_fork_lock_parent)
34383 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
34384 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
34385 internal_function from defintions.
34386 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
34387 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
34388 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
34389 internal_function from declarations.
34390 * malloc/malloc.c (internal_function): Do not define.
34391 (mem2mem_check): Remove internal_function from declaration.
34392 (munmap_chunk, mremap_chunk): Remove internal_function.
34393 * malloc/mtrace.c (tr_where): Likewise.
34394
ca4ec803
FW
343952017-08-31 Florian Weimer <fweimer@redhat.com>
34396
34397 * include/rpc/pmap_clnt.h (__get_socket): Remove
34398 internal_function.
34399 * sunrpc/auth_des.c (synchronize): Likewise.
34400 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
34401 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
34402 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
34403 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
34404 (key_call): Likewise.
34405 * sunrpc/pm_getport.c (__get_socket): Likewise.
34406 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
34407 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
34408 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
34409 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
34410 (invalidate): Likewise.
34411 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
34412 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
34413 (set_input_fragment, get_input_bytes): Likewise.
34414
24cffce7
FW
344152017-08-31 Florian Weimer <fweimer@redhat.com>
34416
34417 * malloc/malloc.c (_int_free): Remove locked variable and related
34418 asserts.
34419
ecd0747d
L
344202017-08-31 H.J. Lu <hongjiu.lu@intel.com>
34421
34422 [BZ #22051]
34423 * Makerules (build-module-helper-objlist): Filter out
34424 $(elf-objpfx)sofini.os.
34425 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
34426 needed.
34427
5f0704b6
FW
344282017-08-31 Florian Weimer <fweimer@redhat.com>
34429
34430 * libio/fcloseall.c: Assume weak_alias is defined.
34431 * libio/feof.c: Likewise.
34432 * libio/fileno.c: Likewise.
34433 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
34434 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
34435 definitions.
34436 (_IO_file_open): Call __open directly.
34437 (_IO_new_file_sync): Assume ESPIPE is defined.
34438 (_IO_file_seekoff_maybe_mmap): Call __read directly.
34439 (_IO_new_file_write): Call __write directly.
34440 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
34441 * libio/ftello64.c (__ftello64): Assume EIO is defined.
34442 * libio/genops.c: Assume _LIBC is defined.
34443 (save_for_backup): Remove internal_function.
34444 * libio/getc.c: Assume weak_alias is defined.
34445 * libio/getwc.c: Likewise.
34446 * libio/iofclose.c: Assume _LIBC is defined.
34447 * libio/iofdopen.c: Likewise.
34448 (_IO_fcntl): Remove macro definition.
34449 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
34450 Call __fcntl directly.
34451 * libio/iofflush.c: Assume weak_alias is defined.
34452 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
34453 defined.
34454 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
34455 * libio/iofgets.c: Likewise.
34456 * libio/iofopen.c: Assume _LIBC is defined.
34457 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
34458 * libio/iofputs.c: Assume weak_alias is defined.
34459 * libio/iofread.c: Likewise.
34460 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
34461 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
34462 * libio/ioftell.c: Assume weak_alias is defined.
34463 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
34464 * libio/iofwide.c: Assume _LIBC is defined.
34465 (_IO_fwide): Drop SHARED conditional because it is implied by
34466 SHLIB_COMPAT.
34467 * libio/iofwrite.c: Assume weak_alias is defined.
34468 * libio/iogetdelim.c: Likewise.
34469 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
34470 * libio/iogetwline.c (wmemcpy): Remove macro definition.
34471 (_IO_getwline): Call __wmemcpy directly.
34472 * libio/iopopen.c: Assume _LIBC is defined.
34473 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
34474 (_IO_close): Remove macro definitions.
34475 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
34476 _exit directly.
34477 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
34478 directly.
34479 * libio/ioputs.c: Assume weak_alias is defined.
34480 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
34481 * libio/iosetbuffer.c: Assume weak_alias is defined.
34482 * libio/iosetvbuf.c: Likewise.
34483 * libio/ioungetc.c: Likewise.
34484 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
34485 libc_hidden_def, libc_hidden_weak, NULL are defined.
34486 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
34487 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
34488 defined.
34489 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
34490 definitions.
34491 (_IO_old_file_init_internal): Drop SHARED conditional because it
34492 is implied by SHLIB_COMPAT.
34493 (_IO_old_file_fopen): Call __open directly.
34494 (_IO_old_file_sync): Assume ESPIPE is defined.
34495 (_IO_old_file_write): Call __write directly.
34496 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
34497 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
34498 Call __fcntl directly.
34499 * libio/oldiofgetpos.c: Assume weak_alias is defined.
34500 (_IO_old_fgetpos): Assume EIO is defined.
34501 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
34502 (_IO_old_fgetpos64): Assume EIO is defined.
34503 * libio/oldiofsetpos.c: Assume weak_alias is defined.
34504 (_IO_old_fsetpos): Assume EIO is defined.
34505 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
34506 (_IO_old_fsetpos64): Assume EIO is defined.
34507 * libio/oldiopopen.c: Assume _LIBC is defined.
34508 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
34509 (_IO_close): Remove macro definitions.
34510 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
34511 directly.
34512 (_IO_old_proc_close): Call __close, __waitpid directly.
34513 * libio/put.c: Assume weak_alias is defined.
34514 * libio/stdfiles.c: Assume _LIBC is defined.
34515 * libio/stdio.c: Likewise.
34516 * libio/wfileops.c: Likewise.
34517 (_IO_wfile_sync): Assume ESPIPE is defined.
34518 * libio/wgenops.c: Assume _LIBC is defined.
34519 (save_for_wbackup): Remove internal_function.
34520
5129873a
FW
345212017-08-31 Florian Weimer <fweimer@redhat.com>
34522
34523 * malloc/malloc.c (top_check): Change return type to void. Remove
34524 internal_function.
34525 * malloc/hooks.c (top_check): Likewise.
34526 (malloc_check, realloc_check, memalign_check): Adjust.
34527
4fa9b3bf
JM
345282017-08-30 Joseph Myers <joseph@codesourcery.com>
34529
34530 [BZ #21457]
34531 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
34532 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
34533 sigcontext and namespace requirements.
34534 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
34535 * sysdeps/m68k/sys/ucontext.h: Likewise.
34536 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
34537 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
34538 <bits/sigcontext.h>.
34539 (__ctx): Define earlier.
34540 (mcontext_t): Define structure contents rather than using struct
34541 sigcontext.
34542 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
34543 __glibc_reserved1 instead of __reserved.
34544 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
34545 <bits/sigcontext.h>.
34546 (__ctx): Define earlier.
34547 (mcontext_t): Define structure contents rather than using struct
34548 sigcontext.
34549 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
34550 mcontext_t instead of struct sigcontext.
34551 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
34552 <bits/sigcontext.h>.
34553 (__ctx): Define earlier.
34554 (mcontext_t): Define structure contents rather than using struct
34555 sigcontext.
34556 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
34557 <bits/sigcontext.h>.
34558 (__ctx): Define earlier.
34559 (mcontext_t): Define structure contents rather than using struct
34560 sigcontext.
34561 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
34562 mcontext_t instead of struct sigcontext.
34563 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
34564 mcontext_t instead of struct sigcontext.
34565 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
34566 <bits/sigcontext.h>.
34567 (__ctx): New macro.
34568 (struct __ia64_fpreg_mcontext): New type.
34569 (mcontext_t): Define structure contents rather than using struct
34570 sigcontext.
34571 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
34572 (uc_sigmask): Define using __ctx.
34573 (uc_stack): Likewise.
34574 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
34575 <bits/sigcontext.h>.
34576 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
34577 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
34578 <bits/sigcontext.h>.
34579 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
34580 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
34581 <bits/sigcontext.h>.
34582 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
34583 <bits/sigcontext.h>.
34584 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
34585 <bits/sigcontext.h>.
34586 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
34587 <bits/sigcontext.h>.
34588 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
34589 <bits/sigcontext.h>.
34590 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
34591 <bits/sigcontext.h>.
34592 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
34593 <bits/sigcontext.h>.
34594 (__ctx): Define earlier.
34595 (mcontext_t): Define structure contents rather than using struct
34596 sigcontext.
34597 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
34598 <bits/sigcontext.h>. Include <bits/types.h>.
34599 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
34600 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
34601 (test-xfail-XPG42/ucontext.h/conform): Likewise.
34602 (test-xfail-UNIX98/signal.h/conform): Likewise.
34603 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
34604 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
34605 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
34606 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
34607 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
34608 (test-xfail-POSIX2008/signal.h/conform): Likewise.
34609 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
34610 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
34611 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
34612
5898f454
FW
346132017-08-30 Florian Weimer <fweimer@redhat.com>
34614
34615 * malloc/dynarray_emplace_enlarge.c
34616 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
34617 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
34618 * malloc/tst-dynarray.c (test_long_overflow): New function.
34619 (do_test): Call it.
34620
a9da0bb2
FW
346212017-08-30 Florian Weimer <fweimer@redhat.com>
34622
34623 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
34624 (set_arena_corrupt): Remove definitions.
34625 (mtrim): Do not check for corrupt arena.
34626 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
34627 Likewise.
34628
ac3ed168
FW
346292017-08-30 Florian Weimer <fweimer@redhat.com>
34630
34631 [BZ #21754]
34632 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
34633 check_action.
34634 (ptmalloc_init): Do not set or use check_action.
34635 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
34636 call to malloc_printerr. Remove return statement.
34637 (free_check): Likewise. Remove arena unlock.
34638 (top_check): Update comment. Adjust call to malloc_printerr.
34639 Remove heap repair code.
34640 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
34641 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
34642 (sysmalloc): Adjust call to malloc_printerr.
34643 (munmap_chunk, __libc_realloc): Likewise. Remove return
34644 statement.
34645 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
34646 Remove errout label and corresponding gotos.
34647 (_int_free): Likewise. Remove arena unlock.
34648 (do_set_mallopt_check): Do not set check_action.
34649 (malloc_printerr): Adjust parameter list. Do not mark arena as
34650 corrupt.
34651 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
34652 comment.
34653 * manual/probes.texi (Memory Allocation Probes): Remove
34654 memory_mallopt_check_action.
34655
44bcba80
SE
346562017-08-30 Steve Ellcey <sellcey@cavium.com>
34657
34658 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
34659 Use pointer to uint64_t instead of long int for sp.
34660
ec2c1fce
FW
346612017-08-30 Florian Weimer <fweimer@redhat.com>
34662
34663 [BZ #21754]
34664 * malloc/malloc.c (malloc_printerr): Always terminate the process,
34665 without printing a backtrace. Do not leak any information in the
34666 error message.
34667 * manual/memory.texi (Heap Consistency Checking): Update.
34668 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
34669
9ce673b6
FW
346702017-08-30 Florian Weimer <fweimer@redhat.com>
34671
34672 Do not scale NPTL tests with available number of CPUs.
34673 * nptl/tst-cond16.c (count): Set to constant value of 8.
34674 * nptl/tst-cond18.c (count): Likewise.
34675
2f1aef19
JM
346762017-08-29 Joseph Myers <joseph@codesourcery.com>
34677
34678 [BZ #22035]
34679 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
34680 Define to take a second argument that is a macro that
34681 concatentates a suffix, not the suffix itself.
34682 (__CONCAT_d): New macro.
34683 (__CONCAT_f): Likewise.
34684 (__CONCAT_l): Likewise.
34685
8325b477
PP
346862017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
34687
34688 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
34689 by child.
34690
319cbbf6
AZ
346912017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34692 Aurelien Jarno <aurelien@aurel32.net>
34693 Maciej W. Rozycki <macro@imgtec.com>
34694
34695 [BZ #21956]
34696 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
34697 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
34698 `mips16-syscall6' and `mips16-syscall7'.
34699 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
34700 (CFLAGS-mips16-syscall7.c): Remove.
34701 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
34702 Remove `__mips16_syscall5', `__mips16_syscall6' and
34703 `__mips16_syscall7'.
34704 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
34705 (__mips16_syscall0): Rename `__mips16_syscall_return' to
34706 `__mips_syscall_return'.
34707 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
34708 (__mips16_syscall1): Likewise.
34709 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
34710 (__mips16_syscall2): Likewise.
34711 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
34712 (__mips16_syscall3): Likewise.
34713 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
34714 (__mips16_syscall4): Likewise.
34715 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
34716 Remove.
34717 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
34718 Remove.
34719 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
34720 Remove.
34721 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
34722 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
34723 `__mips16_syscall5'. Remove prototype.
34724 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
34725 `__mips16_syscall6'. Remove prototype.
34726 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
34727 `__mips16_syscall7'. Remove prototype.
34728 (__nomips16, __mips16_syscall_return): Move to...
34729 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
34730 (__nomips16, __mips_syscall_return): ... here.
34731 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
34732 `__mips16_syscall_return' to `__mips_syscall_return'.
34733 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
34734 `internal_syscall##nr'.
34735 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
34736 `internal_syscall##nr'.
34737 (FORCE_FRAME_POINTER): Remove.
34738 (__mips_syscall5): New prototype.
34739 (internal_syscall5): Rewrite to call `__mips_syscall5'.
34740 (__mips_syscall6): New prototype.
34741 (internal_syscall6): Rewrite to call `__mips_syscall6'.
34742 (__mips_syscall7): New prototype.
34743 (internal_syscall7): Rewrite to call `__mips_syscall7'.
34744 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
34745 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
34746 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
34747 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
34748 (sysdep_routines): Add libc-do-syscall.
34749 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
34750 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
34751
01b87c65
AZ
347522017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34753
34754 [BZ #21672]
34755 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
34756 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
34757 (advise_stack_range): New function.
34758 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
34759 stack non required to advise_stack_range at allocatestack.c
34760
16f138a4
SN
347612017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
34762
34763 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
34764
251bccfa
FW
347652017-08-29 Florian Weimer <fweimer@redhat.com>
34766
34767 [BZ #22026]
34768 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
34769 __end_fct. Mangle __end_fct after setting it to NULL.
34770 * iconv/Makefile (tests): Add tst-gconv-init-failure.
34771 (modules-names, modules-names-tests): Add
34772 tst-gconv-init-failure-mod.
34773 (gconv-modules): New target.
34774 (tst-gconv-init-failure-mod.so): Link against libsupport.
34775 (tst-gconv-init-failure): Depend on gconv-modules,
34776 tst-gconv-init-failure-mod.so.
34777 * iconv/tst-gconv-init-failure-mod.c: New file.
34778 * iconv/tst-gconv-init-failure.c: Likewise.
34779 * iconv/test-gconv-modules: Likewise.
34780
e7c18b9d
FW
347812017-08-29 Florian Weimer <fweimer@redhat.com>
34782
34783 [BZ #22025]
34784 * iconv/gconv_db.c (free_derivation): Remove redundant
34785 parentheses.
34786 (gen_steps): Unconditionally mangle __btowc_fct after
34787 initialization.
34788 (increment_counter): Likewise. Do not call init_fct for internal
34789 modules.
34790
7daada03
JM
347912017-08-29 Joseph Myers <joseph@codesourcery.com>
34792
34793 [BZ #22028]
34794 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
34795 (_MSUF_): Remove macro.
34796 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
34797 Likewise.
34798 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
34799 (__REDIRFROM_X): New macro.
34800 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
34801 Likewise.
34802 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
34803 (__REDIRTO_X): Likewise.
34804 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
34805 arguments.
34806 (__MATH_REDIRCALL_2): Likewise.
34807 (__MATH_REDIRCALL_INTERNAL): Likewise.
34808 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
34809 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
34810 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
34811 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
34812 * math/test-finite-macros.c: New file.
34813 * math/Makefile (tests): Add test-finite-macros.
34814 (CFLAGS-test-finite-macros.c): New variable.
34815
1cf1232c
PF
348162017-08-29 Patsy Franklin <pfrankli@redhat.com>
34817 Jeff Law <law@redhat.com>
34818
34819 [BZ #22025]
34820 Mangle NULL pointers in iconv/gconv.
34821 * iconv/gconv_cache.c (find_module): Demangle init_fct before
34822 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
34823 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
34824 is non-NULL before demangling the end_fct. Check for NULL
34825 end_fct after demangling.
34826 (__gconv_release_step): Demangle the end_fct before checking
34827 it for NULL. Remove assert on __shlibc_handle != NULL.
34828 (gen_steps): Don't check btowc_fct for NULL before mangling.
34829 Demangle init_fct before checking for NULL.
34830 (increment_counter): Likewise.
34831 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
34832 end_fct for NULL before mangling.
34833 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
34834 for NULL.
34835
c207f7ce 348362017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
f8de9568
AK
34837
34838 [BZ #21971]
34839 * locale/iso-639.def: add Morisyen.
34840
42496114
GG
348412017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
34842
34843 [BZ #21930]
34844 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
34845 (iszero): New C++ implementation that does not use
34846 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
34847 signaling nans are enabled, since __builtin_types_compatible_p
34848 is a C-only feature.
34849 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
34850 defined, include ieee754_float128.h for access to the union and
34851 member ieee854_float128.ieee.
34852 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
34853 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
34854 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
34855 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
34856 options of test-math-zero on powerpc64le.
34857
5e2bc4ff
L
348582017-08-28 H.J. Lu <hongjiu.lu@intel.com>
34859
34860 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
34861 Change double to float.
34862
a48c0fb4
JM
348632017-08-28 Joseph Myers <joseph@codesourcery.com>
34864
34865 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
34866 unconditional.
34867 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
34868 conditional code; define contents only for [LIBM_SVID_COMPAT].
34869
ee17d4e9
FW
348702017-08-28 Florian Weimer <fweimer@redhat.com>
34871
34872 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
34873 (abi-lp64_be-options): Remove.
34874 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
34875 (abi-hard-options): Likewise.
34876 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
34877 (abi-o32_hard-options, abi-o32_soft_2008-options)
34878 (abi-o32_hard_2008-options, abi-n32_soft-options)
34879 (abi-n32_hard-options, abi-n32_soft_2008-options)
34880 (abi-n32_hard_2008-options, abi-n64_soft-options)
34881 (abi-n64_hard-options, abi-n64_soft_2008-options)
34882 (abi-n64_hard_2008-options): Likewise.
34883 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
34884 (abi-64-v1-options, abi-64-v2-options): Likewise.
34885 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
34886 (abi-64-options): Likewise.
34887 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
34888 (abi-64-options): Likewise.
34889 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
34890 (abi-64-options): Likewise.
34891 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
34892 (abi-64-options, abi-x32-options): Likewise.
34893
2dba5ce7
FW
348942017-08-28 Florian Weimer <fweimer@redhat.com>
34895
34896 Store supported list of SYS_* system calls in the source tree.
34897 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
34898 (bits/syscall.h): Generate from list file.
34899 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
34900 [$(subdir) = misc] (tests): Add tst-syscall-list.
34901 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
34902 [$(subdir) = misc] (tst-syscall-list-macros.list)
34903 [$(subdir) = misc] (tst-syscall-list-nr.list)
34904 (tst-syscall-list-sys.list): Helper targets for new
34905 tst-syscall-list test.
34906 [$(subdir) = misc] (tst-syscall-list.out): Run test script
34907 tst-syscall-list.sh.
34908 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
34909 target. Do not include bits/syscall.d.
34910 [$(subdir) = misc] (generated): Do not update.
34911 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
34912 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
34913 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
34914 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
34915
5f3b183d
PP
349162017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
34917
34918 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
34919 (tst-cxa_atexit, tst-on_exit): Likewise.
34920 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
34921 tst-cxa_atexit, and tst-on_exit.
34922 * stdlib/tst-atexit-common.c: New file.
34923 * stdlib/tst-atexit.c: New file.
34924 * stdlib/tst-at_quick_exit.c: New file.
34925 * stdlib/tst-cxa_atexit.c: New file.
34926 * stdlib/tst-on_exit.c: New file.
34927
2ef8d469
ST
349282017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
34929
34930 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
97e02ad2
ST
34931 * mach/stack_chk_fail_local.c: New file.
34932 * hurd/stack_chk_fail_local.c: New file.
34933 * mach/Machrules ($(interface-library)-routines): Add
34934 stack_chk_fail_local.
99ee4d26
ST
34935 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
34936 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
34937 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
34938 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
34939 * hurd/Makefile (CFLAGS-hurdstartup.o,
34940 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
2ef8d469 34941
7ab70c98
L
349422017-08-25 H.J. Lu <hongjiu.lu@intel.com>
34943
34944 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
34945 (index_cpu_*, index_arch_*): Removed.
34946
39e7a5a6
SN
349472017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
34948
34949 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
34950 Use uint64_t instead of unsigned long.
34951
bba5c930
JM
349522017-08-25 Joseph Myers <joseph@codesourcery.com>
34953
a6ccdb08
JM
34954 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
34955 [__HAVE_DISTINCT_FLOAT128].
34956
23761119
JM
34957 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
34958 of <bits/math-finite.h>.
34959 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
34960 inclusion of <bits/math-finite.h>.
34961 * math/bits/math-finite.h (__REDIRTO_X): Do not define
34962 conditionally on [__MATH_DECLARING_LDOUBLE && defined
34963 __NO_LONG_DOUBLE_MATH].
34964 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
34965 (__MATH_REDIRCALL_2): Likewise.
34966 (__MATH_REDIRCALL_INTERNAL): Likewise.
34967 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
34968 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
34969 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
34970
bba5c930
JM
34971 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
34972 Remove file.
34973 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
34974 Likewise.
34975 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
34976 Likewise.
34977 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
34978 Likewise.
34979 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
34980 Likewise.
34981 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
34982 Likewise.
34983 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
34984 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
34985 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
34986 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
34987 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
34988 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
34989 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
34990 w_sqrtf_compat-ppc32.
34991
3d7b66f6
GG
349922017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
34993
34994 * math/math.h [defined __cplusplus] (issignaling): In the long
34995 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
34996 is not defined. Call __issignaling, otherwise.
34997
ebd6f007
AZ
349982017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34999
35000 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
35001 syscall definitions and replace __builtin_expect with __glibc_likely.
35002 * sysdeps/unix/syscall-template.S: Update comment about cancellable
35003 syscall.
6b5c8607 35004 (SYSCALL_CANCELLABLE): Removedefinition
ebd6f007
AZ
35005 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
35006 definition.
35007 (PSEUDO_END): Likewise.
35008 [IS_IN (libpthread)] (CENABLE): Likewise.
35009 [IS_IN (libpthread)] (CDISABLE): Likewise.
35010 [IS_IN (libc)] (CENABLE): Likewise.
35011 [IS_IN (libc)] (CENABLE): Likewise.
35012 [IS_IN (librt)] (CDISABLE): Likewise.
35013 [IS_IN (librt)] (CDISABLE): Likewise.
35014 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35015 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
35016 definition.
35017 (PSEUDO_END): Likewise.
35018 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
35019 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
35020 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
35021 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
35022 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
35023 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
35024 (CENABLE): Likewise.
35025 (CDISABLE): Likewise.
35026 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35027 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
35028 defintion.
35029 (PSEUDO_END): Likewise.
35030 [IS_IN (libpthread)] (CENABLE): Likewise.
35031 [IS_IN (libpthread)] (CDISABLE): Likewise.
35032 [IS_IN (libc)] (CENABLE): Likewise.
35033 [IS_IN (libc)] (CENABLE): Likewise.
35034 [IS_IN (librt)] (CDISABLE): Likewise.
35035 [IS_IN (librt)] (CDISABLE): Likewise.
35036 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35037 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
35038 definition.
35039 (PSEUDO_END): Likewise.
35040 [IS_IN (libpthread)] (CENABLE): Likewise.
35041 [IS_IN (libpthread)] (CDISABLE): Likewise.
35042 [IS_IN (libc)] (CENABLE): Likewise.
35043 [IS_IN (libc)] (CENABLE): Likewise.
35044 [IS_IN (librt)] (CDISABLE): Likewise.
35045 [IS_IN (librt)] (CDISABLE): Likewise.
35046 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35047 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
35048 definition.
35049 (PSEUDO_END): Likewise.
35050 [IS_IN (libpthread)] (CENABLE): Likewise.
35051 [IS_IN (libpthread)] (CDISABLE): Likewise.
35052 [IS_IN (libc)] (CENABLE): Likewise.
35053 [IS_IN (libc)] (CENABLE): Likewise.
35054 [IS_IN (librt)] (CDISABLE): Likewise.
35055 [IS_IN (librt)] (CDISABLE): Likewise.
35056 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35057 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
35058 definition.
35059 (PSEUDO_END): Likewise.
35060 [IS_IN (libpthread)] (CENABLE): Likewise.
35061 [IS_IN (libpthread)] (CDISABLE): Likewise.
35062 [IS_IN (libc)] (CENABLE): Likewise.
35063 [IS_IN (libc)] (CENABLE): Likewise.
35064 [IS_IN (librt)] (CDISABLE): Likewise.
35065 [IS_IN (librt)] (CDISABLE): Likewise.
35066 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35067 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
35068 definition.
35069 (PSEUDO_END): Likewise.
35070 [IS_IN (libpthread)] (CENABLE): Likewise.
35071 [IS_IN (libpthread)] (CDISABLE): Likewise.
35072 [IS_IN (libc)] (CENABLE): Likewise.
35073 [IS_IN (libc)] (CENABLE): Likewise.
35074 [IS_IN (librt)] (CDISABLE): Likewise.
35075 [IS_IN (librt)] (CDISABLE): Likewise.
35076 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35077 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
35078 definition.
35079 (PSEUDO_END): Likewise.
35080 [IS_IN (libpthread)] (CENABLE): Likewise.
35081 [IS_IN (libpthread)] (CDISABLE): Likewise.
35082 [IS_IN (libc)] (CENABLE): Likewise.
35083 [IS_IN (libc)] (CENABLE): Likewise.
35084 [IS_IN (librt)] (CDISABLE): Likewise.
35085 [IS_IN (librt)] (CDISABLE): Likewise.
35086 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35087 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
35088 Remove definition.
35089 (PSEUDO_END): Likewise.
35090 [IS_IN (libpthread)] (CENABLE): Likewise.
35091 [IS_IN (libpthread)] (CDISABLE): Likewise.
35092 [IS_IN (libc)] (CENABLE): Likewise.
35093 [IS_IN (libc)] (CENABLE): Likewise.
35094 [IS_IN (librt)] (CDISABLE): Likewise.
35095 [IS_IN (librt)] (CDISABLE): Likewise.
35096 (SINGLE_THREAD_P): Likewise.
35097 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
35098 definition.
35099 (PSEUDO_END): Likewise.
35100 [IS_IN (libpthread)] (CENABLE): Likewise.
35101 [IS_IN (libpthread)] (CDISABLE): Likewise.
35102 [IS_IN (libc)] (CENABLE): Likewise.
35103 [IS_IN (libc)] (CENABLE): Likewise.
35104 [IS_IN (librt)] (CDISABLE): Likewise.
35105 [IS_IN (librt)] (CDISABLE): Likewise.
35106 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35107 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
35108 definition.
35109 (PSEUDO_END): Likewise.
35110 [IS_IN (libpthread)] (CENABLE): Likewise.
35111 [IS_IN (libpthread)] (CDISABLE): Likewise.
35112 [IS_IN (libc)] (CENABLE): Likewise.
35113 [IS_IN (libc)] (CENABLE): Likewise.
35114 [IS_IN (librt)] (CDISABLE): Likewise.
35115 [IS_IN (librt)] (CDISABLE): Likewise.
35116 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35117 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
35118 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
35119 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
35120 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
35121 definition.
35122 (PSEUDO_END): Likewise.
35123 [IS_IN (libpthread)] (CENABLE): Likewise.
35124 [IS_IN (libpthread)] (CDISABLE): Likewise.
35125 [IS_IN (libc)] (CENABLE): Likewise.
35126 [IS_IN (libc)] (CENABLE): Likewise.
35127 [IS_IN (librt)] (CDISABLE): Likewise.
35128 [IS_IN (librt)] (CDISABLE): Likewise.
35129 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35130 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
35131 definition.
35132 (PSEUDO_END): Likewise.
35133 [IS_IN (libpthread)] (CENABLE): Likewise.
35134 [IS_IN (libpthread)] (CDISABLE): Likewise.
35135 [IS_IN (libc)] (CENABLE): Likewise.
35136 [IS_IN (libc)] (CENABLE): Likewise.
35137 [IS_IN (librt)] (CDISABLE): Likewise.
35138 [IS_IN (librt)] (CDISABLE): Likewise.
35139 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35140 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
35141 definition.
35142 (PSEUDO_END): Likewise.
35143 [IS_IN (libpthread)] (CENABLE): Likewise.
35144 [IS_IN (libpthread)] (CDISABLE): Likewise.
35145 [IS_IN (libc)] (CENABLE): Likewise.
35146 [IS_IN (libc)] (CENABLE): Likewise.
35147 [IS_IN (librt)] (CDISABLE): Likewise.
35148 [IS_IN (librt)] (CDISABLE): Likewise.
35149 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35150 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
35151 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
35152 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
35153 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
35154 definition.
35155 (PSEUDO_END): Likewise.
35156 [IS_IN (libpthread)] (CENABLE): Likewise.
35157 [IS_IN (libpthread)] (CDISABLE): Likewise.
35158 [IS_IN (libc)] (CENABLE): Likewise.
35159 [IS_IN (libc)] (CENABLE): Likewise.
35160 [IS_IN (librt)] (CDISABLE): Likewise.
35161 [IS_IN (librt)] (CDISABLE): Likewise.
35162 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35163 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
35164 definition.
35165 (PSEUDO_END): Likewise.
35166 [IS_IN (libpthread)] (CENABLE): Likewise.
35167 [IS_IN (libpthread)] (CDISABLE): Likewise.
35168 [IS_IN (libc)] (CENABLE): Likewise.
35169 [IS_IN (libc)] (CENABLE): Likewise.
35170 [IS_IN (librt)] (CDISABLE): Likewise.
35171 [IS_IN (librt)] (CDISABLE): Likewise.
35172 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35173
8aa48656
SN
351742017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
35175
35176 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
35177
fcaaca41
L
351782017-08-23 H.J. Lu <hongjiu.lu@intel.com>
35179
35180 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
35181
376b40a2
L
351822017-08-23 H.J. Lu <hongjiu.lu@intel.com>
35183
35184 [BZ #21982]
35185 * string/stratcliff.c (do_test): Declare size, nchars, inner,
35186 middle and outer with size_t instead of int. Repleace %d and
35187 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
35188 "MAX (outer, nchars - 64)" to support unsigned outer and
35189 nchars. Also exit loop when outer == 0.
35190
2b0b9a1c
AZ
351912017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35192
35193 * include/fcntl.h (__fcntl_nocancel): Remove definition.
35194 * include/signal.h (__sigsuspend_nocancel): Likewise.
35195 * include/time.h (__nanosleep_nocancel): Likewise.
35196 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
35197 * login/utmp_file.c: Include non cancellable syscall header.
35198 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
35199 prototype.
35200
b9eaca8f
L
352012017-08-23 H.J. Lu <hongjiu.lu@intel.com>
35202
35203 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
35204 .byte sequences with AVX512F instructions.
35205 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
35206 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
35207 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
35208 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
35209 Likewise.
35210 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
35211 Likewise.
35212
5a706f64
SE
352132017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
35214 Steve Ellcey <sellcey@cavium.com>
35215
35216 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
35217 Use PTR_REG macro in cmp instruction.
35218
b513da7e
GG
352192017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35220
35221 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
35222 Change the return type of the ifunc resolver to match the return
35223 type of the target function.
35224
78ca091c
AZ
352252017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35226
b70b6026
AZ
35227 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
35228 (preadv64): Likewise.
35229 (pwrite64(: Likewise.
35230 (pwritev64): Likewise.
35231
78ca091c
AZ
35232 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
35233 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
35234 (LOAD_ARGS_0): Likewise.
35235 (LOAD_ARGS_1): Likewise.
35236 (LOAD_ARGS_2): Likewise.
35237 (LOAD_ARGS_3): Likewise.
35238 (LOAD_ARGS_4): Likewise.
35239 (LOAD_ARGS_5): Likewise.
35240 (LOAD_ARGS_6): Likewise.
35241 (LOAD_REGS_0): Likewise.
35242 (LOAD_REGS_1): Likewise.
35243 (LOAD_REGS_2): Likewise.
35244 (LOAD_REGS_3): Likewise.
35245 (LOAD_REGS_4): Likewise.
35246 (LOAD_REGS_5): Likewise.
35247 (LOAD_REGS_6): Likewise.
35248 (ASM_ARGS_0): Likewise.
35249 (ASM_ARGS_1): Likewise.
35250 (ASM_ARGS_2): Likewise.
35251 (ASM_ARGS_3): Likewise.
35252 (ASM_ARGS_4): Likewise.
35253 (ASM_ARGS_5): Likewise.
35254 (ASM_ARGS_6): Likewise.
35255 (LOAD_ARGS_TYPES_1): Likewise.
35256 (LOAD_ARGS_TYPES_2): Likewise.
35257 (LOAD_ARGS_TYPES_3): Likewise.
35258 (LOAD_ARGS_TYPES_4): Likewise.
35259 (LOAD_ARGS_TYPES_5): Likewise.
35260 (LOAD_ARGS_TYPES_6): Likewise.
35261 (LOAD_REGS_TYPES_1): Likewise.
35262 (LOAD_REGS_TYPES_2): Likewise.
35263 (LOAD_REGS_TYPES_3): Likewise.
35264 (LOAD_REGS_TYPES_4): Likewise.
35265 (LOAD_REGS_TYPES_5): Likewise.
35266 (LOAD_REGS_TYPES_6): Likewise.
35267 (TYPEFY): New define.
35268 (ARGIFY): Likewise.
35269 (internal_syscall0): Likewise.
35270 (internal_syscall1): Likewise.
35271 (internal_syscall2): Likewise.
35272 (internal_syscall3): Likewise.
35273 (internal_syscall4): Likewise.
35274 (internal_syscall5): Likewise.
35275 (internal_syscall6): Likewise.
35276 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
35277 (INTERNAL_SYSCALL_NCS): Remove define.
35278 (internal_syscall1): Add define.
35279
453a493d
GG
352802017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35281
35282 * math/w_remainder_compat.c: Remove duplicate inclusion of
35283 math-svid-compat.h.
35284 * math/w_remainderf_compat.c: Likewise.
35285 * math/w_remainderl_compat.c: Likewise.
35286
f2f048a5
GG
352872017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35288
35289 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
35290
d9bef9c0
JM
352912017-08-22 Joseph Myers <joseph@codesourcery.com>
35292
35293 [BZ #21684]
35294 * math/tgmath.h (__floating_type): Simplify definitions.
35295 (__real_integer_type): New macro.
35296 (__complex_integer_type): Likewise.
35297 (__expr_is_real): Likewise.
35298 (__tgmath_real_type_sub): Update comment to describe handling of
35299 complex types.
35300 (__tgmath_complex_type_sub): New macro.
35301 (__tgmath_complex_type): Likewise.
35302 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
35303 (__TGMATH_CF128): Use __expr_is_real.
35304 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
35305 __expr_is_real.
35306 (__TGMATH_BINARY_REAL_IMAG): Likewise.
35307 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
35308 * math/gen-tgmath-tests.py (Type.create_type): Create complex
35309 integer types.
35310
08d6eb46
AZ
353112017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35312
988f991b
AZ
35313 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
35314 macro.
35315 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
35316 alias.
35317 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
35318 Likewise.
35319
6f33fd04
AZ
35320 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
35321 nanosleep_not_cancel with __nanosleep_nocancel.
35322 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
35323 (__nanosleep_nocancel): New macro.
35324 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
35325 function.
35326 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
35327 macro.
35328 (__nanosleep_nocancel): New prototype.
35329
08d6eb46
AZ
35330 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
35331 pause_not_cancel with __pause_nocancel.
35332 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
35333 (__pause_nocancel): New macro.
35334 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
35335 macro.
35336 (__pause_nocancel): New prototype.
35337 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
35338
ee4e992e
MS
353392017-08-22 Martin Sebor <msebor@redhat.com>
35340
35341 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
35342 to return a pointer to the same type as the target function.
35343
20962acb
L
353442017-08-22 H.J. Lu <hongjiu.lu@intel.com>
35345
35346 [BZ #18822]
35347 [BZ #21986]
35348 * include/printf.h (__printf_fphex): Add attribute_hidden.
35349 (__guess_grouping): New prototype.
35350 * stdio-common/printf_fp.c (__guess_grouping): Removed.
35351 * stdio-common/reg-printf.c (__register_printf_specifier): Add
35352 libc_hidden_proto and libc_hidden_def.
35353 * stdlib/strfmon_l.c (__guess_grouping): Removed.
35354 (__vstrfmon_l): Remove the third argument passed to
35355 __guess_grouping.
35356
a16e8bc0
GG
353572017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35358
35359 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
35360 definition for issignaling that does not rely on __MATH_TG,
35361 since __MATH_TG uses __builtin_types_compatible_p, which is only
35362 available in C mode.
35363 (CFLAGS-test-math-issignaling.cc): New variable.
35364 * math/Makefile [CXX] (tests): Add test-math-issignaling.
35365 * math/test-math-issignaling.cc: New test for C++ implementation
35366 of type-generic issignaling.
35367 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
35368 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
35369 options of test-math-issignaling on powerpc64le.
35370
8d2ec553
L
353712017-08-22 H.J. Lu <hongjiu.lu@intel.com>
35372
35373 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
35374 building libc.a.
35375 (hidden_proto): Likewise.
35376 (hidden_tls_proto): Likewise.
35377 (__hidden_proto): Likewise.
35378
a4d57b79
FW
353792017-08-22 Florian Weimer <fweimer@redhat.com>
35380
35381 math: Statically link tests of internal functionality.
35382 * math/Makefile (tests): Remove atest-exp, atest-sincos,
35383 atest-exp2.
35384 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
35385 (gmp-objs): Remove assignment.
35386 (atest-exp, atest-sincos, atest-exp2): Remove targets.
35387
75dfe623
JM
353882017-08-22 Joseph Myers <joseph@codesourcery.com>
35389
80f91666
JM
35390 [BZ #21987]
35391 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
35392 and copy to ...
35393 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
35394 ... here.
35395 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
35396 ... and here.
35397
75dfe623
JM
35398 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
35399 variable definitions above inclusion of ../Rules.
35400
ea99fcd0
JM
354012017-08-21 Joseph Myers <joseph@codesourcery.com>
35402
35403 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
35404 case calling __builtin_unreachable.
35405
19926de9
AZ
354062017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35407
a8410a5f
AZ
35408 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
35409 __waitpid_nocancel.
35410 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
35411 (__waitpid_nocancel): New macro.
35412 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
35413 macro.
35414 (__waitpid_nocancel): Replace macro with a function.
35415 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
35416 function.
35417
7369800c
AZ
35418 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
35419 __fcntl_nocancel.
35420 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
35421 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
35422
19926de9
AZ
35423 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
35424 __writev_nocancel_nostatus.
35425 (write_call_graph): Likewise.
35426 (write_bb_counts): Likewise.
35427 * resolv/herror.c (herror): Likewise.
35428 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
35429 macro.
35430 (__writev_nocancel_nostatus): New macro.
35431 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
35432 Remove macro.
35433 (__writev_nocancel_nostatus): New function.
35434
813378e9
JM
354352017-08-21 Joseph Myers <joseph@codesourcery.com>
35436
df1deda6
JM
35437 Revert:
35438 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
35439
35440 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
35441 building libc.a.
35442 (hidden_proto): Likewise.
35443 (hidden_tls_proto): Likewise.
35444 (__hidden_proto): Likewise.
35445
831bbd55
JM
35446 [BZ #21973]
35447 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
35448 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
35449 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
35450 Likewise.
35451 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
35452 Likewise.
35453 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
35454 Likewise.
35455 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
35456 Likewise.
35457 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
35458 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
35459 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
35460 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
35461 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
35462 GLIBC_2.0 sqrtl symbol.
35463
813378e9
JM
35464 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
35465 [__USE_MISC] (_LIB_VERSION): Likewise.
35466 [__USE_MISC] (struct exception): Likewise.
35467 [__USE_MISC] (matherr): Likewise.
35468 [__USE_MISC] (DOMAIN): Likewise.
35469 [__USE_MISC] (SING): Likewise.
35470 [__USE_MISC] (OVERFLOW): Likewise.
35471 [__USE_MISC] (UNDERFLOW): Likewise.
35472 [__USE_MISC] (TLOSS): Likewise.
35473 [__USE_MISC] (PLOSS): Likewise.
35474 [__USE_MISC] (HUGE): Likewise.
35475 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
35476 * math/math-svid-compat.h: New file.
35477 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
35478 and matherrl.
35479 * include/math.h [!_ISOMAC] (__matherr): Remove.
35480 * manual/arith.texi (FP Exceptions): Do not document matherr.
35481 * math/Makefile (tests): Change test-matherr to test-matherr-3.
35482 (tests-internal): New variable.
35483 (install-lib): Do not add libieee.a.
35484 (non-lib.a): Likewise.
35485 (extra-objs): Do not add libieee.a and ieee-math.o.
35486 (CPPFLAGS-s_lib_version.c): Remove variable.
35487 ($(objpfx)libieee.a): Remove rule.
35488 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
35489 * math/ieee-math.c: Remove.
35490 * math/libm-test-support.c (matherr): Remove.
35491 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
35492 and license notices. Include <math-svid-compat.h> and
35493 <shlib-compat.h>.
35494 (matherr): Undefine as macro. Use compat_symbol_reference.
35495 (_LIB_VERSION): Likewise.
35496 * math/test-matherr-2.c: New file.
35497 * math/test-matherr-3.c: Likewise.
35498 * sysdeps/generic/math_private.h (__kernel_standard): Remove
35499 declaration.
35500 (__kernel_standard_f): Likewise.
35501 (__kernel_standard_l): Likewise.
35502 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
35503 <math_private.h>. Include <math-svid-compat.h>.
35504 (_LIB_VERSION): Undefine as macro.
35505 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
35506 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
35507 [LIBM_SVID_COMPAT], use compat_symbol.
35508 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
35509 <math_private.h>. Include <math-svid-compat.h>.
35510 (matherr): Undefine as macro.
35511 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
35512 compat_symbol.
35513 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
35514 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
35515 compat_symbol_reference.
35516 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
35517 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
35518 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
35519 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
35520 (MATHERR_D): Remove declaration.
35521 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
35522 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
35523 [LIBM_BUILD] (pmatherrf): Likewise.
35524 [LIBM_BUILD] (pmatherr): Likewise.
35525 [LIBM_BUILD] (pmatherrl): Likewise.
35526 (DOMAIN): Likewise.
35527 (SING): Likewise.
35528 (OVERFLOW): Likewise.
35529 (UNDERFLOW): Likewise.
35530 (TLOSS): Likewise.
35531 (PLOSS): Likewise.
35532 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
35533 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
35534 compat_symbol.
35535 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
35536 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
35537 compat_symbol.
35538 * math/lgamma-compat.h: Include <math-svid-compat.h>.
35539 * math/w_acos_compat.c: Likewise.
35540 * math/w_acosf_compat.c: Likewise.
35541 * math/w_acosh_compat.c: Likewise.
35542 * math/w_acoshf_compat.c: Likewise.
35543 * math/w_acoshl_compat.c: Likewise.
35544 * math/w_acosl_compat.c: Likewise.
35545 * math/w_asin_compat.c: Likewise.
35546 * math/w_asinf_compat.c: Likewise.
35547 * math/w_asinl_compat.c: Likewise.
35548 * math/w_atan2_compat.c: Likewise.
35549 * math/w_atan2f_compat.c: Likewise.
35550 * math/w_atan2l_compat.c: Likewise.
35551 * math/w_atanh_compat.c: Likewise.
35552 * math/w_atanhf_compat.c: Likewise.
35553 * math/w_atanhl_compat.c: Likewise.
35554 * math/w_cosh_compat.c: Likewise.
35555 * math/w_coshf_compat.c: Likewise.
35556 * math/w_coshl_compat.c: Likewise.
35557 * math/w_exp10_compat.c: Likewise.
35558 * math/w_exp10f_compat.c: Likewise.
35559 * math/w_exp10l_compat.c: Likewise.
35560 * math/w_exp2_compat.c: Likewise.
35561 * math/w_exp2f_compat.c: Likewise.
35562 * math/w_exp2l_compat.c: Likewise.
35563 * math/w_fmod_compat.c: Likewise.
35564 * math/w_fmodf_compat.c: Likewise.
35565 * math/w_fmodl_compat.c: Likewise.
35566 * math/w_hypot_compat.c: Likewise.
35567 * math/w_hypotf_compat.c: Likewise.
35568 * math/w_hypotl_compat.c: Likewise.
35569 * math/w_j0_compat.c: Likewise.
35570 * math/w_j0f_compat.c: Likewise.
35571 * math/w_j0l_compat.c: Likewise.
35572 * math/w_j1_compat.c: Likewise.
35573 * math/w_j1f_compat.c: Likewise.
35574 * math/w_j1l_compat.c: Likewise.
35575 * math/w_jn_compat.c: Likewise.
35576 * math/w_jnf_compat.c: Likewise.
35577 * math/w_jnl_compat.c: Likewise.
35578 * math/w_lgamma_main.c: Likewise.
35579 * math/w_lgamma_r_compat.c: Likewise.
35580 * math/w_lgammaf_main.c: Likewise.
35581 * math/w_lgammaf_r_compat.c: Likewise.
35582 * math/w_lgammal_main.c: Likewise.
35583 * math/w_lgammal_r_compat.c: Likewise.
35584 * math/w_log10_compat.c: Likewise.
35585 * math/w_log10f_compat.c: Likewise.
35586 * math/w_log10l_compat.c: Likewise.
35587 * math/w_log2_compat.c: Likewise.
35588 * math/w_log2f_compat.c: Likewise.
35589 * math/w_log2l_compat.c: Likewise.
35590 * math/w_log_compat.c: Likewise.
35591 * math/w_logf_compat.c: Likewise.
35592 * math/w_logl_compat.c: Likewise.
35593 * math/w_pow_compat.c: Likewise.
35594 * math/w_powf_compat.c: Likewise.
35595 * math/w_powl_compat.c: Likewise.
35596 * math/w_remainder_compat.c: Likewise.
35597 * math/w_remainderf_compat.c: Likewise.
35598 * math/w_remainderl_compat.c: Likewise.
35599 * math/w_scalb_compat.c: Likewise.
35600 * math/w_scalbf_compat.c: Likewise.
35601 * math/w_scalbl_compat.c: Likewise.
35602 * math/w_sinh_compat.c: Likewise.
35603 * math/w_sinhf_compat.c: Likewise.
35604 * math/w_sinhl_compat.c: Likewise.
35605 * math/w_sqrt_compat.c: Likewise.
35606 * math/w_sqrtf_compat.c: Likewise.
35607 * math/w_sqrtl_compat.c: Likewise.
35608 * math/w_tgamma_compat.c: Likewise.
35609 * math/w_tgammaf_compat.c: Likewise.
35610 * math/w_tgammal_compat.c: Likewise.
35611 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
35612 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
35613 * sysdeps/ieee754/k_standard.c: Likewise.
35614 * sysdeps/ieee754/k_standardf.c: Likewise.
35615 * sysdeps/ieee754/k_standardl.c: Likewise.
35616 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
35617 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
35618 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
35619 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
35620 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
35621 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
35622 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
35623 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
35624 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
35625 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
35626 Likewise.
35627 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
35628 Likewise.
35629 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
35630 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
35631 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
35632 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
35633
4504783c
FW
356342017-08-21 Florian Weimer <fweimer@redhat.com>
35635
35636 [BZ #21864]
35637 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
35638 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
35639 Move before inclusion of ../Rules.
35640
b5889d25
FW
356412017-08-21 Florian Weimer <fweimer@redhat.com>
35642
35643 [BZ #21972]
35644 * assert/assert.h (assert): Use static_cast (bool) for C++.
35645 Use the ternary operator in the warning branch for GNU C.
35646 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
35647 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
35648 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
35649 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
35650 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
35651
41e673c1
L
356522017-08-21 H.J. Lu <hongjiu.lu@intel.com>
35653
35654 [BZ #18822]
35655 * sysdeps/unix/sysv/linux/x86_64/init-first.c
35656 (__syscall_clock_gettime): Add attribute_hidden.
35657 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
35658 (__start_context): Likewise.
35659
568ff429
L
356602017-08-21 H.J. Lu <hongjiu.lu@intel.com>
35661
35662 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
35663 building libc.a.
35664 (hidden_proto): Likewise.
35665 (hidden_tls_proto): Likewise.
35666 (__hidden_proto): Likewise.
35667
7c41b4a1
L
356682017-08-21 H.J. Lu <hongjiu.lu@intel.com>
35669
35670 * include/libc-symbols.h (attribute_hidden): Enable hidden
35671 visibility in libc.a compiled with PIE.
35672
483d7068
L
356732017-08-21 H.J. Lu <hongjiu.lu@intel.com>
35674
35675 [BZ #18822]
35676 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
35677 Add attribute_hidden.
35678
356792017-08-21 H.J. Lu <hongjiu.lu@intel.com>
35680
35681 [BZ #21864]
35682 * Makerules (all-nonlib): Add $(others-extras).
35683 * catgets/Makefile (others-extras): New.
35684 * elf/Makefile (others-extras): Likewise.
35685 * nss/Makefile (others-extras): Likewise.
35686
54e4b8f2
L
356872017-08-21 H.J. Lu <hongjiu.lu@intel.com>
35688
35689 [BZ #18822]
35690 * csu/libc-start.c (__libc_multiple_libcs): Removed.
35691 * elf/dl-open.c: Include <libc-internal.h>.
35692 (__libc_multiple_libcs): Removed.
35693 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
35694 <hp-timing.h>.
35695 * include/libc-internal.h (__libc_multiple_libcs): New.
35696 * misc/sbrk.c: Include <libc-internal.h>.
35697 (__libc_multiple_libcs): Removed.
35698
1dbbb1ec
L
356992017-08-21 H.J. Lu <hongjiu.lu@intel.com>
35700
35701 [BZ #18822]
35702 * grp/initgroups.c (__nss_group_database): Removed.
35703 (__nss_initgroups_database): Likewise.
35704 * nscd/gai.c (__nss_hosts_database): Likewise.
35705 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
35706 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
35707 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
35708 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
35709 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
35710 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
35711 attribute_hidden.
35712 * nss/nsswitch.c (__nss_database_custom): Define only if
35713 USE_NSCD is defined.
35714 (__nss_configure_lookup): Use __nss_database_custom only if
35715 USE_NSCD is defined.
35716 * nss/nsswitch.h (__nss_database_custom): Declare only if
35717 USE_NSCD is defined. Add attribute_hidden.
35718 (__nss_setent): Add attribute_hidden.
35719 (__nss_endent): Likewise.
35720 (__nss_getent_r): Likewise.
35721 (__nss_getent): Likewise.
35722 (DEFINE_DATABASE): Declare __nss_##arg##_database.
35723
2585d7b8
L
357242017-08-20 H.J. Lu <hongjiu.lu@intel.com>
35725
35726 [BZ #18822]
35727 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
35728 libc_hidden_proto and libc_hidden_def.
35729
c8dfa99c
L
357302017-08-20 H.J. Lu <hongjiu.lu@intel.com>
35731
35732 [BZ #18822]
35733 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
35734 Add libc_hidden_proto.
35735 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
35736 Add libc_hidden_def.
35737
7ed87317
L
357382017-08-20 H.J. Lu <hongjiu.lu@intel.com>
35739
35740 [BZ #21974]
35741 * gmon/Makefile (routines): Remove bb_init_func and
35742 bb_exit_func.
35743 (elide-routines.os): Removed.
9476b904
L
35744 * gmon/bb_exit_func.c: Likewise.
35745 * gmon/bb_init_func.c: Likewise.
7ed87317
L
35746 * include/sys/gmon.h (__bb): Likewise.
35747 (__bb_init_func): Likewise.
35748 (__bb_exit_func): Likewise.
91695eb1 35749 * sysdeps/alpha/bb_init_func.S: Likewise.
7ed87317 35750
94e6ba15
L
357512017-08-20 H.J. Lu <hongjiu.lu@intel.com>
35752
35753 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
35754 * include/setjmp.h (____longjmp_chk): Here. Add
35755 attribute_hidden.
35756
7550717e
L
357572017-08-19 H.J. Lu <hongjiu.lu@intel.com>
35758
35759 [BZ #18822]
35760 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
35761 attribute_hidden.
35762 (__strspn_sse2): Likewise.
35763
0bb2fabc
AZ
357642017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35765
c181840c
AZ
35766 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
35767 (close_not_cancel_no_status): Likewise.
35768 (__close_nocancel): New macro.
35769 (__close_nocancel_nostatus): Likewise.
35770 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
35771 macro.
35772 (close_not_cancel): Likewise.
35773 (close_not_cancel_no_status): Likewise.
35774 (__close_nocancel): New prototype.
35775 (__close_nocancel_nostatus): New function.
35776 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
35777 * catgets/open_catalog.c (__open_catalog): Replace
35778 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
35779 * gmon/gmon.c (write_gmon): Likewise.
35780 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
35781 * intl/loadmsgcat.c (close): Likewise.
35782 * io/ftw.c (open_dir_stream): Likewise.
35783 (ftw_startup): Likewise.
35784 * libio/fileops.c (_IO_file_open): Likewise.
35785 (_IO_file_close_mmap): Likewise.
35786 (_IO_file_close): Likewise.
35787 * libio/iopopen.c (_IO_dup2): Likewise.
35788 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
35789 * locale/loadlocale.c (_nl_load_locale): Likewise.
35790 * login/utmp_file.c (pututline_file): Likewise.
35791 (endutent_file): Likewise.
35792 * misc/daemon.c (daemon): Likewise.
35793 * nscd/nscd_getai.c (__nscd_getai): Likewise.
35794 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
35795 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
35796 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
35797 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
35798 * nscd/nscd_helper.c (open_socket): Likewise.
35799 (__nscd_open_socket): Likewise.
35800 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
35801 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
35802 (__nscd_innetgr): Likewise.
35803 * nss/nss_db/db-open.c (internal_setent): Likewise.
35804 * resolv/res-close.c (__res_iclose): Likewise.
35805 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
35806 * sysdeps/posix/closedir.c (__closedir): Likewise.
35807 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
35808 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
35809 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
35810 (opendir_tail): Likewise.
35811 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
35812 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
35813 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
35814 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
35815 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
35816 (gethostid): Likewise.
35817 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
35818 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
35819 Likewise.
35820 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
35821 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
35822 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
35823 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
35824 Likewise.
35825 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
35826 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
35827 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
35828 Likewise.
35829 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
35830 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
35831 Likewise.
35832 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
35833 Likewise.
35834 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
35835 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
35836 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
35837 __close_nocancel.
35838
0bb2fabc
AZ
35839 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
35840 (openat_not_cancel_3): Likewise.
35841 (openat64_not_cancel_3): Likewise).
35842 (openat_not_cancel_3): Likewise).
35843 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
35844 macro.
35845 (openat_not_cancel_3): Likewise.
35846 (openat64_not_cancel): Likewise.
35847 (openat64_not_cancel_3): Likewise.
35848 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
35849 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
35850 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
35851 __open{64}_nocancel.
35852 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
35853 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
35854 * sysdeps/posix/opendir.c (__opendirat): Likewise.
35855
65a086db
L
358562017-08-18 H.J. Lu <hongjiu.lu@intel.com>
35857
35858 [BZ #18822]
35859 * include/argz.h (__argz_create_sep): New function prototype.
35860 (__argz_append): Likewise.
35861 (__argz_add): Likewise.
35862 (__argz_add_sep): Likewise.
35863 (__argz_delete): Likewise.
35864 (__argz_insert): Likewise.
35865 (__argz_replace): Likewise.
35866 * string/argz.h (__argz_create_sep): Removed.
35867 (__argz_append): Likewise.
35868 (__argz_add): Likewise.
35869 (__argz_add_sep): Likewise.
35870 (__argz_delete): Likewise.
35871 (__argz_insert): Likewise.
35872 (__argz_replace): Likewise.
35873
62753d2c
L
358742017-08-18 H.J. Lu <hongjiu.lu@intel.com>
35875
35876 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
35877 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
35878 (GNU_PROPERTY_STACK_SIZE): Likewie.
35879 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
35880 (GNU_PROPERTY_LOPROC): Likewise.
35881 (GNU_PROPERTY_HIPROC): Likewise.
35882 (GNU_PROPERTY_LOUSER): Likewise.
35883 (GNU_PROPERTY_HIUSER): Likewise.
35884 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
35885 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
35886 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
35887 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
35888 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
35889 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
35890 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
35891 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
35892 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
35893 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
35894 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
35895 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
35896 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
35897 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
35898 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
35899 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
35900 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
35901 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
35902 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
35903 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
35904 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
35905 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
35906 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
35907
6913ad65
GG
359082017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35909
35910 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
35911 in C++ mode.
35912
47a67213
GG
359132017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35914
35915 [BZ #21930]
35916 * math/math.h (isinf): Check if in C or C++ mode before using
35917 __builtin_types_compatible_p, since this is a C mode feature.
35918
a748eb31
AZ
359192017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35920
c647fb88
AZ
35921 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
35922 (__write_nocancel): New macro.
35923 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
35924 Rewrite as a function prototype.
35925 (write_not_cancel): Remove macro.
35926 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
35927 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
35928 (write_gmon): Likewise.
35929 * libio/fileops.c (_IO_new_file_write): Likewise.
35930 * login/utmp_file.c (pututline_file): Likewise.
35931 (updwtmp_file): Likewise.
35932 * stdio-common/psiginfo.c (psiginfo): Likewise.
35933 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
35934 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
35935 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
35936 Likewise.
35937 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
35938 Likewise.
35939
a748eb31
AZ
35940 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
35941 (__read_nocancel): New macro.
35942 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
35943 __read_nocancel.
35944 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
35945 macro.
35946 (__read_nocancel): New prototype.
35947 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
35948 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
35949 with __read_nocancel.
35950 * intl/loadmsgcat.c (read): Likewise.
35951 * libio/fileops.c (_IO_file_read): Likewise.
35952 * locale/loadlocale.c (_nl_load_locale): Likewise.
35953 * login/utmp_file.c (getutent_r_file): Likewise.
35954 (internal_getut_r): Likewise.
35955 (getutline_r_file): Likewise.
35956 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
35957 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
35958 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
35959 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
35960 Likewise.
35961 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
35962 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
35963 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
35964 Likewise.
35965 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
35966 Likewise.
35967 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
35968 Likewise.
35969 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
35970 Likewise.
35971 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
35972
098b9dd4
L
359732017-08-18 H.J. Lu <hongjiu.lu@intel.com>
35974
35975 [BZ #21966]
35976 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
35977 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
35978 usable.
35979
a3fe6a20
DD
359802017-08-17 DJ Delorie <dj@redhat.com>
35981
35982 * bug17079.c: Update to new test harness.
35983 * test-digits-dots.c: Likewise.
35984 * test-netdb.c: Likewise.
35985 * tst-field.c: Likewise.
35986 * tst-nss-getpwent.c: Likewise.
35987 * tst-nss-static.c: Likewise.
35988 * tst-nss-test1.c: Likewise.
35989 * tst-nss-test2.c: Likewise.
35990 * tst-nss-test3.c: Likewise.
35991 * tst-nss-test4.c: Likewise.
35992 * tst-nss-test5.c: Likewise.
35993
c2284574
AZ
359942017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35995
35996 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
35997 (open_not_cancel_2): Likewise.
35998 (open_nocancel): New macro.
35999 (open64_nocancel): Likewise.
36000 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
36001 (open_not_cancel_2): Likewise.
36002 (__open_nocancel): New prototype.
36003 (__open64_nocancel): Likewise.
36004 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
36005 __open_nocancel.
36006 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
36007 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
36008 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
36009 with __open_nocancel.
36010 * csu/check_fds.c (check_one_fd): Likewise.
36011 * gmon/gmon.c (write_gmon): Likewise.
36012 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
36013 * intl/loadmsgcat.c (open): Likewise.
36014 * libio/fileops.c (_IO_file_open): Likewise.
36015 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
36016 * locale/loadlocale.c (_nl_load_locale): Likewise.
36017 * login/utmp_file.c (setutent_file): Likewise.
36018 * misc/daemon.c (daemon): Likewise.
36019 * nss/nss_db/db-open.c (internal_setent): Likewise.
36020 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
36021 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
36022 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
36023 (__opendir): Likewise.
36024 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
36025 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
36026 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
36027 (gethostid): Likewise.
36028 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
36029 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
36030 Likewise.
36031 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
36032 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
36033 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
36034 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
36035 Likewise.
36036 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
36037 Likewise.
36038 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
36039 Likewise.
36040 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
36041 Likewise.
36042 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
36043 Likewise.
36044 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
36045 Likewise.
36046 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
36047 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
36048
d4505b89
WD
360492017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
36050
36051 * benchtests/bench-skeleton.c (main): Add support for
36052 latency benchmarking.
36053 * benchtests/scripts/bench.py: Add support for latency benchmarking.
36054
34d6a3cb
L
360552017-08-17 H.J. Lu <hongjiu.lu@intel.com>
36056
36057 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
36058 the startup object.
36059
038d1caf
FW
360602017-08-17 Florian Weimer <fweimer@redhat.com>
36061
36062 * include/sys/socket.h (__opensock): Remove internal_function.
36063 * socket/opensock.c (__opensock): Likewise.
36064 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
36065
67f0aff0
JM
360662017-08-16 Joseph Myers <joseph@codesourcery.com>
36067
36068 [BZ #21944]
36069 * signal/bits/types/__sigval_t.h: New file.
36070 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
36071 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
36072 and define sigval_t using __sigval_t.
36073 * include/bits/types/__sigval_t.h: New file.
36074 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
36075 instead of <bits/types/__sigval_t.h>.
36076 (struct sigevent): Use __sigval_t instead of sigval_t.
36077 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
36078 instead of <bits/types/__sigval_t.h>.
36079 (siginfo_t): Use __sigval_t instead of sigval_t.
36080 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
36081 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
36082 (struct sigevent): Use __sigval_t instead of sigval_t.
36083 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
36084 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
36085 (siginfo_t): Use __sigval_t instead of sigval_t.
36086 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
36087
87e7bf4d
L
360882017-08-16 H.J. Lu <hongjiu.lu@intel.com>
36089
36090 * NEWS: Remove "[Add new features here]" for 2.27.
36091
5047057f
JM
360922017-08-16 Joseph Myers <joseph@codesourcery.com>
36093
36094 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
36095 libc.so.
36096
20c7b195
L
360972017-08-16 H.J. Lu <hongjiu.lu@intel.com>
36098
36099 * NEWS: Mention x86-64 FMA optimization.
36100
24a2e658
L
361012017-08-16 H.J. Lu <hongjiu.lu@intel.com>
36102
36103 [BZ #21912]
36104 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
36105 Add e_expf-fma.
36106 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
36107 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
36108 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
36109
eedca977
AS
361102017-08-16 Andreas Schwab <schwab@suse.de>
36111
403143e1
FW
36112 [BZ #16750]
36113 CVE-2009-5064
eedca977
AS
36114 * elf/ldd.bash.in: Never run file directly.
36115
f59f7adb
L
361162017-08-15 H.J. Lu <hongjiu.lu@intel.com>
36117
36118 [BZ #21955]
36119 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
36120 (L(SP_INF_0)): Likewise.
36121
6b11a6ad
FW
361222017-08-15 Florian Weimer <fweimer@redhat.com>
36123
36124 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
36125 run-built-tests.
36126
bbf5c438
FW
361272017-08-15 Florian Weimer <fweimer@redhat.com>
36128
36129 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
36130 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
36131 BROKEN_THREAD_SIGNALS code.
36132 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
36133 request_list): Remove caller_pid member used for
36134 BROKEN_THREAD_SIGNALS.
36135 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
36136 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
36137 Remove BROKEN_THREAD_SIGNALS support.
36138 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
36139 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
36140
6014c65d
FW
361412017-08-15 Florian Weimer <fweimer@redhat.com>
36142
36143 * gmon/Makefile (tests): Add tst-gmon.
36144 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
36145 Set.
36146 (tests-special): Add tst-gmon-prof.out.
36147 (tst-gmon.out): Depend on clean-tst-gmon-data.
36148 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
36149 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
36150 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
36151 startup object.
36152 * aclocal.m4 (GPROF): Set and substitute.
36153 * config.amke.in (GPROF): Set.
36154 * configure: Regenerate.
36155
ee72219a
GR
361562017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
36157
36158 * elf/elf.h A (NT_PPC_TAR): New macro.
36159 (NT_PPC_PPR): Likewise.
36160 (NT_PPC_DSCR): Likewise.
36161 (NT_PPC_EBB): Likewise.
36162 (NT_PPC_PMU): Likewise.
36163 (NT_PPC_TM_CGPR): Likewise.
36164 (NT_PPC_TM_CFPR): Likewise.
36165 (NT_PPC_TM_CVMX): Likewise.
36166 (NT_PPC_TM_CVSX): Likewise.
36167 (NT_PPC_TM_SPR): Likewise.
36168 (NT_PPC_TM_CTAR): Likewise.
36169 (NT_PPC_TM_CPPR): Likewise.
36170 (NT_PPC_TM_CDSCR): Likewise.
36171
4ebf934e
FW
361722017-08-15 Florian Weimer <fweimer@redhat.com>
36173
36174 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
36175 regparm (2) instead of internal_function.
36176 (_MCOUNT_DECL): Adjust.
36177
e9f57484
SL
361782017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
36179
36180 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
36181 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
36182
88ff4d55
JM
361832017-08-14 Joseph Myers <joseph@codesourcery.com>
36184
36185 * conform/data/sys/wait.h-data (si_value): Do not expect for
36186 XPG42.
36187
c88ffc23
FW
361882017-08-14 Florian Weimer <fweimer@redhat.com>
36189
36190 [BZ #21962]
36191 NSS: Create stubs for accidentally exported lookup functions.
36192 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
36193 Remove declaration.
36194 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
36195 (ether_hostton): Call __nss_ethers_lookup2 instead.
36196 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
36197 (ether_ntohost): Call __nss_ethers_lookup2 instead.
36198 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
36199 (setup): Call __nss_netgroup_lookup2 instead.
36200 * nss/Makefile (routines): Add compat-lookup.
36201 * nss/Versions (GLIBC_2.27): Add symbol version.
36202 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
36203 (DB_COMPAT_FCT): Remove.
36204 * nss/compat-lookup.c: New file.
36205 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
36206 from databases.def.
36207 * nss/service-lookup.c (NO_COMPAT): Remove definition.
36208 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
36209 (netname2user): Call __nss_publickey_lookup2 instead.
36210 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
36211 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
36212 instead.
36213
35a29136 362142017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1f14d0c3
AZ
36215 Sergei Trofimovich <slyfox@inbox.ru>
36216
36217 [BZ #21908]
36218 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
36219 Rename to MMAP2_PAGE_UNIT.
36220 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
36221 __OFF_T_MATCHES_OFF64_T is not defined.
36222 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
36223 uint64_t.
36224 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
36225 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
36226
fbdc1e3e
FW
362272017-08-14 Florian Weimer <fweimer@redhat.com>
36228
36229 i386: Do not set internal_function.
36230 * config.h.in (USE_REGPARMS, internal_function): Remove.
36231 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
36232 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
36233
b3f85fd2
FW
362342017-08-14 Florian Weimer <fweimer@redhat.com>
36235
36236 * elf/dl-init.c (_dl_init): Remove internal_function.
36237 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
36238 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
36239
630bf491
FW
362402017-08-14 Florian Weimer <fweimer@redhat.com>
36241
36242 * elf/rtld.c (_dl_start): Remove internal_function.
36243 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
36244 _dl_start.
36245
9fa7449b
FW
362462017-08-14 Florian Weimer <fweimer@redhat.com>
36247
36248 * elf/dl-fini.c (_dl_fini): Remove internal_function
36249 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
36250
73322d5f
L
362512017-08-14 H.J. Lu <hongjiu.lu@intel.com>
36252
d863cd71 36253 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
73322d5f
L
36254 (bit_cpu_SHSTK): Likewise.
36255 (index_cpu_IBT): Likewise.
36256 (index_cpu_SHSTK): Likewise.
36257 (reg_IBT): Likewise.
36258 (reg_SHSTK): Likewise.
36259 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
36260 Handle index_cpu_IBT and index_cpu_SHSTK.
36261
dbc303ef
MF
362622017-08-14 Mike FABIAN <mfabian@redhat.com>
36263
36264 [BZ #19982]
36265 * po/fr.po: Fix spelling mistake.
36266
3012cfb0
FW
362672017-08-13 Florian Weimer <fweimer@redhat.com>
36268
36269 * elf/dl-addr.c (_dl_addr): Remove internal_function.
36270 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
36271 (_dl_catch_error, _dl_receive_error): Likewise.
36272 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
36273 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
36274 (_dl_deallocate_tls): Likewise.
36275 * include/dlfcn.h (_dl_addr): Likewise.
36276 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
36277 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
36278 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
36279 Likewise.
36280
52bcdf26
FW
362812017-08-13 Florian Weimer <fweimer@redhat.com>
36282
36283 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
36284 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
36285 internal_function.
36286 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
36287
e1d2ae8d
FW
362882017-08-13 Florian Weimer <fweimer@redhat.com>
36289
36290 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
36291 internal_function.
36292 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
36293 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
36294 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
36295 internal_function from _dl_make_stack_executable_hook member.
36296 (_dl_make_stack_executable): Remove internal_function.
36297 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
36298 Likewise.
36299 * sysdeps/unix/sysv/linux/dl-execstack.c
36300 (_dl_make_stack_executable): Likewise.
36301
c4ce0382
FW
363022017-08-13 Florian Weimer <fweimer@redhat.com>
36303
36304 * sysdeps/unix/sysv/linux/netlinkaccess.h
36305 (__netlink_assert_response): Remove internal_function.
36306 * sysdeps/unix/sysv/linux/netlink_assert_response.c
36307 (__netlink_assert_response): Likewise.
36308
c4d767f7
FW
363092017-08-13 Florian Weimer <fweimer@redhat.com>
36310
36311 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
36312 internal_function.
36313 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
36314
b2297409
FW
363152017-08-13 Florian Weimer <fweimer@redhat.com>
36316
36317 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
36318 internal_function.
36319 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
36320 * inet/netgroup.h (__internal_setnetgrent)
36321 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
36322 * inet/getnetgrent_r.c (__internal_setnetgrent)
36323 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
36324 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
36325 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
36326 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
36327 * nss/nsswitch.h (db_lookup_function): Likewise.
36328
1b0bfc69
FW
363292017-08-13 Florian Weimer <fweimer@redhat.com>
36330
36331 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
36332 Remove internal_function.
36333 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
36334 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
36335 message argument on the stack.
36336 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
36337 Likeweise.
36338
a6bd8722
MF
363392017-08-12 Mike FABIAN <mfabian@redhat.com>
36340
36341 Adapt test case data to the changes in the thousands
36342 separators.
36343
36344 [BZ #20756]
36345 * localedata/tst-langinfo.sh: Adapt test case data.
36346 * stdlib/tst-strfmon_l.c: Likewise.
36347 * stdlib/tst-strtod4.c: Likewise.
36348 * stdlib/tst-strtod5i.c: Likewise.
36349
8b2c63e4
FW
363502017-08-11 Florian Weimer <fweimer@redhat.com>
36351
36352 [BZ #21242]
36353 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
36354 Suppress pedantic warning resulting from statement expression.
36355 (__ASSERT_FUNCTION): Add missing __extension__.
36356
61c98291
SP
363572017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
36358
86c6519e
SP
36359 * benchtests/bench-memmove-large.c: Print output in JSON
36360 format.
36361 * benchtests/bench-memmove.c: Likewise.
36362
61c98291
SP
36363 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
36364 * benchtests/bench-memchr.c (do_one_test): Likewise.
36365 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
36366 * benchtests/bench-memcpy.c (do_one_test): Likewise.
36367 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
36368 * benchtests/bench-memmove.c (do_one_test): Likewise.
36369 * benchtests/bench-memset-large.c (do_one_test): Likewise.
36370 * benchtests/bench-memset.c (do_one_test): Likewise.
36371 * benchtests/bench-string.h (test_init): Remove memsets.
36372
925733a9
RJ
363732017-08-10 Rical Jasan <ricaljasan@pacific.net>
36374
36375 * manual/lang.texi
36376 (Computing the Width of an Integer Data Type): Rename section to
36377 "Width of an Integer Type". Remove inaccurate statement regarding
36378 lack of C language facilities for determining width of integer
36379 types, and reorder content to improve flow and context of
36380 discussion.
36381
4fcdfbfc
RJ
363822017-08-10 Rical Jasan <ricaljasan@pacific.net>
36383
36384 * lang.texi (va_copy): Change standard from ISO to C99.
36385 (__va_copy): Add standard and header annotation.
36386 Update description for clarity of origins and current use.
36387
4d98ace9
GG
363882017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36389
36390 [BZ #21941]
36391 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
36392 xssqrtqp requires operands to be in Vector Registers
36393 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
36394 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
36395 (__ieee754_sqrtf128): Likewise.
36396
92236903
WD
363972017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
36398
36399 * sysdeps/aarch64/memcmp.S (memcmp):
36400 Rewrite of optimized memcmp.
36401
2449ae7b
FW
364022017-08-10 Florian Weimer <fweimer@redhat.com>
36403
36404 Introduce ld.so exceptions.
36405 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
36406 (_dl_exception_create, _dl_exception_create_format)
36407 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
36408 (_dl_catch_exception): Declare.
36409 (_dl_catch_error): Update comment.
36410 * elf/dl-error-skeleton.c (struct catch): Replace objname,
36411 errstring, malloced members with exception member.
36412 (_dl_out_of_memory): Remove.
36413 (fatal_error): New function, extracted from _dl_signal_error.
36414 (_dl_signal_exception, _dl_signal_cexception): New functions.
36415 (_dl_signal_error): Call _dl_exception_create to allocate an
36416 exception object.
36417 (_dl_catch_exception): New function, based on _dl_catch_error.
36418 (_dl_catch_error): Implement using _dl_catch_exception.
36419 * elf/dl-exception.c: New file.
36420 * elf/Makefile (dl-routines): Add dl-exception.
36421 (elide-routines.os): Likewise.
36422 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
36423 _dl_exception_create_format, _dl_exception_free.
36424 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
36425 _dl_signal_exception.
36426 * elf/dl-lookup.c (make_string): Remove.
36427 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
36428 _dl_signal_cexception, _dl_exception_free.
36429 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
36430 _dl_signal_exception.
36431 * elf/dl-sym.c (do_sym): Likewise.
36432 * elf/dl-version.c (make_string): Remove.
36433 (match_symbol): Use _dl_exception_create_format,
36434 _dl_signal_cexception, _dl_exception_free.
36435 (_dl_check_map_versions): Likewise.
36436 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
36437 _dl_catch_exception.
36438 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
36439 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
36440 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
36441 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
36442 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
36443 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
36444 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
36445 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
36446 Likewise.
36447 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
36448 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
36449 (ld.so): Likewise.
36450 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
36451 (ld.so): Likewise.
36452 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
36453 Likewise.
36454 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
36455 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
36456 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
36457 Likewise.
36458 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
36459 Likewise.
36460 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
36461
f87cc2bf
FW
364622017-08-10 Florian Weimer <fweimer@redhat.com>
36463
36464 * inet/net-internal.h (__inet6_scopeid_pton): Remove
36465 attribute_hidden, internal_function.
36466 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
36467 internal_function.
36468
eac43cbb
FW
364692017-08-10 Florian Weimer <fweimer@redhat.com>
36470
36471 * malloc/malloc.c (get_max_fast): Reimplement as an inline
36472 function which calls __builtin_unreachable.
36473
bd80111e
MF
364742017-08-10 Mike FABIAN <mfabian@redhat.com>
36475
36476 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
36477 Indian monetary formatting
36478 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
36479 test cases.
36480
60e2846e
DL
364812017-08-09 Dmitry V. Levin <ldv@altlinux.org>
36482
68dc02d1
DL
36483 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
36484 Fix typo in comment.
36485
60e2846e
DL
36486 [BZ #21928]
36487 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
36488 PTRACE_SEIZE_DEVEL): Remove.
36489 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
36490 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
36491 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
36492 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
36493 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
36494
3d452dab
JM
364952017-08-09 Joseph Myers <joseph@codesourcery.com>
36496
24d9f53a
JM
36497 * posix/bits/types.h (__qaddr_t): Remove.
36498
3d452dab
JM
36499 [BZ #21457]
36500 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
36501 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
36502 __glibc_reserved1.
36503 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
36504 (ucontext_t): Use __ctx with uc_flags.
36505 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
36506 (__ctxt): Likewise.
36507 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
36508 __glibc_reserved1.
36509 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
36510 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
36511 __glibc_reserved1.
36512 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
36513 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
36514 __glibc_reserved1.
36515 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
36516 macro.
36517 (ucontext_t): Use __ctx with uc_flags.
36518 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
36519 (ucontext_t): Use __ctx with uc_flags.
36520 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
36521 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
36522 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
36523 (ucontext_t): Use __ctx with uc_flags.
36524 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
36525 undefine further down.
36526 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
36527 __glibc_reserved1.
36528 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
36529 undefine further down.
36530 (ucontext_t): Use __ctx with uc_flags.
36531 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
36532 undefine further down.
36533 (ucontext_t): Use __ctx with uc_flags.
36534 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
36535 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
36536 Rename uc_pad to __glibc_reserved1.
36537 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
36538 undefine further down.
36539 (ucontext_t): Use __ctx with uc_flags.
36540 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
36541 further down.
36542 (ucontext_t): Use __ctx with uc_flags.
36543 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
36544 __ctx with uc_flags.
36545 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
36546 (ucontext_t): Use __ctx with uc_flags.
36547 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
36548 __ctx with uc_flags.
36549
30161498
FW
365502017-08-09 Florian Weimer <fweimer@redhat.com>
36551
36552 [BZ #21932]
36553 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
36554 before early return.
36555
5797b410
AS
365562017-08-09 Andreas Schwab <schwab@suse.de>
36557
139237a4 36558 [BZ #21041]
5797b410
AS
36559 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
36560 renamed alias.
36561
139237a4 36562 [BZ #21041]
40c06a3d
AS
36563 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
36564 tst-compat-forwarder.
36565 (modules-names): Add tst-compat-forwarder-mod.
36566 ($(objpfx)tst-compat-forwarder): Depend on
36567 $(objpfx)tst-compat-forwarder-mod.so.
36568 * nptl/tst-compat-forwarder.c: New file.
36569 * nptl/tst-compat-forwarder-mod.c: New file.
36570
36ada5f6
SP
365712017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
36572
0e02b510
SP
36573 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
36574 comments.
36575
36ada5f6
SP
36576 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
36577 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
36578 memcpy_falkor.
36579 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
36580 Bump.
36581 (__libc_ifunc_impl_list): Add __memcpy_falkor.
36582 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
36583 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
36584 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
36585 Add falkor.
36586 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
36587 New macro.
36588
9995c839
AZ
365892017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36590
36591 [BZ #759]
36592 * manual/setjmp.texi (getcontex): Document uc_stack value
36593 compatibility differences.
36594
f17a4233
JM
365952017-08-08 Joseph Myers <joseph@codesourcery.com>
36596
36597 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
36598 (old_malloc_hook): Likewise.
36599 (old_memalign_hook): Likewise.
36600 (old_realloc_hook): Likewise.
36601 (struct hdr): Likewise.
36602 (flood): Likewise.
36603 (freehook): Likewise.
36604 (mallochook): Likewise.
36605 (memalignhook): Likewise.
36606 (reallochook): Likewise.
36607 (mprobe): Likewise.
36608 * malloc/mtrace.c (mallwatch): Likewise.
36609 (tr_old_free_hook): Likewise.
36610 (tr_old_malloc_hook): Likewise.
36611 (tr_old_realloc_hook): Likewise.
36612 (tr_old_memalign_hook): Likewise.
36613 (tr_where): Likewise.
36614 (lock_and_info): Likewise.
36615 (tr_freehook): Likewise.
36616 (tr_mallochook): Likewise.
36617 (tr_reallochook): Likewise.
36618 (tr_memalignhook): Likewise.
36619 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
36620 * misc/mmap.c (__mmap): Likewise.
36621 * misc/mmap64.c (__mmap64): Likewise.
36622 * misc/mprotect.c (__mprotect): Likewise.
36623 * misc/msync.c (msync): Likewise.
36624 * misc/munmap.c (__munmap): Likewise.
36625 * posix/posix_madvise.c (posix_madvise): Likewise.
36626 * socket/send.c (__send): Likewise.
36627 * socket/sendto.c (__sendto): Likewise.
36628 * socket/setsockopt.c (__setsockopt): Likewise.
36629 * string/memcmp.c (__ptr_t): Remove macro.
36630 (MEMCMP): Use void * instead of ptr_t.
36631 * string/memrchr.c (__ptr_t): Remove macro.
36632 (__memrchr): Use void * instead of ptr_t.
36633 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
36634 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
36635 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
36636 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
36637 * sysdeps/mach/msync.c (msync): Likewise.
36638 * sysdeps/mach/munmap.c (__munmap): Likewise.
36639 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
36640 Likewise.
36641 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
36642 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
36643 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
36644 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
36645 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
36646 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
36647 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
36648 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
36649 Likewise.
36650 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
36651 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
36652 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
36653 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
36654 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
36655 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
36656 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
36657 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
36658 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
36659 Likewise.
36660 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
36661 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
36662 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
36663 (MEMCMP): Use void * instead of ptr_t.
36664 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
36665 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
36666
0df595b2
FW
366672017-08-08 Florian Weimer <fweimer@redhat.com>
36668
36669 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
36670 return statement.
36671
086df229
L
366722017-08-08 H.J. Lu <hongjiu.lu@intel.com>
36673
36674 [BZ #21913]
36675 * csu/libc-tls.c: Include <startup.h> first.
36676 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
36677 * elf/dl-tunables.c: Include <startup.h> first.
36678 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
36679 * sysdeps/generic/startup.h: New file.
36680 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
36681 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
36682 (I386_USE_SYSENTER): New. Defined to 0.
36683
fc5ad702
AS
366842017-08-08 Andreas Schwab <schwab@suse.de>
36685
36686 [BZ #21041]
36687 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
36688 * nptl/pt-system.c (system): Likewise.
36689
852d6312
AZ
366902017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36691
36692 [BZ #21780]
36693 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
36694 EOPNOTSUPP.
36695 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
36696 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
36697 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
36698 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
36699 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
36700 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
36701 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
36702
8b164787
JM
367032017-08-07 Joseph Myers <joseph@codesourcery.com>
36704
cd65836b
JM
36705 [BZ #21899]
36706 * bits/sigaction.h (struct sigaction): Define sa_handler and
36707 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
36708 (SA_ONSTACK): Change [__USE_UNIX98] condition to
36709 [__USE_XOPEN_EXTENDED].
36710 (SA_RESTART): Likewise.
36711 (SA_NODEFER): Likewise.
36712 (SA_RESETHAND): Likewise.
36713 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
36714 (struct sigaction): Define sa_handler and sa_sigaction using union
36715 also for [__USE_XOPEN_EXTENDED].
36716 (SA_ONSTACK): Change [__USE_UNIX98] condition to
36717 [__USE_XOPEN_EXTENDED].
36718 (SA_RESTART): Likewise.
36719 (SA_NODEFER): Likewise.
36720 (SA_RESETHAND): Likewise.
36721 * sysdeps/unix/sysv/linux/bits/sigaction.h
36722 (struct sigaction): Define sa_handler and sa_sigaction using union
36723 also for [__USE_XOPEN_EXTENDED].
36724 (SA_ONSTACK): Change [__USE_UNIX98] condition to
36725 [__USE_XOPEN_EXTENDED].
36726 (SA_RESTART): Likewise.
36727 (SA_NODEFER): Likewise.
36728 (SA_RESETHAND): Likewise.
36729 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
36730 (struct sigaction): Define sa_handler and sa_sigaction using union
36731 also for [__USE_XOPEN_EXTENDED].
36732 (SA_ONSTACK): Change [__USE_UNIX98] condition to
36733 [__USE_XOPEN_EXTENDED].
36734 (SA_RESTART): Likewise.
36735 (SA_NODEFER): Likewise.
36736 (SA_RESETHAND): Likewise.
36737 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
36738 (struct sigaction): Define sa_handler and sa_sigaction using union
36739 also for [__USE_XOPEN_EXTENDED].
36740 (SA_ONSTACK): Change [__USE_UNIX98] condition to
36741 [__USE_XOPEN_EXTENDED].
36742 (SA_RESTART): Likewise.
36743 (SA_NODEFER): Likewise.
36744 (SA_RESETHAND): Likewise.
36745 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
36746 (struct sigaction): Define sa_handler and sa_sigaction using union
36747 also for [__USE_XOPEN_EXTENDED].
36748 (SA_ONSTACK): Change [__USE_UNIX98] condition to
36749 [__USE_XOPEN_EXTENDED].
36750 (SA_RESTART): Likewise.
36751 (SA_NODEFER): Likewise.
36752 (SA_RESETHAND): Likewise.
36753 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
36754 (struct sigaction): Define sa_handler and sa_sigaction using union
36755 also for [__USE_XOPEN_EXTENDED].
36756 (SA_ONSTACK): Change [__USE_UNIX98] condition to
36757 [__USE_XOPEN_EXTENDED].
36758 (SA_RESTART): Likewise.
36759 (SA_NODEFER): Likewise.
36760 (SA_RESETHAND): Likewise.
36761 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
36762 (struct sigaction): Define sa_handler and sa_sigaction using union
36763 also for [__USE_XOPEN_EXTENDED].
36764 (SA_ONSTACK): Change [__USE_UNIX98] condition to
36765 [__USE_XOPEN_EXTENDED].
36766 (SA_RESTART): Likewise.
36767 (SA_NODEFER): Likewise. Define directly rather than as alias.
36768 (SA_RESETHAND): Likewise.
36769 (SA_INTERRUPT): Define only for [__USE_MISC].
36770 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
36771 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
36772 [__USE_MISC].
36773 (SA_STACK): Define only for [__USE_MISC].
36774 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
36775 (struct sigaction): Define sa_handler and sa_sigaction using union
36776 also for [__USE_XOPEN_EXTENDED].
36777 (SA_ONSTACK): Change [__USE_UNIX98] condition to
36778 [__USE_XOPEN_EXTENDED].
36779 (SA_RESTART): Likewise.
36780 (SA_NODEFER): Likewise.
36781 (SA_RESETHAND): Likewise.
36782 (SA_NOPTRACE): Define only for [__USE_MISC].
36783
d9fee042
JM
36784 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
36785 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
36786 (struct catalog_info): Likewise.
36787 * inet/htontest.c (lo): Likewise.
36788 (foo): Likewise.
36789 * inet/inet_lnaof.c (inet_lnaof): Likewise.
36790 * inet/inet_net.c (inet_network): Likewise.
36791 * inet/inet_netof.c (inet_netof): Likewise.
36792 * inet/rcmd.c (__ivaliduser): Likewise.
36793 (iruserok): Likewise.
36794 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
36795 * locale/programs/locale-spec.c (locale_special): Likewise.
36796 * nis/nis_findserv.c (struct findserv_req): Likewise.
36797 (__nis_findfastest_with_timeout): Likewise.
36798 * nss/test-netdb.c (test_network): Likewise.
36799 * resolv/inet_neta.c (inet_neta): Likewise.
36800 * resolv/ns_date.c (ns_datetosecs): Likewise.
36801 (SECS_PER_DAY): Likewise.
36802 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
36803 Likewise.
36804 * resolv/res_comp.c (__putlong): Likewise.
36805 (__putshort): Likewise.
36806 (_getlong): Likewise.
36807 (_getshort): Likewise.
36808 * resolv/res_debug.c (p_time): Likewise.
36809 (precsize_ntoa): Likewise.
36810 (precsize_aton): Likewise.
36811 (latlon2ul): Likewise.
36812 (loc_aton): Likewise.
36813 (loc_ntoa): Likewise.
36814 * resolv/res_hconf.c (struct netaddr): Likewise.
36815 (_res_hconf_reorder_addrs): Likewise.
36816 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
36817 (clnttcp_control): Likewise.
36818 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
36819 (clntudp_control): Likewise.
36820 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
36821 (clntunix_control): Likewise.
36822 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
36823 * sunrpc/rpc/auth.h (union des_block): Likewise.
36824 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
36825 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
36826 (xdrrec_create): Likewise.
36827 (xdrrec_endofrecord): Likewise.
36828 (flush_out): Likewise.
36829 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
36830 (xdrstdio_putlong): Likewise.
36831 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
36832 Likewise.
36833
8b164787
JM
36834 * misc/sys/cdefs.h (__long_double_t): Remove.
36835 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
36836 instead of __long_double_t,
36837 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
36838
7ee38e60
SP
368392017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
36840
dd3e86ad
SP
36841 * benchtests/scripts/compare_strings.py: Avoid display error when
36842 running on a text terminal.
36843
b115e819
SP
36844 * benchtests/scripts/compare_strings.py (main): Add an
36845 optional -base option.
36846 (process_results): New argument base_func.
36847
7ee38e60
SP
36848 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
36849 hardcoding memcpy.
36850 * benchtests/bench-memcpy-large.c (test_name): Likewise.
36851 * benchtests/bench-memcpy-random.c (test_name): Likewise.
36852
d5afb385
AS
368532017-08-07 Andreas Schwab <schwab@suse.de>
36854
36855 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
36856 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
36857 * intl/Makefile ($(objpfx)tst-gettext.out)
36858 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
36859 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
36860 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
36861 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
36862 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
36863 * posix/Makefile ($(objpfx)globtest.out)
36864 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
36865 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
36866 ($(objpfx)tst-printf.out): Likewise.
36867 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
36868 ($(objpfx)tst-setcontext3.out): Likewise.
36869
57a72fa3
L
368702017-08-07 H.J. Lu <hongjiu.lu@intel.com>
36871
36872 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
36873 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
36874 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
36875 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
36876 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
36877 and mptan-fma.
36878 (CFLAGS-doasin-fma.c): New.
36879 (CFLAGS-dosincos-fma.c): Likewise.
36880 (CFLAGS-e_asin-fma.c): Likewise.
36881 (CFLAGS-e_atan2-fma.c): Likewise.
36882 (CFLAGS-e_exp-fma.c): Likewise.
36883 (CFLAGS-e_log-fma.c): Likewise.
36884 (CFLAGS-e_pow-fma.c): Likewise.
36885 (CFLAGS-halfulp-fma.c): Likewise.
36886 (CFLAGS-mpa-fma.c): Likewise.
36887 (CFLAGS-mpatan-fma.c): Likewise.
36888 (CFLAGS-mpatan2-fma.c): Likewise.
36889 (CFLAGS-mpexp-fma.c): Likewise.
36890 (CFLAGS-mplog-fma.c): Likewise.
36891 (CFLAGS-mpsqrt-fma.c): Likewise.
36892 (CFLAGS-mptan-fma.c): Likewise.
36893 (CFLAGS-s_atan-fma.c): Likewise.
36894 (CFLAGS-sincos32-fma.c): Likewise.
36895 (CFLAGS-slowexp-fma.c): Likewise.
36896 (CFLAGS-slowpow-fma.c): Likewise.
36897 (CFLAGS-s_sin-fma.c): Likewise.
36898 (CFLAGS-s_tan-fma.c): Likewise.
36899 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
36900 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
36901 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
36902 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
36903 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
36904 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
36905 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
36906 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
36907 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
36908 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
36909 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
36910 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
36911 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
36912 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
36913 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
36914 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
36915 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
36916 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
36917 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
36918 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
36919 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
36920 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
36921 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
36922 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
36923 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
36924 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
36925 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
36926 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
36927 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
36928 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
36929 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
36930
219dd320
JM
369312017-08-04 Joseph Myers <joseph@codesourcery.com>
36932
36933 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
36934 (min_of_type_f): New macro.
36935 (min_of_type_): Likewise.
36936 (min_of_type_l): Likewise.
36937 (min_of_type_f128): Likewise.
36938 (min_of_type): Define using __MATH_TG and taking an expression
36939 argument.
36940 (math_check_force_underflow): Pass expression instead of type to
36941 min_of_type.
36942 (math_check_force_underflow_nonneg): Likewise.
36943
64d4dea6
L
369442017-08-04 H.J. Lu <hongjiu.lu@intel.com>
36945
36946 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
36947 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
36948 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
36949
973da22a
L
369502017-08-04 H.J. Lu <hongjiu.lu@intel.com>
36951
36952 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
36953 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
36954 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
36955 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
36956 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
36957 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
36958 memcpy_chk-nonshared, mempcpy_chk-nonshared,
36959 memmove_chk-nonshared and memset_chk-nonshared
36960 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
36961 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
36962 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
36963 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
36964 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
36965 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
36966 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
36967 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
36968 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
36969 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
36970 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
36971 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
36972 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
36973 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
36974 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
36975 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
36976 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
36977 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
36978 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
36979 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
36980 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
36981 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
36982 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
36983 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
36984 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
36985 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
36986 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
36987 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
36988 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
36989 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
36990 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
36991 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
36992 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
36993 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
36994 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
36995 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
36996 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
36997 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
36998 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
36999 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
37000 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
37001 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
37002 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
37003 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
37004 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
37005 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
37006 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
37007 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
37008 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
37009 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
37010 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
37011 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
37012 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
37013 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
37014 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
37015 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
37016 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
37017 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
37018 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
37019 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
37020 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
37021 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
37022 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
37023 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
37024 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
37025 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
37026 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
37027 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
37028 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
37029 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
37030 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
37031 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
37032 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
37033 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
37034 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
37035 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
37036 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
37037 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
37038 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
37039 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
37040 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
37041 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
37042 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
37043 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
37044 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
37045 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
37046 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
37047 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
37048 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
37049 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
37050 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
37051 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
37052 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
37053 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
37054 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
37055 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
37056 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
37057 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
37058 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
37059 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
37060 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
37061 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
37062 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
37063 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
37064 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
37065 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
37066 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
37067 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
37068
8537e0f6
L
370692017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37070
37071 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
37072 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
37073 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
37074 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
37075 svml_d_log2_core-sse2, svml_d_log4_core-sse,
37076 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
37077 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
37078 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
37079 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
37080 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
37081 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
37082 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
37083 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
37084 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
37085 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
37086 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
37087 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
37088 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
37089 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
37090 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
37091 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
37092 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
37093 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
37094 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
37095 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
37096 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
37097 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
37098 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
37099 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
37100 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
37101 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
37102 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
37103 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
37104 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
37105 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
37106 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
37107 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
37108 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
37109 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
37110 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
37111 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
37112 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
37113 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
37114 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
37115 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
37116 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
37117 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
37118 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
37119 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
37120 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
37121 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
37122 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
37123 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
37124 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
37125 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
37126 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
37127 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
37128 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
37129 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
37130 ...
37131 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
37132 Don't include <sysdep.h> nor <init-arch.h>.
37133 (_ZGVbN2v_cos): Removed.
37134 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
37135 ...
37136 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
37137 Don't include <sysdep.h> nor <init-arch.h>.
37138 (_ZGVdN4v_cos): Removed.
37139 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
37140 ...
37141 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
37142 Don't include <sysdep.h> nor <init-arch.h>.
37143 (_ZGVeN8v_cos): Removed.
37144 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
37145 ...
37146 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
37147 Don't include <sysdep.h> nor <init-arch.h>.
37148 (_ZGVbN2v_exp): Removed.
37149 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
37150 ...
37151 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
37152 Don't include <sysdep.h> nor <init-arch.h>.
37153 (_ZGVdN4v_exp): Removed.
37154 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
37155 ...
37156 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
37157 Don't include <sysdep.h> nor <init-arch.h>.
37158 (_ZGVeN8v_exp): Removed.
37159 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
37160 ...
37161 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
37162 Don't include <sysdep.h> nor <init-arch.h>.
37163 (_ZGVbN2v_log): Removed.
37164 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
37165 ...
37166 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
37167 Don't include <sysdep.h> nor <init-arch.h>.
37168 (_ZGVdN4v_log): Removed.
37169 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
37170 ...
37171 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
37172 Don't include <sysdep.h> nor <init-arch.h>.
37173 (_ZGVeN8v_log): Removed.
37174 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
37175 ...
37176 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
37177 Don't include <sysdep.h> nor <init-arch.h>.
37178 (_ZGVbN2vv_pow): Removed.
37179 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
37180 ...
37181 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
37182 Don't include <sysdep.h> nor <init-arch.h>.
37183 (_ZGVdN4vv_pow): Removed.
37184 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
37185 ...
37186 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
37187 Don't include <sysdep.h> nor <init-arch.h>.
37188 (_ZGVeN8vv_pow): Removed.
37189 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
37190 ...
37191 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
37192 Don't include <sysdep.h> nor <init-arch.h>.
37193 (_ZGVbN2v_sin): Removed.
37194 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
37195 ...
37196 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
37197 Don't include <sysdep.h> nor <init-arch.h>.
37198 (_ZGVbN4v_sin): Removed.
37199 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
37200 ...
37201 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
37202 Don't include <sysdep.h> nor <init-arch.h>.
37203 (_ZGVbN8v_sin): Removed.
37204 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
37205 ...
37206 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
37207 Don't include <sysdep.h> nor <init-arch.h>.
37208 (_ZGVbN2vvv_sincos): Removed.
37209 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
37210 ...
37211 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
37212 Don't include <sysdep.h> nor <init-arch.h>.
37213 (_ZGVdN4vvv_sincos): Removed.
37214 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
37215 ...
37216 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
37217 Don't include <sysdep.h> nor <init-arch.h>.
37218 (_ZGVeN8vvv_sincos): Removed.
37219 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
37220 ...
37221 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
37222 Don't include <sysdep.h> nor <init-arch.h>.
37223 (_ZGVeN16v_cosf): Removed.
37224 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
37225 ...
37226 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
37227 Don't include <sysdep.h> nor <init-arch.h>.
37228 (_ZGVbN4v_cosf): Removed.
37229 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
37230 ...
37231 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
37232 Don't include <sysdep.h> nor <init-arch.h>.
37233 (_ZGVdN8v_cosf): Removed.
37234 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
37235 ...
37236 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
37237 Don't include <sysdep.h> nor <init-arch.h>.
37238 (_ZGVeN16v_expf): Removed.
37239 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
37240 ...
37241 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
37242 Don't include <sysdep.h> nor <init-arch.h>.
37243 (_ZGVbN4v_expf): Removed.
37244 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
37245 ...
37246 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
37247 Don't include <sysdep.h> nor <init-arch.h>.
37248 (_ZGVdN8v_expf): Removed.
37249 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
37250 ...
37251 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
37252 Don't include <sysdep.h> nor <init-arch.h>.
37253 (_ZGVeN16v_logf): Removed.
37254 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
37255 ...
37256 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
37257 Don't include <sysdep.h> nor <init-arch.h>.
37258 (_ZGVbN4v_logf): Removed.
37259 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
37260 ...
37261 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
37262 Don't include <sysdep.h> nor <init-arch.h>.
37263 (_ZGVdN8v_logf): Removed.
37264 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
37265 ...
37266 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
37267 Don't include <sysdep.h> nor <init-arch.h>.
37268 (_ZGVeN16vv_powf): Removed.
37269 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
37270 ...
37271 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
37272 Don't include <sysdep.h> nor <init-arch.h>.
37273 (_ZGVbN4vv_powf): Removed.
37274 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
37275 ...
37276 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
37277 Don't include <sysdep.h> nor <init-arch.h>.
37278 (_ZGVdN8vv_powf): Removed.
37279 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
37280 ...
37281 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
37282 Don't include <sysdep.h> nor <init-arch.h>.
37283 (_ZGVeN16vvv_sincosf): Removed.
37284 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
37285 ...
37286 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
37287 Don't include <sysdep.h> nor <init-arch.h>.
37288 (_ZGVbN4vvv_sincosf): Removed.
37289 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
37290 ...
37291 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
37292 Don't include <sysdep.h> nor <init-arch.h>.
37293 (_ZGVdN8vvv_sincosf): Removed.
37294 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
37295 ...
37296 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
37297 Don't include <sysdep.h> nor <init-arch.h>.
37298 (_ZGVeN16v_sinf): Removed.
37299 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
37300 ...
37301 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
37302 Don't include <sysdep.h> nor <init-arch.h>.
37303 (_ZGVbN4v_sinf): Removed.
37304 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
37305 ...
37306 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
37307 Don't include <sysdep.h> nor <init-arch.h>.
37308 (_ZGVdN8v_sinf): Removed.
37309
10a87ca4
L
373102017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37311
37312 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
37313 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
37314 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
37315 s_rint-sse4_1 and s_rintf-sse4_1.
37316 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
37317 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
37318 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
37319 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
37320 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
37321 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
37322 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
37323 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
37324 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
37325 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
37326 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
37327 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37328 (__ceil): Removed.
37329 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
37330 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
37331 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37332 (__ceilf): Removed.
37333 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
37334 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
37335 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37336 (__floor): Removed.
37337 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
37338 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
37339 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37340 (__floorf): Removed.
37341 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
37342 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
37343 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37344 (__nearbyint): Removed.
37345 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
37346 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
37347 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37348 (__nearbyintf): Removed.
37349 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
37350 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
37351 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37352 (__rint): Removed.
37353 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
37354 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
37355 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
37356 (__rintf): Removed.
37357
1e8e527d
L
373582017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37359
37360 * sysdeps/i386/start.S (_start): Check Check PIC instead of
37361 SHARED. Avoid dynamic relocation against main in static PIE.
37362
e13daad7
L
373632017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37364
37365 [BZ #21815]
37366 * elf/Makefile (CFLAGS-tst-prelink.c): New.
37367 (LDFLAGS-tst-prelink): Likewise.
37368
627c69c8
L
373692017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37370
37371 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
37372 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
37373 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
37374 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
37375 (INTERNAL_SYSCALL_NCS): Likewise.
37376 (LOADARGS_1): Likewise.
37377 (LOADARGS_5): Likewise.
37378 (RESTOREARGS_1): Likewise.
37379 (RESTOREARGS_5): Likewise.
37380
fc11ff8d
L
373812017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37382
37383 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
37384 (MEMPCPY_SYMBOL): Likewise.
37385 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
37386 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
37387 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
37388 in libc.a.
37389 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
37390 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
37391 Likewise.
37392 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
37393 (__hidden_ver1): Don't use in libc.a.
37394 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
37395 (__mempcpy): Don't create a weak alias in libc.a.
37396 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
37397 libc.a.
37398 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
37399 (__hidden_ver1): Don't use in libc.a.
37400
19f1a11e
L
374012017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37402
37403 * config.make.in (have-insert): New.
37404 * configure.ac (libc_cv_insert): New. Set to yes if linker
37405 supports INSERT in linker script.
37406 (AC_SUBST(libc_cv_insert): New.
37407 * configure: Regenerated.
37408 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
37409 if $(have-insert) == yes.
37410
3093fd5e
L
374112017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37412
37413 * elf/Makefile (tests): Add vismain only if
37414 $(have-protected-data) == yes.
37415 (tests-pie): Likewise.
37416
d2cf37c0
L
374172017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37418
37419 [BZ #21871]
37420 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
37421 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
37422
c8a0e6ec
L
374232017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37424
37425 [BZ #21790]
37426 * sysdeps/i386/i586/memset.S
37427 (__memset_zero_constant_len_parameter): Removed.
37428 * sysdeps/i386/i686/memset.S
37429 (__memset_zero_constant_len_parameter): Likewise.
37430 * sysdeps/i386/i686/multiarch/memset_chk.S
37431 (__memset_zero_constant_len_parameter): Likewise.
37432 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
37433 Likewise.
37434
2b34e271
AJ
374352017-08-03 Aurelien Jarno <aurelien@aurel32.net>
37436
37437 * stdlib/getentropy.c (getentropy): Change return type to int.
37438
144bdab0
AJ
374392017-08-03 Aurelien Jarno <aurelien@aurel32.net>
37440
37441 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
37442
24ab7723
JM
374432017-08-03 Joseph Myers <joseph@codesourcery.com>
37444
37445 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
37446 u_intN_t.
37447 * math/s_nexttowardf.c (__nexttowardf): Likewise.
37448 * sysdeps/generic/math_private.h (ieee_double_shape_type):
37449 Likewise.
37450 (ieee_float_shape_type): Likewise.
37451 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
37452 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
37453 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
37454 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
37455 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
37456 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
37457 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
37458 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
37459 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
37460 Likewise.
37461 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
37462 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
37463 (__ieee754_yn): Likewise.
37464 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
37465 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
37466 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
37467 Likewise.
37468 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
37469 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
37470 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
37471 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
37472 (__erfc): Likewise.
37473 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
37474 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
37475 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
37476 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
37477 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
37478 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
37479 Likewise.
37480 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
37481 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
37482 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
37483 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
37484 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
37485 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
37486 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
37487 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
37488 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
37489 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
37490 (__issignaling): Likewise.
37491 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
37492 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
37493 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
37494 Likewise.
37495 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
37496 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
37497 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
37498 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
37499 Likewise.
37500 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
37501 Likewise.
37502 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
37503 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
37504 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
37505 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
37506 (__erfcf): Likewise.
37507 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
37508 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
37509 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
37510 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
37511 Likewise.
37512 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
37513 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
37514 Likewise.
37515 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
37516 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
37517 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
37518 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
37519 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
37520 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
37521 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
37522 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
37523 Likewise.
37524 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
37525 Likewise.
37526 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
37527 Likewise.
37528 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
37529 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
37530 Likewise.
37531 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
37532 Likewise.
37533 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
37534 (__ieee754_ynl): Likewise.
37535 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
37536 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
37537 Likewise.
37538 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
37539 Likewise.
37540 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
37541 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
37542 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
37543 Likewise.
37544 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
37545 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
37546 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
37547 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
37548 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
37549 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
37550 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
37551 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
37552 Likewise.
37553 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
37554 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
37555 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
37556 Likewise.
37557 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
37558 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
37559 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
37560 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
37561 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
37562 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
37563 Likewise.
37564 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
37565 Likewise.
37566 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
37567 Likewise.
37568 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
37569 Likewise.
37570 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
37571 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
37572 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
37573 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
37574 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
37575 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
37576 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
37577 Likewise.
37578 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
37579 Likewise.
37580 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
37581 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
37582 Likewise.
37583 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
37584 (__ieee754_remainderl): Likewise.
37585 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
37586 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
37587 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
37588 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
37589 Likewise.
37590 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
37591 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
37592 Likewise.
37593 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
37594 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
37595 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
37596 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
37597 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
37598 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
37599 Likewise.
37600 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
37601 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
37602 (__ieee754_y0l): Likewise.
37603 (pzero): Likewise.
37604 (qzero): Likewise.
37605 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
37606 (__ieee754_y1l): Likewise.
37607 (pone): Likewise.
37608 (qone): Likewise.
37609 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
37610 (__ieee754_ynl): Likewise.
37611 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
37612 (__ieee754_lgammal_r): Likewise.
37613 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
37614 Likewise.
37615 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
37616 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
37617 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
37618 (__erfcl): Likewise.
37619 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
37620 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
37621 Likewise.
37622 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
37623 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
37624 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
37625 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
37626 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
37627 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
37628 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
37629 Likewise.
37630 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
37631 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
37632 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
37633 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
37634 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
37635 Likewise.
37636 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
37637 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
37638 Likewise.
37639 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
37640 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
37641 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
37642 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
37643 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
37644
964263bb
FW
376452017-08-03 Florian Weimer <fweimer@redhat.com>
37646
37647 [BZ #21885]
37648 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
37649 on memory allocation failure.
37650
e98c925f
AM
376512017-08-03 Alan Modra <amodra@gmail.com>
37652
37653 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
37654 tst-tlsopt-powerpc.c with function name change and no test harness.
37655 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
37656 Call tls_get_addr_opt_test.
37657 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
37658 (modules-names): Add mod-tlsopt-powerpc.
37659 (mod-tlsopt-powerpc.so-no-z-defs): Define.
37660 (tst-tlsopt-powerpc): Depend on .so.
37661 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
37662 define. Expand use in TLS_GD and TLS_LD.
37663
8ee1abdb
ST
376642017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
37665
37666 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
37667 function.
3da5756e 37668 * sysdeps/posix/shm_open.c: Include <pthread.h>.
8ee1abdb 37669
42df8d59
JM
376702017-08-02 Joseph Myers <joseph@codesourcery.com>
37671
37672 [BZ #21686]
37673 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
37674 comparing size with that of double.
37675 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
37676 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
37677 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
37678 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
37679 (__TGMATH_BINARY_REAL_IMAG): Likewise.
37680 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
37681 unsigned __int128 types.
37682
b7f95f49
SE
376832017-08-02 Steve Ellcey <sellcey@cavium.com>
37684
37685 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
37686 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
37687 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
37688 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
37689 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
37690
5b736bc9
L
376912017-08-02 H.J. Lu <hongjiu.lu@intel.com>
37692
37693 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
37694
dfc93c41
L
376952017-08-02 H.J. Lu <hongjiu.lu@intel.com>
37696
37697 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
37698 of SHARED.
37699 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
37700 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
37701 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
37702 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
37703 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
37704 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
37705 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
37706
2fee621d
JM
377072017-08-02 Joseph Myers <joseph@codesourcery.com>
37708
37709 [BZ #21685]
37710 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
37711 bit-field expressions passed to sizeof or typeof.
37712 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
37713 (__TGMATH_F128): Likewise.
37714 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
37715 (__TGMATH_CF128): Likewise.
37716 (__TGMATH_UNARY_REAL_ONLY): Likewise.
37717 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
37718 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
37719 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
37720 (__TGMATH_BINARY_REAL_ONLY): Likewise.
37721 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
37722 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
37723 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
37724 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
37725 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
37726 (__TGMATH_UNARY_REAL_IMAG): Likewise.
37727 (__TGMATH_UNARY_IMAG): Likewise.
37728 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
37729 (__TGMATH_BINARY_REAL_IMAG): Likewise.
37730 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
37731 type.
37732 (define_vars_for_type): Handle bit_field type specially.
37733 (Tests.__init__): Declare structure with bit-field element.
37734
b358255f
L
377352017-08-02 H.J. Lu <hongjiu.lu@intel.com>
37736
37737 [BZ #21791]
37738 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
37739 (MEMCPY_CHK): Define only if SHARED is defined.
37740 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
37741 Likewise.
37742 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
37743 Likewise.
edf66db1
SP
37744
37745See ChangeLog.18 for earlier changes.